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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 0xc], 0
lea eax, [ebp + 8]
push ebx
push 0x4405a8
push dword [ebp + 8]
mov ebx, ecx
push eax
mov dword [ebp - 8], ebx
call fcn.0041bb07
add esp, 0xc
test eax, eax
jne 0x40cf2f
push esi
push edi
push dword [ebp + 8]
lea eax, [ebx + 0x3c]
push 1
push 4
push eax
call fcn.0041bee7
push dword [ebp + 8]
xor esi, esi
lea eax, [ebx + 0x40]
inc esi
push esi
push 4
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [ebx + 0x44]
push esi
push 4
push eax
call fcn.0041bee7
add esp, 0x30
lea eax, [ebx + 0x48]
push eax
push dword [ebp + 8]
call fcn.0040cf37
push dword [ebp + 8]
lea edi, [ebx + 0x248]
push esi
push 4
push edi
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [ebx + 0x24c]
push esi
push 4
push eax
mov dword [ebp - 0x10], eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [ebx + 0x250]
push esi
push 4
push eax
mov dword [ebp - 0x14], eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [ebx + 0x254]
push esi
push esi
push eax
call fcn.0041bee7
add esp, 0x40
lea eax, [ebx + 0x255]
push dword [ebp + 8]
push esi
push esi
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [ebx + 0x256]
push esi
push 2
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [ebx + 0x258]
push esi
push 4
push eax
call fcn.0041bee7
xor eax, eax
add esp, 0x30
cmp dword [edi], eax
jle 0x40c85c
lea esi, [ebx + 0x25e]
mov ebx, eax
push dword [ebp + 8]
lea eax, [esi - 2]
push 1
push 2
push eax
call fcn.0041bee7
push dword [ebp + 8]
push 1
push 2
push esi
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 2]
push 1
push 2
push eax
call fcn.0041bee7
add esp, 0x30
lea eax, [esi + 4]
push eax
push dword [ebp + 8]
call fcn.0040cf37
push dword [ebp + 8]
lea eax, [esi + 0x1e]
push 1
push 2
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0x20]
push 1
push 2
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0x22]
push 1
push 2
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0x26]
push 1
push 4
push eax
call fcn.0041bee7
add esp, 0x40
lea eax, [esi + 0x2a]
push dword [ebp + 8]
push 1
push 4
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0x2e]
push 1
push 1
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0x2f]
push 1
push 1
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0x30]
push 1
push 1
push eax
call fcn.0041bee7
add esp, 0x40
lea eax, [esi + 0x32]
push dword [ebp + 8]
push 1
push 2
push eax
call fcn.0041bee7
push dword [ebp + 8]
push 1
push 2
lea eax, [esi + 0x34]
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0x36]
push 1
push 1
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0x37]
push 1
push 1
push eax
call fcn.0041bee7
add esp, 0x40
lea eax, [esi + 0x38]
push dword [ebp + 8]
push 1
push 1
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0x39]
push 1
push 1
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0x3a]
push 1
push 1
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0x3b]
push 1
push 1
push eax
call fcn.0041bee7
add esp, 0x40
lea eax, [esi + 0x3c]
push dword [ebp + 8]
push 1
push 1
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0x3e]
push 1
push 4
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0x42]
push 1
push 2
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0x46]
push 1
push 4
push eax
call fcn.0041bee7
add esp, 0x40
add esi, 0x4c
inc ebx
cmp ebx, dword [edi]
jl 0x40c6c0
mov ebx, dword [ebp - 8]
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebx + 0x24c], eax
jle 0x40ce66
lea esi, [ebx + 0xbfc]
lea ebx, [esi - 0x20]
push ebx
push dword [ebp + 8]
call fcn.0040cf37
xor edi, edi
mov al, byte [ebx + edi]
test al, al
je 0x40c899
movsx eax, al
push eax
call fcn.00414f7a
mov byte [ebx + edi], al
inc edi
pop ecx
cmp edi, 0x1c
jl 0x40c87f
push dword [ebp + 8]
xor ebx, ebx
lea eax, [esi - 4]
inc ebx
push ebx
push 2
push eax
call fcn.0041bee7
push dword [ebp + 8]
push ebx
push 4
pop edi
push edi
push esi
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 4]
push ebx
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 8]
push ebx
push 2
push eax
call fcn.0041bee7
add esp, 0x40
lea eax, [esi + 0xc]
push dword [ebp + 8]
push ebx
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0x10]
push ebx
push ebx
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0x14]
push ebx
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0x18]
push ebx
push ebx
push eax
call fcn.0041bee7
add esp, 0x40
lea eax, [esi + 0x1c]
push dword [ebp + 8]
push ebx
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0x20]
push ebx
push edi
push eax
call fcn.0041bee7
add esp, 0x20
lea edi, [esi + 0x24]
push 8
pop ebx
push dword [ebp + 8]
push 1
push 2
push edi
call fcn.0041bee7
add esp, 0x10
add edi, 2
sub ebx, 1
jne 0x40c939
push 8
lea edi, [esi + 0x48]
pop ebx
push dword [ebp + 8]
push 1
push 2
push edi
call fcn.0041bee7
add esp, 0x10
add edi, 2
sub ebx, 1
jne 0x40c957
push dword [ebp + 8]
inc ebx
lea eax, [esi + 0x6c]
push ebx
push 2
pop edi
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0x6e]
push ebx
push ebx
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0x6f]
push ebx
push ebx
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0x70]
push ebx
push 4
push eax
call fcn.0041bee7
add esp, 0x40
lea eax, [esi + 0x74]
push dword [ebp + 8]
push ebx
push 4
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0x78]
push ebx
push 4
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0x7c]
push ebx
push 4
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0x80]
push ebx
push ebx
push eax
call fcn.0041bee7
add esp, 0x40
lea eax, [esi + 0x82]
push dword [ebp + 8]
push ebx
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0x84]
push ebx
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0x86]
push ebx
push ebx
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0x88]
push ebx
push edi
push eax
call fcn.0041bee7
add esp, 0x40
push dword [ebp + 8]
push ebx
push edi
lea eax, [esi + 0x8a]
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0x8c]
push ebx
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0x8e]
push ebx
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0x90]
push ebx
push edi
push eax
call fcn.0041bee7
add esp, 0x40
lea eax, [esi + 0x92]
push dword [ebp + 8]
push ebx
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0x94]
push ebx
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0x96]
push ebx
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0x98]
push ebx
push edi
push eax
call fcn.0041bee7
add esp, 0x40
lea eax, [esi + 0x9a]
push dword [ebp + 8]
push ebx
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0x9c]
push ebx
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0x9e]
push ebx
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0xa0]
push ebx
push ebx
push eax
call fcn.0041bee7
add esp, 0x40
lea eax, [esi + 0xa4]
push dword [ebp + 8]
push ebx
push 4
push eax
call fcn.0041bee7
push dword [ebp + 8]
push ebx
push edi
lea eax, [esi + 0xa8]
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0xaa]
push ebx
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0xac]
push ebx
push edi
push eax
call fcn.0041bee7
add esp, 0x40
lea eax, [esi + 0xae]
push dword [ebp + 8]
push ebx
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0xb0]
push ebx
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0xb2]
push ebx
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0xb4]
push ebx
push edi
push eax
call fcn.0041bee7
add esp, 0x40
lea eax, [esi + 0xb6]
push dword [ebp + 8]
push ebx
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0xb8]
push ebx
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0xba]
push ebx
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0xbc]
push ebx
push ebx
push eax
call fcn.0041bee7
add esp, 0x40
lea eax, [esi + 0xbd]
push dword [ebp + 8]
push ebx
push ebx
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0xbe]
push ebx
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
push ebx
push edi
lea eax, [esi + 0xc0]
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0xc4]
push ebx
push 4
push eax
call fcn.0041bee7
add esp, 0x40
lea eax, [esi + 0xc8]
push dword [ebp + 8]
push ebx
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
mov ax, word [esi + 0xc8]
push ebx
mov word [esi + 0x34], ax
lea eax, [esi + 0xca]
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
mov ax, word [esi + 0xca]
push ebx
mov word [esi + 0x58], ax
lea eax, [esi + 0xcc]
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0xce]
push ebx
push edi
push eax
call fcn.0041bee7
add esp, 0x40
lea eax, [esi + 0xd0]
push dword [ebp + 8]
push ebx
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0xd2]
push ebx
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0xd4]
push ebx
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0xd6]
push ebx
push edi
push eax
call fcn.0041bee7
add esp, 0x40
lea eax, [esi + 0xd8]
push dword [ebp + 8]
push ebx
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0xda]
push ebx
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0xdc]
push ebx
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0xde]
push ebx
push ebx
push eax
call fcn.0041bee7
add esp, 0x40
lea eax, [esi + 0xe0]
push dword [ebp + 8]
push ebx
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0xe2]
push ebx
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0xe4]
push ebx
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0xe6]
push ebx
push edi
push eax
call fcn.0041bee7
add esp, 0x40
lea eax, [esi + 0xe8]
push dword [ebp + 8]
push ebx
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0xea]
push ebx
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0xec]
push ebx
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0xee]
push ebx
push edi
push eax
call fcn.0041bee7
add esp, 0x40
lea eax, [esi + 0xf0]
push dword [ebp + 8]
push ebx
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0xf2]
push ebx
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0xf4]
push ebx
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0xf6]
push ebx
push edi
push eax
call fcn.0041bee7
add esp, 0x40
lea eax, [esi + 0xf8]
push dword [ebp + 8]
push ebx
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0xfa]
push ebx
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0xfc]
push ebx
push edi
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [esi + 0xfe]
push ebx
push edi
push eax
call fcn.0041bee7
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
lea edi, [esi + 0x36]
add esp, 0x40
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
or eax, 0xffffffff
lea edi, [esi + 0x5a]
inc ecx
stosd dword es:[edi], eax
add esi, 0x120
mov dword [ebp - 4], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp - 0x10]
cmp ecx, dword [eax]
jl 0x40c871
mov ebx, dword [ebp - 8]
xor eax, eax
mov esi, eax
mov dword [ebp - 8], esi
cmp dword [ebx + 0x250], eax
jle 0x40cf20
add ebx, 0x6a35c
push dword [ebp + 8]
push 1
push 2
push ebx
call fcn.0041bee7
add esp, 0x10
lea eax, [ebx + 2]
push eax
push dword [ebp + 8]
call fcn.0040cf37
push dword [ebp + 8]
lea eax, [ebx + 0x22]
push 1
push 2
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea eax, [ebx + 0x24]
push 1
push 4
push eax
call fcn.0041bee7
push dword [ebp + 8]
lea edi, [ebx + 0x28]
push 1
push 2
push edi
call fcn.0041bee7
and dword [ebp - 0x10], 0
xor eax, eax
add esp, 0x30
cmp ax, word [edi]
jae 0x40cefc
mov esi, dword [ebp - 0x10]
lea edi, [ebx + 0x2a]
push dword [ebp + 8]
push 1
push 2
push edi
call fcn.0041bee7
movzx eax, word [ebx + 0x28]
add esp, 0x10
inc esi
add edi, 2
cmp esi, eax
jl 0x40cedd
mov esi, dword [ebp - 8]
lea eax, [ebx + 0xaa]
push eax
push dword [ebp + 8]
call fcn.0040cf37
mov eax, dword [ebp - 0x14]
inc esi
add ebx, 0x12c
mov dword [ebp - 8], esi
cmp esi, dword [eax]
jl 0x40ce7d
push dword [ebp + 8]
mov byte [ebp - 0xc], 1
call fcn.0041b666
pop ecx
pop edi
pop esi
mov al, byte [ebp - 0xc]
pop ebx
leave
ret 4