Function at 0x4571ec
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 8
add esp, 0xfffff004
push eax
dec eax
jne 0x4571f5
mov eax, dword [ebp - 4]
add esp, 0xfffffcd0
push ebx
push esi
push edi
sub ecx, ecx
mov dword [ebp - 0x8334], ecx
mov dword [ebp - 0x8330], ecx
mov dword [ebp - 0x832c], ecx
mov dword [ebp - 0x8328], ecx
mov dword [ebp - 0x8324], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040524c
xor eax, eax
push ebp
push 0x457596
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x8320], 0x94
lea edx, [ebp - 0x8324]
mov eax, 0x4575ac
call fcn.00459098
mov eax, dword [ebp - 0x8324]
call fcn.0040525c
push eax
mov eax, dword [0x460098]
call fcn.0040525c
push eax
call sub.KERNEL32.DLL_LoadLibraryA
push eax
call fcn.00456fc4
mov dword [0x4601e8], eax
lea eax, [ebp - 0x8320]
push eax
call dword [0x4601e8]
lea edx, [ebp - 0x8328]
mov eax, 0x4575e8
call fcn.00459098
mov eax, dword [ebp - 0x8328]
call fcn.0040525c
push eax
mov eax, dword [0x460098]
call fcn.0040525c
push eax
call sub.KERNEL32.DLL_LoadLibraryA
push eax
call fcn.00456fc4
mov dword [0x4601f4], eax
cmp dword [ebp - 0x8310], 2
jne 0x45730d
mov dword [ebp - 0x88], 0xc
xor eax, eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], 0xffffffff
push 0
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [0x4601f4]
jmp 0x457322
push 0x400
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [0x4601f4]
sub eax, eax
push ebp
push 0x45755c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x6c]
sub ecx, ecx
nop
push 0x44
nop
pop edx
call fcn.00403500
mov dword [ebp - 0x6c], 0x44
mov word [ebp - 0x3c], 0
mov dword [ebp - 0x40], 1
or dword [ebp - 0x40], 0x100
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x8289]
mov edx, dword [ebp - 4]
call fcn.00409710
lea edx, [ebp - 0x832c]
mov eax, 0x45761c
call fcn.00459098
mov eax, dword [ebp - 0x832c]
call fcn.0040525c
push eax
mov eax, dword [0x460098]
call fcn.0040525c
push eax
call sub.KERNEL32.DLL_LoadLibraryA
push eax
call fcn.00456fc4
mov dword [0x4601f8], eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
push 0
push 0x20
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x8289]
push eax
push 0
call dword [0x4601f8]
test eax, eax
je 0x45751c
sub eax, eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4574fb
push 0x3e8
mov eax, dword [ebp - 0x7c]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x8330]
mov eax, 0x45765c
call fcn.00459098
mov eax, dword [ebp - 0x8330]
call fcn.0040525c
push eax
mov eax, dword [0x460098]
call fcn.0040525c
push eax
call sub.KERNEL32.DLL_LoadLibraryA
push eax
call fcn.00456fc4
mov dword [0x4601ec], eax
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0x8000
lea eax, [ebp - 0x8088]
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [0x4601ec]
test eax, eax
je 0x4574e1
cmp dword [ebp - 0x18], 0
jbe 0x4574e1
xor eax, eax
push ebp
push 0x4574d7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x8088]
sub ecx, ecx
mov edx, 0x8000
call fcn.00403500
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x8088]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_ReadFile
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x8334]
lea edx, [ebp - 0x8088]
mov ecx, 0x8000
call fcn.0040500c
mov eax, dword [ebp - 0x8334]
mov ecx, dword [ebp - 0x14]
dec ecx
xor edx, edx
call fcn.004052bc
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x24]
call fcn.00405064
sub eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4574e1
cmp dword [ebp - 0x20], 0x102
je 0x4574f1
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x1c], 0
je 0x4573e5
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x7c]
push eax
call sub.KERNEL32.DLL_GetExitCodeProcess
mov eax, dword [ebp - 0x7c]
push eax
call dword [0x4601e0]
mov eax, dword [ebp - 0x78]
push eax
call dword [0x4601e0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457563
cmp dword [ebp - 0x28], 0
jne 0x45753c
lea eax, [ebp - 0x28]
mov edx, 0x457698
call fcn.00404e34
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x28]
call fcn.00404df0
mov eax, dword [ebp - 0xc]
push eax
call dword [0x4601e0]
mov eax, dword [ebp - 0x10]
push eax
call dword [0x4601e0]
ret