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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1ac
mov eax, dword [0x10041010]
xor eax, esp
mov dword [esp + 0x1a8], eax
mov ecx, dword [0x100692b8]
mov eax, dword [ebp + 8]
movss xmm0, dword [0x1003eadc]
push ebx
mov dword [esp + 0x10], eax
or ebx, 0xffffffff
mov eax, dword [ecx]
push esi
push edi
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], ebx
movss dword [esp + 0x10], xmm0
call dword [eax + 0xf4]
mov esi, eax
push 4
push esi
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10004fd3
test esi, esi
je 0x10004fd3
xor edi, edi
cmp dword [esi + 0x18c], edi
jle 0x10004fd3
nop dword [eax + eax]
mov eax, dword [esi + 0x184]
push 4
mov esi, dword [eax + edi*4]
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10004fc2
test esi, esi
je 0x10004fc2
mov ebx, dword [esi + 0x10]
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10004d7d
test ebx, ebx
je 0x10004d7d
mov eax, 1
jmp 0x10004d7f
xor eax, eax
test eax, eax
je 0x10004fbe
mov ecx, dword [0x100692ac]
lea edx, [esp + 0xa0]
push 1
push edx
push 8
mov eax, dword [ecx]
push dword [esi + 0x10]
call dword [eax + 0x40]
cmp dword [esi + 0x40], 0
jne 0x10004fbe
push 0x2c
lea eax, [esp + 0x78]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [0x100692d8]
lea ecx, [esp + 0x80]
xorps xmm0, xmm0
mov dword [esp + 0x4c], 0
movlpd qword [esp + 0x44], xmm0
add esp, 0xc
movlpd qword [esp + 0x50], xmm0
mov eax, dword [eax + 0x13c]
movlpd qword [esp + 0x58], xmm0
movlpd qword [esp + 0x60], xmm0
movlpd qword [esp + 0x68], xmm0
mov dword [esp + 0x70], 0
movq xmm0, qword [eax + 0x10]
movq qword [esp + 0x38], xmm0
mov eax, dword [eax + 0x18]
movq xmm0, qword [esp + 0xa0]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x4c], eax
mov eax, dword [0x100692e0]
push ecx
lea ecx, [esp + 0x3c]
movq qword [esp + 0x48], xmm0
push ecx
mov eax, dword [eax + 0x38]
call eax
add esp, 8
test al, al
jne 0x10004fbe
movq xmm0, qword [esp + 0xa0]
sub esp, 0xc
mov eax, dword [esp + 0xb4]
mov ecx, esp
sub esp, 0xc
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
mov ecx, esp
mov eax, dword [0x100692d8]
mov eax, dword [eax + 0x13c]
movq xmm0, qword [eax + 0x10]
mov eax, dword [eax + 0x18]
movq qword [ecx], xmm0
movd xmm0, dword [esp + 0x2c]
cvtdq2ps xmm0, xmm0
mov dword [ecx + 8], eax
call fcn.10003ee0
add esp, 0x18
test eax, eax
je 0x10004fbe
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x74]
movss xmm0, dword [esp + 0xa0]
movss dword [esp + 0x2c], xmm0
movss xmm0, dword [esp + 0xa4]
mov eax, dword [ecx]
movss dword [esp + 0x30], xmm0
movss xmm0, dword [esp + 0xa8]
push edx
push ecx
movss dword [esp + 0x3c], xmm0
call dword [eax + 0xc0]
mov ecx, dword [0x7b87f0]
lea eax, [ecx + 0x3f50]
push eax
lea eax, [ecx + 0x3f90]
push eax
lea eax, [ecx + 0x3fd0]
push eax
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.d3dx9_43.dll_D3DXVec3Project]
movss xmm0, dword [0x1003ea18]
comiss xmm0, dword [esp + 0x28]
jbe 0x10004fbe
mov eax, dword [0x10069434]
xorps xmm0, xmm0
movss xmm2, dword [esp + 0x20]
shr eax, 1
movss xmm1, dword [esp + 0x24]
mov dword [esp + 0x28], 0
cvtsi2sd xmm0, eax
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1003efa0]
mov eax, dword [0x10069438]
shr eax, 1
cvtpd2ps xmm0, xmm0
subss xmm2, xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, eax
shr eax, 0x1f
mulss xmm2, xmm2
addsd xmm0, qword [eax*8 + 0x1003efa0]
cvtpd2ps xmm0, xmm0
subss xmm1, xmm0
xorps xmm0, xmm0
mulss xmm1, xmm1
addss xmm1, xmm2
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x10004f9c
sqrtsd xmm0, xmm0
jmp 0x10004fa1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
movss xmm1, dword [esp + 0x10]
cvtsd2ss xmm0, xmm0
comiss xmm1, xmm0
jbe 0x10004fbe
mov ebx, edi
movss dword [esp + 0x10], xmm0
mov dword [esp + 0xc], ebx
jmp 0x10004fc2
mov ebx, dword [esp + 0xc]
mov esi, dword [esp + 0x1c]
inc edi
cmp edi, dword [esi + 0x18c]
jl 0x10004d40
mov ecx, dword [esp + 0x1b4]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100348e0
mov esp, ebp
pop ebp
ret