Function at 0x408075
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 [0x4966f4]
fnstsw ax
test ah, 0x41
jne 0x4087f0
fld dword [esi + 0xac]
fcomp dword [0x4966f4]
fnstsw ax
test ah, 0x41
jne 0x4087f0
mov eax, dword [esi + 0x34]
test eax, eax
mov dword [esp + 0x24], eax
je 0x4087f0
mov edi, dword [esi + 0x38]
test edi, edi
mov dword [esp + 0x34], edi
je 0x4087f0
fild dword [esp + 0x24]
fmul dword [esi + 0xa8]
fst dword [esp + 0x20]
fmul dword [0x4966ec]
call fcn.0046265c
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 [0x4966ec]
call fcn.0046265c
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 0x4083d1
mov ecx, dword [esi + 0xcc]
test cl, 2
je 0x40826d
fstp dword [esp + 0x1c]
fild dword [esp + 0x68]
mov eax, dword [esp + 0x20]
fld dword [esp + 0x1c]
mov dword [esp + 0x20], eax
call fcn.00462c6a
fsub dword [esp + 0x1c]
fst dword [esp + 0x14]
fild dword [0x4a70d4]
fxch st(1)
fcompp
fnstsw ax
test ah, 1
je 0x4083d3
fld dword [esp + 0x20]
fstp qword [esp + 0x50]
fild dword [esp + 0x64]
fld qword [esp + 0x50]
call fcn.00462c6a
fsub qword [esp + 0x50]
fstp dword [esp + 0x34]
mov ecx, dword [esp + 0x34]
fild dword [0x4a70d0]
mov dword [esp + 0x10], ecx
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 0x41
jne 0x408247
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 0x4081cf
mov edx, dword [esp + 0x10]
mov dword [esp + 0x24], edx
jmp 0x4081db
fld dword [esp + 0x10]
fadd dword [esp + 0x20]
fstp dword [esp + 0x24]
test eax, eax
je 0x4081ed
fld dword [esp + 0x10]
fadd dword [esp + 0x20]
fstp dword [esp + 0x18]
jmp 0x4081f5
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 [0x4a70d0]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 0x41
je 0x4081ba
fld dword [esp + 0x14]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x14]
fild dword [0x4a70d4]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 0x41
je 0x408189
jmp 0x4083d3
mov ebx, dword [esi + 0xa8]
mov eax, 0x3f800000
cmp ebx, eax
jne 0x40835e
cmp dword [esi + 0xac], eax
jne 0x40835e
fild dword [esi + 0xc0]
fcomp dword [0x4966f4]
fnstsw ax
test ah, 0x40
je 0x40835e
lea eax, [edx + 0x18]
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 0x4082cc
mov dword [esp + 0x24], ebx
test ecx, ecx
mov dword [esp + 0x20], ebx
jne 0x4082d8
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 0x4083d3
and ecx, 1
je 0x40836b
fld dword [0x4966f4]
jmp 0x40836f
fld dword [esp + 0x20]
test ecx, ecx
je 0x408379
fld dword [esp + 0x20]
jmp 0x40837f
fld dword [0x4966f4]
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 0x4083d3
fstp st(0)
mov eax, dword [esi + 0xec]
xor ebx, ebx
cmp eax, ebx
je 0x4087f0
mov ecx, dword [esi + 0xe8]
push ecx
mov ecx, esi
call fcn.00408010
mov edx, dword [eax + 0xc]
xor ecx, ecx
cmp edx, ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x34], ecx
jle 0x4087f0
mov edx, ebp
and edx, 0xff000000
mov dword [esp + 0x38], edx
jmp 0x40841a
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 0x408499
cmp dword [esp + 0x7c], ebx
jne 0x408499
mov eax, dword [edi + 0x24]
dec eax
je 0x408450
dec eax
jne 0x4084b6
mov ecx, dword [edi + 0x2c]
mov eax, dword [esp + 0x74]
cmp ecx, eax
jne 0x4084b6
mov edx, dword [esp + 0x70]
mov dword [esp + 0x10], edx
jmp 0x4084b6
mov eax, dword [edi + 0x2c]
cmp eax, ebx
jl 0x408493
cmp eax, 0x10
jae 0x408493
mov eax, dword [esi + eax*4 + 0x3c]
cmp eax, 0x14
jge 0x408493
lea ecx, [eax*4]
mov eax, 0x66666667
imul ecx
mov ecx, dword [0x4b73a4]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
lea edx, [edx + ecx*4]
mov eax, dword [edx*4 + 0x496640]
mov dword [esp + 0x10], eax
jmp 0x4084b6
mov dword [esp + 0x10], ebx
jmp 0x4084b6
cmp dword [edi + 0x24], 1
jne 0x4084b6
mov eax, dword [edi + 0x2c]
cmp eax, ebx
jl 0x4084b6
cmp eax, 0x10
jae 0x4084b6
cmp dword [esi + eax*4 + 0x3c], 0x14
jge 0x4084b6
mov dword [esi + eax*4 + 0x3c], ebx
mov eax, dword [esi + 0xcc]
test al, 2
je 0x4086b7
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.00462c6a
fsub dword [esp + 0x24]
fst dword [esp + 0x18]
fild dword [0x4a70d4]
fxch st(1)
fcompp
fnstsw ax
test ah, 1
je 0x4087d8
fld dword [esp + 0x30]
fstp qword [esp + 0x48]
fild dword [esp + 0x64]
fld qword [esp + 0x48]
call fcn.00462c6a
fsub qword [esp + 0x48]
fstp dword [esp + 0x3c]
mov ecx, dword [esp + 0x3c]
fild dword [0x4a70d0]
mov dword [esp + 0x14], ecx
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 0x41
jne 0x408691
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 0x408562
mov ebp, dword [esp + 0x40]
mov edx, dword [esi + 0xcc]
mov ecx, dword [edi + 0x10]
mov eax, dword [edi]
and edx, 1
je 0x40857f
mov ebx, dword [esi + 0x34]
sub ebx, eax
sub ebx, ecx
mov dword [esp + 0x28], ebx
jmp 0x408585
add ecx, eax
mov dword [esp + 0x28], ecx
test edx, edx
je 0x408594
mov edx, dword [esi + 0x34]
sub edx, eax
mov dword [esp + 0x2c], edx
jmp 0x408598
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 [0x4a70d0]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 0x41
je 0x40855e
mov ebp, dword [esp + 0x6c]
fld dword [esp + 0x18]
fadd dword [esp + 0x24]
fstp dword [esp + 0x18]
fild dword [0x4a70d4]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 0x41
je 0x408525
jmp 0x4087d8
mov ecx, dword [edi + 0x10]
mov edx, eax
mov eax, dword [edi]
and edx, 1
je 0x4086d0
mov ebx, dword [esi + 0x34]
sub ebx, eax
sub ebx, ecx
mov dword [esp + 0x30], ebx
jmp 0x4086d6
add ecx, eax
mov dword [esp + 0x30], ecx
test edx, edx
je 0x4086e5
mov edx, dword [esi + 0x34]
sub edx, eax
mov dword [esp + 0x2c], edx
jmp 0x4086e9
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 0x408414
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x1c