Function at 0x401950
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b0f59
mov eax, dword fs:[0]
push eax
mov eax, 0x16d4
call fcn.005455a0
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x16e0]
mov ecx, 0x5b5
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x616870]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
push 0
call fcn.00486470
add esp, 4
mov esi, esp
push str.MHOnline_Client_Application
push 0x400
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp esi, esp
call fcn.00544880
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0xa4], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0xa4], 0
je 0x401a20
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.00544880
cmp eax, 0xb7
jne 0x401a20
mov esi, esp
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
cmp esi, esp
call fcn.00544880
mov esi, esp
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xa4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00544880
xor eax, eax
jmp 0x401dfd
push str.INITFILELIST
call fcn.0047d200
mov eax, dword [eax + 0x48]
push eax
call fcn.00545510
add esp, 8
test eax, eax
jne 0x401a6b
mov esi, esp
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
cmp esi, esp
call fcn.00544880
mov esi, esp
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xa4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00544880
xor eax, eax
jmp 0x401dfd
mov esi, esp
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
cmp esi, esp
call fcn.00544880
push 0x618310
push str.MHVerInfo.ver
mov ecx, dword [ebp - 0x18]
call fcn.00402560
test eax, eax
jne 0x401ac3
mov esi, esp
push 1
call dword [sym.imp.USER32.dll_PostQuitMessage]
cmp esi, esp
call fcn.00544880
mov esi, esp
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xa4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00544880
xor eax, eax
jmp 0x401dfd
push 5
push 0
lea eax, [ebp - 0x28]
push eax
call fcn.00545490
add esp, 0xc
push 4
push 0x618310
lea eax, [ebp - 0x28]
push eax
call fcn.00545360
add esp, 0xc
push str.MHVerInfo_New.ver
lea eax, [ebp - 0x28]
push eax
push 0x5c1458
push 0x618210
call fcn.00544ff0
add esp, 0x10
push 0x104
push 0
lea eax, [ebp - 0x140]
push eax
call fcn.00545490
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
call fcn.00544f60
add esp, 4
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x34], eax
jmp 0x401b3d
mov eax, dword [ebp - 0x34]
add eax, 1
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xc
jge 0x401b5e
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x34]
mov dl, byte [ecx + 0x618310]
mov byte [ebp + eax - 0x140], dl
jmp 0x401b34
push str.00000000
lea eax, [ebp - 0x140]
push eax
call fcn.00545510
add esp, 8
test eax, eax
jne 0x401b9a
mov esi, esp
push 0
push str.VersionCheck_Error
push 0x5c13f8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp esi, esp
call fcn.00544880
xor eax, eax
jmp 0x401dfd
mov ecx, dword [ebp - 0x18]
call fcn.004028d0
test eax, eax
jne 0x401be6
mov esi, esp
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp esi, esp
call fcn.00544880
mov esi, esp
push 1
call dword [sym.imp.USER32.dll_PostQuitMessage]
cmp esi, esp
call fcn.00544880
mov esi, esp
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xa4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00544880
xor eax, eax
jmp 0x401dfd
mov eax, dword [0x61225c]
add eax, 0x77
push eax
push str.e:dropboxdropboxpong_titan_titan_playonline_source1_sourcecode_client_mhautopatchmhautopatch.cpp
push 0x1a4
call fcn.004472c0
add esp, 0xc
mov dword [ebp - 0x16cc], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x16cc], 0
je 0x401c2a
mov ecx, dword [ebp - 0x16cc]
call fcn.0041cc90
mov dword [ebp - 0x16e0], eax
jmp 0x401c34
mov dword [ebp - 0x16e0], 0
mov ecx, dword [ebp - 0x16e0]
mov dword [ebp - 0x16d8], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x16d8]
mov dword [0x618628], edx
cmp dword [0x618628], 0
jne 0x401ca4
mov ecx, dword [ebp - 0x18]
call fcn.00402ac0
mov esi, esp
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp esi, esp
call fcn.00544880
mov esi, esp
push 1
call dword [sym.imp.USER32.dll_PostQuitMessage]
cmp esi, esp
call fcn.00544880
mov esi, esp
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xa4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00544880
xor eax, eax
jmp 0x401dfd
push 0
lea ecx, [ebp - 0x15b8]
call fcn.00402bc0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x15b8]
mov dword [eax + 0x20], ecx
lea eax, [ebp - 0x15b8]
mov dword [0x61862c], eax
lea ecx, [ebp - 0x15b8]
call fcn.0047c560
mov dword [ebp - 0x15c4], eax
mov esi, esp
mov eax, dword [str.MHPatch.mhp]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, esp
call fcn.00544880
cmp dword [0x618628], 0
je 0x401d4d
mov eax, dword [0x618628]
mov dword [ebp - 0x16b4], eax
mov ecx, dword [ebp - 0x16b4]
mov dword [ebp - 0x16c0], ecx
cmp dword [ebp - 0x16c0], 0
je 0x401d43
mov esi, esp
push 1
mov edx, dword [ebp - 0x16c0]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x16c0]
mov edx, dword [eax]
call edx
cmp esi, esp
call fcn.00544880
mov dword [ebp - 0x16e0], eax
jmp 0x401d4d
mov dword [ebp - 0x16e0], 0
mov ecx, dword [ebp - 0x18]
call fcn.00402ac0
mov esi, esp
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp esi, esp
call fcn.00544880
cmp dword [0x618618], 0
je 0x401d91
mov eax, dword [0x618618]
mov dword [ebp - 0x16a8], eax
mov ecx, dword [ebp - 0x16a8]
push ecx
call fcn.00447840
add esp, 4
mov dword [0x618618], 0
cmp dword [0x61861c], 0
je 0x401dbe
mov eax, dword [0x61861c]
mov dword [ebp - 0x169c], eax
mov ecx, dword [ebp - 0x169c]
push ecx
call fcn.00447840
add esp, 4
mov dword [0x61861c], 0
cmp dword [ebp - 0x15c4], 0xb
jne 0x401ddb
push 0
push 0x5c13f4
push str.MHExecuter.exe
call fcn.00544db0
add esp, 0xc
mov dword [ebp - 0x1690], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x15b8]
call fcn.00401e80
mov eax, dword [ebp - 0x1690]
push edx
mov ecx, ebp
push eax
lea edx, [0x401e38]
call fcn.005448b0
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00544870
add esp, 0x16e0
cmp ebp, esp
call fcn.00544880
mov esp, ebp
pop ebp
ret