[Function] Fog of War (MiniMap)

This is a discussion on [Function] Fog of War (MiniMap) within the Warcraft 3 Hacks, bots and tools board part of the Warcraft 3 forum category; This function sets the state of the Fog of War on the MiniMap, as example, you can use it to ...

Results 1 to 3 of 3
  1. #1
    Nowa's Avatar
    Nowa is offline Premium Member
    Array
    Join Date
    Aug 2007
    Posts
    52
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    11
    Reputation
    77

    [Function] Fog of War (MiniMap)

    This function sets the state of the Fog of War on the MiniMap, as example, you can use it to remove the whole fog, darken it and some other things. You can't reveal any units with this function.

    6F147C50 55 PUSH EBP
    6F147C51 8BEC MOV EBP,ESP
    6F147C53 83EC 48 SUB ESP,48
    6F147C56 53 PUSH EBX
    6F147C57 56 PUSH ESI
    6F147C58 57 PUSH EDI
    6F147C59 8BF9 MOV EDI,ECX
    6F147C5B 8B87 24060000 MOV EAX,DWORD PTR DS:[EDI+624]
    6F147C61 85C0 TEST EAX,EAX
    6F147C63 0F84 C4020000 JE Game.6F147F2D
    6F147C69 8B1D 3433876F MOV EBX,DWORD PTR DS:[6F873334]
    6F147C6F 8B73 34 MOV ESI,DWORD PTR DS:[EBX+34]
    6F147C72 8B46 14 MOV EAX,DWORD PTR DS:[ESI+14]
    6F147C75 85C0 TEST EAX,EAX
    6F147C77 8B4E 10 MOV ECX,DWORD PTR DS:[ESI+10]
    6F147C7A 895D D0 MOV DWORD PTR SS:[EBP-30],EBX
    6F147C7D 8975 E0 MOV DWORD PTR SS:[EBP-20],ESI
    6F147C80 8945 E4 MOV DWORD PTR SS:[EBP-1C],EAX
    6F147C83 894D CC MOV DWORD PTR SS:[EBP-34],ECX
    6F147C86 75 08 JNZ SHORT Game.6F147C90
    6F147C88 85C9 TEST ECX,ECX
    6F147C8A 0F84 9D020000 JE Game.6F147F2D
    6F147C90 E8 6BBE1400 CALL Game.6F293B00
    6F147C95 85C0 TEST EAX,EAX
    6F147C97 74 0E JE SHORT Game.6F147CA7
    6F147C99 8B46 24 MOV EAX,DWORD PTR DS:[ESI+24]
    6F147C9C 83E0 01 AND EAX,1
    6F147C9F 3C 01 CMP AL,1
    6F147CA1 0F84 86020000 JE Game.6F147F2D
    6F147CA7 8B83 C0030000 MOV EAX,DWORD PTR DS:[EBX+3C0]
    6F147CAD 85C0 TEST EAX,EAX
    6F147CAF 74 08 JE SHORT Game.6F147CB9
    6F147CB1 8A97 E4070000 MOV DL,BYTE PTR DS:[EDI+7E4]
    6F147CB7 EB 06 JMP SHORT Game.6F147CBF
    6F147CB9 8A97 E0070000 MOV DL,BYTE PTR DS:[EDI+7E0]
    6F147CBF 8B75 CC MOV ESI,DWORD PTR SS:[EBP-34]
    6F147CC2 85F6 TEST ESI,ESI
    6F147CC4 8A8F E8070000 MOV CL,BYTE PTR DS:[EDI+7E8]
    6F147CCA 8A87 EC070000 MOV AL,BYTE PTR DS:[EDI+7EC]
    6F147CD0 0F84 A8010000 JE Game.6F147E7E
    6F147CD6 8855 F8 MOV BYTE PTR SS:[EBP-8],DL
    6F147CD9 8B55 E4 MOV EDX,DWORD PTR SS:[EBP-1C]
    6F147CDC 85D2 TEST EDX,EDX
    6F147CDE 75 02 JNZ SHORT Game.6F147CE2
    6F147CE0 8AC8 MOV CL,AL
    6F147CE2 8845 FA MOV BYTE PTR SS:[EBP-6],AL
    6F147CE5 8A87 AC000000 MOV AL,BYTE PTR DS:[EDI+AC]
    6F147CEB 3C FF CMP AL,0FF
    6F147CED 884D F9 MOV BYTE PTR SS:[EBP-7],CL
    6F147CF0 74 12 JE SHORT Game.6F147D04
    6F147CF2 8AD0 MOV DL,AL
    6F147CF4 D0EA SHR DL,1
    6F147CF6 3AD1 CMP DL,CL
    6F147CF8 73 04 JNB SHORT Game.6F147CFE
    6F147CFA 8AC8 MOV CL,AL
    6F147CFC D0E9 SHR CL,1
    6F147CFE 884D F9 MOV BYTE PTR SS:[EBP-7],CL
    6F147D01 8845 FA MOV BYTE PTR SS:[EBP-6],AL
    6F147D04 8B8F 2C020000 MOV ECX,DWORD PTR DS:[EDI+22C]
    6F147D0A 8BB7 30020000 MOV ESI,DWORD PTR DS:[EDI+230]
    6F147D10 8B97 28020000 MOV EDX,DWORD PTR DS:[EDI+228]
    6F147D16 8B9F 24020000 MOV EBX,DWORD PTR DS:[EDI+224]
    6F147D1C 2BF1 SUB ESI,ECX
    6F147D1E 8B4D D0 MOV ECX,DWORD PTR SS:[EBP-30]
    6F147D21 2BDA SUB EBX,EDX
    6F147D23 0FB751 28 MOVZX EDX,WORD PTR DS:[ECX+28]
    6F147D27 52 PUSH EDX
    6F147D28 E8 53C31500 CALL Game.6F2A4080
    6F147D2D 8B45 E0 MOV EAX,DWORD PTR SS:[EBP-20]
    6F147D30 66:8B48 3C MOV CX,WORD PTR DS:[EAX+3C]
    6F147D34 8B87 18020000 MOV EAX,DWORD PTR DS:[EDI+218]
    6F147D3A 66:894D D8 MOV WORD PTR SS:[EBP-28],CX
    6F147D3E 33C9 XOR ECX,ECX
    6F147D40 8D1400 LEA EDX,DWORD PTR DS:[EAX+EAX]
    6F147D43 894D BC MOV DWORD PTR SS:[EBP-44],ECX
    6F147D46 8975 B8 MOV DWORD PTR SS:[EBP-48],ESI
    6F147D49 B8 FF000000 MOV EAX,0FF
    6F147D4E DF6D B8 FILD QWORD PTR SS:[EBP-48]
    6F147D51 2BC2 SUB EAX,EDX
    6F147D53 894D F0 MOV DWORD PTR SS:[EBP-10],ECX
    6F147D56 8945 CC MOV DWORD PTR SS:[EBP-34],EAX
    6F147D59 E8 6E314F00 CALL <JMP.&MSVCRT._ftol>
    6F147D5E 8B4D CC MOV ECX,DWORD PTR SS:[EBP-34]
    6F147D61 C1E0 10 SHL EAX,10
    6F147D64 33D2 XOR EDX,EDX
    6F147D66 F7F1 DIV ECX
    6F147D68 8BB7 14020000 MOV ESI,DWORD PTR DS:[EDI+214]
    6F147D6E 895D C0 MOV DWORD PTR SS:[EBP-40],EBX
    6F147D71 C745 C4 00000000 MOV DWORD PTR SS:[EBP-3C],0
    6F147D78 B9 FF000000 MOV ECX,0FF
    6F147D7D DF6D C0 FILD QWORD PTR SS:[EBP-40]
    6F147D80 8945 BC MOV DWORD PTR SS:[EBP-44],EAX
    6F147D83 8D0436 LEA EAX,DWORD PTR DS:[ESI+ESI]
    6F147D86 2BC8 SUB ECX,EAX
    6F147D88 894D CC MOV DWORD PTR SS:[EBP-34],ECX
    6F147D8B E8 3C314F00 CALL <JMP.&MSVCRT._ftol>
    6F147D90 8B4D CC MOV ECX,DWORD PTR SS:[EBP-34]
    6F147D93 C1E0 10 SHL EAX,10
    6F147D96 33D2 XOR EDX,EDX
    6F147D98 F7F1 DIV ECX
    6F147D9A 8B8F 2C020000 MOV ECX,DWORD PTR DS:[EDI+22C]
    6F147DA0 894D EC MOV DWORD PTR SS:[EBP-14],ECX
    6F147DA3 B9 FF000000 MOV ECX,0FF
    6F147DA8 8945 C4 MOV DWORD PTR SS:[EBP-3C],EAX
    6F147DAB B8 FF000000 MOV EAX,0FF
    6F147DB0 2BC6 SUB EAX,ESI
    6F147DB2 8945 DC MOV DWORD PTR SS:[EBP-24],EAX
    6F147DB5 8B87 18020000 MOV EAX,DWORD PTR DS:[EDI+218]
    6F147DBB 2BC8 SUB ECX,EAX
    6F147DBD 3BC8 CMP ECX,EAX
    6F147DBF 894D CC MOV DWORD PTR SS:[EBP-34],ECX
    6F147DC2 0F8C 65010000 JL Game.6F147F2D
    6F147DC8 C1E1 08 SHL ECX,8
    6F147DCB 894D E4 MOV DWORD PTR SS:[EBP-1C],ECX
    6F147DCE 8BFF MOV EDI,EDI
    6F147DD0 8B4D F0 MOV ECX,DWORD PTR SS:[EBP-10]
    6F147DD3 81F9 00000100 CMP ECX,10000 ; UNICODE "=::=::\"
    6F147DD9 7C 15 JL SHORT Game.6F147DF0
    6F147DDB 8BC1 MOV EAX,ECX
    6F147DDD C1E8 10 SHR EAX,10
    6F147DE0 8BD0 MOV EDX,EAX
    6F147DE2 F7DA NEG EDX
    6F147DE4 C1E2 10 SHL EDX,10
    6F147DE7 03CA ADD ECX,EDX
    6F147DE9 894D F0 MOV DWORD PTR SS:[EBP-10],ECX
    6F147DEC 0145 EC ADD DWORD PTR SS:[EBP-14],EAX
    6F147DEF 90 NOP
    6F147DF0 8B4D E0 MOV ECX,DWORD PTR SS:[EBP-20]
    6F147DF3 8B41 64 MOV EAX,DWORD PTR DS:[ECX+64]
    6F147DF6 0FAF45 EC IMUL EAX,DWORD PTR SS:[EBP-14]
    6F147DFA 8B9F 28020000 MOV EBX,DWORD PTR DS:[EDI+228]
    6F147E00 8B51 30 MOV EDX,DWORD PTR DS:[ECX+30]
    6F147E03 03C3 ADD EAX,EBX
    6F147E05 8B59 2C MOV EBX,DWORD PTR DS:[ECX+2C]
    6F147E08 8B8F D8010000 MOV ECX,DWORD PTR DS:[EDI+1D8]
    6F147E0E 03C0 ADD EAX,EAX
    6F147E10 03D8 ADD EBX,EAX
    6F147E12 03D0 ADD EDX,EAX
    6F147E14 8B45 E4 MOV EAX,DWORD PTR SS:[EBP-1C]
    6F147E17 03C6 ADD EAX,ESI
    6F147E19 8D4481 03 LEA EAX,DWORD PTR DS:[ECX+EAX*4+3]
    6F147E1D 8B4D DC MOV ECX,DWORD PTR SS:[EBP-24]
    6F147E20 8945 D0 MOV DWORD PTR SS:[EBP-30],EAX
    6F147E23 32C0 XOR AL,AL
    6F147E25 3BCE CMP ECX,ESI
    6F147E27 C745 F4 00000100 MOV DWORD PTR SS:[EBP-C],10000 ; UNICODE "=::=::\"
    6F147E2E C645 FF 00 MOV BYTE PTR SS:[EBP-1],0
    6F147E32 894D E8 MOV DWORD PTR SS:[EBP-18],ECX
    6F147E35 0F8E C6000000 JLE Game.6F147F01
    6F147E3B 90 NOP
    6F147E3C 8D6424 00 LEA ESP,DWORD PTR SS:[ESP]
    6F147E40 8B4D F4 MOV ECX,DWORD PTR SS:[EBP-C]
    6F147E43 81F9 00000100 CMP ECX,10000 ; UNICODE "=::=::\"
    6F147E49 0F8C 8F000000 JL Game.6F147EDE
    6F147E4F 0FB775 D8 MOVZX ESI,WORD PTR SS:[EBP-28]
    6F147E53 8BC1 MOV EAX,ECX
    6F147E55 C1E8 10 SHR EAX,10
    6F147E58 8945 D4 MOV DWORD PTR SS:[EBP-2C],EAX
    6F147E5B F7D8 NEG EAX
    6F147E5D C1E0 10 SHL EAX,10
    6F147E60 03C8 ADD ECX,EAX
    6F147E62 894D F4 MOV DWORD PTR SS:[EBP-C],ECX
    6F147E65 8B4D D8 MOV ECX,DWORD PTR SS:[EBP-28]
    6F147E68 33C0 XOR EAX,EAX
    6F147E6A 66:8B02 MOV AX,WORD PTR DS:[EDX]
    6F147E6D 83C2 02 ADD EDX,2
    6F147E70 8955 C8 MOV DWORD PTR SS:[EBP-38],EDX
    6F147E73 21C8 AND EAX,ECX
    6F147E75 66:85C0 TEST AX,AX
    6F147E78 76 1B JBE SHORT Game.6F147E95
    6F147E7A B1 01 MOV CL,1
    6F147E7C EB 19 JMP SHORT Game.6F147E97
    6F147E7E 8B55 E4 MOV EDX,DWORD PTR SS:[EBP-1C]
    6F147E81 85D2 TEST EDX,EDX
    6F147E83 74 08 JE SHORT Game.6F147E8D
    6F147E85 884D F8 MOV BYTE PTR SS:[EBP-8],CL
    6F147E88 ^E9 4CFEFFFF JMP Game.6F147CD9
    6F147E8D 8845 F8 MOV BYTE PTR SS:[EBP-8],AL
    6F147E90 ^E9 4BFEFFFF JMP Game.6F147CE0
    6F147E95 32C9 XOR CL,CL
    6F147E97 0FB703 MOVZX EAX,WORD PTR DS:[EBX]
    6F147E9A F7D0 NOT EAX
    6F147E9C 23C6 AND EAX,ESI
    6F147E9E 83C3 02 ADD EBX,2
    6F147EA1 85C0 TEST EAX,EAX
    6F147EA3 7E 04 JLE SHORT Game.6F147EA9
    6F147EA5 B0 01 MOV AL,1
    6F147EA7 EB 02 JMP SHORT Game.6F147EAB
    6F147EA9 32C0 XOR AL,AL
    6F147EAB 0FB6C9 MOVZX ECX,CL
    6F147EAE 0FB6C0 MOVZX EAX,AL
    6F147EB1 8D4C0D F8 LEA ECX,DWORD PTR SS:[EBP+ECX-8]
    6F147EB5 8A0C01 MOV CL,BYTE PTR DS:[ECX+EAX]
    6F147EB8 3A4D FF CMP CL,BYTE PTR SS:[EBP-1]
    6F147EBB 75 04 JNZ SHORT Game.6F147EC1
    6F147EBD 8AC1 MOV AL,CL
    6F147EBF EB 15 JMP SHORT Game.6F147ED6
    6F147EC1 0FB655 FF MOVZX EDX,BYTE PTR SS:[EBP-1]
    6F147EC5 33C0 XOR EAX,EAX
    6F147EC7 8AC1 MOV AL,CL
    6F147EC9 884D FF MOV BYTE PTR SS:[EBP-1],CL
    6F147ECC 03C2 ADD EAX,EDX
    6F147ECE 99 CDQ
    6F147ECF 2BC2 SUB EAX,EDX
    6F147ED1 8B55 C8 MOV EDX,DWORD PTR SS:[EBP-38]
    6F147ED4 D1F8 SAR EAX,1
    6F147ED6 FF4D D4 DEC DWORD PTR SS:[EBP-2C]
    6F147ED9 ^75 8A JNZ SHORT Game.6F147E65
    6F147EDB 8B4D F4 MOV ECX,DWORD PTR SS:[EBP-C]
    6F147EDE 8B75 D0 MOV ESI,DWORD PTR SS:[EBP-30]
    6F147EE1 8806 MOV BYTE PTR DS:[ESI],AL
    6F147EE3 83C6 04 ADD ESI,4
    6F147EE6 8975 D0 MOV DWORD PTR SS:[EBP-30],ESI
    6F147EE9 034D C4 ADD ECX,DWORD PTR SS:[EBP-3C]
    6F147EEC FF4D E8 DEC DWORD PTR SS:[EBP-18]
    6F147EEF 8BB7 14020000 MOV ESI,DWORD PTR DS:[EDI+214]
    6F147EF5 894D F4 MOV DWORD PTR SS:[EBP-C],ECX
    6F147EF8 3975 E8 CMP DWORD PTR SS:[EBP-18],ESI
    6F147EFB ^0F8F 3FFFFFFF JG Game.6F147E40
    6F147F01 8B45 BC MOV EAX,DWORD PTR SS:[EBP-44]
    6F147F04 8B4D F0 MOV ECX,DWORD PTR SS:[EBP-10]
    6F147F07 8B55 E4 MOV EDX,DWORD PTR SS:[EBP-1C]
    6F147F0A 03C8 ADD ECX,EAX
    6F147F0C 8B45 CC MOV EAX,DWORD PTR SS:[EBP-34]
    6F147F0F 894D F0 MOV DWORD PTR SS:[EBP-10],ECX
    6F147F12 8B8F 18020000 MOV ECX,DWORD PTR DS:[EDI+218]
    6F147F18 48 DEC EAX
    6F147F19 81EA 00010000 SUB EDX,100
    6F147F1F 3BC1 CMP EAX,ECX
    6F147F21 8945 CC MOV DWORD PTR SS:[EBP-34],EAX
    6F147F24 8955 E4 MOV DWORD PTR SS:[EBP-1C],EDX
    6F147F27 ^0F8D A3FEFFFF JGE Game.6F147DD0
    6F147F2D 5F POP EDI
    6F147F2E 5E POP ESI
    6F147F2F 5B POP EBX
    6F147F30 8BE5 MOV ESP,EBP
    6F147F32 5D POP EBP
    6F147F33 C3 RETN




  2. #2
    t0pcraft- is offline Hacker
    Array
    Join Date
    Jan 2008
    Location
    Under Your Bed
    Posts
    233
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    10
    Reputation
    61
    cool

    but how do i put it into a hack ^^

  3. #3
    JadedRain is offline Advanced Hacker
    Array
    Join Date
    Jun 2007
    Posts
    425
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    11
    Reputation
    180
    the point is you figure it out with c++ tuts or w/e

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •