Function at 0x10006550
Capabilities:
Access peb ldr_data

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 0x10037d2c
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x98
push esi
push edi
mov eax, dword [0x10045008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movss dword [ebp - 0x44], xmm0
mov ecx, dword [0x10091590]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov ecx, dword [0x100915ac]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov edi, eax
test edi, edi
je 0x10006d62
mov ecx, dword fs:[0x2c]
mov edx, dword [0x1009134c]
mov edx, dword [ecx + edx*4]
mov ecx, dword [0x11dff554]
cmp ecx, dword [edx + 4]
jle 0x1000669e
push 0x11dff554
call fcn.10035ec7
add esp, 4
cmp dword [0x11dff554], 0xffffffff
jne 0x1000669e
lea ecx, [ebp - 0xa4]
mov dword [ebp - 4], 0
call fcn.1002fe90
push 0
push str.m_Collision
push str.DT_BaseEntity
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.1002ff30
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0xa4]
mov dword [0x11dff550], eax
test ecx, ecx
je 0x1000668a
mov eax, dword [ebp - 0x9c]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
mov eax, ecx
cmp edx, 0x1000
jb 0x10006662
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10006662
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10035d86
add esp, 8
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0
push 0x11dff554
mov dword [ebp - 4], 0xffffffff
call fcn.10035e7d
add esp, 4
mov eax, dword [0x11dff550]
cmp dword [eax + edi], 0
je 0x10006d62
movss xmm2, dword [edi + 0xe0]
xorps xmm2, xmmword [0x10040c80]
movss xmm1, dword [0x10040bb4]
movss xmm0, dword [edi + 0x168]
divss xmm1, xmm2
movss dword [ebp - 0x38], xmm0
movss xmm0, dword [edi + 0x16c]
movss dword [ebp - 0x3c], xmm0
movss xmm0, dword [edi + 0x170]
movss dword [ebp - 0x40], xmm0
movss xmm0, dword [edi + 0x174]
movss dword [ebp - 0x2c], xmm0
movss xmm0, dword [edi + 0x178]
movss dword [ebp - 0x30], xmm0
movss xmm0, dword [edi + 0x17c]
movss dword [ebp - 0x34], xmm0
movss xmm0, dword [edi + 0xe4]
mulss xmm0, xmm1
movss dword [ebp - 0x20], xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atanf
movss xmm5, dword [0x10040b04]
xorps xmm6, xmm6
cvtss2sd xmm0, xmm0
xorps xmm4, xmm4
mulsd xmm0, qword [0x10040a38]
cvtsd2ss xmm6, xmm0
movss xmm0, dword [ebp - 0x20]
comiss xmm0, xmm4
movss dword [ebp - 0x28], xmm6
jb 0x10006762
addss xmm6, xmm5
movss dword [ebp - 0x28], xmm6
movss xmm0, dword [ebp - 0x44]
movss xmm3, dword [0x10040b60]
movaps xmm1, xmm0
movss dword [ebp - 0x20], xmm0
movss xmm7, dword [0x10040bd4]
xor eax, eax
comiss xmm0, xmm4
jbe 0x1000678b
comiss xmm5, xmm1
jmp 0x1000678e
comiss xmm1, xmm7
seta al
test eax, eax
je 0x10006d67
movaps xmm0, xmm6
lea eax, [ebp - 0x4c]
addss xmm0, xmm1
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x18], eax
movss dword [ebp - 0x1c], xmm0
mulss xmm0, dword [0x100408d4]
movss dword [ebp - 0x24], xmm0
fld dword [ebp - 0x24]
fsincos
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
fstp dword [edx]
fstp dword [eax]
lea eax, [ebp - 0x48]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x24], eax
fld dword [ebp - 0x18]
fsincos
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
fstp dword [edx]
fstp dword [eax]
movss xmm4, dword [ebp - 0x2c]
lea eax, [ebp - 0x88]
movss xmm2, dword [ebp - 0x48]
mov ecx, edi
movss xmm1, dword [ebp - 0x54]
movaps xmm0, xmm2
mulss xmm0, dword [ebp - 0x4c]
push eax
mulss xmm2, dword [ebp - 0x50]
sub esp, 0xc
mov eax, esp
sub esp, 0xc
xorps xmm1, xmmword [0x10040c80]
mulss xmm0, xmm3
movss dword [eax], xmm4
movss xmm4, dword [ebp - 0x30]
movss dword [eax + 4], xmm4
movss xmm4, dword [ebp - 0x34]
movss dword [eax + 8], xmm4
mov eax, esp
movss xmm4, dword [ebp - 0x38]
sub esp, 0xc
mulss xmm2, xmm3
mov esi, esp
movss dword [eax], xmm4
movss xmm4, dword [ebp - 0x3c]
movss dword [eax + 4], xmm4
movss xmm4, dword [ebp - 0x40]
movss dword [eax + 8], xmm4
mov eax, dword [edi]
mulss xmm1, xmm3
movss dword [ebp - 0x18], xmm0
mov eax, dword [eax + 0x24]
movss dword [ebp - 0x14], xmm2
movss dword [ebp - 0x24], xmm1
call eax
movss xmm0, dword [ebp - 0x18]
mov ecx, edi
addss xmm0, dword [eax]
movss dword [esi], xmm0
movss xmm0, dword [ebp - 0x14]
addss xmm0, dword [eax + 4]
movss dword [esi + 4], xmm0
movss xmm0, dword [ebp - 0x24]
addss xmm0, dword [eax + 8]
movss dword [esi + 8], xmm0
mov eax, dword [edi]
mov eax, dword [eax + 0x24]
call eax
sub esp, 0xc
mov edx, esp
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov eax, dword [eax + 8]
mov dword [edx + 8], eax
call fcn.10006d80
movss xmm0, dword [ebp - 0x1c]
lea eax, [ebp - 0x5c]
addss xmm0, dword [0x10040a4c]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x14], eax
mulss xmm0, dword [0x100408d4]
movss dword [ebp - 0x1c], xmm0
fld dword [ebp - 0x1c]
fsincos
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
fstp dword [edx]
fstp dword [eax]
lea eax, [ebp - 0x58]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0x14], eax
fld dword [ebp - 0x1c]
fsincos
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
fstp dword [edx]
fstp dword [eax]
movss xmm3, dword [ebp - 0x2c]
lea eax, [ebp - 0x8c]
movss xmm2, dword [ebp - 0x58]
mov ecx, edi
movss xmm1, dword [ebp - 0x64]
movaps xmm0, xmm2
mulss xmm0, dword [ebp - 0x5c]
push eax
mulss xmm2, dword [ebp - 0x60]
sub esp, 0xc
mov eax, esp
sub esp, 0xc
xorps xmm1, xmmword [0x10040c80]
movss dword [eax], xmm3
movss xmm3, dword [ebp - 0x30]
movss dword [eax + 4], xmm3
movss xmm3, dword [ebp - 0x34]
movss dword [eax + 8], xmm3
mov eax, esp
movss xmm3, dword [ebp - 0x38]
sub esp, 0xc
mov esi, esp
movss dword [eax], xmm3
movss xmm3, dword [ebp - 0x3c]
movss dword [eax + 4], xmm3
movss xmm3, dword [ebp - 0x40]
movss dword [eax + 8], xmm3
movss xmm3, dword [0x10040b60]
mov eax, dword [edi]
mulss xmm0, xmm3
mulss xmm2, xmm3
mov eax, dword [eax + 0x24]
mulss xmm1, xmm3
movss dword [ebp - 0x1c], xmm0
movss dword [ebp - 0x18], xmm2
movss dword [ebp - 0x14], xmm1
call eax
movss xmm0, dword [ebp - 0x1c]
mov ecx, edi
addss xmm0, dword [eax]
movss dword [esi], xmm0
movss xmm0, dword [ebp - 0x18]
addss xmm0, dword [eax + 4]
movss dword [esi + 4], xmm0
movss xmm0, dword [ebp - 0x14]
addss xmm0, dword [eax + 8]
movss dword [esi + 8], xmm0
mov eax, dword [edi]
mov eax, dword [eax + 0x24]
call eax
sub esp, 0xc
mov edx, esp
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov eax, dword [eax + 8]
mov dword [edx + 8], eax
call fcn.10006d80
movss xmm0, dword [ebp - 0x28]
lea eax, [ebp - 0x6c]
subss xmm0, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x14], eax
mulss xmm0, dword [0x100408d4]
movss dword [ebp - 0x1c], xmm0
fld dword [ebp - 0x1c]
fsincos
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
fstp dword [edx]
fstp dword [eax]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x74]
mov dword [ebp - 0x14], eax
fld dword [ebp - 0x1c]
fsincos
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
fstp dword [edx]
fstp dword [eax]
movss xmm3, dword [ebp - 0x2c]
lea eax, [ebp - 0x90]
movss xmm2, dword [ebp - 0x68]
mov ecx, edi
movss xmm1, dword [ebp - 0x74]
movaps xmm0, xmm2
mulss xmm0, dword [ebp - 0x6c]
push eax
mulss xmm2, dword [ebp - 0x70]
sub esp, 0xc
mov eax, esp
sub esp, 0xc
xorps xmm1, xmmword [0x10040c80]
movss dword [eax], xmm3
movss xmm3, dword [ebp - 0x30]
movss dword [eax + 4], xmm3
movss xmm3, dword [ebp - 0x34]
movss dword [eax + 8], xmm3
mov eax, esp
movss xmm3, dword [ebp - 0x38]
sub esp, 0xc
mov esi, esp
movss dword [eax], xmm3
movss xmm3, dword [ebp - 0x3c]
movss dword [eax + 4], xmm3
movss xmm3, dword [ebp - 0x40]
movss dword [eax + 8], xmm3
movss xmm3, dword [0x10040b60]
mov eax, dword [edi]
mulss xmm0, xmm3
mulss xmm2, xmm3
mov eax, dword [eax + 0x24]
mulss xmm1, xmm3
movss dword [ebp - 0x1c], xmm0
movss dword [ebp - 0x18], xmm2
movss dword [ebp - 0x14], xmm1
call eax
movss xmm0, dword [ebp - 0x1c]
mov ecx, edi
addss xmm0, dword [eax]
movss dword [esi], xmm0
movss xmm0, dword [ebp - 0x18]
addss xmm0, dword [eax + 4]
movss dword [esi + 4], xmm0
movss xmm0, dword [ebp - 0x14]
addss xmm0, dword [eax + 8]
movss dword [esi + 8], xmm0
mov eax, dword [edi]
mov eax, dword [eax + 0x24]
call eax
sub esp, 0xc
mov edx, esp
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov eax, dword [eax + 8]
mov dword [edx + 8], eax
call fcn.10006d80
movss xmm1, dword [ebp - 0x20]
lea eax, [ebp - 0x7c]
addss xmm1, dword [0x10040a4c]
movss xmm0, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x14], eax
subss xmm0, xmm1
movss dword [ebp - 0x24], xmm1
mulss xmm0, dword [0x100408d4]
movss dword [ebp - 0x1c], xmm0
fld dword [ebp - 0x1c]
fsincos
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
fstp dword [edx]
fstp dword [eax]
lea eax, [ebp - 0x78]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x14], eax
fld dword [ebp - 0x1c]
fsincos
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
fstp dword [edx]
fstp dword [eax]
movss xmm2, dword [ebp - 0x78]
movaps xmm0, xmm2
mulss xmm0, dword [ebp - 0x7c]
movss xmm3, dword [ebp - 0x2c]
lea eax, [ebp - 0x94]
push eax
mulss xmm2, dword [ebp - 0x80]
sub esp, 0xc
mov eax, esp
sub esp, 0xc
movss xmm1, dword [ebp - 0x84]
mov ecx, edi
xorps xmm1, xmmword [0x10040c80]
movss dword [eax], xmm3
movss xmm3, dword [ebp - 0x30]
movss dword [eax + 4], xmm3
movss xmm3, dword [ebp - 0x34]
movss dword [eax + 8], xmm3
mov eax, esp
movss xmm3, dword [0x10040b60]
sub esp, 0xc
mulss xmm0, xmm3
mov esi, esp
mulss xmm2, xmm3
movss dword [ebp - 0x1c], xmm0
movss xmm0, dword [ebp - 0x38]
movss dword [eax], xmm0
movss xmm0, dword [ebp - 0x3c]
movss dword [eax + 4], xmm0
movss xmm0, dword [ebp - 0x40]
movss dword [eax + 8], xmm0
mov eax, dword [edi]
mulss xmm1, xmm3
movss dword [ebp - 0x18], xmm2
mov eax, dword [eax + 0x24]
movss dword [ebp - 0x14], xmm1
call eax
movss xmm0, dword [ebp - 0x1c]
mov ecx, edi
addss xmm0, dword [eax]
movss dword [esi], xmm0
movss xmm0, dword [ebp - 0x18]
addss xmm0, dword [eax + 4]
movss dword [esi + 4], xmm0
movss xmm0, dword [ebp - 0x14]
addss xmm0, dword [eax + 8]
movss dword [esi + 8], xmm0
mov eax, dword [edi]
mov eax, dword [eax + 0x24]
call eax
sub esp, 0xc
mov edx, esp
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov eax, dword [eax + 8]
mov dword [edx + 8], eax
call fcn.10006d80
movss xmm0, dword [ebp - 0x88]
movss xmm3, dword [0x10040b60]
movss xmm2, dword [0x10040aa4]
mulss xmm0, xmm3
comiss xmm0, xmm2
jbe 0x10006ccf
movss xmm0, dword [ebp - 0x8c]
mulss xmm0, xmm3
comiss xmm0, xmm2
ja 0x10006d29
movss xmm0, dword [ebp - 0x90]
mulss xmm0, xmm3
comiss xmm0, xmm2
jbe 0x10006cf1
movss xmm0, dword [ebp - 0x94]
mulss xmm0, xmm3
comiss xmm0, xmm2
ja 0x10006d42
movss xmm0, dword [ebp - 0x44]
xorps xmm4, xmm4
comiss xmm0, xmm4
jbe 0x10006d1a
movss xmm1, dword [ebp - 0x24]
movss xmm5, dword [0x10040b04]
movss xmm6, dword [ebp - 0x28]
movss dword [ebp - 0x20], xmm1
jmp 0x10006777
movss xmm1, dword [ebp - 0x20]
subss xmm1, dword [0x10040a4c]
jmp 0x10006d03
movss xmm0, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
movss xmm0, dword [ebp - 0x20]
xorps xmm0, xmmword [0x10040c80]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
movss xmm0, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret