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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x34
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [edi + 0x60], eax
fld dword [esi]
mov eax, dword [edi + 0x24]
mov eax, dword [eax + 0x14]
fsub dword [eax + 0x20]
mov edx, dword [eax + 0x34]
movzx ecx, bx
mov dword [esp + 0x18], ecx
fstp dword [esp + 0x20]
push edx
fld dword [eax + 0x24]
mov eax, dword [eax + 0x30]
push eax
fsubr dword [esi + 4]
fstp dword [esp + 0x2c]
fild dword [esp + 0x20]
fmul dword [0x784248]
fstp dword [esp + 0x1c]
call fcn.0043e740
movzx ecx, ax
mov dword [esp + 0x20], ecx
add esp, 8
fild dword [esp + 0x18]
fmul dword [0x784248]
fld dword [esp + 0x14]
fsub st(1)
fst dword [esp + 0x18]
fchs
fcom dword [0x784510]
fnstsw ax
test ah, 0x41
jne 0x5a3de2
fstp st(0)
fld dword [0x78450c]
fsub st(1)
fadd dword [esp + 0x14]
jmp 0x5a3dfb
fcomp dword [0x7a1d64]
fnstsw ax
test ah, 5
jp 0x5a3dff
fld dword [esp + 0x14]
fsub dword [0x78450c]
fsub st(1)
fstp dword [esp + 0x18]
fstp st(0)
fld dword [esp + 0x24]
fmul dword [esp + 0x24]
fld dword [esp + 0x20]
fmul dword [esp + 0x20]
faddp st(1)
fsqrt
fcomp dword [0x7a19c4]
fnstsw ax
test ah, 0x41
je 0x5a4048
fld dword [esp + 0x18]
fabs
fcomp dword [0x7a19c8]
fnstsw ax
test ah, 0x41
je 0x5a4048
push 0x3a83126f
lea ebx, [edi + 0x70]
push esi
push ebx
call fcn.0043d200
add esp, 0xc
test eax, eax
je 0x5a3e68
fld dword [edi + 0x90]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 0x44
jnp 0x5a40a8
cmp dword [ebp + 0x10], 3
mov edx, dword [esp + 0x14]
mov byte [edi + 0x94], 1
mov dword [edi + 0x90], edx
jle 0x5a3ec0
mov eax, dword [0x7a19e0]
fld dword [0x784250]
fsub dword [0x7a19e0]
push eax
push esi
push ecx
lea ecx, [esp + 0x2c]
fstp dword [esp]
push ecx
lea ecx, [edi + 0x80]
call fcn.00440fc0
push eax
lea edx, [esp + 0x3c]
push edx
call fcn.0059e2a0
fld dword [eax + 4]
fld dword [eax + 8]
mov eax, dword [eax]
add esp, 0x10
mov dword [ebx], eax
jmp 0x5a3eca
fld dword [esi + 4]
mov ecx, dword [esi]
fld dword [esi + 8]
mov dword [ebx], ecx
fxch st(1)
fstp dword [ebx + 4]
fstp dword [ebx + 8]
mov edx, dword [esi]
fld dword [esi + 4]
fld dword [esi + 8]
mov dword [edi + 0x80], edx
fxch st(1)
fstp dword [edi + 0x84]
fstp dword [edi + 0x88]
mov eax, dword [edi + 0x24]
movzx ecx, word [eax + 0x130]
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fmul dword [0x784248]
fcom dword [0x784510]
fnstsw ax
test ah, 1
jne 0x5a3f19
fsub dword [0x78450c]
fld dword [0x865154]
fmul dword [0x7a19d0]
fld st(0)
fadd st(2)
fstp dword [esp + 0x1c]
mov ebx, dword [esp + 0x1c]
fxch st(1)
fsub st(1)
push ebx
fstp dword [esp + 0x18]
mov edx, dword [esp + 0x18]
fstp st(0)
push edx
fld dword [esp + 0x20]
push ecx
fmul dword [0x7a19cc]
fstp dword [esp]
call fcn.00401090
mov ecx, dword [edi + 0x34]
fstp dword [esp + 0x24]
fld dword [ecx + 0x78]
lea esi, [ecx + 0x70]
fld dword [esi + 4]
add esp, 0xc
fld dword [esi]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fsqrt
fstp st(3)
fstp st(0)
fstp st(0)
fcomp dword [0x7a19d4]
fnstsw ax
test ah, 0x41
jne 0x5a3ffe
fld dword [ecx + 0x98]
lea eax, [ecx + 0x90]
fmul dword [esi + 8]
push eax
fld dword [eax + 4]
fmul dword [esi + 4]
faddp st(1)
fld dword [eax]
fmul dword [esi]
faddp st(1)
fstp dword [esp + 0x1c]
call fcn.004011f0
push esi
fstp dword [esp + 0x24]
call fcn.004011f0
fmul dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
add esp, 8
fdivr dword [esp + 0x18]
push ebx
push eax
fstp dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004010e0
movzx edx, ax
mov dword [esp + 0x28], edx
fild dword [esp + 0x28]
fmul dword [0x784248]
fstp dword [esp]
call fcn.00401090
fstp dword [esp + 0x24]
add esp, 0xc
mov eax, dword [esp + 0x18]
push 0x42340000
push 0xc2340000
push eax
call fcn.00401090
fmul dword [0x784238]
add esp, 0xc
call fcn.0075bc00
mov ecx, eax
mov eax, 0xb60b60b7
imul ecx
mov eax, dword [edi + 0x24]
add edx, ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov word [eax + 0x130], dx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [edi + 0x60]
mov edi, dword [edi + 0x34]
push 0
push ebx
push 0
mov dword [esp + 0x28], ecx
push esi
mov ecx, edi
call fcn.005fbae0
cmp dword [edi + 0x28], 5
jne 0x5a40a8
mov eax, dword [edi + 0x34]
mov edx, dword [esp + 0x14]
mov dword [eax + 0x90], edx
fld dword [esi + 4]
fld dword [esi + 8]
mov ecx, dword [esi]
mov dword [eax + 0x70], ecx
fxch st(1)
mov ecx, dword [esp + 0x1c]
fstp dword [eax + 0x74]
fstp dword [eax + 0x78]
mov edx, dword [esi]
fld dword [esi + 4]
fld dword [esi + 8]
mov dword [eax + 0x80], edx
fxch st(1)
fstp dword [eax + 0x84]
fstp dword [eax + 0x88]
mov dword [eax + 0x60], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc