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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xd8
mov eax, dword [0x10049978]
push esi
mov esi, dword [0x10049974]
push edi
mov edi, dword [0x1004995c]
add edi, 0x1c40
mov dword [esp + 0x54], eax
mov dword [esp + 0x18], esi
cmp esi, eax
je 0x10005859
movss xmm1, dword [0x10045b5c]
lea eax, [esi + 0x1c]
movss xmm4, dword [0x10045b88]
movss xmm5, dword [0x10045c10]
movss xmm2, dword [0x10045b58]
mov dword [esp + 0x14], eax
nop dword [eax]
cmp byte [0x10049f8f], 0
movss xmm7, dword [eax + 0x18]
movss xmm6, dword [eax + 0x1c]
movss dword [esp + 0x38], xmm7
movss dword [esp + 0x1c], xmm6
je 0x10005414
cmp byte [0x10049f8e], 0
je 0x10005326
lea eax, [esp + 0x44]
movaps xmm2, xmm1
push eax
mov eax, dword [0x1004995c]
lea edx, [esp + 0x44]
lea ecx, [esp + 0x40]
movsd xmm0, qword [eax + 0x1958]
mulsd xmm0, qword [0x10045b98]
cvtpd2ps xmm0, xmm0
call fcn.100101b0
movss xmm0, dword [esp + 0x40]
lea eax, [esp + 0x94]
movss xmm2, dword [0x10045b58]
add esp, 4
movss xmm4, dword [0x10045b88]
movss xmm5, dword [0x10045c10]
movss xmm6, dword [esp + 0x1c]
movss xmm7, dword [esp + 0x38]
movss dword [esp + 0x90], xmm0
movss xmm0, dword [esp + 0x40]
movss dword [esp + 0x94], xmm0
movss xmm0, dword [esp + 0x44]
movss dword [esp + 0x98], xmm0
mov dword [esp + 0x9c], 0x3f800000
jmp 0x1000533c
movups xmm0, xmmword [0x10049394]
lea eax, [esp + 0xb0]
movups xmmword [esp + 0xb0], xmm0
movups xmm3, xmmword [eax]
xorps xmm0, xmm0
comiss xmm0, xmm3
movaps xmmword [esp + 0x20], xmm3
jbe 0x10005351
xorps xmm1, xmm1
jmp 0x10005358
movaps xmm1, xmm4
minss xmm1, xmm3
movss xmm3, dword [esp + 0x24]
comiss xmm0, xmm3
mulss xmm1, xmm5
addss xmm1, xmm2
cvttss2si edx, xmm1
jbe 0x10005374
xorps xmm1, xmm1
jmp 0x1000537b
movaps xmm1, xmm4
minss xmm1, xmm3
movss xmm3, dword [esp + 0x28]
mulss xmm1, xmm5
addss xmm1, xmm2
cvttss2si eax, xmm1
shl eax, 8
or edx, eax
comiss xmm0, xmm3
jbe 0x1000539c
xorps xmm1, xmm1
jmp 0x100053a3
movaps xmm1, xmm4
minss xmm1, xmm3
mulss xmm1, xmm5
addss xmm1, xmm2
cvttss2si eax, xmm1
movss xmm1, dword [esp + 0x2c]
shl eax, 0x10
or edx, eax
comiss xmm0, xmm1
ja 0x100053c6
movaps xmm0, xmm4
minss xmm0, xmm1
mov eax, dword [0x1004937c]
mov ecx, dword [0x10049380]
mulss xmm0, xmm5
mov dword [esp + 0x68], eax
push ecx
mov dword [esp], 0x3fc00000
addss xmm0, xmm2
mov dword [esp + 0x70], ecx
mov ecx, edi
movss dword [esp + 0x64], xmm7
movss dword [esp + 0x68], xmm6
cvttss2si eax, xmm0
shl eax, 0x18
or eax, edx
push eax
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x74]
push eax
call fcn.10028f50
mov eax, dword [esp + 0x14]
cmp byte [0x10049f90], 0
je 0x1000585f
mov esi, dword [0x10049974]
movsd xmm1, qword [0x10045bb8]
movss xmm0, dword [esi + 0x18]
subss xmm0, dword [eax - 4]
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_pow_precise
mov eax, dword [esp + 0x14]
movss xmm1, dword [esi + 0x1c]
movsd qword [esp + 0x20], xmm0
subss xmm1, dword [eax]
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x10045bb8]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_pow_precise
movsd xmm1, qword [esp + 0x20]
mov eax, dword [esp + 0x14]
addsd xmm1, xmm0
movsd qword [esp + 0x20], xmm1
movss xmm1, dword [esi + 0x20]
subss xmm1, dword [eax + 4]
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x10045bb8]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_pow_precise
addsd xmm0, qword [esp + 0x20]
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x100054a7
sqrtsd xmm0, xmm0
jmp 0x100054ac
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
cmp byte [0x10049f8e], 0
movss xmm7, dword [0x10045bfc]
cvtsd2ss xmm0, xmm0
movss xmm2, dword [0x10045b58]
divss xmm7, xmm0
mulss xmm7, dword [0x10045be0]
mulss xmm7, xmm2
movss dword [esp + 0x20], xmm7
je 0x1000556b
movss xmm1, dword [0x10045b5c]
lea eax, [esp + 0x50]
push eax
mov eax, dword [0x1004995c]
lea edx, [esp + 0x50]
lea ecx, [esp + 0x4c]
movaps xmm2, xmm1
movsd xmm0, qword [eax + 0x1958]
mulsd xmm0, qword [0x10045b98]
cvtpd2ps xmm0, xmm0
call fcn.100101b0
movss xmm0, dword [esp + 0x4c]
lea eax, [esp + 0xa4]
movss xmm2, dword [0x10045b58]
add esp, 4
movss xmm7, dword [esp + 0x20]
movss dword [esp + 0xa0], xmm0
movss xmm0, dword [esp + 0x4c]
movss dword [esp + 0xa4], xmm0
movss xmm0, dword [esp + 0x50]
movss dword [esp + 0xa8], xmm0
mov dword [esp + 0xac], 0x3f800000
jmp 0x10005581
movups xmm0, xmmword [0x10049384]
lea eax, [esp + 0xc0]
movups xmmword [esp + 0xc0], xmm0
movups xmm3, xmmword [eax]
movss xmm4, dword [0x10045b88]
xorps xmm1, xmm1
comiss xmm1, xmm3
movaps xmmword [esp + 0x20], xmm3
jbe 0x1000559e
xorps xmm0, xmm0
jmp 0x100055a5
movaps xmm0, xmm4
minss xmm0, xmm3
movss xmm5, dword [0x10045c10]
movss xmm3, dword [esp + 0x24]
comiss xmm1, xmm3
mulss xmm0, xmm5
addss xmm0, xmm2
cvttss2si ecx, xmm0
jbe 0x100055c9
xorps xmm0, xmm0
jmp 0x100055d0
movaps xmm0, xmm4
minss xmm0, xmm3
movss xmm3, dword [esp + 0x28]
mulss xmm0, xmm5
addss xmm0, xmm2
cvttss2si eax, xmm0
shl eax, 8
or ecx, eax
comiss xmm1, xmm3
jbe 0x100055f1
xorps xmm0, xmm0
jmp 0x100055f8
movaps xmm0, xmm4
minss xmm0, xmm3
movss xmm3, dword [esp + 0x2c]
mulss xmm0, xmm5
addss xmm0, xmm2
cvttss2si eax, xmm0
shl eax, 0x10
or ecx, eax
comiss xmm1, xmm3
jbe 0x10005619
xorps xmm0, xmm0
jmp 0x10005620
movaps xmm0, xmm4
minss xmm0, xmm3
movss xmm6, dword [esp + 0x1c]
mulss xmm0, xmm5
movaps xmm4, xmm6
movss xmm5, dword [esp + 0x38]
addss xmm4, xmm7
addss xmm0, xmm2
cvttss2si esi, xmm0
movaps xmm0, xmm7
mulss xmm0, xmm2
shl esi, 0x18
or esi, ecx
movaps xmm3, xmm0
addss xmm3, xmm5
subss xmm5, xmm0
movaps xmm0, xmm6
subss xmm0, xmm7
test esi, 0xff000000
je 0x1000571d
test byte [edi + 0x24], 1
addss xmm5, xmm2
addss xmm0, xmm2
mov ecx, edi
push 0
je 0x100056ac
subss xmm3, xmm2
movss dword [esp + 0x7c], xmm5
subss xmm4, xmm2
movss dword [esp + 0x80], xmm0
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x80]
movss dword [esp + 0x78], xmm3
movss dword [esp + 0x7c], xmm4
jmp 0x100056ef
subss xmm3, dword [0x10045b50]
subss xmm4, dword [0x10045b50]
lea eax, [esp + 0x84]
movss dword [esp + 0x8c], xmm5
push eax
movss dword [esp + 0x94], xmm0
lea eax, [esp + 0x90]
movss dword [esp + 0x88], xmm3
movss dword [esp + 0x8c], xmm4
push eax
xorps xmm3, xmm3
call fcn.10028c40
push ecx
mov dword [esp], 0x40000000
mov ecx, edi
push 1
push esi
push dword [edi + 0x58]
push dword [edi + 0x60]
call fcn.10027a40
movss xmm6, dword [esp + 0x1c]
mov dword [edi + 0x58], 0
mov esi, dword [esp + 0x18]
cmp byte [0x10049f8d], 0
mov edx, dword [esp + 0x14]
je 0x100057c2
cmp dword [edx - 8], 0x10
jb 0x1000573e
mov esi, dword [esp + 0x18]
mov esi, dword [esi]
subss xmm6, dword [0x10045bf0]
movss xmm0, dword [esp + 0x38]
mov ecx, esi
movss dword [esp + 0x58], xmm0
lea eax, [ecx + 1]
movss dword [esp + 0x5c], xmm6
mov dword [esp + 0x20], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005761
sub ecx, dword [esp + 0x20]
lea eax, [ecx + esi]
mov dword [esp + 0x20], eax
cmp esi, eax
je 0x100057c2
push dword [esp + 0x5c]
mov ecx, dword [edi + 0x48]
push dword [esp + 0x5c]
mov edx, dword [edi + 0x40]
mov eax, dword [edi + 0x28]
add edx, edx
push 0
push ecx
mov dword [esp], 0
push dword [esp + 0x30]
movups xmm0, xmmword [ecx + edx*8 - 0x10]
lea ecx, [esp + 0xe4]
movss xmm2, dword [eax + 0xc]
push esi
push ecx
mov ecx, dword [eax + 8]
push 0xffffffffffffffff
push edi
movups xmmword [esp + 0xf4], xmm0
call fcn.1002c510
mov edx, dword [esp + 0x14]
cmp byte [0x10049f80], 0
je 0x100057d5
mov edx, dword [edx + 0x14]
mov ecx, edi
call fcn.10005040
cmp byte [0x10049f8c], 0
je 0x10005819
mov ecx, dword [0x10049978]
mov eax, 0x88888889
mov esi, dword [0x10049974]
sub ecx, esi
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jbe 0x10005819
call fcn.10004e20
test eax, eax
je 0x10005819
cmp eax, dword [esi + 0x30]
je 0x10005819
mov ecx, eax
call fcn.10004b30
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
add esi, 0x3c
movss xmm2, dword [0x10045b58]
add eax, 0x3c
movss xmm4, dword [0x10045b88]
movss xmm5, dword [0x10045c10]
movss xmm1, dword [0x10045b5c]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], eax
cmp esi, dword [esp + 0x54]
jne 0x10005260
pop edi
pop esi
mov esp, ebp
pop ebp
ret
movss xmm6, dword [esp + 0x1c]
jmp 0x10005721