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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x110
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
movss xmm0, dword [ebp + 0xc]
xorps xmm1, xmm1
ucomiss xmm1, xmm0
jae 0x1005fd66
mov ebx, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov eax, ecx
xor eax, edi
mov edx, ebx
xor edx, esi
or edx, eax
je 0x1005fd66
ucomiss xmm0, dword [0x1006d630]
jae 0x1005fc46
cmp byte [ebp + 0x20], 0
je 0x1005fc4f
movss xmm2, dword [ebp + 0x24]
movd xmm1, edi
movd xmm3, esi
punpckldq xmm1, xmm3
movq qword [esp + 0xe8], xmm1
fild qword [esp + 0xe8]
fstp qword [esp + 0xe0]
movsd xmm4, qword [esp + 0xe0]
movapd xmm3, xmmword [0x1006d640]
andpd xmm3, xmm4
cvtss2sd xmm7, xmm2
ucomisd xmm7, xmm3
jbe 0x1005fd83
test esi, esi
js 0x1005fd72
movaps xmm3, xmm2
jmp 0x1005fd7c
mov eax, ecx
mov edx, ebx
jmp 0x1005fd6a
mov eax, dword [ebp + 8]
and eax, 0xfffffffe
cmp eax, 8
jne 0x1005fce4
movd xmm1, edi
movd xmm2, esi
punpckldq xmm1, xmm2
movq qword [esp + 0xf8], xmm1
fild qword [esp + 0xf8]
fstp dword [esp + 0x78]
sub ecx, edi
sbb ebx, esi
movd xmm1, ecx
movd xmm2, ebx
punpckldq xmm1, xmm2
movq qword [esp + 0xf0], xmm1
fild qword [esp + 0xf0]
fstp dword [esp + 0x74]
mulss xmm0, dword [esp + 0x74]
addss xmm0, dword [esp + 0x78]
movss dword [esp + 0x50], xmm0
fld dword [esp + 0x50]
fnstcw word [esp + 0x1a]
movzx eax, word [esp + 0x1a]
or eax, 0xc00
mov word [esp + 0x26], ax
fldcw word [esp + 0x26]
fistp qword [esp + 0x50]
fldcw word [esp + 0x1a]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
jmp 0x1005fd6a
xor eax, eax
movss xmm1, dword [0x1006d630]
ucomiss xmm1, xmm0
mov edx, 0
jbe 0x1005fd6a
sub ecx, edi
movd xmm1, ecx
sbb ebx, esi
movd xmm2, ebx
punpckldq xmm1, xmm2
setl al
movq qword [esp + 0x100], xmm1
fild qword [esp + 0x100]
fstp dword [esp + 0x7c]
mulss xmm0, dword [esp + 0x7c]
cvtss2sd xmm0, xmm0
movzx eax, al
addsd xmm0, qword [eax*8 + 0x1007c190]
movsd qword [esp + 0x58], xmm0
fld qword [esp + 0x58]
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
or eax, 0xc00
mov word [esp + 0x24], ax
fldcw word [esp + 0x24]
fistp qword [esp + 0x58]
fldcw word [esp + 0x18]
add edi, dword [esp + 0x58]
adc esi, dword [esp + 0x5c]
mov eax, edi
mov edx, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movaps xmm3, xmmword [0x1006d570]
xorps xmm3, xmm2
xorps xmm4, xmm4
cvtss2sd xmm4, xmm3
movd xmm3, ecx
movd xmm5, ebx
punpckldq xmm3, xmm5
movq qword [esp + 0xd8], xmm3
fild qword [esp + 0xd8]
fstp qword [esp + 0xd0]
movsd xmm5, qword [esp + 0xd0]
movapd xmm6, xmmword [0x1006d640]
andpd xmm6, xmm5
ucomisd xmm7, xmm6
jbe 0x1005fddb
movaps xmm6, xmmword [0x1006d570]
xorps xmm6, xmm2
movaps xmm5, xmm6
test ebx, ebx
js 0x1005fdd5
movaps xmm5, xmm2
cvtss2sd xmm5, xmm5
jmp 0x1005fde5
xorps xmm2, xmmword [0x1006d570]
movaps xmm6, xmm2
cmp ecx, edi
mov eax, ebx
sbb eax, esi
jl 0x1005fe02
movapd xmmword [esp + 0x80], xmm4
movss xmm2, dword [0x1006d630]
jl 0x1005fe19
jmp 0x1005fe23
movapd xmmword [esp + 0x80], xmm5
movapd xmm5, xmm4
movss xmm2, dword [0x1006d630]
jge 0x1005fe23
movaps xmm4, xmm2
subss xmm4, xmm0
movaps xmm0, xmm4
mov eax, ecx
or eax, ebx
je 0x1005fe33
movapd xmm4, xmm5
test esi, esi
jns 0x1005fe3e
jmp 0x1005fe42
xorps xmm4, xmm4
cvtss2sd xmm4, xmm6
test esi, esi
js 0x1005fe42
movapd xmm4, xmm5
mov eax, ecx
mul edi
mov eax, ecx
imul eax, esi
add eax, edx
mov edx, ebx
imul edx, edi
add edx, eax
js 0x1005feca
or ebx, esi
js 0x1006000a
cvtss2sd xmm0, xmm0
divsd xmm4, qword [esp + 0x80]
movsd qword [esp + 8], xmm0
movsd qword [esp], xmm4
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
fstp qword [esp + 0xc0]
movapd xmm0, xmmword [esp + 0x80]
mulsd xmm0, qword [esp + 0xc0]
movsd qword [esp + 0x40], xmm0
fld qword [esp + 0x40]
fnstcw word [esp + 0x1c]
movzx eax, word [esp + 0x1c]
or eax, 0xc00
mov word [esp + 0x28], ax
fldcw word [esp + 0x28]
fistp qword [esp + 0x40]
fldcw word [esp + 0x1c]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
jmp 0x1005fd6a
movsd qword [esp + 0x60], xmm4
movss xmm4, dword [ebp + 0x28]
movq qword [esp + 0xb8], xmm3
fild qword [esp + 0xb8]
fstp dword [esp + 0x70]
movss xmm5, dword [esp + 0x70]
cmp edi, ecx
mov eax, esi
sbb eax, ebx
cmovl ebx, esi
movd xmm3, ebx
cmovl ecx, edi
movd xmm6, ecx
punpckldq xmm6, xmm3
movq qword [esp + 0xb0], xmm6
fild qword [esp + 0xb0]
fstp dword [esp + 0x6c]
movss xmm3, dword [esp + 0x6c]
xorps xmm3, xmmword [0x1006d570]
movq qword [esp + 0xa8], xmm1
fild qword [esp + 0xa8]
fstp dword [esp + 0x68]
subss xmm5, dword [esp + 0x68]
andps xmm5, xmmword [0x1006d620]
divss xmm3, xmm5
movaps xmm1, xmm3
subss xmm1, xmm4
addss xmm4, xmm3
ucomiss xmm0, xmm1
jb 0x1005ff6d
xor eax, eax
ucomiss xmm4, xmm0
mov edx, 0
jae 0x1005fd6a
ucomiss xmm3, xmm0
movsd qword [esp + 0x90], xmm7
jbe 0x10060084
divss xmm0, xmm1
subss xmm2, xmm0
xorps xmm0, xmm0
cvtss2sd xmm0, xmm2
movapd xmm1, xmmword [esp + 0x80]
xorpd xmm1, xmmword [0x10072830]
divsd xmm1, xmm7
movsd qword [esp + 8], xmm0
movsd qword [esp], xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
fstp qword [esp + 0x98]
movsd xmm0, qword [esp + 0x98]
xorpd xmm0, xmmword [0x10072830]
mulsd xmm0, qword [esp + 0x90]
movsd qword [esp + 0x30], xmm0
fld qword [esp + 0x30]
fnstcw word [esp + 0x22]
movzx eax, word [esp + 0x22]
or eax, 0xc00
mov word [esp + 0x2e], ax
fldcw word [esp + 0x2e]
fistp qword [esp + 0x30]
fldcw word [esp + 0x22]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
jmp 0x1005fd6a
subss xmm2, xmm0
xorps xmm0, xmm0
cvtss2sd xmm0, xmm2
movapd xmm1, xmmword [esp + 0x80]
divsd xmm1, xmm4
movsd qword [esp], xmm1
movsd qword [esp + 8], xmm0
movsd qword [esp + 0x60], xmm4
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
fstp qword [esp + 0xc8]
movsd xmm0, qword [esp + 0x60]
mulsd xmm0, qword [esp + 0xc8]
movsd qword [esp + 0x48], xmm0
fld qword [esp + 0x48]
fnstcw word [esp + 0x1e]
movzx eax, word [esp + 0x1e]
or eax, 0xc00
mov word [esp + 0x2a], ax
fldcw word [esp + 0x2a]
fistp qword [esp + 0x48]
fldcw word [esp + 0x1e]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
jmp 0x1005fd6a
subss xmm0, xmm4
subss xmm2, xmm4
divss xmm0, xmm2
cvtss2sd xmm0, xmm0
movsd xmm1, qword [esp + 0x60]
divsd xmm1, xmm7
movsd qword [esp], xmm1
movsd qword [esp + 8], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
fstp qword [esp + 0xa0]
movsd xmm0, qword [esp + 0x90]
mulsd xmm0, qword [esp + 0xa0]
movsd qword [esp + 0x38], xmm0
fld qword [esp + 0x38]
fnstcw word [esp + 0x20]
movzx eax, word [esp + 0x20]
or eax, 0xc00
mov word [esp + 0x2c], ax
fldcw word [esp + 0x2c]
fistp qword [esp + 0x38]
fldcw word [esp + 0x20]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
jmp 0x1005fd6a