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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, dword [esi + 0x24]
mov eax, ecx
and al, 0xc0
cmp al, 0x80
jne 0x10047f89
mov ecx, esi
call fcn.1003d040
movzx ecx, al
mov dword [esi + 0x24], ecx
test ecx, 8
je 0x100483fc
movss xmm1, dword [esi + 0x1c]
movss xmm0, dword [esi + 0x20]
subss xmm0, dword [0x10388804]
movss xmm2, dword [esi + 0x18]
cvtps2pd xmm1, xmm1
cvtps2pd xmm2, xmm2
movss dword [esp + 0x28], xmm0
movaps xmm0, xmm1
mulsd xmm0, xmm1
movaps xmm1, xmm2
mulsd xmm1, xmm2
addsd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
xorps xmm7, xmm7
ucomisd xmm0, xmm7
lahf
test ah, 0x44
jp 0x10048074
movss xmm0, dword [0x10386834]
xorps xmm2, xmm2
mov dword [esp + 0x88], 0
xorps xmm4, xmm4
mov dword [esp + 0x84], 0
xorps xmm5, xmm5
mov dword [esp + 0x8c], 0x3f800000
xorps xmm1, xmm1
movss dword [esp + 0x48], xmm2
movss dword [esp + 0xc], xmm2
movss dword [esp + 0x4c], xmm2
movss dword [esp + 0x50], xmm2
movss dword [esp + 0x18], xmm2
movss dword [esp + 0x54], xmm2
movss dword [esp + 0x2c], xmm2
movss dword [esp + 0x58], xmm2
movss dword [esp + 0x6c], xmm2
movss dword [esp + 0x38], xmm2
movss dword [esp + 0x70], xmm2
movss dword [esp + 0x20], xmm2
movss dword [esp + 0x74], xmm2
movss dword [esp + 0x3c], xmm2
movss dword [esp + 0x78], xmm2
jmp 0x1004819b
movsd xmm1, qword [0x103878b0]
divsd xmm1, xmm0
movss xmm0, dword [esi + 0x18]
cvtps2pd xmm0, xmm0
movaps xmm3, xmm1
movaps xmm2, xmm1
mulsd xmm3, xmm0
movss xmm0, dword [esi + 0x1c]
cvtps2pd xmm0, xmm0
cvtpd2ps xmm5, xmm3
mulsd xmm2, xmm0
movss dword [esp + 0xc], xmm5
mov eax, dword [esp + 0xc]
and eax, 0x7f800000
movss dword [esp + 0x48], xmm5
cmp eax, 0x7f800000
je 0x100483ec
cvtpd2ps xmm6, xmm2
movss dword [esp + 0x10], xmm6
movaps xmm4, xmm6
mov eax, dword [esp + 0x10]
and eax, 0x7f800000
movss dword [esp + 0xc], xmm6
cmp eax, 0x7f800000
je 0x100483ec
movss xmm0, dword [esp + 0x28]
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm1
cvtpd2ps xmm0, xmm0
movss dword [esp + 0x10], xmm0
mov eax, dword [esp + 0x10]
and eax, 0x7f800000
cmp eax, 0x7f800000
je 0x100483ec
ucomisd xmm3, xmm7
lahf
test ah, 0x44
jp 0x1004812c
ucomisd xmm2, xmm7
lahf
test ah, 0x44
jnp 0x100483ec
movss dword [esp + 0x84], xmm5
movaps xmm1, xmm4
movss dword [esp + 0x88], xmm6
movaps xmm5, xmm4
movss dword [esp + 0x8c], xmm0
movss dword [esp + 0x4c], xmm4
movss dword [esp + 0x50], xmm4
movss dword [esp + 0x18], xmm4
movss dword [esp + 0x54], xmm4
movss dword [esp + 0x2c], xmm4
movss dword [esp + 0x58], xmm4
movss dword [esp + 0x6c], xmm4
movss dword [esp + 0x38], xmm4
movss dword [esp + 0x70], xmm4
movss dword [esp + 0x20], xmm4
movss dword [esp + 0x74], xmm4
movss dword [esp + 0x3c], xmm4
movss dword [esp + 0x78], xmm4
mov edi, dword [ebp + 8]
movss dword [esp + 0x10], xmm0
movss dword [esp + 0x44], xmm0
movss dword [esp + 0x28], xmm0
mov esi, dword [edi]
movss dword [esp + 0x24], xmm0
movss dword [esp + 0x80], xmm0
movss dword [esp + 0x40], xmm0
cmp byte [esi + 0x54], 0
movss dword [esp + 0x7c], xmm0
movss dword [esp + 0x14], xmm0
movss dword [esp + 0x68], xmm0
movss dword [esp + 0x34], xmm0
movss dword [esp + 0x64], xmm0
movss dword [esp + 0x1c], xmm0
movss dword [esp + 0x60], xmm0
movss dword [esp + 0x30], xmm0
movss dword [esp + 0x5c], xmm0
je 0x100482c7
push dword [esi + 0x1c]
lea ecx, [esi + 4]
push dword [esi + 0x14]
call fcn.1003b710
movss xmm2, dword [esp + 0x70]
movss xmm1, dword [esp + 0x60]
movss xmm0, dword [esp + 0x54]
movss xmm4, dword [esp + 0x4c]
movss xmm5, dword [esp + 0x50]
movss dword [esp + 0x38], xmm2
movss xmm2, dword [esp + 0x74]
movss dword [esp + 0x20], xmm2
movss xmm2, dword [esp + 0x78]
movss dword [esp + 0x3c], xmm2
movss xmm2, dword [esp + 0x7c]
movss dword [esp + 0x14], xmm2
movss xmm2, dword [esp + 0x80]
movss dword [esp + 0x30], xmm1
movss xmm1, dword [esp + 0x64]
movss dword [esp + 0x40], xmm2
movss xmm2, dword [esp + 0x28]
movss dword [esp + 0x18], xmm0
movss xmm0, dword [esp + 0x58]
movss dword [esp + 0x1c], xmm1
movss xmm1, dword [esp + 0x68]
movss dword [esp + 0x24], xmm2
movss xmm2, dword [esp + 0x10]
movss dword [esp + 0x2c], xmm0
movss xmm0, dword [esp + 0x5c]
movss dword [esp + 0x34], xmm1
movss xmm1, dword [esp + 0x6c]
mov byte [esi + 0x55], al
mov byte [esi + 0x54], 0
movss dword [esp + 0x44], xmm2
movss xmm6, dword [esp + 0x48]
xorps xmm2, xmm2
comiss xmm6, xmm2
jb 0x100482e1
movss xmm3, dword [esi + 4]
movss xmm7, dword [esi + 0xc]
jmp 0x10048336
movss xmm0, dword [esp + 0x2c]
movaps xmm4, xmm5
movss xmm5, dword [esp + 0x3c]
movss xmm1, dword [esp + 0x34]
movss xmm3, dword [esi + 0xc]
movss xmm7, dword [esi + 4]
movss dword [esp + 0x20], xmm5
movss xmm5, dword [esp + 0x40]
movss dword [esp + 0x14], xmm5
movss xmm5, dword [esp + 0x44]
movss dword [esp + 0x18], xmm0
movss xmm0, dword [esp + 0x30]
movss dword [esp + 0x1c], xmm1
movss xmm1, dword [esp + 0x38]
movss dword [esp + 0x24], xmm5
movss xmm5, dword [esp + 0xc]
comiss xmm5, xmm2
jb 0x10048359
movss xmm6, dword [esi + 0x10]
movss xmm5, dword [esi + 8]
movss dword [esp + 0xc], xmm6
movss xmm6, dword [esp + 0x48]
jmp 0x1004838a
movss xmm0, dword [esi + 8]
movss xmm2, dword [esp + 0x24]
movss xmm5, dword [esi + 0x10]
movss xmm4, dword [esp + 0x18]
movss xmm1, dword [esp + 0x20]
movss dword [esp + 0xc], xmm0
movss xmm0, dword [esp + 0x1c]
movss dword [esp + 0x14], xmm2
xorps xmm2, xmm2
mulss xmm1, dword [esp + 0xc]
mulss xmm3, xmm6
mulss xmm5, xmm4
mulss xmm7, xmm6
addss xmm3, xmm5
addss xmm1, xmm7
addss xmm3, xmm0
addss xmm1, dword [esp + 0x14]
mulss xmm1, xmm3
comiss xmm1, xmm2
jbe 0x100483c1
xor eax, eax
comiss xmm2, xmm3
setbe al
jmp 0x100483c6
mov eax, 2
sub eax, 1
je 0x100483fc
sub eax, 1
jne 0x100483ec
push dword [ebp + 0x10]
lea eax, [esp + 0x88]
push eax
push edi
call fcn.1004aa60
add esp, 0xc
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
call fcn.1004cfc0
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret