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

Disassembly:
sub esp, 0x60
push ebx
push ebp
push esi
mov esi, dword [esp + 0x70]
push edi
push 0x64
mov ecx, esi
call fcn.0050fcd0
fstp dword [esp + 0x74]
push 0xc8
mov ecx, esi
call fcn.0050fcd0
fld dword [esp + 0x74]
fsub st(1)
fabs
fcomp dword [0x54531c]
fnstsw ax
test ah, 0x41
jne 0x50f97a
mov edi, 0xc8
cmp edi, 0x2710
jge 0x50f97a
fstp dword [esp + 0x74]
add edi, 0x64
mov ecx, esi
push edi
call fcn.0050fcd0
fld dword [esp + 0x74]
fsub st(1)
fabs
fcomp dword [0x54531c]
fnstsw ax
test ah, 0x41
je 0x50f94e
fmul dword [0x549208]
mov eax, dword [esp + 0x7c]
push 0
mov ecx, esi
mov dword [esp + 0x20], 0
fdivr dword [esp + 0x84]
mov dword [esp + 0x78], 0
fstp dword [esp + 0x28]
fld dword [esp + 0x84]
fadd dword [eax]
fstp dword [esp + 0x14]
call fcn.0050fc90
fstp dword [esp + 0x30]
lea edi, [esi + 0x10]
push 0
mov ecx, edi
call fcn.0050fc90
mov ebp, dword [esp + 0x74]
mov ebx, dword [esp + 0x30]
fstp dword [esp + 0x34]
fld dword [esp + 0x10]
fsub dword [esp + 0x80]
fst dword [esp + 0x10]
fcomp dword [esp + 0x80]
fnstsw ax
test ah, 1
je 0x50fa89
fld dword [esp + 0x74]
fadd dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ecx
mov ecx, esi
fstp dword [esp + 0x74]
mov ebp, dword [esp + 0x74]
push ebp
call fcn.0050fc90
fst dword [esp + 0x20]
fstp dword [esp + 0x38]
push ebp
mov ecx, edi
call fcn.0050fc90
fstp dword [esp + 0x3c]
fld dword [esp + 0x40]
fsub dword [esp + 0x20]
fld dword [esp + 0x44]
fsub dword [esp + 0x3c]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x34], edx
faddp st(1)
fsqrt
fstp st(2)
fstp st(0)
fadd dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x74]
fcomp dword [0x54531c]
fnstsw ax
test ah, 0x41
je 0x50fc51
fld dword [esp + 0x10]
fcomp dword [esp + 0x80]
fnstsw ax
test ah, 1
jne 0x50f9f2
fld dword [esp + 0x74]
fcomp dword [0x54531c]
fnstsw ax
test ah, 0x41
je 0x50fc51
fld dword [esp + 0x10]
fcomp dword [esp + 0x80]
fnstsw ax
test ah, 1
jne 0x50fc51
mov ecx, dword [0x582bc4]
mov eax, dword [0x582bc0]
mov edx, dword [0x582bc8]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x58], ecx
push ebp
mov ecx, esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov byte [esp + 0x6c], 0
mov dword [esp + 0x70], 0x3f800000
call fcn.0050fc90
fstp dword [esp + 0x20]
push ebp
mov ecx, edi
call fcn.0050fc90
fstp dword [esp + 0x4c]
fld dword [esp + 0x74]
fmul dword [edi]
mov eax, dword [esp + 0x20]
push ebp
mov ecx, esi
mov dword [esp + 0x4c], eax
fmul dword [0x546cd0]
fld dword [edi + 4]
fadd st(0), st(0)
mov dword [esp + 0x54], 0
faddp st(1)
fmul dword [esp + 0x78]
fadd dword [edi + 8]
fstp dword [esp + 0x24]
call fcn.0050fcb0
fld dword [esp + 0x20]
fchs
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x58]
fstp dword [esp + 0x54]
push ecx
lea eax, [esp + 0x58]
fstp dword [esp + 0x5c]
push edx
push eax
mov dword [esp + 0x68], 0
mov byte [esp + 0x74], 0
call fcn.004c7740
fld dword [esp + 0x80]
fmul dword [esi]
add esp, 0xc
mov ecx, edi
fmul dword [0x546cd0]
fld dword [esi + 4]
fadd st(0), st(0)
push ebp
faddp st(1)
fmul dword [esp + 0x78]
fadd dword [esi + 8]
fstp dword [esp + 0x1c]
call fcn.0050fcb0
fstp dword [esp + 0x14]
fld dword [esp + 0x74]
fmul dword [edi]
fmul dword [0x549204]
fld dword [edi + 4]
fadd st(0), st(0)
faddp st(1)
fmul dword [esp + 0x18]
fld dword [esp + 0x74]
fmul dword [esi]
fmul dword [0x549204]
fld dword [esi + 4]
fadd st(0), st(0)
faddp st(1)
fmul dword [esp + 0x14]
fsubp st(1)
fabs
fst dword [esp + 0x20]
fcomp dword [0x549200]
fnstsw ax
test ah, 1
je 0x50fbf2
fld qword [0x5491f8]
jmp 0x50fc13
fld dword [esp + 0x14]
fmul dword [esp + 0x14]
fld dword [esp + 0x18]
fmul dword [esp + 0x18]
faddp st(1)
fld qword [0x546c58]
call sub.msvcrt.dll__CIpow
fdiv dword [esp + 0x20]
fstp dword [esp + 0x60]
lea ecx, [esp + 0x48]
push ecx
push ecx
mov ecx, dword [esp + 0x80]
push esp
call fcn.00513c50
mov ecx, dword [esp + 0x80]
lea edx, [esp + 0x34]
push edx
call fcn.00512430
mov eax, dword [esp + 0x74]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
jmp 0x50f9d1
mov ecx, dword [esp + 0x78]
push 0x64
push 0x3f800000
mov edx, dword [ecx]
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, esi
mov eax, dword [edx + 4]
mov byte [eax + 0x28], 1
call fcn.0050fd80
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
fstp dword [edx]
pop ebp
pop ebx
add esp, 0x60
ret