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

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
mov esi, ecx
push edi
fld dword [esi + 0xa8]
fcomp dword [0x4996f4]
fnstsw ax
test ah, 0x41
jne 0x408c10
fld dword [esi + 0xac]
fcomp dword [0x4996f4]
fnstsw ax
test ah, 0x41
jne 0x408c10
mov eax, dword [esi + 0x34]
test eax, eax
mov dword [esp + 0x24], eax
je 0x408c10
mov edi, dword [esi + 0x38]
test edi, edi
mov dword [esp + 0x34], edi
je 0x408c10
fild dword [esp + 0x24]
fmul dword [esi + 0xa8]
fst dword [esp + 0x20]
fmul dword [0x4996ec]
call fcn.00464e6c
fild dword [esp + 0x34]
mov ecx, dword [esi + 0x88]
mov ebp, dword [esp + 0x64]
sub ecx, eax
fmul dword [esi + 0xac]
add ebp, ecx
mov dword [esp + 0x64], ebp
fld st(0)
fmul dword [0x4996ec]
call fcn.00464e6c
mov edx, dword [esi + 0x8c]
mov ecx, dword [esp + 0x68]
mov ebp, dword [esp + 0x6c]
sub edx, eax
add ecx, edx
mov edx, dword [esi]
test edx, edx
mov dword [esp + 0x68], ecx
je 0x4087f1
mov ecx, dword [esi + 0xcc]
test cl, 2
je 0x40868d
fstp dword [esp + 0x1c]
fild dword [esp + 0x68]
mov eax, dword [esp + 0x20]
fld dword [esp + 0x1c]
mov dword [esp + 0x20], eax
call fcn.0046547a
fsub dword [esp + 0x1c]
fst dword [esp + 0x14]
fild dword [0x4aa0d4]
fxch st(1)
fcompp
fnstsw ax
test ah, 1
je 0x4087f3
fld dword [esp + 0x20]
fstp qword [esp + 0x50]
fild dword [esp + 0x64]
fld qword [esp + 0x50]
call fcn.0046547a
fsub qword [esp + 0x50]
fstp dword [esp + 0x34]
mov ecx, dword [esp + 0x34]
fild dword [0x4aa0d0]
mov dword [esp + 0x10], ecx
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 0x41
jne 0x408667
fld dword [esp + 0x14]
fadd dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
fstp dword [esp + 0x30]
mov ebx, dword [esp + 0x30]
mov eax, dword [esi + 0xcc]
and eax, 1
je 0x4085ef
mov edx, dword [esp + 0x10]
mov dword [esp + 0x24], edx
jmp 0x4085fb
fld dword [esp + 0x10]
fadd dword [esp + 0x20]
fstp dword [esp + 0x24]
test eax, eax
je 0x40860d
fld dword [esp + 0x10]
fadd dword [esp + 0x20]
fstp dword [esp + 0x18]
jmp 0x408615
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x78]
mov ecx, dword [esi + 0x7c]
push eax
mov eax, dword [esi + 0x38]
push ebp
push eax
mov eax, dword [esi + 0x34]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x34]
push 0
push 0
push ebx
push eax
mov eax, dword [esp + 0x38]
push edi
push eax
mov eax, dword [esi + 0xd4]
push eax
mov eax, dword [esi]
push esi
push eax
call dword [edx + 4]
fld dword [esp + 0x10]
fadd dword [esp + 0x20]
fstp dword [esp + 0x10]
fild dword [0x4aa0d0]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 0x41
je 0x4085da
fld dword [esp + 0x14]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x14]
fild dword [0x4aa0d4]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 0x41
je 0x4085a9
jmp 0x4087f3
mov ebx, dword [esi + 0xa8]
mov eax, 0x3f800000
cmp ebx, eax
jne 0x40877e
cmp dword [esi + 0xac], eax
jne 0x40877e
fild dword [esi + 0xc0]
fcomp dword [0x4996f4]
fnstsw ax
test ah, 0x40
je 0x40877e
lea eax, [edx + 0x1c]
and ecx, 1
fstp st(0)
mov edi, dword [eax]
mov dword [esp + 0x50], edi
mov dword [esp + 0x24], edi
mov ebx, dword [eax + 4]
mov dword [esp + 0x54], ebx
mov ebx, dword [eax + 8]
mov dword [esp + 0x58], ebx
mov eax, dword [eax + 0xc]
jne 0x4086ec
mov dword [esp + 0x24], ebx
test ecx, ecx
mov dword [esp + 0x20], ebx
jne 0x4086f8
mov dword [esp + 0x20], edi
mov ebx, dword [esp + 0x78]
mov ecx, dword [esi + 0x7c]
push ebx
mov ebx, dword [esp + 0x5c]
push ebp
push eax
push ebx
mov ebx, dword [esp + 0x64]
push ebx
mov ebx, dword [esp + 0x64]
push ebx
mov ebx, dword [esp + 0x80]
add eax, ebx
mov ebx, dword [esp + 0x7c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x3c]
fild dword [esp + 0x4c]
push ecx
add eax, ebx
mov ebx, dword [esp + 0x84]
mov dword [esp + 0x50], eax
fstp dword [esp]
fild dword [esp + 0x50]
mov eax, dword [esp + 0x70]
push ecx
add eax, ebx
mov ebx, dword [esp + 0x84]
fstp dword [esp]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x40]
fild dword [esp + 0x54]
push ecx
add eax, ebx
mov edi, dword [ecx]
mov dword [esp + 0x58], eax
fstp dword [esp]
fild dword [esp + 0x58]
mov eax, dword [esi + 0xd4]
push ecx
fstp dword [esp]
push eax
push esi
push edx
call dword [edi + 4]
jmp 0x4087f3
and ecx, 1
je 0x40878b
fld dword [0x4996f4]
jmp 0x40878f
fld dword [esp + 0x20]
test ecx, ecx
je 0x408799
fld dword [esp + 0x20]
jmp 0x40879f
fld dword [0x4996f4]
fild dword [esp + 0x68]
mov ebx, dword [esp + 0x78]
mov ecx, dword [esi + 0x7c]
push ebx
push ebp
fstp dword [esp + 0x28]
fild dword [esp + 0x6c]
fld dword [esp + 0x28]
push edi
mov edi, dword [esp + 0x30]
push edi
push 0
fadd st(4)
push 0
push ecx
mov edi, dword [esp + 0x3c]
mov eax, dword [ecx]
fstp dword [esp]
push ecx
fld st(0)
fadd st(3)
fstp dword [esp]
push edi
mov edi, dword [esi + 0xd4]
fadd st(1)
push ecx
fstp dword [esp]
push edi
push esi
fstp st(0)
fstp st(0)
push edx
fstp st(0)
call dword [eax + 4]
jmp 0x4087f3
fstp st(0)
mov eax, dword [esi + 0xec]
xor ebx, ebx
cmp eax, ebx
je 0x408c10
mov ecx, dword [esi + 0xe8]
push ecx
mov ecx, esi
call fcn.00408430
mov edx, dword [eax + 0xc]
xor ecx, ecx
cmp edx, ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x34], ecx
jle 0x408c10
mov edx, ebp
and edx, 0xff000000
mov dword [esp + 0x38], edx
jmp 0x40883a
mov edx, dword [esp + 0x38]
xor ebx, ebx
mov eax, dword [eax + 8]
cmp edx, 0xff000000
mov dword [esp + 0x10], ebx
mov edi, dword [eax + ecx*4]
jne 0x4088b9
cmp dword [esp + 0x7c], ebx
jne 0x4088b9
mov eax, dword [edi + 0x24]
dec eax
je 0x408870
dec eax
jne 0x4088d6
mov ecx, dword [edi + 0x2c]
mov eax, dword [esp + 0x74]
cmp ecx, eax
jne 0x4088d6
mov edx, dword [esp + 0x70]
mov dword [esp + 0x10], edx
jmp 0x4088d6
mov eax, dword [edi + 0x2c]
cmp eax, ebx
jl 0x4088b3
cmp eax, 0x10
jae 0x4088b3
mov eax, dword [esi + eax*4 + 0x3c]
cmp eax, 0x14
jge 0x4088b3
lea ecx, [eax*4]
mov eax, 0x66666667
imul ecx
mov ecx, dword [0x4ba4a4]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
lea edx, [edx + ecx*4]
mov eax, dword [edx*4 + 0x499640]
mov dword [esp + 0x10], eax
jmp 0x4088d6
mov dword [esp + 0x10], ebx
jmp 0x4088d6
cmp dword [edi + 0x24], 1
jne 0x4088d6
mov eax, dword [edi + 0x2c]
cmp eax, ebx
jl 0x4088d6
cmp eax, 0x10
jae 0x4088d6
cmp dword [esi + eax*4 + 0x3c], 0x14
jge 0x4088d6
mov dword [esi + eax*4 + 0x3c], ebx
mov eax, dword [esi + 0xcc]
test al, 2
je 0x408ad7
fild dword [esi + 0x34]
fmul dword [esi + 0xa8]
fstp dword [esp + 0x30]
fild dword [esi + 0x38]
fmul dword [esi + 0xac]
fstp dword [esp + 0x24]
fild dword [esp + 0x68]
fld dword [esp + 0x24]
call fcn.0046547a
fsub dword [esp + 0x24]
fst dword [esp + 0x18]
fild dword [0x4aa0d4]
fxch st(1)
fcompp
fnstsw ax
test ah, 1
je 0x408bf8
fld dword [esp + 0x30]
fstp qword [esp + 0x48]
fild dword [esp + 0x64]
fld qword [esp + 0x48]
call fcn.0046547a
fsub qword [esp + 0x48]
fstp dword [esp + 0x3c]
mov ecx, dword [esp + 0x3c]
fild dword [0x4aa0d0]
mov dword [esp + 0x14], ecx
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 0x41
jne 0x408ab1
mov eax, ebp
shr eax, 8
mov ebp, eax
and ebp, 0xffff0000
and eax, 0xff0000
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], eax
jmp 0x408982
mov ebp, dword [esp + 0x40]
mov edx, dword [esi + 0xcc]
mov ecx, dword [edi + 0x10]
mov eax, dword [edi]
and edx, 1
je 0x40899f
mov ebx, dword [esi + 0x34]
sub ebx, eax
sub ebx, ecx
mov dword [esp + 0x28], ebx
jmp 0x4089a5
add ecx, eax
mov dword [esp + 0x28], ecx
test edx, edx
je 0x4089b4
mov edx, dword [esi + 0x34]
sub edx, eax
mov dword [esp + 0x2c], edx
jmp 0x4089b8
mov dword [esp + 0x2c], eax
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x28]
imul ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi + 4]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x78]
push ecx
mov ecx, edx
imul ecx, ebp
mov ebp, dword [esp + 0x70]
mov eax, dword [edi + 0x1c]
xor ecx, ebp
mov ebp, dword [esp + 0x48]
imul eax, dword [esp + 0x14]
imul ebp, edx
mov edx, dword [edi + 0xc]
mov ebx, dword [esi + 0x7c]
and ecx, 0xffffff
xor ecx, ebp
mov ebx, dword [ebx]
push ecx
mov ecx, dword [edi + 0x14]
mov ebp, dword [esp + 0x24]
add edx, ecx
add edx, eax
mov dword [esp + 0x50], ebx
mov ebx, dword [edi + 0xc]
push edx
mov edx, dword [edi + 8]
add ebx, eax
mov eax, dword [esp + 0x28]
add ebp, edx
add ebp, dword [edi + 0x10]
add edx, eax
mov eax, dword [esi + 0xd4]
push ebp
push ebx
push edx
mov edx, dword [esp + 0x38]
add edx, ecx
push ecx
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x64]
fild dword [esp + 0x38]
fmul dword [esi + 0xac]
fadd dword [esp + 0x34]
fstp dword [esp]
fild dword [esp + 0x44]
push ecx
fmul dword [esi + 0xa8]
fadd dword [esp + 0x34]
fstp dword [esp]
fild dword [esp + 0x40]
push ecx
fmul dword [esi + 0xac]
fadd dword [esp + 0x3c]
fstp dword [esp]
fild dword [esp + 0x50]
push ecx
mov ecx, dword [edi + 0x20]
fmul dword [esi + 0xa8]
fadd dword [esp + 0x3c]
fstp dword [esp]
push eax
push esi
push ecx
mov ecx, dword [esi + 0x7c]
call dword [edx + 4]
fld dword [esp + 0x14]
fadd dword [esp + 0x30]
fstp dword [esp + 0x14]
fild dword [0x4aa0d0]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 0x41
je 0x40897e
mov ebp, dword [esp + 0x6c]
fld dword [esp + 0x18]
fadd dword [esp + 0x24]
fstp dword [esp + 0x18]
fild dword [0x4aa0d4]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 0x41
je 0x408945
jmp 0x408bf8
mov ecx, dword [edi + 0x10]
mov edx, eax
mov eax, dword [edi]
and edx, 1
je 0x408af0
mov ebx, dword [esi + 0x34]
sub ebx, eax
sub ebx, ecx
mov dword [esp + 0x30], ebx
jmp 0x408af6
add ecx, eax
mov dword [esp + 0x30], ecx
test edx, edx
je 0x408b05
mov edx, dword [esi + 0x34]
sub edx, eax
mov dword [esp + 0x2c], edx
jmp 0x408b09
mov dword [esp + 0x2c], eax
mov ecx, dword [edi + 0x18]
mov eax, ebp
imul ecx, dword [esp + 0x10]
fild dword [esp + 0x68]
fild dword [esp + 0x64]
fstp dword [esp + 0x28]
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi + 4]
mov ebp, dword [edi + 0x28]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x78]
mov edx, dword [edi + 0x1c]
shr eax, 8
imul edx, dword [esp + 0x10]
push ecx
mov ecx, eax
and ecx, 0xffff0000
and eax, 0xff0000
imul eax, dword [edi + 0x28]
imul ecx, ebp
mov ebp, dword [esp + 0x70]
mov ebx, dword [esi + 0x7c]
xor ecx, ebp
mov ebp, dword [esp + 0x20]
and ecx, 0xffffff
mov ebx, dword [ebx]
xor ecx, eax
mov eax, dword [edi + 0x14]
push ecx
mov ecx, dword [edi + 0xc]
add ecx, eax
mov dword [esp + 0x4c], ebx
mov ebx, dword [edi + 0xc]
add ecx, edx
push ecx
mov ecx, dword [edi + 8]
add ebp, ecx
add ebx, edx
add ebp, dword [edi + 0x10]
mov edx, dword [esp + 0x28]
add ecx, edx
mov edx, dword [esi + 0xd4]
push ebp
push ebx
push ecx
mov ecx, dword [esp + 0x38]
add ecx, eax
mov eax, dword [edi + 0x20]
mov dword [esp + 0x60], ecx
push ecx
fild dword [esp + 0x64]
fmul dword [esi + 0xac]
fadd st(1)
fstp dword [esp]
fild dword [esp + 0x4c]
push ecx
fmul dword [esi + 0xa8]
fadd dword [esp + 0x48]
fstp dword [esp]
fild dword [esp + 0x40]
push ecx
fmul dword [esi + 0xac]
fadd st(1)
fstp dword [esp]
push ecx
mov ecx, dword [esi + 0x7c]
fstp st(0)
fild dword [esp + 0x54]
fmul dword [esi + 0xa8]
fadd dword [esp + 0x50]
fstp dword [esp]
push edx
mov edx, dword [esp + 0x70]
push esi
push eax
call dword [edx + 4]
mov ebp, dword [esp + 0x6c]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x34]
inc ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x34], ecx
cmp ecx, edx
jl 0x408834
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x1c