Function at 0x402322
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x416c34
call fcn.0040c2b4
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 0x4025b3
push 6
mov dl, byte [0x41eb04]
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.0040bd70
pop ecx
pop ecx
mov ecx, ebx
call fcn.004025c4
test eax, eax
je 0x4025b3
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 0x402587
cmp eax, 0xffffffff
je 0x402587
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.0040c840
pop ecx
test eax, eax
pop ecx
jne 0x4025b3
lea eax, [ebp - 0x18]
push eax
call fcn.0040c758
lea eax, [ebp - 0x18]
push eax
call fcn.0040c5f8
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
cmp byte [ebx + 0x430], 0
lea eax, [ebx + 0x430]
jne 0x402509
lea ecx, [ebp - 0x244]
push edi
push ecx
push eax
call esi
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jmp 0x40255c
lea eax, [ebp - 0x7c]
push edi
push eax
push dword [ebp - 0x10]
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x400300
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0xc0]
push eax
push dword [ebp - 0x10]
call esi
push 1
pop eax
jmp 0x4025b5
push esi
lea eax, [ebp - 0x44c]
push 0x41a084
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x44c]
push edi
push 0x41a09c
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