Function at 0x4043a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x90
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
lea esi, [ecx + 4]
push edi
mov dword [esp + 0x68], ecx
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, 0x991494
call fcn.00404190
mov eax, dword [esp + 0xa8]
fld dword [eax]
mov dword [esp + 0x48], 0
fsub dword [esp + 0x28]
lea ebp, [esp + 0x6c]
mov dword [esp + 0x4c], esi
fstp dword [esp + 0x10]
fld dword [eax + 4]
fsub dword [esp + 0x2c]
fstp dword [esp + 0x14]
fld dword [esp + 0x10]
fld qword [0x795860]
fdiv st(1), st(0)
fxch st(1)
fstp dword [esp + 0x34]
fdivr dword [esp + 0x14]
fstp dword [esp + 0x44]
fldz
fst dword [esp + 0x6c]
fst dword [esp + 0x70]
fst dword [esp + 0x74]
fst dword [esp + 0x78]
fst dword [esp + 0x7c]
fst dword [esp + 0x80]
fst dword [esp + 0x84]
fst dword [esp + 0x88]
fst dword [esp + 0x8c]
fst dword [esp + 0x90]
fst dword [esp + 0x94]
fst dword [esp + 0x98]
jmp 0x404455
fldz
mov ecx, dword [esp + 0x48]
lea eax, [ecx + 3]
lea ebx, [eax - 2]
and ebx, 0x80000003
jns 0x40446c
dec ebx
or ebx, 0xfffffffc
inc ebx
and eax, 0x80000003
jns 0x404478
dec eax
or eax, 0xfffffffc
inc eax
mov esi, dword [0x991498]
cmp ecx, 3
mov ecx, dword [0x99149c]
mov dword [esp + 0x9c], eax
ja 0x4044e7
mov edx, dword [esp + 0x4c]
mov edi, dword [edx]
test edi, edi
jl 0x4044e7
test esi, esi
je 0x4044e7
mov edx, ecx
sub edx, esi
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x4044e7
push edi
fstp st(0)
mov ecx, 0x991494
call fcn.00403c20
fld dword [eax]
mov ecx, dword [0x99149c]
fstp dword [esp + 0x5c]
fld dword [eax + 4]
mov esi, dword [0x991498]
fstp dword [esp + 0x60]
fld dword [eax + 8]
fstp dword [esp + 0x64]
fldz
jmp 0x4044f3
fst dword [esp + 0x5c]
fst dword [esp + 0x60]
fst dword [esp + 0x64]
cmp ebx, 3
ja 0x404551
mov eax, dword [esp + 0x68]
mov edi, dword [eax + ebx*4 + 4]
test edi, edi
jl 0x404551
test esi, esi
je 0x404551
mov edx, ecx
sub edx, esi
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x404551
push edi
fstp st(0)
mov ecx, 0x991494
call fcn.00403c20
fld dword [eax]
mov ecx, dword [0x99149c]
fstp dword [esp + 0x50]
fld dword [eax + 4]
mov esi, dword [0x991498]
fstp dword [esp + 0x54]
fld dword [eax + 8]
fstp dword [esp + 0x58]
fldz
jmp 0x40455d
fst dword [esp + 0x50]
fst dword [esp + 0x54]
fst dword [esp + 0x58]
cmp dword [esp + 0x48], 3
fld dword [esp + 0x50]
fsub dword [esp + 0x5c]
fstp dword [esp + 0x28]
fld dword [esp + 0x54]
fsub dword [esp + 0x60]
fstp dword [esp + 0x2c]
fld dword [esp + 0x58]
fsub dword [esp + 0x64]
fstp dword [esp + 0x30]
ja 0x4045df
mov edx, dword [esp + 0x4c]
mov edi, dword [edx]
test edi, edi
jl 0x4045df
test esi, esi
je 0x4045df
mov edx, ecx
sub edx, esi
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x4045df
push edi
fstp st(0)
mov ecx, 0x991494
call fcn.00403c20
fld dword [eax]
mov ecx, dword [0x99149c]
fstp dword [esp + 0x1c]
fld dword [eax + 4]
mov esi, dword [0x991498]
fstp dword [esp + 0x20]
fld dword [eax + 8]
fstp dword [esp + 0x24]
fldz
jmp 0x4045eb
fst dword [esp + 0x1c]
fst dword [esp + 0x20]
fst dword [esp + 0x24]
mov eax, dword [esp + 0x9c]
cmp eax, 3
ja 0x40463c
mov edx, dword [esp + 0x68]
mov edi, dword [edx + eax*4 + 4]
test edi, edi
jl 0x40463c
test esi, esi
je 0x40463c
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x40463c
push edi
fstp st(0)
mov ecx, 0x991494
call fcn.00403c20
fld dword [eax]
fstp dword [esp + 0x38]
fld dword [eax + 4]
fstp dword [esp + 0x3c]
fld dword [eax + 8]
jmp 0x404644
fst dword [esp + 0x38]
fst dword [esp + 0x3c]
fstp dword [esp + 0x40]
push ebp
fld dword [esp + 0x3c]
fsub dword [esp + 0x20]
fstp dword [esp + 0x14]
fld dword [esp + 0x40]
fsub dword [esp + 0x24]
fstp dword [esp + 0x18]
fld dword [esp + 0x44]
fsub dword [esp + 0x28]
fstp dword [esp + 0x1c]
fld dword [esp + 0x18]
fld st(0)
fld dword [esp + 0x34]
fld st(0)
fmulp st(2)
fld dword [esp + 0x1c]
fld st(0)
fld dword [esp + 0x30]
fld st(0)
fmulp st(2)
fxch st(4)
fsubrp st(1)
fstp dword [ebp]
fld dword [esp + 0x2c]
fld st(0)
fmulp st(2)
fld dword [esp + 0x14]
fld st(0)
fmulp st(4)
fxch st(2)
fsubrp st(3)
fxch st(2)
fstp dword [ebp + 4]
fmulp st(2)
fmulp st(2)
fsubrp st(1)
fstp dword [ebp + 8]
call dword [0x97e20c]
mov eax, dword [esp + 0x4c]
add dword [esp + 0x50], 4
add eax, 1
add esp, 4
add ebp, 0xc
cmp eax, 4
mov dword [esp + 0x48], eax
jl 0x404453
fld dword [esp + 0x84]
fld dword [esp + 0x44]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x28]
fld dword [esp + 0x88]
fmul st(1)
fstp dword [esp + 0x2c]
fld dword [esp + 0x8c]
fmul st(1)
fstp dword [esp + 0x30]
fld st(0)
fld1
fld st(0)
fsubrp st(2)
fxch st(1)
fstp dword [esp + 0x44]
fld dword [esp + 0x44]
fst dword [esp + 0x44]
fld dword [esp + 0x90]
fld dword [esp + 0x44]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x94]
fmul st(1)
fstp dword [esp + 0x14]
fmul dword [esp + 0x98]
fstp dword [esp + 0x18]
fld dword [esp + 0x10]
fadd dword [esp + 0x28]
fstp dword [esp + 0x1c]
fld dword [esp + 0x14]
fadd dword [esp + 0x2c]
fstp dword [esp + 0x20]
fld dword [esp + 0x18]
fadd dword [esp + 0x30]
fstp dword [esp + 0x24]
fld dword [esp + 0x1c]
fld dword [esp + 0x34]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x38]
fld dword [esp + 0x20]
fmul st(1)
fstp dword [esp + 0x3c]
fld dword [esp + 0x24]
fmul st(1)
fstp dword [esp + 0x40]
fld dword [esp + 0x78]
fmul st(4)
fstp dword [esp + 0x28]
fld dword [esp + 0x7c]
fmul st(4)
fstp dword [esp + 0x2c]
fld dword [esp + 0x80]
fmulp st(4)
fxch st(3)
fstp dword [esp + 0x30]
fstp dword [esp + 0x34]
fld dword [esp + 0x6c]
fld dword [esp + 0x34]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x70]
fmul st(1)
fstp dword [esp + 0x14]
fmul dword [esp + 0x74]
fstp dword [esp + 0x18]
fld dword [esp + 0x10]
fadd dword [esp + 0x28]
fstp dword [esp + 0x1c]
fld dword [esp + 0x14]
fadd dword [esp + 0x2c]
fstp dword [esp + 0x20]
fld dword [esp + 0x18]
fadd dword [esp + 0x30]
mov eax, dword [esp + 0xa4]
pop edi
pop esi
fstp dword [esp + 0x1c]
pop ebp
pop ebx
fsubrp st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0xc]
fld dword [esp + 0x24]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp]
fld dword [esp + 0x10]
fmul st(1)
fstp dword [esp + 4]
fmul dword [esp + 0x14]
fstp dword [esp + 8]
fld dword [esp]
fadd dword [esp + 0x28]
fstp dword [eax]
fld dword [esp + 4]
fadd dword [esp + 0x2c]
fstp dword [eax + 4]
fld dword [esp + 8]
fadd dword [esp + 0x30]
fstp dword [eax + 8]
add esp, 0x90
ret 8