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

Disassembly:
push 0xffffffffffffffff
push 0x42debb
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x439300]
xor eax, esp
mov dword [esp + 0x80], eax
push ebp
push esi
mov eax, dword [0x439300]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xa4]
xor eax, eax
cmp dword [ebp + 4], eax
mov dword [esp + 0x14], eax
jle 0x40542c
mov dword [esp + 0x10], eax
xor eax, eax
mov esi, dword [edi + 0x44]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov eax, dword [ebp]
add eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
test eax, eax
jl 0x405305
push 0
push eax
mov eax, dword [edi + 8]
push eax
call fcn.00415084
add esp, 0xc
mov ecx, dword [edi + 8]
push ecx
push 1
lea edx, [esp + 0x78]
push esi
push edx
call fcn.00414bb9
dec eax
add esp, 0x10
neg eax
sbb eax, eax
and eax, 7
jne 0x40542e
lea eax, [esp + 0x70]
push eax
mov edx, eax
lea esi, [esp + 0x24]
mov eax, edi
call fcn.00404470
mov eax, dword [ebp]
add eax, dword [esp + 0x10]
mov edx, dword [ebx]
mov eax, dword [eax]
mov edx, dword [edx + 8]
push 0
lea ecx, [esp + 0x4c]
push ecx
push eax
mov ecx, ebx
call edx
test eax, eax
jne 0x40542e
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], eax
test eax, eax
jl 0x405383
add eax, 2
push eax
call fcn.004152b9
mov esi, eax
mov eax, dword [esp + 0x10]
add esp, 4
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], eax
jmp 0x405387
mov esi, dword [esp + 0x18]
mov dword [esp + 0x9c], 0
mov edx, dword [edi]
mov edx, dword [edx + 0x10]
push esi
lea eax, [esp + 0x24]
push eax
mov ecx, edi
call edx
mov dword [esp + 0xc], eax
test eax, eax
jne 0x405456
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [ebx]
mov edx, dword [edx + 0x20]
push eax
cwde
sub ecx, eax
push ecx
push esi
lea eax, [esp + 0x54]
push eax
mov ecx, ebx
call edx
mov dword [esp + 0xc], eax
test eax, eax
jne 0x405456
mov eax, dword [esp + 0x2c]
mov edx, dword [ebx]
mov edx, dword [edx + 0x1c]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x48]
push eax
mov ecx, ebx
call edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x9c], 0xffffffff
test eax, eax
jne 0x405461
test esi, esi
je 0x405415
push esi
call fcn.00414c00
add esp, 4
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
add dword [esp + 0x10], 0x14
inc eax
cmp eax, dword [ebp + 4]
mov dword [esp + 0x14], eax
jl 0x405293
xor eax, eax
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0041389c
add esp, 0x94
ret 4
mov dword [esp + 0x9c], 0xffffffff
test esi, esi
je 0x40542e
push esi
call fcn.00414c00
mov eax, dword [esp + 0x10]
add esp, 4
jmp 0x40542e