Function at 0x403760
Capabilities:
Create process on windows
Hide graphical window
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x12a8
call fcn.0043bf80
mov eax, dword [0x464714]
xor eax, esp
mov dword [esp + 0x12a4], eax
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [0x468360], esi
call fcn.004032c0
lea ecx, [esp + 0x100]
mov dword [esp + 0x100], 0
mov dword [esp + 0x110], 0
mov dword [esp + 0x114], 7
call fcn.00402fd0
test eax, eax
jne 0x4050d4
push 0x11
mov byte [esp + 0x50], al
lea ecx, [esp + 0xa0]
push str.TurtlePatcher.log
push dword [esp + 0x54]
call fcn.004065f0
add esp, 0xc
lea eax, [esp + 0x100]
lea ecx, [esp + 0x14]
push eax
call fcn.004053e0
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x18]
call fcn.004019b0
push eax
lea ecx, [esp + 0x11c]
call fcn.004053e0
mov edx, dword [esp + 0x28]
cmp edx, 8
jb 0x40384f
mov ecx, dword [esp + 0x14]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403845
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4050db
push edx
push ecx
call fcn.0043bbe0
add esp, 8
mov edx, dword [esp + 0xb0]
cmp edx, 8
jb 0x403891
mov ecx, dword [esp + 0x9c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403887
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4050e0
push edx
push ecx
call fcn.0043bbe0
add esp, 8
lea eax, [esp + 0x118]
push eax
lea ecx, [esp + 0xec]
call fcn.004053e0
cmp dword [esp + 0xfc], 8
lea eax, [esp + 0xe8]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
cmovae eax, dword [esp + 0xe8]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call edi
mov dword [0x468358], eax
test eax, eax
jne 0x403c06
push ecx
push 0x105
mov byte [esp + 0x54], al
lea ecx, [esp + 0x64]
push dword [esp + 0x54]
mov dword [esp + 0x68], eax
push 0x105
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], 7
call fcn.00405fd0
cmp dword [esp + 0x70], 8
lea eax, [esp + 0x5c]
cmovae eax, dword [esp + 0x5c]
push eax
call fcn.0043b691
mov ecx, eax
mov esi, edx
mov edx, dword [esp + 0x6c]
cmp ecx, edx
ja 0x40394d
cmp dword [esp + 0x70], 8
lea eax, [esp + 0x5c]
mov dword [esp + 0x6c], ecx
cmovae eax, dword [esp + 0x5c]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x4039b3
mov edi, dword [esp + 0x70]
sub ecx, edx
mov eax, edi
sub eax, edx
cmp ecx, eax
ja 0x403998
lea eax, [ecx + edx]
cmp edi, 8
mov dword [esp + 0x58], eax
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x5c]
cmovae eax, dword [esp + 0x5c]
mov dword [esp + 0x4c], eax
lea edi, [eax + edx*2]
test ecx, ecx
je 0x40398c
xor eax, eax
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x58]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x4039ad
push ecx
push ecx
mov byte [esp + 0x54], 0
push dword [esp + 0x54]
push ecx
lea ecx, [esp + 0x6c]
call fcn.00405fd0
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp esi, 0xffffffff
jne 0x4039c7
mov esi, 0x14
mov dword [esp + 0x54], 0x464fd0
jmp 0x4039cf
mov dword [esp + 0x54], 0x464fd8
mov dword [esp + 0x50], esi
test esi, esi
jne 0x4050e5
push 0x11
push str.TurtlePatcher.log
mov byte [esp + 0x54], 0
lea ecx, [esp + 0x34]
push dword [esp + 0x54]
call fcn.004065f0
add esp, 0xc
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x84]
push eax
call fcn.004053e0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x88]
call fcn.004019b0
push eax
lea ecx, [esp + 0x18]
call fcn.004053e0
mov edx, dword [esp + 0x98]
cmp edx, 8
jb 0x403a65
mov ecx, dword [esp + 0x84]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403a5b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4050f8
push edx
push ecx
call fcn.0043bbe0
add esp, 8
xor eax, eax
mov dword [esp + 0x94], 0
mov word [esp + 0x84], ax
lea ecx, [esp + 0x5c]
lea eax, [esp + 0x14]
mov dword [esp + 0x98], 7
push eax
call fcn.004028b0
mov edx, dword [esp + 0x28]
cmp edx, 8
jb 0x403acf
mov ecx, dword [esp + 0x14]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403ac5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4050fd
push edx
push ecx
call fcn.0043bbe0
add esp, 8
mov edx, dword [esp + 0x40]
cmp edx, 8
jb 0x403b0b
mov ecx, dword [esp + 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403b01
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4050fd
push edx
push ecx
call fcn.0043bbe0
add esp, 8
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0xa0]
call fcn.004053e0
cmp dword [esp + 0xb0], 8
lea eax, [esp + 0x9c]
push 0
cmovae eax, dword [esp + 0xa0]
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call edi
mov dword [0x468358], eax
test eax, eax
jne 0x403b64
push 0x10
push str.Error
push str.Cant_create_log_file._Perhaps_you_dont_have_enough_free_space_on_disk__or_something_wrong_happened._nPatcher_will_try_to_work_anyway.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [esp + 0xb0]
cmp edx, 8
jb 0x403ba6
mov ecx, dword [esp + 0x9c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403b9c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405102
push edx
push ecx
call fcn.0043bbe0
add esp, 8
mov edx, dword [esp + 0x70]
xor eax, eax
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 7
mov word [esp + 0x9c], ax
cmp edx, 8
jb 0x403c02
mov ecx, dword [esp + 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403bf8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405102
push edx
push ecx
call fcn.0043bbe0
add esp, 8
mov esi, dword [esp + 8]
push str.Log_file_created_
call fcn.004031f0
add esp, 4
mov byte [esp + 0x4c], 0
lea ecx, [esp + 0x14]
push 0xd
push str.wow_patch.mpq
push dword [esp + 0x54]
call fcn.004065f0
add esp, 0xc
lea eax, [esp + 0x100]
lea ecx, [esp + 0x2c]
push eax
call fcn.004053e0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x30]
call fcn.004019b0
push eax
lea ecx, [esp + 0xb8]
call fcn.004053e0
mov edx, dword [esp + 0x40]
cmp edx, 8
jb 0x403c97
mov ecx, dword [esp + 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403c8d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405107
push edx
push ecx
call fcn.0043bbe0
add esp, 8
mov edx, dword [esp + 0x28]
cmp edx, 8
jb 0x403cd3
mov ecx, dword [esp + 0x14]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403cc9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40510c
push edx
push ecx
call fcn.0043bbe0
add esp, 8
push 0
push 0x403110
push 0
push 0x67
push esi
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push 5
push eax
mov dword [0x46835c], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
lea eax, [esp + 0xcc]
push 1
push 0
push 0
push 0
push eax
call esi
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
test eax, eax
je 0x403d76
nop word [eax + eax]
push dword [0x46835c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x403d48
lea eax, [esp + 0xcc]
push eax
push dword [0x46835c]
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x403d60
lea eax, [esp + 0xcc]
push eax
call edi
lea eax, [esp + 0xcc]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
push 0
lea eax, [esp + 0xdc]
push eax
call esi
test eax, eax
jne 0x403d20
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esp + 0xc8]
lea ecx, [esp + 0xb4]
mov esi, dword [esp + 0xb4]
cmp edx, 8
mov eax, dword [esp + 0xc4]
cmovae ecx, esi
mov dword [esp + 0x58], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x84], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0xf
test eax, eax
je 0x403ecf
cmp eax, 0x7fffffff
ja 0x405111
push 0
push 0
push eax
push ecx
push 0xfde9
call fcn.0043b129
mov esi, eax
mov dword [esp + 0x4c], esi
test edx, edx
jne 0x405116
mov ecx, dword [esp + 0x94]
cmp esi, ecx
ja 0x403e2b
cmp dword [esp + 0x98], 0x10
lea eax, [esp + 0x84]
mov dword [esp + 0x94], esi
cmovae eax, dword [esp + 0x84]
mov byte [eax + esi], dl
jmp 0x403e8a
mov edx, dword [esp + 0x98]
mov edi, esi
mov eax, edx
sub edi, ecx
sub eax, ecx
cmp edi, eax
ja 0x403e72
cmp edx, 0x10
lea esi, [esp + 0x84]
push edi
cmovae esi, dword [esp + 0x88]
lea eax, [edi + ecx]
add esi, ecx
mov dword [esp + 0x98], eax
push 0
push esi
call fcn.0043ca10
mov byte [edi + esi], 0
add esp, 0xc
mov esi, dword [esp + 0x4c]
jmp 0x403e8a
push ecx
push edi
mov byte [esp + 0x54], 0
lea ecx, [esp + 0x8c]
push dword [esp + 0x54]
push edi
call fcn.004063f0
cmp dword [esp + 0x98], 0x10
lea eax, [esp + 0x84]
push esi
cmovae eax, dword [esp + 0x88]
push eax
push dword [esp + 0x60]
push dword [esp + 0x54]
push 0xfde9
call fcn.0043b129
mov dword [esp + 0x78], eax
test edx, edx
jne 0x40511d
mov edx, dword [esp + 0xc8]
mov esi, dword [esp + 0xb4]
cmp edx, 8
lea eax, [esp + 0xb4]
cmovae eax, esi
push eax
push str.Trying_open_downloaded_path_file___S_
call fcn.004031f0
add esp, 8
mov dword [esp + 0x74], 0
cmp dword [esp + 0x98], 0x10
lea ecx, [esp + 0x74]
lea eax, [esp + 0x84]
cmovae eax, dword [esp + 0x84]
push ecx
push 0
push 0
push eax
call fcn.00406890
test al, al
jne 0x403f2b
mov dword [esp + 0x74], 0
mov ecx, str.ERROR:_Cant_open_patch___S_
jmp 0x403f3e
cmp dword [esp + 0x74], 0
jne 0x403f39
mov ecx, str.ERROR:_Cant_open_patch___S_
jmp 0x403f3e
mov ecx, str.Opened___S_
cmp dword [esp + 0xc8], 8
lea eax, [esp + 0xb4]
cmovae eax, dword [esp + 0xb4]
push eax
push ecx
call fcn.004031f0
lea eax, [esp + 0xbc]
add esp, 8
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x74]
test eax, eax
je 0x404ed8
lea ecx, [esp + 0x4c]
push ecx
push 0
push 0x45f720
push eax
call fcn.00406fd0
test al, al
je 0x40405d
push 0x10
call fcn.0043bbb0
mov edx, dword [esp + 0x50]
mov edi, eax
add esp, 4
lea ecx, [edi + 0xc]
mov dword [edi], edx
push ecx
push edx
call fcn.00407cc0
push 0x45f720
lea ecx, [esp + 0x14]
mov dword [edi + 8], eax
call fcn.004051d0
push 0x45f5e8
push 0x45f720
call fcn.0043eb1b
add esp, 8
mov dword [esp + 8], eax
test eax, eax
jne 0x404000
push 0x45f720
push str.Cant_create___s__for_writting
call fcn.004031f0
add esp, 8
push dword [edi]
call fcn.00406f90
push 0x10
push edi
call fcn.0043bbe0
add esp, 8
jmp 0x404ef9
push dword [edi + 8]
call fcn.0043bbee
add esp, 4
mov dword [esp + 0x58], 0
mov esi, eax
lea eax, [esp + 0x58]
push 0
push eax
push dword [edi + 8]
push esi
push dword [edi]
call fcn.00407d40
push dword [esp + 8]
push 1
push dword [edi + 8]
push esi
call fcn.004411be
push esi
call fcn.00416630
add esp, 0x14
push dword [esp + 8]
call fcn.0043eba9
add esp, 4
push dword [edi]
call fcn.00406f90
push 0x10
push edi
call fcn.0043bbe0
add esp, 8
mov eax, dword [esp + 0x74]
test eax, eax
je 0x404ed8
lea ecx, [esp + 0x4c]
push ecx
push 0
push str.discord_game_sdk.dll
push eax
call fcn.00406fd0
test al, al
je 0x404150
push 0x10
call fcn.0043bbb0
mov edx, dword [esp + 0x50]
mov edi, eax
add esp, 4
lea ecx, [edi + 0xc]
mov dword [edi], edx
push ecx
push edx
call fcn.00407cc0
push str.discord_game_sdk.dll
lea ecx, [esp + 0x14]
mov dword [edi + 8], eax
call fcn.004051d0
push 0x45f5e8
push str.discord_game_sdk.dll
call fcn.0043eb1b
add esp, 8
mov dword [esp + 8], eax
test eax, eax
jne 0x4040f3
push str.discord_game_sdk.dll
push str.Cant_create___s__for_writting
call fcn.004031f0
add esp, 8
push dword [edi]
call fcn.00406f90
push 0x10
push edi
call fcn.0043bbe0
add esp, 8
jmp 0x404ef9
push dword [edi + 8]
call fcn.0043bbee
add esp, 4
mov dword [esp + 0x58], 0
mov esi, eax
lea eax, [esp + 0x58]
push 0
push eax
push dword [edi + 8]
push esi
push dword [edi]
call fcn.00407d40
push dword [esp + 8]
push 1
push dword [edi + 8]
push esi
call fcn.004411be
push esi
call fcn.00416630
add esp, 0x14
push dword [esp + 8]
call fcn.0043eba9
add esp, 4
push dword [edi]
call fcn.00406f90
push 0x10
push edi
call fcn.0043bbe0
add esp, 8
mov eax, dword [esp + 0x74]
test eax, eax
je 0x404ed8
lea ecx, [esp + 0x4c]
push ecx
push 0
push str.LFT.mpq
push eax
call fcn.00406fd0
test al, al
je 0x4047bc
push 0x10
call fcn.0043bbb0
mov edx, dword [esp + 0x50]
mov esi, eax
add esp, 4
mov dword [esp + 8], esi
lea ecx, [esi + 0xc]
mov dword [esi], edx
push ecx
push edx
call fcn.00407cc0
push str.LFT.mpq
lea ecx, [esp + 0x14]
mov dword [esi + 8], eax
call fcn.004051d0
push 0x45f5e8
push str.LFT.mpq
call fcn.0043eb1b
mov edi, eax
add esp, 8
test edi, edi
jne 0x4041e8
push str.LFT.mpq
push str.Cant_create___s__for_writting
call fcn.004031f0
add esp, 8
push dword [esi]
call fcn.00406f90
push 0x10
push esi
call fcn.0043bbe0
add esp, 8
jmp 0x404ef9
push dword [esi + 8]
call fcn.0043bbee
add esp, 4
mov dword [esp + 0x58], 0
mov esi, eax
lea eax, [esp + 0x58]
push 0
push eax
mov eax, dword [esp + 0x10]
push dword [eax + 8]
push esi
push dword [eax]
call fcn.00407d40
mov eax, dword [esp + 8]
push edi
push 1
push dword [eax + 8]
push esi
call fcn.004411be
push esi
call fcn.00416630
add esp, 0x14
push edi
call fcn.0043eba9
add esp, 4
mov byte [esp + 0x4c], 0
lea ecx, [esp + 0x9c]
push 0x14
push str.InterfaceAddOnsLFT
push dword [esp + 0x54]
call fcn.004065f0
add esp, 0xc
lea ecx, [esp + 0x9c]
call fcn.00402940
test al, al
je 0x4042c7
cmp dword [esp + 0xb0], 8
lea eax, [esp + 0x9c]
cmovae eax, dword [esp + 0x9c]
push eax
call fcn.0043b73c
mov ecx, edx
movzx eax, al
cdq
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], 0x464fd8
cmp ecx, 0x91
jne 0x4042bf
lea eax, [esp + 0x78]
push eax
lea edx, [esp + 0x54]
lea ecx, [esp + 0xa0]
call fcn.00402c80
mov ecx, dword [esp + 0x54]
add esp, 4
test ecx, ecx
jne 0x405124
lea edx, [esp + 0x50]
mov dword [esp + 0x50], 0
lea ecx, [esp + 0x9c]
mov dword [esp + 0x54], 0x464fd8
call fcn.004029f0
cmp dword [esp + 0x50], 0
jne 0x40513a
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 0
push eax
push 0
push 0
push str.LFT.mpq
call fcn.00406890
mov ecx, dword [esp + 0x44]
xor edx, edx
test al, al
mov dword [esp + 0x2ac], edx
push 0x128
cmove ecx, edx
mov byte [esp + 0x3dc], dl
push edx
lea eax, [esp + 0x2b8]
mov dword [esp + 0x4c], ecx
push eax
mov dword [esp + 0x2b4], ecx
call fcn.0043ca10
add esp, 0xc
lea eax, [esp + 0x2b0]
push 0
push eax
push 0x45f4ac
push dword [esp + 0x2b4]
call fcn.00408a00
mov dword [esp + 0x2ac], eax
test eax, eax
jne 0x4043c6
mov byte [esp + 0x3d8], 1
push eax
call fcn.004089b0
mov eax, dword [esp + 0x44]
test eax, eax
je 0x404389
push eax
call fcn.00406750
push 7
push str.LFT.mpq
mov byte [esp + 0x58], 0
lea ecx, [esp + 0x64]
push dword [esp + 0x58]
call fcn.004065f0
add esp, 0xc
lea eax, [esp + 0x5c]
cmp dword [esp + 0x70], 8
cmovae eax, dword [esp + 0x5c]
push eax
call fcn.0043b73c
test edx, edx
jne 0x405150
jmp 0x404708
cmp byte [esp + 0x3d8], 0
jne 0x404375
lea eax, [esp + 0x48]
push eax
push 0
lea eax, [esp + 0x2b8]
push eax
push dword [esp + 0x2b4]
call fcn.00406fd0
test al, al
je 0x404413
push 0x10
call fcn.0043bbb0
mov ecx, dword [esp + 0x4c]
mov edi, eax
add esp, 4
mov dword [edi], ecx
lea ecx, [edi + 0xc]
push ecx
push dword [esp + 0x4c]
call fcn.00407cc0
mov dword [edi + 8], eax
jmp 0x404415
xor edi, edi
lea eax, [esp + 0x2b0]
push eax
push str.Unpack_LFT_file__s
call fcn.004031f0
push 0x100
lea eax, [esp + 0x1b4]
push 0
push eax
call fcn.0043ca10
add esp, 0x14
lea eax, [esp + 0x2b0]
push eax
lea eax, [esp + 0x1ac]
push str.InterfaceAddOnsLFT_s
push eax
call fcn.00401010
lea ecx, [esp + 0x1b4]
mov dword [esp + 0x68], 0
add esp, 0xc
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0xf
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404480
sub ecx, edx
lea eax, [esp + 0x1a8]
push ecx
push eax
lea ecx, [esp + 0x64]
call fcn.00405950
cmp dword [esp + 0x70], 0x10
lea ecx, [esp + 0x5c]
mov esi, dword [esp + 0x6c]
cmovae ecx, dword [esp + 0x5c]
test esi, esi
je 0x40450e
or edx, 0xffffffff
lea eax, [esi - 1]
cmp eax, edx
cmovb edx, eax
add edx, ecx
cmp byte [edx], 0x5c
je 0x4044cd
cmp edx, ecx
je 0x40450e
dec edx
cmp byte [edx], 0x5c
jne 0x4044c3
sub edx, ecx
cmp edx, 0xffffffff
je 0x40450e
mov eax, esi
sub eax, edx
mov dword [esp + 0x4c], eax
cmp esi, edx
jb 0x40515a
cmp dword [esp + 0x70], 0x10
lea ecx, [esp + 0x5c]
cmovae ecx, dword [esp + 0x5c]
sub esi, eax
mov dword [esp + 0x6c], esi
add ecx, edx
sub esi, edx
add eax, ecx
inc esi
push esi
push eax
push ecx
call fcn.0043cb70
mov esi, dword [esp + 0x78]
add esp, 0xc
cmp dword [esp + 0x70], 0x10
lea eax, [esp + 0x5c]
push esi
cmovae eax, dword [esp + 0x60]
lea ecx, [esp + 0x18]
push eax
mov byte [esp + 0x58], 0
push dword [esp + 0x58]
call fcn.004065f0
add esp, 0xc
mov dword [esp + 0x78], 0
lea edx, [esp + 0x78]
mov dword [esp + 0x7c], 0x464fd8
lea ecx, [esp + 0x14]
call fcn.004029f0
cmp dword [esp + 0x78], 0
jne 0x40515f
mov edx, dword [esp + 0x28]
cmp edx, 8
jb 0x404597
mov ecx, dword [esp + 0x14]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40458d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4050db
push edx
push ecx
call fcn.0043bbe0
add esp, 8
lea eax, [esp + 0x1a8]
push 0x45f5e8
push eax
call fcn.0043eb1b
add esp, 8
mov dword [esp + 0x58], eax
test eax, eax
jne 0x404621
lea eax, [esp + 0x1a8]
push eax
push str.Cant_create___s__for_writting
call fcn.004031f0
mov edx, dword [esp + 0x78]
add esp, 8
cmp edx, 0x10
jb 0x4045ff
mov ecx, dword [esp + 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4045f5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4050db
push edx
push ecx
call fcn.0043bbe0
add esp, 8
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0xf
mov byte [esp + 0x5c], 0
test edi, edi
je 0x4046c9
jmp 0x4046b7
push dword [edi + 8]
call fcn.0043bbee
add esp, 4
mov dword [esp + 0x4c], 0
mov esi, eax
lea eax, [esp + 0x4c]
push 0
push eax
push dword [edi + 8]
push esi
push dword [edi]
call fcn.00407d40
push dword [esp + 0x58]
push 1
push dword [edi + 8]
push esi
call fcn.004411be
push esi
call fcn.00416630
add esp, 0x14
push dword [esp + 0x58]
call fcn.0043eba9
mov edx, dword [esp + 0x74]
add esp, 4
cmp edx, 0x10
jb 0x4046a2
mov ecx, dword [esp + 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404698
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4050db
push edx
push ecx
call fcn.0043bbe0
add esp, 8
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0xf
mov byte [esp + 0x5c], 0
push dword [edi]
call fcn.00406f90
push 0x10
push edi
call fcn.0043bbe0
add esp, 8
mov al, byte [esp + 0x3d8]
test al, al
jne 0x4046fc
lea eax, [esp + 0x2b0]
push eax
push dword [esp + 0x2b0]
call fcn.00408b70
test al, al
sete al
mov byte [esp + 0x3d8], al
test al, al
je 0x4043d0
mov eax, dword [esp + 0x2ac]
jmp 0x404375
mov edx, dword [esp + 0x70]
cmp edx, 8
jb 0x404744
mov ecx, dword [esp + 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40473a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405172
push edx
push ecx
call fcn.0043bbe0
add esp, 8
mov edx, dword [esp + 0xb0]
cmp edx, 8
jb 0x404786
mov ecx, dword [esp + 0x9c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40477c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405177
push edx
push ecx
call fcn.0043bbe0
add esp, 8
mov esi, dword [esp + 8]
xor eax, eax
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 7
mov word [esp + 0x9c], ax
push dword [esi]
call fcn.00406f90
push 0x10
push esi
call fcn.0043bbe0
add esp, 8
mov eax, dword [esp + 0x74]
test eax, eax
je 0x404ed8
lea ecx, [esp + 0x50]
push ecx
push 0
push str.Datapatch_V.mpq
push eax
call fcn.00406fd0
test al, al
je 0x404ed8
push 0x10
call fcn.0043bbb0
mov edx, dword [esp + 0x54]
mov esi, eax
add esp, 4
mov dword [esp + 0x4c], esi
lea ecx, [esi + 0xc]
mov dword [esi], edx
push ecx
push edx
call fcn.00407cc0
push str.Datapatch_V.mpq
lea ecx, [esp + 0x14]
mov dword [esi + 8], eax
call fcn.004051d0
push 0x45f5e8
push str.Datapatch_V.mpq
call fcn.0043eb1b
add esp, 8
mov dword [esp + 0x44], eax
test eax, eax
jne 0x404856
push str.Datapatch_V.mpq
push str.Cant_create___s__for_writting
call fcn.004031f0
add esp, 8
push dword [esi]
call fcn.00406f90
push 0x10
push esi
call fcn.0043bbe0
add esp, 8
jmp 0x404ef9
mov edi, dword [esi + 8]
mov esi, dword [esi + 0xc]
push 0
push 0x1000
push esi
push edi
call fcn.004502e0
push 0
push 0x1000
push esi
push edi
mov dword [esp + 0x20], eax
call fcn.00450830
or eax, edx
je 0x404887
mov eax, 1
jmp 0x404889
xor eax, eax
mov esi, dword [esp + 0x10]
push 0
push 0
push 0
add esi, eax
lea eax, [esp + 0xd8]
push 0
push eax
mov dword [esp + 0x24], esi
call dword [sym.imp.USER32.dll_PeekMessageA]
mov dword [esp + 0x58], 0
mov dword [esp + 8], 0
test esi, esi
je 0x404a44
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
xor ecx, ecx
mov dword [esp + 0x48], ecx
mov edx, 0x1000
cmp dword [0x46835c], 0
je 0x404a44
mov eax, dword [esp + 0x4c]
push 0
mov dword [esp + 0x54], 0
mov esi, dword [eax + 8]
sub esi, ecx
lea ecx, [esp + 0x54]
sub esi, 0x1000
push ecx
cmp esi, 0x1000
lea ecx, [esp + 0x2b0]
cmova esi, edx
push esi
push ecx
push dword [eax]
call fcn.00407d40
push dword [esp + 0x44]
lea eax, [esp + 0x2ac]
push 1
push esi
push eax
call fcn.004411be
mov esi, dword [esp + 0x18]
add esp, 0x10
mov eax, esi
shr eax, 0x1f
movd xmm0, esi
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x45fa40]
mov eax, dword [esp + 0x10]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
addsd xmm1, qword [eax*8 + 0x45fa40]
cvtpd2ps xmm1, xmm1
divss xmm0, xmm1
mulss xmm0, dword [0x45fa30]
call fcn.004508f0
mov ecx, dword [esp + 0x58]
cmp ecx, eax
jae 0x4049aa
mov esi, eax
mov dword [esp + 0x58], eax
sub esi, ecx
nop dword [eax + eax]
push 0
push 0
push 0x401
push dword [0x46835c]
call edi
sub esi, 1
jne 0x404990
mov esi, dword [esp + 8]
push 1
push 0
push 0
push 0
lea eax, [esp + 0xdc]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x404a22
push dword [0x46835c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4049ec
lea eax, [esp + 0xcc]
push eax
push dword [0x46835c]
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x404a08
lea eax, [esp + 0xcc]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0xcc]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
push 0
lea eax, [esp + 0xdc]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x4049c4
mov ecx, dword [esp + 0x48]
inc esi
add ecx, 0x1000
mov dword [esp + 8], esi
mov edx, 0x1000
mov dword [esp + 0x48], ecx
cmp esi, dword [esp + 0x10]
jb 0x4048d2
push dword [esp + 0x44]
call fcn.0043eba9
mov esi, dword [esp + 0x50]
add esp, 4
push dword [esi]
call fcn.00406f90
push 0x10
push esi
call fcn.0043bbe0
mov eax, dword [esp + 0x7c]
add esp, 8
test eax, eax
je 0x404a74
push eax
call fcn.00406750
mov edx, dword [esp + 0x98]
cmp edx, 0x10
jb 0x404ab0
mov ecx, dword [esp + 0x84]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404aa6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4051b8
push edx
push ecx
call fcn.0043bbe0
add esp, 8
mov eax, dword [0x46835c]
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0xf
mov byte [esp + 0x84], 0
test eax, eax
jne 0x404c0f
push str.INFO:_User_decide_to_abandon_patch_progress._Removing_patch.
call fcn.004031f0
add esp, 4
mov byte [esp + 0x50], 0
lea ecx, [esp + 0x14]
push 0x10
push str.Datapatch_V.mpq
push dword [esp + 0x58]
call fcn.004065f0
add esp, 0xc
lea ecx, [esp + 0x14]
call fcn.00402940
mov edx, dword [esp + 0x28]
mov byte [esp + 0xf], al
cmp edx, 8
jb 0x404b51
mov ecx, dword [esp + 0x14]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404b43
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40517c
push edx
push ecx
call fcn.0043bbe0
mov al, byte [esp + 0x17]
add esp, 8
xor ecx, ecx
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 7
mov word [esp + 0x14], cx
test al, al
je 0x404c08
push str.Trying_remove_existing_turtle_patch.
call fcn.004031f0
add esp, 4
mov byte [esp + 0x50], 0
lea ecx, [esp + 0x5c]
push 0x10
push str.Datapatch_V.mpq
push dword [esp + 0x58]
call fcn.004065f0
add esp, 0xc
lea eax, [esp + 0x5c]
cmp dword [esp + 0x70], 8
cmovae eax, dword [esp + 0x5c]
push eax
call fcn.0043b73c
test edx, edx
jne 0x405181
mov edx, dword [esp + 0x70]
cmp edx, 8
jb 0x404bf1
mov ecx, dword [esp + 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404be7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40518b
push edx
push ecx
call fcn.0043bbe0
add esp, 8
xor eax, eax
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 7
mov word [esp + 0x5c], ax
xor esi, esi
jmp 0x404f66
mov edi, dword [sym.imp.USER32.dll_DestroyWindow]
push eax
call edi
push str.Unpacking_complete__now_we_try_to_patch_WoW.exe
mov dword [0x46835c], 0
call fcn.004031f0
add esp, 4
mov byte [esp + 0x50], 0
lea ecx, [esp + 0x2c]
push 0xb
push str.WoW_Old.exe
push dword [esp + 0x58]
call fcn.004065f0
add esp, 0xc
lea ecx, [esp + 0x2c]
call fcn.00402940
mov edx, dword [esp + 0x40]
test al, al
sete al
mov byte [esp + 0xf], al
cmp edx, 8
jb 0x404c9d
mov ecx, dword [esp + 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404c8f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405190
push edx
push ecx
call fcn.0043bbe0
mov al, byte [esp + 0x17]
add esp, 8
test al, al
je 0x404da8
push str.Create_WoW.exe_backup___WoW_Old.exe
call fcn.004031f0
add esp, 4
mov byte [esp + 0x50], 0
lea ecx, [esp + 0x14]
push 0xb
push str.WoW_Old.exe
push dword [esp + 0x58]
call fcn.004065f0
add esp, 0xc
mov byte [esp + 0x50], 0
lea ecx, [esp + 0x5c]
push 7
push str.WoW.exe
push dword [esp + 0x58]
call fcn.004065f0
add esp, 0xc
lea ecx, [esp + 0x14]
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x5c]
cmovae ecx, dword [esp + 0x14]
cmp dword [esp + 0x70], 8
push 0
cmovae eax, dword [esp + 0x60]
push ecx
push eax
call fcn.0043b24b
test edx, edx
jne 0x405195
mov edx, dword [esp + 0x70]
cmp edx, 8
jb 0x404d53
mov ecx, dword [esp + 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404d49
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4051a4
push edx
push ecx
call fcn.0043bbe0
add esp, 8
mov edx, dword [esp + 0x28]
xor eax, eax
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 7
mov word [esp + 0x5c], ax
cmp edx, 8
jb 0x404db5
mov ecx, dword [esp + 0x14]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404d9c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4051a4
push edx
push ecx
call fcn.0043bbe0
add esp, 8
jmp 0x404db5
push str.WoW_Old.exe_is_exist__we_dont_touch_it
call fcn.004031f0
add esp, 4
call fcn.004032c0
mov esi, eax
test esi, esi
jne 0x404f66
push str.Everything_is_done._Now__we_try_to_run_a_new_WoW.exe
call fcn.004031f0
mov eax, dword [0x46835c]
add esp, 4
test eax, eax
je 0x404de3
push eax
call edi
mov dword [0x46835c], esi
push 0xd
push str.wow_patch.mpq
mov byte [esp + 0x58], 0
lea ecx, [esp + 0x1c]
push dword [esp + 0x58]
call fcn.004065f0
add esp, 0xc
lea eax, [esp + 0x14]
cmp dword [esp + 0x28], 8
cmovae eax, dword [esp + 0x14]
push eax
call fcn.0043b73c
test edx, edx
jne 0x4051a9
mov edx, dword [esp + 0x28]
cmp edx, 8
jb 0x404e57
mov ecx, dword [esp + 0x14]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404e4d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4051b3
push edx
push ecx
call fcn.0043bbe0
add esp, 8
push 0x44
lea eax, [esp + 0x14c]
push 0
push eax
call fcn.0043ca10
add esp, 0xc
mov dword [esp + 0x190], 0x2e576f57
lea eax, [esp + 0x130]
mov dword [esp + 0x194], 0x657865
xorps xmm0, xmm0
movaps xmmword [esp + 0x130], xmm0
push eax
lea eax, [esp + 0x14c]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
lea eax, [esp + 0x1b0]
push eax
push 0
movups xmmword [esp + 0x1c0], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x404ed1
push str.ERROR:_Failed_to_run_WoW.exe
call fcn.004031f0
add esp, 4
xor esi, esi
jmp 0x404f66
push str.ERROR:_Failed_to_open_patch_U.mpq_inside_patch_mpq
call fcn.004031f0
add esp, 4
push 0x10
push str.Error
push str.Failed_to_open_patch_U.mpq_inside_patch_mpq
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0x74]
test eax, eax
je 0x404f07
push eax
call fcn.00406750
mov edx, dword [esp + 0x98]
cmp edx, 0x10
jb 0x404f43
mov ecx, dword [esp + 0x84]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404f39
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4051b8
push edx
push ecx
call fcn.0043bbe0
add esp, 8
mov dword [esp + 0x94], 0
mov esi, 1
mov dword [esp + 0x98], 0xf
mov byte [esp + 0x84], 0
mov edx, dword [esp + 0xc8]
cmp edx, 8
jb 0x404fa8
mov ecx, dword [esp + 0xb4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404f9e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4051bd
push edx
push ecx
call fcn.0043bbe0
add esp, 8
xor eax, eax
mov dword [esp + 0xc4], 0
mov word [esp + 0xb4], ax
mov eax, dword [0x468358]
mov dword [esp + 0xc8], 7
test eax, eax
je 0x404fd8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0xfc]
cmp edx, 8
jb 0x40501a
mov ecx, dword [esp + 0xe8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405010
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4051bd
push edx
push ecx
call fcn.0043bbe0
add esp, 8
mov edx, dword [esp + 0x12c]
xor eax, eax
mov dword [esp + 0xf8], 0
mov dword [esp + 0xfc], 7
mov word [esp + 0xe8], ax
cmp edx, 8
jb 0x40507c
mov ecx, dword [esp + 0x118]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405072
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4051bd
push edx
push ecx
call fcn.0043bbe0
add esp, 8
mov edx, dword [esp + 0x114]
cmp edx, 8
jb 0x4050be
mov ecx, dword [esp + 0x100]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4050b4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4051bd
push edx
push ecx
call fcn.0043bbe0
add esp, 8
mov ecx, dword [esp + 0x12ac]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0043b9a5
mov esp, ebp
pop ebp
ret
mov edx, eax
call fcn.004022e0
call fcn.004413dd
call fcn.004413dd
lea eax, [esp + 0x5c]
mov ecx, str.temp_directory_path
push eax
lea edx, [esp + 0x54]
call fcn.00402470
call fcn.004413dd
call fcn.004413dd
call fcn.004413dd
call fcn.004413dd
call fcn.004413dd
call fcn.00401580
mov ecx, edx
call fcn.00401870
mov ecx, edx
call fcn.00401870
lea eax, [esp + 0x9c]
mov ecx, str.remove_all
push eax
lea edx, [esp + 0x54]
call fcn.00402470
lea eax, [esp + 0x9c]
mov ecx, str.create_directories
push eax
lea edx, [esp + 0x54]
call fcn.00402470
lea eax, [esp + 0x5c]
push eax
call fcn.004023b0
call fcn.00405a90
lea eax, [esp + 0x14]
mov ecx, str.create_directories
push eax
lea edx, [esp + 0x7c]
call fcn.00402470
call fcn.004413dd
call fcn.004413dd
call fcn.004413dd
lea eax, [esp + 0x5c]
push eax
call fcn.004023b0
call fcn.004413dd
call fcn.004413dd
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x60]
push eax
call fcn.00402410
call fcn.004413dd
lea eax, [esp + 0x14]
push eax
call fcn.004023b0
call fcn.004413dd
call fcn.004413dd
call fcn.004413dd
int3