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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
fldz
push ebx
push esi
mov esi, dword [ebp + 0xc]
fst dword [esi + 0x18]
push edi
fld1
mov dword [esp + 0x14], ecx
fstp dword [esi + 0x1c]
fcom dword [ecx + 0x60]
fnstsw ax
test ah, 1
jne 0x4060f6
mov eax, dword [ebp + 8]
fld dword [eax + 0x1a0]
fadd dword [eax + 0x28]
fld dword [eax + 0x3c]
fmul st(1)
fld dword [eax + 0x40]
fmul st(2)
fld dword [eax + 0x44]
fmulp st(3)
fld dword [eax + 0x10]
faddp st(2)
fxch st(1)
fstp dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
fadd dword [eax + 0x14]
fstp dword [esp + 0x24]
mov edx, dword [esp + 0x24]
fadd dword [eax + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
fstp dword [esp + 0x28]
mov ecx, dword [esp + 0x28]
mov dword [esi + 8], ecx
fld dword [eax + 0x3c]
fmul st(1)
fstp dword [esp + 0x20]
mov edx, dword [esp + 0x20]
fld dword [eax + 0x40]
fmul st(1)
fstp dword [esp + 0x24]
fmul dword [eax + 0x44]
mov eax, dword [esp + 0x24]
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], eax
fstp dword [esp + 0x28]
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x14], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
fstp st(0)
test eax, eax
mov ebx, dword [ebp + 8]
lea edi, [ebx + 0x3c]
jne 0x406165
fld dword [ebx + 0x1a0]
add ebx, 0x10
fadd dword [ebx + 0x18]
fst dword [esp + 0x10]
fld dword [edi]
fmul st(1)
fld dword [edi + 4]
fmul st(2)
fld dword [edi + 8]
fmulp st(3)
fld dword [ebx]
faddp st(2)
fxch st(1)
fstp dword [esp + 0x20]
mov edx, dword [esp + 0x20]
fadd dword [ebx + 4]
fstp dword [esp + 0x24]
mov eax, dword [esp + 0x24]
fadd dword [ebx + 8]
mov dword [esi], edx
mov dword [esi + 4], eax
fstp dword [esp + 0x28]
mov edx, dword [esp + 0x28]
mov dword [esi + 8], edx
fld dword [ecx + 0x60]
fst dword [esp + 0xc]
fmul dword [0x5ad750]
fld dword [edi]
fmul st(1)
jmp 0x406244
cmp eax, 1
jne 0x4061f1
fld dword [ebx + 0x2c]
add ebx, 0x10
fst dword [esp + 0x10]
fld st(0)
fmul dword [edi]
fld dword [edi + 4]
fmul st(2)
fld dword [edi + 8]
fmulp st(3)
fld dword [ebx]
faddp st(2)
fxch st(1)
fstp dword [esp + 0x20]
mov eax, dword [esp + 0x20]
fadd dword [ebx + 4]
fstp dword [esp + 0x24]
mov edx, dword [esp + 0x24]
fadd dword [ebx + 8]
mov dword [esi], eax
mov dword [esi + 4], edx
fstp dword [esp + 0x28]
mov eax, dword [esp + 0x28]
mov dword [esi + 8], eax
fld dword [ecx + 0x64]
fst dword [esp + 0xc]
fmul dword [0x5ad750]
fld dword [edi]
fmul st(1)
fstp dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
fld dword [edi + 4]
fmul st(1)
fstp dword [esp + 0x24]
mov edx, dword [esp + 0x24]
fmul dword [edi + 8]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
fstp dword [esp + 0x28]
mov eax, dword [esp + 0x28]
mov dword [esi + 0x14], eax
jmp 0x406270
fld dword [ebx + 0x28]
add ebx, 0x10
fst dword [esp + 0x10]
fld dword [edi]
fmul st(1)
fld dword [edi + 4]
fmul st(2)
fld dword [edi + 8]
fmulp st(3)
fxch st(1)
fadd dword [ebx]
fstp dword [esp + 0x20]
mov edx, dword [esp + 0x20]
fadd dword [ebx + 4]
fstp dword [esp + 0x24]
mov eax, dword [esp + 0x24]
fadd dword [ebx + 8]
mov dword [esi], edx
mov dword [esi + 4], eax
fstp dword [esp + 0x28]
mov edx, dword [esp + 0x28]
mov dword [esi + 8], edx
fld dword [ecx + 0x60]
fst dword [esp + 0xc]
fmul dword [0x5ad750]
fld st(0)
fmul dword [edi]
fstp dword [esp + 0x20]
mov eax, dword [esp + 0x20]
fld dword [edi + 4]
fmul st(1)
fstp dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
fmul dword [edi + 8]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ecx
fstp dword [esp + 0x28]
mov edx, dword [esp + 0x28]
mov dword [esi + 0x14], edx
lea ecx, [ecx]
fld dword [esi]
lea eax, [esp + 0x44]
fstp qword [esp + 0x44]
push eax
fld dword [esi + 4]
mov ecx, 0x8fc238
fstp qword [esp + 0x50]
mov dword [esp + 0x78], 0
fld dword [esi + 8]
fstp qword [esp + 0x58]
fld1
fstp qword [esp + 0x60]
fld qword [0x5ad748]
fstp qword [esp + 0x68]
call fcn.0044c720
test eax, eax
je 0x4064d4
fld qword [esp + 0x6c]
fstp dword [esp + 0x1c]
jmp 0x4062c0
fld dword [esi]
lea ecx, [esp + 0x44]
fsub dword [esi + 0xc]
push ecx
mov ecx, 0x8fc238
mov dword [esp + 0x78], eax
fstp qword [esp + 0x48]
fld dword [esi + 4]
fstp qword [esp + 0x50]
fld dword [esi + 8]
fsub dword [esi + 0x14]
fstp qword [esp + 0x58]
fld1
fstp qword [esp + 0x60]
fld qword [0x5ad748]
fstp qword [esp + 0x68]
call fcn.0044c720
test eax, eax
jne 0x4063a8
fld dword [esp + 0xc]
fsub dword [0x5adc38]
fst dword [esp + 0xc]
fld dword [esp + 0x10]
fadd dword [0x5adc34]
fst dword [esp + 0x10]
fld dword [edi]
fmul st(1)
fld dword [edi + 4]
fmul st(2)
fld dword [edi + 8]
fmulp st(3)
fxch st(1)
fadd dword [ebx]
fstp dword [esp + 0x20]
mov edx, dword [esp + 0x20]
fadd dword [ebx + 4]
fstp dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
fadd dword [ebx + 8]
mov dword [esi], edx
mov dword [esi + 4], ecx
fstp dword [esp + 0x28]
mov edx, dword [esp + 0x28]
fld dword [0x5ad750]
mov dword [esi + 8], edx
fmul st(1)
fld st(0)
fmul dword [edi]
fstp dword [esp + 0x30]
mov ecx, dword [esp + 0x30]
fld dword [edi + 4]
fmul st(1)
fstp dword [esp + 0x34]
mov edx, dword [esp + 0x34]
fmul dword [edi + 8]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
mov edx, dword [esp + 0x14]
fstp dword [esp + 0x38]
mov ecx, dword [esp + 0x38]
mov dword [esi + 0x14], ecx
fdiv dword [edx + 0x60]
fld1
fld st(0)
fsubrp st(2)
fsub dword [esi + 0x1c]
fsubp st(1)
fstp dword [esi + 0x18]
jmp 0x4062c0
fld qword [esp + 0x6c]
fstp dword [esp + 0x18]
fld dword [esi]
mov dword [esp + 0x74], eax
fadd dword [esi + 0xc]
lea eax, [esp + 0x44]
push eax
mov ecx, 0x8fc238
fstp qword [esp + 0x48]
fld dword [esi + 4]
fstp qword [esp + 0x50]
fld dword [esi + 8]
fadd dword [esi + 0x14]
fstp qword [esp + 0x58]
fld1
fstp qword [esp + 0x60]
fld qword [0x5ad748]
fstp qword [esp + 0x68]
call fcn.0044c720
test eax, eax
jne 0x406492
fld dword [esp + 0xc]
fsub dword [0x5adc38]
fst dword [esp + 0xc]
fld dword [esp + 0x10]
fsub dword [0x5adc34]
fst dword [esp + 0x10]
fld dword [edi]
fmul st(1)
fld dword [edi + 4]
fmul st(2)
fld dword [edi + 8]
fmulp st(3)
fld dword [ebx]
faddp st(2)
fxch st(1)
fstp dword [esp + 0x30]
mov ecx, dword [esp + 0x30]
fadd dword [ebx + 4]
fstp dword [esp + 0x34]
mov edx, dword [esp + 0x34]
fadd dword [ebx + 8]
mov dword [esi], ecx
mov dword [esi + 4], edx
fstp dword [esp + 0x38]
mov ecx, dword [esp + 0x38]
fld dword [0x5ad750]
mov dword [esi + 8], ecx
fmul st(1)
fld dword [edi]
fmul st(1)
fstp dword [esp + 0x20]
mov edx, dword [esp + 0x20]
fld dword [edi + 4]
fmul st(1)
fstp dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
fmul dword [edi + 8]
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x14]
fstp dword [esp + 0x28]
mov edx, dword [esp + 0x28]
mov dword [esi + 0x14], edx
fdiv dword [ecx + 0x60]
fsub dword [esi + 0x18]
fstp dword [esi + 0x1c]
jmp 0x4063b0
fld qword [esp + 0x6c]
fld st(0)
fld dword [esp + 0x18]
fadd st(1), st(0)
fld dword [0x5ad750]
fmul st(2), st(0)
fld dword [esp + 0x1c]
fcom st(3)
fnstsw ax
test ah, 0x41
jne 0x4064b7
fstp st(3)
jmp 0x4064b9
fstp st(0)
mov edx, dword [esp + 0x14]
fld dword [edx + 0x44]
faddp st(3)
fxch st(2)
fadd dword [0x91ffe4]
fstp dword [esi + 4]
fsubp st(2)
fmulp st(1)
fstp dword [esi + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc