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

Disassembly:
sub esp, 0x74
push ebx
mov ebx, dword [esp + 0x7c]
test ebx, ebx
je 0x40e04c
mov ecx, dword [esp + 0x80]
test ecx, ecx
je 0x40e04c
mov eax, dword [ecx + 0x60]
test eax, eax
je 0x40e04c
mov edx, dword [ecx + 0xe8]
test edx, edx
mov dword [esp + 4], edx
je 0x40e04c
push ebp
push esi
push edi
jmp 0x40dd35
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
cmp eax, 7
je 0x40dd45
cmp eax, 6
jne 0x40e03a
mov eax, dword [edx + 0x2c]
test eax, eax
je 0x40e03a
mov eax, dword [eax]
test eax, eax
je 0x40e03a
mov ebp, dword [eax + 8]
test ebp, ebp
je 0x40e03a
fld dword [ecx + 0x50]
fsub dword [ecx + 0x48]
mov esi, dword [ebx + 0x100c]
mov edi, dword [ebx + 0xf94]
mov ebp, dword [ebp]
mov eax, dword [ebx + 0xf98]
fmul dword [0x50152c]
mov ebp, dword [ebp]
add esi, edi
mov edi, dword [ebx + 0x1010]
mov dword [esp + 0x54], esi
add edi, eax
xor eax, eax
fstp dword [esp + 0x3c]
fld dword [ecx + 0x54]
fsub dword [ecx + 0x4c]
test ebp, ebp
mov dword [esp + 0x58], edi
fmul dword [0x50152c]
fstp dword [esp + 0x40]
je 0x40e03a
fild dword [esp + 0x54]
fstp dword [esp + 0x24]
fild dword [esp + 0x58]
fstp dword [esp + 0x28]
mov ecx, dword [ebp + 8]
test eax, eax
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov edx, dword [edx + 0xc]
mov dword [esp + 0x34], edx
mov edx, dword [ecx + 0xc]
fld dword [esp + 0x34]
mov dword [esp + 0x38], edx
fsub dword [esp + 0x38]
fmul dword [0x501528]
fstp dword [esp + 0x44]
fld dword [esp + 0x38]
fadd dword [esp + 0x34]
fmul dword [0x501524]
fstp dword [esp + 0x48]
fld dword [esp + 0x24]
fadd dword [esp + 0x44]
fld dword [esp + 0x28]
fadd dword [esp + 0x48]
je 0x40de58
push 0xfb
call fcn.004f7d68
push eax
call fcn.004f7d68
fld dword [esp + 0x88]
push eax
call fcn.004f7d68
fld dword [esp + 0x88]
add eax, edi
push eax
call fcn.004f7d68
add eax, esi
push eax
mov eax, dword [ebx + 0xfa4]
push eax
call fcn.004607a0
add esp, 0x18
jmp 0x40de5c
fstp st(0)
fstp st(0)
fld dword [esp + 0x34]
fsub dword [esp + 0x3c]
fld dword [esp + 0x38]
fsub dword [esp + 0x40]
fld dword [esp + 0x34]
fadd dword [esp + 0x3c]
fld dword [esp + 0x38]
fadd dword [esp + 0x40]
fstp dword [esp + 0x50]
fld st(2)
fsub st(2)
fmul dword [0x501528]
fstp dword [esp + 0x64]
fld st(1)
fadd st(3)
fmul dword [0x501524]
fstp dword [esp + 0x68]
fld st(0)
fsub dword [esp + 0x50]
fmul dword [0x501528]
fstp dword [esp + 0x74]
fld dword [esp + 0x50]
fadd st(1)
fmul dword [0x501524]
fstp dword [esp + 0x78]
fld st(0)
fsub st(2)
fmul dword [0x501528]
fstp dword [esp + 0x5c]
fadd st(1)
fmul dword [0x501524]
fstp dword [esp + 0x60]
fstp st(0)
fld st(0)
fsub dword [esp + 0x50]
fmul dword [0x501528]
fstp dword [esp + 0x6c]
fld dword [esp + 0x50]
fadd st(1)
fmul dword [0x501524]
fstp dword [esp + 0x70]
fstp st(0)
fld dword [esp + 0x60]
call fcn.004f7d68
fld dword [esp + 0x5c]
add eax, edi
mov dword [esp + 0x18], eax
call fcn.004f7d68
fld dword [esp + 0x68]
add eax, esi
mov dword [esp + 0x1c], eax
call fcn.004f7d68
fld dword [esp + 0x64]
add eax, edi
mov dword [esp + 0x14], eax
call fcn.004f7d68
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push 0xfc
push ecx
mov ecx, dword [esp + 0x1c]
add eax, esi
push edx
mov edx, dword [ebx + 0xfa4]
push ecx
push eax
push edx
mov dword [esp + 0x44], eax
call fcn.004607a0
fld dword [esp + 0x88]
call fcn.004f7d68
add eax, edi
mov dword [esp + 0x38], eax
fld dword [esp + 0x84]
call fcn.004f7d68
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
add eax, esi
push 0xfc
push ecx
mov ecx, dword [ebx + 0xfa4]
mov dword [esp + 0x50], eax
push eax
mov eax, dword [esp + 0x50]
push edx
push eax
push ecx
call fcn.004607a0
fld dword [esp + 0xa8]
call fcn.004f7d68
fld dword [esp + 0xa4]
add eax, edi
mov dword [esp + 0x44], eax
call fcn.004f7d68
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
push 0xfc
push edx
mov edx, dword [esp + 0x4c]
add eax, esi
push ecx
push edx
mov dword [esp + 0x6c], eax
push eax
mov eax, dword [ebx + 0xfa4]
push eax
call fcn.004607a0
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x5c]
add esp, 0x48
push 0xfc
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [ebx + 0xfa4]
push eax
push ecx
push edx
call fcn.004607a0
mov eax, dword [esp + 0x5c]
mov ebp, dword [ebp + 4]
mov ecx, dword [esp + 0x60]
add esp, 0x18
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
test ebp, ebp
mov eax, 1
jne 0x40ddc9
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x8c]
mov eax, dword [edx + 4]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x40dd31
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret