Function at 0x40fb20
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x459bd3
mov eax, dword fs:[0]
push eax
sub esp, 0x194
mov eax, dword [0x477c1c]
xor eax, esp
mov dword [esp + 0x190], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x477c1c]
xor eax, esp
push eax
lea eax, [esp + 0x1a8]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1b0], 1
push 0x45ecf4
lea eax, [esp + 0x1bc]
push eax
lea ecx, [esp + 0x68]
push ecx
call fcn.00409410
mov byte [esp + 0x1bc], 2
lea edx, [esp + 0x1e0]
push edx
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.004094f0
mov byte [esp + 0x1c8], 3
push str..hdr
push eax
lea ecx, [esp + 0xa8]
push ecx
call fcn.00409410
add esp, 0x24
mov byte [esp + 0x1b0], 5
mov edi, 0x10
cmp dword [esp + 0x40], edi
jb 0x40fbdc
mov edx, dword [esp + 0x2c]
push edx
call fcn.00421b49
add esp, 4
xor ebx, ebx
mov esi, 0xf
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
mov byte [esp + 0x1b0], 6
cmp dword [esp + 0x78], edi
jb 0x40fc0a
mov eax, dword [esp + 0x64]
push eax
call fcn.00421b49
add esp, 4
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
cmp dword [esp + 0xa0], edi
jae 0x40fc2d
lea eax, [esp + 0x8c]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40fcf1
mov byte [esp + 0x1b0], 1
cmp dword [esp + 0xa0], edi
jb 0x40fc70
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.00421b49
add esp, 4
mov esi, 0xf
mov dword [esp + 0xa0], esi
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], bl
mov byte [esp + 0x1b0], bl
cmp dword [esp + 0x1d0], edi
jb 0x40fcaa
mov edx, dword [esp + 0x1bc]
push edx
call fcn.00421b49
add esp, 4
mov dword [esp + 0x1d0], esi
mov dword [esp + 0x1cc], ebx
mov byte [esp + 0x1bc], bl
mov dword [esp + 0x1b0], 0xffffffff
cmp dword [esp + 0x1ec], edi
jb 0x40fce3
mov eax, dword [esp + 0x1d8]
push eax
call fcn.00421b49
add esp, 4
mov dword [esp + 0x1ec], esi
xor al, al
jmp 0x40ff1e
mov ecx, dword [ebp + 0x40]
add ebp, 0x28
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov edx, dword [ecx + 4]
push edx
mov ecx, ebp
call fcn.0040ef10
mov eax, dword [ebp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [eax + 4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x1c], ebx
mov dword [eax], eax
mov eax, dword [ebp + 0x18]
push ebx
mov dword [eax + 8], eax
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x24]
push ecx
push esi
call edi
cmp dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
jle 0x40fe75
push 0x100
lea edx, [esp + 0xa8]
push ebx
push edx
call fcn.00440d10
add esp, 0xc
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
mov byte [esp + 0x1b0], 8
push ebx
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x28]
push ecx
push esi
call edi
mov eax, dword [esp + 0x1c]
push ebx
lea edx, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0xb0]
push ecx
push esi
call edi
lea eax, [esp + 0xa4]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40fda0
sub eax, ecx
push eax
lea edx, [esp + 0xa8]
push edx
lea ecx, [esp + 0x68]
call fcn.00401da0
push ebx
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x8c]
push ecx
push esi
call edi
push ebx
lea edx, [esp + 0x18]
push edx
push 4
lea eax, [esp + 0x90]
push eax
push esi
call edi
cmp dword [esp + 0x78], 0x10
mov eax, dword [esp + 0x64]
jae 0x40fdf0
lea eax, [esp + 0x64]
mov ecx, dword [esp + 0x24]
push eax
call fcn.00412800
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], eax
call fcn.0040e680
mov byte [esp + 0x1b0], 0xa
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x58]
push eax
mov ecx, ebp
call fcn.0040f4f0
mov byte [esp + 0x1b0], 8
lea ecx, [esp + 0x2c]
call fcn.0040e480
mov byte [esp + 0x1b0], 6
cmp dword [esp + 0x78], 0x10
jb 0x40fe52
mov ecx, dword [esp + 0x64]
push ecx
call fcn.00421b49
add esp, 4
mov eax, dword [esp + 0x20]
inc eax
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
mov dword [esp + 0x20], eax
jl 0x40fd42
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x1b0], 1
mov esi, 0x10
cmp dword [esp + 0xa0], esi
jb 0x40fea2
mov edx, dword [esp + 0x8c]
push edx
call fcn.00421b49
add esp, 4
mov edi, 0xf
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], bl
mov byte [esp + 0x1b0], bl
cmp dword [esp + 0x1d0], esi
jb 0x40fedc
mov eax, dword [esp + 0x1bc]
push eax
call fcn.00421b49
add esp, 4
mov dword [esp + 0x1d0], edi
mov dword [esp + 0x1cc], ebx
mov byte [esp + 0x1bc], bl
mov dword [esp + 0x1b0], 0xffffffff
cmp dword [esp + 0x1ec], esi
jb 0x40ff15
mov ecx, dword [esp + 0x1d8]
push ecx
call fcn.00421b49
add esp, 4
mov dword [esp + 0x1ec], edi
mov al, 1
mov byte [esp + 0x1d8], bl
mov dword [esp + 0x1e8], ebx
mov ecx, dword [esp + 0x1a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0044014d
add esp, 0x1a0
ret 0x38