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

Disassembly:
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x2c], 0xfffffffe
mov dword [esp + 0x30], 0x1964
call fcn.00401190
movzx eax, ax
cmp eax, 0x400
ja 0x418be8
test eax, eax
je 0x418be8
dec eax
mov dword [esp + 0x54], eax
mov eax, dword [0x486344]
push eax
push 2
lea ecx, [esp + 0x1c]
push 1
push ecx
mov byte [esp + 0x24], 0xff
mov byte [esp + 0x25], 0xff
call fcn.00435763
movzx ax, byte [esp + 0x25]
mov edx, 0x4949
add esp, 0x10
cmp word [0x465c48], dx
jne 0x41879e
movzx cx, byte [esp + 0x14]
shl ax, 8
or ax, cx
movzx eax, ax
jmp 0x4187ae
movzx dx, byte [esp + 0x14]
shl dx, 8
or dx, ax
movzx eax, dx
mov ecx, dword [0x486344]
push ecx
push 2
movzx edi, ax
lea edx, [esp + 0x20]
push 1
push edx
mov dword [esp + 0x4c], edi
mov byte [esp + 0x28], 0xff
mov byte [esp + 0x29], 0xff
call fcn.00435763
movzx cx, byte [esp + 0x29]
mov eax, 0x4949
add esp, 0x10
cmp word [0x465c48], ax
jne 0x4187fd
movzx dx, byte [esp + 0x18]
shl cx, 8
or cx, dx
movzx eax, cx
jmp 0x41880d
movzx ax, byte [esp + 0x18]
shl ax, 8
or ax, cx
movzx eax, ax
movzx ebx, ax
call fcn.00401240
mov edx, dword [0x486344]
mov ebp, eax
push edx
mov dword [esp + 0x50], ebp
call fcn.00435c4a
add eax, 4
mov dword [esp + 0x54], eax
add esp, 4
cmp ebx, 0xe
sbb eax, eax
and eax, ebx
movsx eax, byte [eax + str.11124811248488]
sub eax, 0x30
imul eax, ebp
cmp eax, 4
jbe 0x418865
push 0
call fcn.00401240
add eax, dword [esp + 0x78]
mov ecx, dword [0x486344]
push eax
push ecx
call fcn.00435f77
add esp, 0xc
cmp edi, 0x3fc
jne 0x418891
cmp ebx, 3
jne 0x418883
call fcn.00401190
movzx edx, ax
mov dword [esp + 0x2c], edx
jmp 0x4189c1
call fcn.00401240
mov dword [esp + 0x2c], eax
jmp 0x4189c1
cmp edi, 0x3fd
jne 0x418944
cmp ebp, 0x48
jne 0x4189c1
mov eax, dword [0x486344]
push 1
push 0x28
push eax
call fcn.00435f77
add esp, 0xc
mov esi, 0x466110
lea ecx, [ecx]
mov ecx, dword [0x486344]
push ecx
push 2
lea edx, [esp + 0x24]
push 1
push edx
mov byte [esp + 0x2c], 0xff
mov byte [esp + 0x2d], 0xff
call fcn.00435763
movzx cx, byte [esp + 0x2d]
mov eax, 0x4949
add esp, 0x10
cmp word [0x465c48], ax
jne 0x418908
movzx dx, byte [esp + 0x1c]
shl cx, 8
or cx, dx
movzx eax, cx
jmp 0x418918
movzx ax, byte [esp + 0x1c]
shl ax, 8
or ax, cx
movzx eax, ax
movzx edx, ax
mov dword [esp + 0x38], edx
add esi, 4
cmp esi, 0x46611c
fild dword [esp + 0x38]
fdivr qword [0x451910]
fstp dword [esi - 4]
jl 0x4188c0
mov dword [esp + 0x2c], 0xfffffffe
jmp 0x4189c1
cmp edi, 0x846
jne 0x4189c1
cmp ebx, 3
jne 0x4189b8
mov eax, dword [0x486344]
push eax
push 2
lea ecx, [esp + 0x28]
push 1
push ecx
mov byte [esp + 0x30], 0xff
mov byte [esp + 0x31], 0xff
call fcn.00435763
movzx ax, byte [esp + 0x31]
mov edx, 0x4949
add esp, 0x10
cmp word [0x465c48], dx
jne 0x41899f
movzx cx, byte [esp + 0x20]
shl ax, 8
or ax, cx
movzx eax, ax
movzx ecx, ax
mov dword [esp + 0x30], ecx
jmp 0x4189c1
movzx dx, byte [esp + 0x20]
shl dx, 8
or dx, ax
movzx eax, dx
movzx ecx, ax
mov dword [esp + 0x30], ecx
jmp 0x4189c1
call fcn.00401240
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x2c]
add edx, 0x852
cmp edi, edx
jne 0x418a05
xor esi, esi
lea edi, [ebx - 3]
cmp edi, 9
ja 0x4189e1
push edi
call fcn.004012e0
jmp 0x4189f4
mov eax, dword [0x486344]
push eax
call fcn.004361ad
mov dword [esp + 0x3c], eax
fild dword [esp + 0x3c]
fstp dword [esp + esi*4 + 0x68]
inc esi
add esp, 4
cmp esi, 3
jl 0x4189d4
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x2c]
lea ecx, [eax + 0x85c]
cmp edi, ecx
jne 0x418aaf
test eax, eax
jl 0x418aaf
fild dword [esp + 0x30]
lea ebp, [ebx - 3]
xor edi, edi
fdiv qword [0x451908]
fstp qword [esp + 0x58]
fldz
xor esi, esi
fstp dword [esp + 0x34]
mov dword [esp + 0x38], esi
mov edi, edi
cmp ebp, 9
ja 0x418a4d
push ebp
call fcn.004012e0
jmp 0x418a61
mov edx, dword [0x486344]
push edx
call fcn.004361ad
mov dword [esp + 0x44], eax
fild dword [esp + 0x44]
fstp qword [esp + 0x44]
add esp, 4
fld qword [esp + 0x58]
fild dword [esp + 0x38]
call fcn.00447b40
fmul qword [esp + 0x40]
inc esi
cmp esi, 4
fadd dword [esp + 0x34]
mov dword [esp + 0x38], esi
fstp dword [esp + 0x34]
jl 0x418a40
fld dword [esp + edi + 0x64]
add edi, 4
cmp edi, 0xc
fmul dword [esp + 0x34]
fdivr qword [0x451910]
fstp dword [edi + 0x46610c]
jl 0x418a32
mov ebp, dword [esp + 0x4c]
mov edi, dword [esp + 0x3c]
cmp edi, 0x90d
jne 0x418ac3
mov eax, ebp
call fcn.00418660
jmp 0x418bc6
cmp edi, 0x1784
jne 0x418bc6
cmp ebx, 3
jne 0x418b36
mov eax, dword [0x486344]
push eax
push 2
lea ecx, [esp + 0x2c]
push 1
push ecx
mov byte [esp + 0x34], 0xff
mov byte [esp + 0x35], 0xff
call fcn.00435763
movzx ax, byte [esp + 0x35]
mov edx, 0x4949
add esp, 0x10
cmp word [0x465c48], dx
jne 0x418b21
movzx cx, byte [esp + 0x24]
shl ax, 8
or ax, cx
movzx eax, ax
movzx eax, ax
jmp 0x418bae
movzx dx, byte [esp + 0x24]
shl dx, 8
or dx, ax
movzx eax, dx
movzx eax, ax
jmp 0x418bae
mov ecx, dword [0x486344]
push ecx
push 4
lea edx, [esp + 0x30]
push 1
push edx
mov byte [esp + 0x38], 0xff
mov byte [esp + 0x39], 0xff
mov byte [esp + 0x3a], 0xff
mov byte [esp + 0x3b], 0xff
call fcn.00435763
movzx ecx, byte [esp + 0x3a]
movzx edx, byte [esp + 0x39]
mov eax, 0x4949
add esp, 0x10
cmp word [0x465c48], ax
jne 0x418b95
movzx eax, byte [esp + 0x2b]
shl eax, 8
or eax, ecx
movzx ecx, byte [esp + 0x28]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
jmp 0x418bae
movzx eax, byte [esp + 0x28]
shl eax, 8
or eax, edx
movzx edx, byte [esp + 0x2b]
shl eax, 8
or eax, ecx
shl eax, 8
or eax, edx
mov dword [esp + 0x4c], eax
fild dword [esp + 0x4c]
test eax, eax
jge 0x418bc0
fadd dword [0x451808]
fstp dword [0x4ac40c]
mov eax, dword [esp + 0x50]
mov ecx, dword [0x486344]
push 0
push eax
push ecx
call fcn.00435f77
mov eax, dword [esp + 0x60]
add esp, 0xc
test eax, eax
jne 0x418752
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret