Function at 0x40844c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
push ebx
push esi
push edi
mov ebx, ecx
push 6
mov dl, byte [0x4191c4]
pop ecx
mov esi, str.WinPatch_Version1abc.13
lea edi, [ebp - 0xe0]
push 0xa
rep movsd dword es:[edi], dword [esi]
pop ecx
xor eax, eax
lea edi, [ebp - 0xc8]
push 0x10
rep stosd dword es:[edi], eax
pop ecx
lea edi, [ebp - 0x9f]
mov byte [ebp - 0xa0], 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 - 0x5b]
mov byte [ebp - 0x5c], 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 - 0x327]
mov byte [ebp - 0x328], 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 - 0x223]
mov byte [ebp - 0x224], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebx + 0x104]
xor edi, edi
push eax
lea eax, [ebp - 0x42c]
push eax
mov word [ebx + 0x208], di
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, edi
mov dword [ebx + 0x20c], eax
je 0x40864e
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [ebp - 4]
push edi
push ecx
lea ecx, [ebp - 0x120]
push 0x40
push ecx
push eax
call esi
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x18]
push 4
push eax
push dword [ebx + 0x20c]
call esi
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0xa0]
push 0x44
push eax
push dword [ebx + 0x20c]
call esi
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x5c]
push 0x44
push eax
push dword [ebx + 0x20c]
call esi
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x224]
push 0x104
push eax
push dword [ebx + 0x20c]
call esi
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x328]
push 0x104
push eax
push dword [ebx + 0x20c]
call esi
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0xc]
push 2
push eax
push dword [ebx + 0x20c]
call esi
call fcn.00404788
push dword [ebp - 0xc]
mov ecx, eax
mov dword [ebp - 0x10], ecx
call fcn.00404ca1
cmp word [ebp - 0xc], di
mov dword [ebp - 8], edi
jbe 0x4085fa
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x224]
push 0x104
push eax
push dword [ebx + 0x20c]
call esi
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 8]
call fcn.00404cb0
inc dword [ebp - 8]
mov ax, word [ebp - 8]
cmp ax, word [ebp - 0xc]
jb 0x4085c2
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebx + 0x208]
push 2
push eax
push dword [ebx + 0x20c]
call esi
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x14]
push 4
push eax
push dword [ebx + 0x20c]
call esi
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.0040b1d0
pop ecx
test eax, eax
pop ecx
je 0x408652
push dword [ebx + 0x20c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x20c], edi
xor eax, eax
jmp 0x408688
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebx + 0x214]
push eax
call esi
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebx + 0x258]
push eax
call esi
lea eax, [ebp - 0x328]
add ebx, 0x29c
push eax
push ebx
call esi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret