Function at 0x44afc0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x477bb5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x78
mov eax, dword [0x49c00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68], edx
mov esi, ecx
mov eax, dword [ebx + 0xc]
xorps xmm0, xmm0
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0x10]
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov dword [esi + 0x3c], 0x3f800000
mov dword [esi + 0x28], 0x3f800000
mov dword [esi + 0x14], 0x3f800000
mov dword [esi], 0x3f800000
movss dword [ebp - 0x54], xmm0
movq xmm0, qword [eax + 0x20]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push ecx
push eax
mov dword [ebp - 0x60], edx
mov edx, dword [ebx + 0x14]
push eax
mov dword [ebp - 0x5c], edx
movq qword [ebp - 0x2c], xmm0
call dword [sym.imp.d3dx9_43.dll_D3DXVec3TransformNormal]
mov edi, dword [sym.imp.d3dx9_43.dll_D3DXVec3Normalize]
lea eax, [ebp - 0x2c]
push eax
push eax
call edi
mov eax, dword [ebp - 0x5c]
push dword [ebp - 0x60]
movq xmm0, qword [eax + 0x20]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x38]
push eax
push eax
movq qword [ebp - 0x38], xmm0
call dword [sym.imp.d3dx9_43.dll_D3DXVec3TransformNormal]
lea eax, [ebp - 0x38]
push eax
push eax
call edi
movss xmm1, dword [ebp - 0x28]
movss xmm0, dword [ebp - 0x38]
mulss xmm0, dword [ebp - 0x2c]
mulss xmm1, dword [ebp - 0x34]
addss xmm1, xmm0
movss xmm0, dword [ebp - 0x24]
mulss xmm0, dword [ebp - 0x30]
addss xmm1, xmm0
movss xmm0, dword [0x486850]
minss xmm0, xmm1
movss dword [ebp - 0x64], xmm0
call fcn.00414040
movss xmm4, dword [ebp - 0x34]
movaps xmm1, xmm0
movss xmm3, dword [ebp - 0x24]
movaps xmm0, xmm4
movss xmm5, dword [ebp - 0x28]
mulss xmm5, dword [ebp - 0x30]
mulss xmm4, dword [ebp - 0x2c]
mulss xmm0, xmm3
mulss xmm3, dword [ebp - 0x38]
subss xmm5, xmm0
movss dword [ebp - 0x58], xmm1
movss xmm0, dword [ebp - 0x30]
mulss xmm0, dword [ebp - 0x2c]
subss xmm3, xmm0
movss xmm0, dword [ebp - 0x28]
mulss xmm0, dword [ebp - 0x38]
subss xmm4, xmm0
mov eax, dword [ebp - 0x68]
movss dword [ebp - 0x20], xmm5
movss dword [ebp - 0x1c], xmm3
movss dword [ebp - 0x18], xmm4
cmp eax, 4
jne 0x44b234
movss xmm0, dword [ebp - 0x64]
call fcn.00404770
movss xmm2, dword [0x4867f4]
movaps xmm1, xmm0
comiss xmm1, xmm2
jbe 0x44b4cf
movss xmm0, dword [0x48684c]
comiss xmm0, xmm1
jbe 0x44b4cf
mulss xmm3, xmm3
mulss xmm5, xmm5
mulss xmm4, xmm4
addss xmm3, xmm5
addss xmm3, xmm4
comiss xmm3, xmm2
jbe 0x44b4cf
lea eax, [ebp - 0x20]
push eax
push eax
call edi
movss xmm1, dword [ebp - 0x58]
movss xmm3, dword [0x48685c]
movaps xmm2, xmm1
comiss xmm1, xmm3
jbe 0x44b1ef
subss xmm2, xmm3
jmp 0x44b200
movss xmm0, dword [0x486958]
comiss xmm0, xmm1
jbe 0x44b200
addss xmm2, xmm3
comiss xmm2, dword [0x48683c]
jbe 0x44b218
subss xmm2, xmm3
push ecx
movss dword [esp], xmm2
jmp 0x44b4c4
movss xmm0, dword [0x48694c]
comiss xmm0, xmm1
jbe 0x44b229
addss xmm2, xmm3
push ecx
movss dword [esp], xmm2
jmp 0x44b4c4
cmp eax, 3
jne 0x44b39f
addss xmm1, dword [0x486854]
movaps xmm0, xmm1
call fcn.00404770
movss xmm6, dword [0x486864]
movaps xmm2, xmm0
subss xmm0, xmm6
call fcn.00404770
movss xmm7, dword [0x4867f4]
comiss xmm7, xmm0
ja 0x44b2de
subss xmm2, dword [0x48688c]
movaps xmm0, xmm2
call fcn.00404770
comiss xmm7, xmm0
ja 0x44b2de
comiss xmm1, xmm6
movss xmm7, dword [0x48695c]
movaps xmm2, xmm1
movss dword [ebp - 0x54], xmm2
jbe 0x44b29e
subss xmm2, xmm6
jmp 0x44b2a7
comiss xmm7, xmm1
jbe 0x44b2ac
addss xmm2, xmm6
movss dword [ebp - 0x54], xmm2
comiss xmm2, dword [0x486854]
jbe 0x44b2c0
subss xmm2, xmm6
movss dword [ebp - 0x54], xmm2
jmp 0x44b2d6
movss xmm0, dword [0x486954]
comiss xmm0, xmm1
jbe 0x44b2d6
subss xmm7, xmm2
movss dword [ebp - 0x54], xmm7
movss xmm7, dword [0x4867f4]
mulss xmm3, xmm3
mulss xmm5, xmm5
mulss xmm4, xmm4
addss xmm3, xmm5
addss xmm3, xmm4
comiss xmm3, xmm7
jbe 0x44b30e
lea eax, [ebp - 0x20]
push eax
push eax
call edi
movss xmm0, dword [ebp - 0x54]
push ecx
movss dword [esp], xmm0
jmp 0x44b4c4
movss xmm0, dword [ebp - 0x2c]
subss xmm0, dword [ebp - 0x38]
movss xmm2, dword [ebp - 0x28]
movss xmm3, dword [ebp - 0x24]
subss xmm2, dword [ebp - 0x34]
subss xmm3, dword [ebp - 0x30]
call fcn.00404770
movss xmm1, dword [0x486808]
comiss xmm1, xmm0
jbe 0x44b4cf
movaps xmm0, xmm2
call fcn.00404770
comiss xmm1, xmm0
jbe 0x44b4cf
movaps xmm0, xmm3
call fcn.00404770
comiss xmm1, xmm0
jbe 0x44b4cf
mov eax, dword [ebp - 0x5c]
push dword [ebp - 0x60]
movq xmm0, qword [eax + 0x14]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x44]
push eax
push eax
movq qword [ebp - 0x44], xmm0
call dword [sym.imp.d3dx9_43.dll_D3DXVec3TransformNormal]
lea eax, [ebp - 0x44]
push eax
push eax
call edi
movss xmm0, dword [ebp - 0x54]
lea eax, [ebp - 0x44]
push ecx
movss dword [esp], xmm0
jmp 0x44b4c7
cmp eax, 2
je 0x44b484
cmp eax, 1
je 0x44b484
cmp eax, 6
jne 0x44b3fe
movss xmm0, dword [ebp - 0x64]
call fcn.00404770
movss xmm2, dword [0x4867f4]
comiss xmm0, xmm2
jbe 0x44b4cf
movss xmm1, dword [0x48684c]
comiss xmm1, xmm0
jbe 0x44b4cf
mulss xmm3, xmm3
mulss xmm5, xmm5
mulss xmm4, xmm4
addss xmm3, xmm5
addss xmm3, xmm4
comiss xmm3, xmm2
jmp 0x44b49f
cmp eax, 5
jne 0x44b4cf
movaps xmm0, xmm1
call fcn.00404770
movsd xmm1, qword [0x486830]
xorps xmm2, xmm2
movaps xmm6, xmm0
cvtss2sd xmm2, xmm6
subsd xmm2, qword [0x486868]
andps xmm2, xmmword [0x486b10]
comisd xmm1, xmm2
ja 0x44b4ef
movss xmm0, dword [0x4867f4]
mulss xmm3, xmm3
mulss xmm5, xmm5
mulss xmm4, xmm4
addss xmm3, xmm5
addss xmm3, xmm4
comiss xmm3, xmm0
jbe 0x44b469
lea eax, [ebp - 0x20]
push eax
push eax
call edi
movss xmm1, dword [ebp - 0x58]
jmp 0x44b4be
comiss xmm0, xmm6
ja 0x44b4cf
push 0x47f580
lea ecx, [ebp - 0x50]
call fcn.004047c0
mov dword [ebp - 4], 1
jmp 0x44b503
mulss xmm3, xmm3
mulss xmm5, xmm5
mulss xmm4, xmm4
addss xmm3, xmm5
addss xmm3, xmm4
comiss xmm3, dword [0x4867f4]
jbe 0x44b4cf
lea eax, [ebp - 0x20]
push eax
push eax
call edi
movss xmm1, dword [ebp - 0x58]
comiss xmm1, dword [0x48685c]
jbe 0x44b4be
subss xmm1, dword [0x486880]
push ecx
movss dword [esp], xmm1
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.d3dx9_43.dll_D3DXMatrixRotationAxis]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046c079
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x47f580
lea ecx, [ebp - 0x50]
call fcn.004047c0
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x84]
call fcn.00410c10
push 0x498410
lea eax, [ebp - 0x84]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3