Function at 0x402367
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x414638
call fcn.0040ae24
sub esp, 0x544
push ebx
mov ebx, ecx
push esi
push edi
lea eax, [ebx + 0x32c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x4025ef
push 6
mov dl, byte [0x4191c4]
pop ecx
mov esi, str.WinPatch_Version1abc.13
lea edi, [ebp - 0x100]
push 0xa
rep movsd dword es:[edi], dword [esi]
pop ecx
xor eax, eax
lea edi, [ebp - 0xe8]
push 0x10
rep stosd dword es:[edi], eax
pop ecx
lea edi, [ebp - 0x7b]
mov byte [ebp - 0x7c], dl
push 0x10
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0xbf]
mov byte [ebp - 0xc0], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x347]
mov byte [ebp - 0x348], dl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x243]
mov byte [ebp - 0x244], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebx + 0x32c]
xor edi, edi
push eax
lea eax, [ebp - 0x550]
push eax
mov dword [ebp - 0x14], edi
call fcn.0040a8e0
pop ecx
pop ecx
mov ecx, ebx
call fcn.00402600
test eax, eax
je 0x4025ef
push edi
push 0x80
push 3
push edi
lea esi, [ebx + 0x228]
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x4025c3
cmp eax, 0xffffffff
je 0x4025c3
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [ebp - 0x14]
push edi
push ecx
lea ecx, [ebp - 0x140]
push 0x40
push ecx
push eax
call esi
lea eax, [ebp - 0x14]
push edi
push eax
lea eax, [ebp - 0x1c]
push 4
push eax
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push edi
push eax
lea eax, [ebp - 0x7c]
push 0x44
push eax
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push edi
push eax
lea eax, [ebp - 0xc0]
push 0x44
push eax
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push edi
push eax
mov edi, 0x104
lea eax, [ebp - 0x244]
push edi
push eax
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push 0
push eax
lea eax, [ebp - 0x348]
push edi
push eax
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.0040b1d0
pop ecx
test eax, eax
pop ecx
jne 0x4025ef
lea eax, [ebp - 0x18]
push eax
call fcn.0040b0e8
lea eax, [ebp - 0x18]
push eax
call fcn.0040af88
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
pop ecx
pop ecx
lea eax, [ebx + 0x20]
lea ecx, [ebp - 0xc0]
push edi
push ecx
push eax
mov dword [ebp - 0x10], eax
call esi
lea eax, [ebp - 0x348]
push edi
push eax
lea eax, [ebx + 0x124]
push eax
call esi
lea eax, [ebp - 0x244]
push edi
push eax
lea eax, [ebx + 0x430]
push eax
call esi
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x402598
lea ecx, [ebp - 0x38]
call fcn.004088e2
and dword [ebp - 4], 0
mov ebx, dword [ebx + 4]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x30]
push eax
push 0x41ac68
call fcn.004028ec
mov eax, dword [0x41ac70]
push 0
push 0x4028a8
push ebx
push 0x69
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.0040895d
jmp 0x4025be
lea eax, [ebp - 0x7c]
push edi
push eax
push dword [ebp - 0x10]
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x417110
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0xc0]
push eax
push dword [ebp - 0x10]
call esi
push 1
pop eax
jmp 0x4025f1
push esi
lea eax, [ebp - 0x44c]
push 0x417084
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x44c]
push edi
push 0x41709c
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret