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

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x6c
mov eax, dword [ecx + 0x78]
mov dword [esp], eax
call fcn.0047e4e0
lea eax, [ebx + 0xac]
mov dword [esp + 8], eax
lea eax, [ebx + 0xa8]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x78]
mov dword [esp], eax
call fcn.00486520
lea eax, [ebx + 0x34]
mov dword [esp + 8], eax
lea eax, [ebx + 0x30]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x78]
mov dword [esp], eax
call fcn.004862f0
fld dword [ebx + 0xb0]
fild dword [ebx + 0x30]
mov dword [esp + 4], 0
fnstcw word [esp + 0x3e]
mov dword [esp], 0
fdiv st(1)
movzx eax, word [esp + 0x3e]
or ah, 0xc
mov word [esp + 0x3c], ax
fldcw word [esp + 0x3c]
fistp dword [esp + 0x2c]
fldcw word [esp + 0x3e]
fild dword [ebx + 0x34]
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x30], eax
fdiv st(1)
fldcw word [esp + 0x3c]
fistp dword [esp + 0x20]
fldcw word [esp + 0x3e]
fild dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x34], eax
fmul st(1)
fldcw word [esp + 0x3c]
fistp dword [esp + 0x2c]
fldcw word [esp + 0x3e]
fild dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0xa8], eax
fmulp st(1)
mov dword [esp + 8], eax
fldcw word [esp + 0x3c]
fistp dword [esp + 0x20]
fldcw word [esp + 0x3e]
mov edx, dword [esp + 0x20]
mov dword [ebx + 0xac], edx
mov dword [esp + 0xc], edx
call dword [0x655284]
sub esp, 0x10
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [0x6558d4]
fld dword [ebx + 0xb0]
mov eax, dword [ebx + 0x7c]
sub esp, 8
mov dword [esp], eax
fstp dword [esp + 0xc]
fild dword [ebx + 0x34]
fstp dword [esp + 8]
fild dword [ebx + 0x30]
fstp dword [esp + 4]
call fcn.00421630
mov edx, dword [ebx + 0x7c]
mov eax, dword [ebx]
mov ecx, ebx
mov dword [esp], edx
call dword [eax + 0x3c]
sub esp, 4
call fcn.00482670
fld qword [ebx + 0xd0]
fsubp st(1)
fld dword [0x5a3fb4]
fxch st(1)
fcomi st(1)
fstp st(1)
ja 0x40cee0
fstp st(0)
mov eax, dword [ebx + 0x7c]
jmp 0x40ceca
fstp st(0)
jmp 0x40ceca
fstp st(0)
mov dword [esp], eax
call fcn.00420a10
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebx + 0xbc]
mov ecx, ebx
fstp qword [esp + 0x20]
mov dword [esp], eax
call fcn.00413b90
mov esi, eax
sub esp, 4
mov eax, dword [ebx + 0x7c]
test esi, esi
fld qword [esp + 0x20]
je 0x40cec0
mov edx, dword [esi + 0x54]
test edx, edx
je 0x40cec8
mov dword [esp], eax
mov dword [esp + 4], 0x5a3ef7
fstp qword [esp + 0x30]
call fcn.00424600
mov eax, dword [ebx + 0x7c]
mov dword [esp + 4], 0x41700000
mov dword [esp], eax
call fcn.00424540
mov eax, dword [ebx + 0x7c]
mov dword [esp + 4], 9
mov dword [esp], eax
call fcn.004245c0
mov eax, dword [ebx + 0x7c]
mov dword [esp + 4], 0x3f8ccccd
mov dword [esp], eax
call fcn.004245a0
mov eax, dword [esi + 0x34]
lea ecx, [esp + 0x50]
lea ebp, [eax + 0xa]
mov eax, dword [esi + 0x30]
mov dword [esp], esi
mov edi, eax
shr edi, 0x1f
add edi, eax
call fcn.004cb020
sar edi, 1
sub esp, 4
add ebp, dword [esp + 0x54]
lea eax, [esp + 0x50]
add edi, dword [esp + 0x50]
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], ebp
fild dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x50]
mov dword [esp + 0x20], edi
fst dword [esp + 0x2c]
fild dword [esp + 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x7c]
fst dword [esp + 0x38]
fxch st(1)
mov dword [esp], eax
fstp dword [esp + 8]
fstp dword [esp + 4]
call fcn.00425d90
fstp st(0)
fld dword [esp + 0x58]
fsub dword [esp + 0x50]
fnstcw word [esp + 0x3e]
fmul dword [0x5a3fb4]
movzx eax, word [esp + 0x3e]
or ah, 0xc
mov word [esp + 0x3c], ax
fldcw word [esp + 0x3c]
fistp dword [esp + 0x20]
fldcw word [esp + 0x3e]
cmp dword [esp + 0x20], 0x4b
fld qword [esp + 0x30]
jg 0x40d258
fsub dword [0x5a3fb4]
fadd st(0)
fld1
fcompi st(1)
ja 0x40d240
fstp st(0)
fld dword [0x5a3fb8]
mov eax, dword [ebx + 0x7c]
fstp dword [esp + 4]
mov dword [esp], eax
call fcn.00421980
mov eax, dword [ebx + 0x7c]
mov dword [esp], eax
call fcn.00422a50
mov eax, dword [ebx + 0x7c]
mov dword [esp + 4], 0
fldz
mov dword [esp + 8], 0
fst dword [esp + 0x40]
fst dword [esp + 0x44]
fstp dword [esp + 0x48]
mov dword [esp], eax
fld1
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0x3f800000
fstp dword [esp + 0x4c]
call fcn.00421ef0
fld dword [esp + 0x54]
fld dword [esp + 0x50]
mov dword [esp + 0x14], 0x40400000
fnstcw word [esp + 0x3e]
fld dword [esp + 0x5c]
movzx eax, word [esp + 0x3e]
fsub st(2)
or ah, 0xc
mov word [esp + 0x3c], ax
fldcw word [esp + 0x3c]
fistp dword [esp + 0x30]
fldcw word [esp + 0x3e]
mov eax, dword [esp + 0x30]
add eax, 8
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
fstp dword [esp + 0x10]
fld dword [esp + 0x58]
fsub st(1)
fldcw word [esp + 0x3c]
fistp dword [esp + 0x30]
fldcw word [esp + 0x3e]
mov eax, dword [esp + 0x30]
add eax, 8
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
mov eax, dword [ebx + 0x7c]
fstp dword [esp + 0xc]
fld dword [0x5a3fc8]
mov dword [esp], eax
fsub st(2), st(0)
fxch st(2)
fstp dword [esp + 8]
fsubrp st(1)
fild dword [esp + 0x20]
fsubp st(1)
fstp dword [esp + 4]
call fcn.00423bc0
fld dword [esp + 0x58]
fadd dword [esp + 0x50]
fnstcw word [esp + 0x3e]
fmul dword [0x5a3fb4]
movzx eax, word [esp + 0x3e]
or ah, 0xc
mov word [esp + 0x3c], ax
mov eax, dword [ebx + 0x7c]
fldcw word [esp + 0x3c]
fistp dword [esp + 0x30]
fldcw word [esp + 0x3e]
mov dword [esp], eax
fld dword [0x5a3fcc]
fsubr dword [esp + 0x54]
mov ebp, dword [esp + 0x30]
sub ebp, dword [esp + 0x20]
mov dword [esp + 0x30], ebp
fstp dword [esp + 8]
fild dword [esp + 0x30]
fstp dword [esp + 4]
call fcn.00422a70
lea eax, [ebp + 7]
sub ebp, 7
fld1
fld dword [esp + 0x54]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x7c]
faddp st(1)
mov dword [esp], eax
fstp dword [esp + 8]
fild dword [esp + 0x30]
fstp dword [esp + 4]
call fcn.00422ab0
mov eax, dword [ebx + 0x7c]
mov dword [esp + 0x30], ebp
fld1
fld dword [esp + 0x54]
mov dword [esp], eax
faddp st(1)
fstp dword [esp + 8]
fild dword [esp + 0x30]
fstp dword [esp + 4]
call fcn.00422ab0
mov eax, dword [ebx + 0x7c]
mov dword [esp], eax
call fcn.00423ef0
mov eax, dword [ebx + 0x7c]
mov dword [esp + 4], 0x3f800000
fld1
mov dword [esp + 8], 0x3f800000
fst dword [esp + 0x40]
mov dword [esp], eax
fst dword [esp + 0x44]
mov dword [esp + 0xc], 0x3f800000
mov dword [esp + 0x10], 0x3f800000
fst dword [esp + 0x48]
fstp dword [esp + 0x4c]
call fcn.00421ef0
mov eax, dword [ebx + 0x7c]
fldz
mov dword [esp], eax
fstp dword [esp + 4]
call fcn.00424560
fld dword [esp + 0x2c]
sub edi, dword [esp + 0x20]
mov dword [esp + 0x14], 0
mov eax, dword [esi + 0x50]
mov dword [esp + 0x20], edi
mov dword [esp + 0xc], 0x43160000
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x7c]
fstp dword [esp + 8]
fild dword [esp + 0x20]
mov dword [esp], eax
fstp dword [esp + 4]
call fcn.00425ff0
jmp 0x40ceb3
fmul qword [0x5a3fc0]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
jmp 0x40d01b
fstp st(0)
mov eax, dword [ebx + 0x7c]
mov dword [esp + 4], 0xa
mov dword [esp], eax
call fcn.004245c0
lea eax, [esp + 0x50]
fld dword [esp + 0x2c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x50]
mov dword [esp + 0xc], 0x43160000
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x7c]
fstp dword [esp + 8]
fld dword [esp + 0x38]
mov dword [esp], eax
fstp dword [esp + 4]
call fcn.00426200
fld dword [esp + 0x58]
fsub dword [esp + 0x50]
fnstcw word [esp + 0x3e]
fmul dword [0x5a3fb4]
movzx eax, word [esp + 0x3e]
or ah, 0xc
mov word [esp + 0x3c], ax
fldcw word [esp + 0x3c]
fistp dword [esp + 0x20]
fldcw word [esp + 0x3e]
fld qword [esp + 0x30]
jmp 0x40d001