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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xdc
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
add ecx, 0x50
lea eax, [esp + 0xa0]
mov dword [esp + 0x48], edi
call fcn.00434f90
mov ebx, dword [ebp + 8]
fld dword [ebx]
fld dword [esp + 0xa0]
fld st(0)
fmulp st(2)
fld dword [esp + 0xb0]
fld st(0)
fmul dword [ebx + 4]
faddp st(3)
fld dword [esp + 0xc0]
fld st(0)
fmul dword [ebx + 8]
faddp st(4)
fld dword [esp + 0xd0]
faddp st(4)
fxch st(3)
fstp dword [esp + 0x30]
fld dword [ebx]
fld dword [esp + 0xa4]
fld st(0)
fmulp st(2)
fld dword [esp + 0xb4]
fld st(0)
fmul dword [ebx + 4]
faddp st(3)
fld dword [esp + 0xc4]
fmul dword [ebx + 8]
faddp st(3)
fld dword [esp + 0xd4]
faddp st(3)
fxch st(2)
fstp dword [esp + 0x34]
fld dword [esp + 0xb8]
fmul dword [ebx + 4]
fld dword [ebx]
fmul dword [esp + 0xa8]
faddp st(1)
fld dword [esp + 0xc8]
fmul dword [ebx + 8]
faddp st(1)
fadd dword [esp + 0xd8]
fstp dword [esp + 0x38]
fld dword [ebx + 0xc]
fmulp st(4)
fld dword [ebx + 0x10]
fmulp st(3)
fxch st(3)
faddp st(2)
fld dword [ebx + 0x14]
fmulp st(4)
fxch st(1)
faddp st(3)
fxch st(2)
fstp dword [esp + 0x3c]
fmul dword [ebx + 0xc]
fld dword [ebx + 0x10]
fmulp st(2)
faddp st(1)
fld dword [ebx + 0x14]
fmul dword [esp + 0xc4]
faddp st(1)
fstp dword [esp + 0x40]
fld dword [esp + 0xb8]
fmul dword [ebx + 0x10]
fld dword [ebx + 0xc]
fmul dword [esp + 0xa8]
faddp st(1)
fld dword [ebx + 0x14]
fmul dword [esp + 0xc8]
faddp st(1)
fstp dword [esp + 0x44]
fld dword [edi + 0x24]
fsub dword [esp + 0x30]
push ecx
fstp dword [esp + 0x28]
fld dword [edi + 0x28]
fsub dword [esp + 0x38]
fstp dword [esp + 0x2c]
fld dword [edi + 0x2c]
fsub dword [esp + 0x3c]
fstp dword [esp + 0x30]
fld dword [esp + 0x28]
fld dword [esp + 0x2c]
fld dword [esp + 0x30]
fld st(1)
fmulp st(2)
fld st(2)
fmulp st(3)
fxch st(1)
faddp st(2)
fmul st(0), st(0)
faddp st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp]
call fcn.004223d0
fstp dword [esp + 0x14]
add esp, 4
fld dword [esp + 0x24]
fmul dword [esp + 0x3c]
fld dword [esp + 0x28]
fmul dword [esp + 0x40]
faddp st(1)
fld dword [esp + 0x2c]
fmul dword [esp + 0x44]
faddp st(1)
fstp dword [esp + 0x1c]
fld dword [edi + 0x30]
fld dword [esp + 0x10]
fld dword [esp + 0x1c]
fld st(2)
fmulp st(3)
fld st(1)
fmulp st(2)
fmul st(0), st(0)
fsubp st(1)
fsubp st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fcomp dword [0x4d0a10]
fnstsw ax
test ah, 0x41
je 0x49c74f
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
lea esi, [edi + 0x38]
mov ecx, esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x20], eax
call fcn.00417c10
test eax, eax
jbe 0x49cb62
mov dword [esp + 0x50], 0
lea eax, [esp + 0xe4]
push eax
mov ecx, esi
call fcn.0041a340
mov ecx, dword [eax]
add ecx, dword [esp + 0x50]
mov dword [esp + 0x54], ecx
lea ecx, [esp + 0x54]
call fcn.004191c0
fld dword [ebx + 0x18]
mov ecx, dword [eax]
fstp dword [esp + 0x18]
sub ecx, 0
je 0x49c952
sub ecx, 1
jne 0x49cb41
fld dword [0x4d0ae4]
fst dword [esp + 0x88]
fst dword [esp + 0x8c]
fstp dword [esp + 0x90]
fld dword [0x4d0ae0]
fst dword [esp + 0x94]
fst dword [esp + 0x98]
fstp dword [esp + 0x9c]
fld dword [eax + 0x44]
fld dword [esp + 0x30]
fld st(0)
fmulp st(2)
fld dword [eax + 0x54]
fld dword [esp + 0x34]
fld st(0)
fmulp st(2)
fxch st(3)
faddp st(1)
fld dword [esp + 0x38]
fld st(0)
fmul dword [eax + 0x64]
faddp st(2)
fld dword [eax + 0x74]
faddp st(2)
fxch st(1)
fstp dword [esp + 0x70]
fld st(2)
fmul dword [eax + 0x58]
fld dword [eax + 0x48]
fmul st(3)
faddp st(1)
fld st(1)
fmul dword [eax + 0x68]
faddp st(1)
fadd dword [eax + 0x78]
fstp dword [esp + 0x74]
fld dword [eax + 0x5c]
fmulp st(3)
fld dword [eax + 0x4c]
fmulp st(2)
fxch st(2)
faddp st(1)
fld dword [eax + 0x6c]
fmulp st(2)
faddp st(1)
fadd dword [eax + 0x7c]
fstp dword [esp + 0x78]
fld dword [eax + 0x44]
fld dword [esp + 0x3c]
fld st(0)
fmulp st(2)
fld dword [eax + 0x54]
fld dword [esp + 0x40]
fld st(0)
fmulp st(2)
fxch st(3)
faddp st(1)
fld dword [esp + 0x44]
fld st(0)
fmul dword [eax + 0x64]
faddp st(2)
fxch st(1)
fstp dword [esp + 0x64]
fld st(2)
fmul dword [eax + 0x58]
fld dword [eax + 0x48]
fmul st(3)
faddp st(1)
fld st(1)
fmul dword [eax + 0x68]
faddp st(1)
fstp dword [esp + 0x68]
fld dword [eax + 0x5c]
fmulp st(3)
fld dword [eax + 0x4c]
fmulp st(2)
fxch st(2)
faddp st(1)
fld dword [eax + 0x6c]
fmulp st(2)
faddp st(1)
lea edi, [esp + 0x7c]
fstp dword [esp + 0x6c]
lea edx, [esp + 0x64]
lea esi, [esp + 0x70]
lea ecx, [esp + 0x88]
call fcn.00437690
cmp eax, 2
je 0x49c8d7
test byte [ebx + 0x1c], 1
jne 0x49cb3d
cmp eax, 1
jne 0x49cb3d
fld dword [esp + 0x7c]
fsub dword [esp + 0x30]
fld dword [esp + 0x80]
fsub dword [esp + 0x34]
fld dword [esp + 0x84]
fsub dword [esp + 0x38]
fld st(1)
fmulp st(2)
fld st(2)
fmulp st(3)
fxch st(1)
faddp st(2)
fmul st(0), st(0)
faddp st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x18]
fld dword [esp + 0x10]
fld st(1)
fmulp st(2)
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x49cb3b
mov edx, dword [ebx + 0x1c]
and edx, 4
push edx
sub esp, 8
fstp dword [esp]
mov dword [esp + 0x58], 1
call fcn.004223d0
fstp dword [esp + 4]
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 4]
add esp, 4
push ecx
jmp 0x49cb0b
fld dword [esp + 0x30]
fsub dword [eax + 4]
fstp dword [esp + 0x58]
fld dword [esp + 0x34]
fsub dword [eax + 8]
fstp dword [esp + 0x5c]
fld dword [esp + 0x38]
fsub dword [eax + 0xc]
fstp dword [esp + 0x60]
fld dword [esp + 0x18]
fld st(0)
fmul st(0), st(0)
fstp dword [esp + 0x1c]
fld dword [esp + 0x58]
fld st(0)
fmul dword [esp + 0x3c]
fld dword [esp + 0x5c]
fld st(0)
fmul dword [esp + 0x40]
faddp st(2)
fld dword [esp + 0x60]
fld st(0)
fmul dword [esp + 0x44]
faddp st(3)
fxch st(2)
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fmul st(4)
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fld st(0)
fld dword [eax + 0x10]
fld st(1)
fmulp st(2)
fld st(3)
fmulp st(4)
fld st(5)
fmulp st(6)
fxch st(3)
faddp st(5)
fld st(3)
fmulp st(4)
fxch st(4)
faddp st(3)
fxch st(2)
fstp dword [esp + 0x14]
fld st(0)
fmulp st(1)
fsubr dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld dword [esp + 0x1c]
fld st(0)
fmulp st(2)
fxch st(3)
fsubrp st(1)
fstp dword [esp + 0x14]
fldz
fld dword [esp + 0x14]
fcom st(1)
fnstsw ax
test ah, 5
jnp 0x49cb2b
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x49caa9
fstp st(4)
push ecx
fstp st(0)
fstp st(1)
fstp st(0)
fstp dword [esp]
call fcn.004223d0
fstp dword [esp + 0x18]
add esp, 4
fld dword [esp + 0x1c]
fld1
fdivrp st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x10]
fld st(0)
fchs
fld dword [esp + 0x14]
fld st(0)
fsubp st(2)
fld dword [esp + 0x18]
fld st(0)
fmulp st(3)
fld dword [esp + 0x1c]
fld st(0)
fmulp st(4)
fxch st(3)
fstp dword [esp + 0x24]
fxch st(1)
fsubrp st(3)
fld st(0)
fmulp st(3)
fxch st(2)
fmulp st(1)
fstp dword [esp + 0x28]
fldz
fld dword [esp + 0x24]
fcom st(1)
fnstsw ax
test ah, 1
jne 0x49ca85
fstp st(1)
jmp 0x49caca
fstp st(0)
fld dword [esp + 0x28]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 1
jne 0x49cb31
fstp dword [esp + 0x24]
mov ecx, 1
fld dword [esp + 0x24]
jmp 0x49cacf
fstp st(0)
fxch st(1)
fchs
fdivrp st(2)
fld st(2)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 1
jne 0x49cb31
mov ecx, 2
fcom st(1)
fnstsw ax
test ah, 5
jp 0x49cb31
cmp ecx, 2
fstp st(1)
fstp dword [esp + 0x18]
mov eax, ecx
fld dword [esp + 0x18]
je 0x49caf4
test byte [ebx + 0x1c], 1
jne 0x49cb37
cmp eax, 1
jne 0x49cb37
mov edx, dword [ebx + 0x1c]
mov eax, dword [edi + 4]
and edx, 4
push edx
push ecx
fstp dword [esp]
mov dword [esp + 0x54], 1
push eax
mov edi, dword [esp + 0x2c]
mov esi, dword [ebp + 0xc]
call fcn.00437060
test byte [ebx + 0x1c], 2
je 0x49cb3d
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
fstp st(0)
fstp st(0)
fstp st(1)
fstp st(0)
xor eax, eax
jmp 0x49cae9
fstp st(0)
jmp 0x49cb41
fstp st(0)
mov edi, dword [esp + 0x48]
add dword [esp + 0x20], 1
add dword [esp + 0x50], 0x84
lea esi, [edi + 0x38]
mov ecx, esi
call fcn.00417c10
cmp dword [esp + 0x20], eax
jb 0x49c773
mov eax, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8