Function at 0x10012780
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 0x1003eab9
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x1004b0c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], edi
test edi, edi
je 0x10012dfe
mov ecx, dword [eax]
mov dword [ebp - 0x28], ecx
test ecx, ecx
je 0x10012dfe
mov edx, dword [0x1005b2f4]
mov eax, dword [edx + 0x3c]
mov esi, dword [ecx + eax]
mov dword [ebp - 0x24], esi
test esi, esi
je 0x10012dfe
mov eax, dword [edx + 0x40]
mov eax, dword [ecx + eax]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x10012dfe
lea eax, [edi + 0x1b48]
mov ecx, esi
push eax
call fcn.10010e30
lea eax, [edi + 0x1870]
mov ecx, 0xb6
mov edi, dword [ebp - 0x2c]
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [0x1005b2f4]
movups xmm0, xmmword [esi + 0xc]
push 0
movups xmm1, xmmword [esi + 0x1c]
mov eax, dword [eax + 0x48]
sub esp, 0xc
movups xmm2, xmmword [esi + 0x2c]
add eax, edi
mov ecx, esp
movups xmm3, xmmword [esi + 0x3c]
movups xmm4, xmmword [esi + 0x4c]
movups xmm5, xmmword [esi + 0x5c]
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm1
movups xmmword [eax + 0x20], xmm2
movups xmmword [eax + 0x30], xmm3
movups xmmword [eax + 0x40], xmm4
movups xmmword [eax + 0x50], xmm5
mov eax, dword [esi + 0x1eb8]
movq xmm0, qword [esi + 0x1eb0]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
mov ecx, edi
call fcn.100108d0
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1005b09c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1005ba5c]
mov dword [ebp - 0x3c], ecx
cmp eax, dword [ecx + 4]
jle 0x100128f5
push 0x1005ba5c
call fcn.1003d5d2
add esp, 4
cmp dword [0x1005ba5c], 0xffffffff
jne 0x100128f5
mov dword [ebp - 4], 0
mov ecx, edi
mov eax, dword [edi]
mov eax, dword [eax + 0x44]
call eax
push str.m_vecAbsVelocity
push eax
call fcn.1003d150
push 0x1005ba5c
mov dword [0x1005ba68], eax
mov dword [ebp - 4], 0xffffffff
call fcn.1003d581
add esp, 4
mov ecx, dword [0x1005ba68]
mov eax, dword [esi + 0x1eb0]
push 4
mov dword [ecx + edi], eax
mov eax, dword [esi + 0x1eb4]
mov dword [ecx + edi + 4], eax
mov eax, dword [esi + 0x1eb8]
mov dword [ecx + edi + 8], eax
mov ecx, edi
movq xmm0, qword [esi + 0x1eb0]
mov eax, dword [esi + 0x1eb8]
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], eax
call fcn.10010ab0
mov eax, dword [0x1005b2f4]
movss xmm0, dword [ebp - 0x20]
push 0
sub esp, 0xc
mov eax, dword [eax + 0x14]
mov ecx, esp
movss dword [eax + edi], xmm0
movss xmm0, dword [ebp - 0x1c]
movss dword [eax + edi + 4], xmm0
movss xmm0, dword [ebp - 0x18]
movss dword [eax + edi + 8], xmm0
movq xmm0, qword [esi + 0x1e8c]
mov eax, dword [esi + 0x1e94]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
mov ecx, edi
call fcn.10010700
mov ecx, dword [ebp - 0x3c]
mov eax, dword [0x1005ba48]
cmp eax, dword [ecx + 4]
jle 0x100129dc
push 0x1005ba48
call fcn.1003d5d2
add esp, 4
cmp dword [0x1005ba48], 0xffffffff
jne 0x100129dc
mov dword [ebp - 4], 1
mov ecx, edi
mov eax, dword [edi]
mov eax, dword [eax + 0x44]
call eax
push str.m_vecAbsOrigin
push eax
call fcn.1003d150
push 0x1005ba48
mov dword [0x1005ba44], eax
mov dword [ebp - 4], 0xffffffff
call fcn.1003d581
add esp, 4
mov eax, dword [esi + 0x1e8c]
mov ecx, dword [0x1005ba44]
mov edx, dword [0x1005b2f4]
mov dword [ecx + edi], eax
mov eax, dword [esi + 0x1e90]
mov dword [ecx + edi + 4], eax
mov eax, dword [esi + 0x1e94]
mov dword [ecx + edi + 8], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [esi + 0x1e8c]
mov dword [ecx + edi], eax
mov eax, dword [esi + 0x1e90]
mov dword [ecx + edi + 4], eax
mov eax, dword [esi + 0x1e94]
mov dword [ecx + edi + 8], eax
mov eax, dword [edx + 0x10]
mov ecx, dword [esi + 0x1ee4]
mov dword [edi + eax], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x24]
mov dword [eax + 8], 0
mov eax, dword [ecx + 0x2038]
mov dword [edi + 0x6c], eax
movss xmm0, dword [esi]
subss xmm0, dword [ecx + 0x2038]
mov ecx, edi
mov edi, dword [ebp - 0x28]
movss dword [ecx + 0x74], xmm0
mov eax, dword [esi + 0x19ec]
mov dword [ecx + 0x98], eax
mov ecx, dword [0x1005b358]
mov eax, dword [esi]
movss xmm0, dword [ecx + 0x10]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x38]
movss dword [ebp - 0x4c], xmm0
movss xmm0, dword [ecx + 0x14]
movss dword [ebp - 0x50], xmm0
movss xmm0, dword [esi]
subss xmm0, dword [eax + 0x2038]
movss dword [ecx + 0x14], xmm0
mov ecx, dword [edx + 0x34]
mov eax, dword [esi + 0x1ea4]
mov dword [ecx + edi], eax
mov eax, dword [esi + 0x1ea8]
mov dword [ecx + edi + 4], eax
mov eax, dword [esi + 0x1eac]
mov dword [ecx + edi + 8], eax
mov ecx, edi
mov eax, dword [edx + 0x44]
mov byte [edi + eax], 1
mov eax, dword [edi]
mov eax, dword [eax + 0x368]
call eax
mov eax, dword [0x1005b2f4]
xorps xmm1, xmm1
push 0
sub esp, 0xc
mov dword [ebp - 0x40], 0
mov ecx, esp
mov eax, dword [eax + 0x44]
mov byte [edi + eax], 0
movss xmm0, dword [esi + 0x1bc8]
mov eax, dword [ebp - 0x40]
unpcklps xmm1, xmm0
movq qword [ecx], xmm1
mov dword [ecx + 8], eax
mov ecx, edi
call fcn.10010530
mov ecx, dword [ebp - 0x3c]
movss xmm0, dword [esi + 0x1bc8]
mov eax, dword [0x1005ba70]
movss dword [ebp - 0x24], xmm0
cmp eax, dword [ecx + 4]
jle 0x10012b77
push 0x1005ba70
call fcn.1003d5d2
add esp, 4
cmp dword [0x1005ba70], 0xffffffff
jne 0x10012b72
mov dword [ebp - 4], 2
mov ecx, edi
mov eax, dword [edi]
mov eax, dword [eax + 0x44]
call eax
push str.m_angAbsRotation
push eax
call fcn.1003d150
push 0x1005ba70
mov dword [0x1005ba50], eax
mov dword [ebp - 4], 0xffffffff
call fcn.1003d581
add esp, 4
movss xmm0, dword [ebp - 0x24]
mov eax, dword [0x1005ba50]
mov ecx, 0xb6
mov edx, dword [0x1005b2f4]
sub esp, 8
mov dword [eax + edi], 0
movss dword [eax + edi + 4], xmm0
mov dword [eax + edi + 8], 0
mov eax, dword [edx + 0x48]
movups xmm0, xmmword [esi + 0xc]
add eax, edi
mov edi, dword [ebp - 0x2c]
movups xmm1, xmmword [esi + 0x1c]
movups xmm2, xmmword [esi + 0x2c]
movups xmm3, xmmword [esi + 0x3c]
movups xmm4, xmmword [esi + 0x4c]
movups xmm5, xmmword [esi + 0x5c]
mov esi, dword [ebp - 0x34]
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm1
movups xmmword [eax + 0x20], xmm2
movups xmmword [eax + 0x30], xmm3
movups xmmword [eax + 0x40], xmm4
movups xmmword [eax + 0x50], xmm5
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x30]
mov eax, dword [edx + 0x24]
mov ecx, dword [ebp - 0x28]
movss xmm0, dword [edi]
movss dword [esp + 4], xmm0
push dword [eax + ecx]
mov eax, dword [edx + 0x20]
push dword [eax + ecx]
call fcn.1001acf0
mov eax, dword [0x1005b2f4]
cmp byte [eax + 0x340], 0
je 0x10012d78
mov ecx, dword [ebp - 0x38]
add ecx, 0x24
mov dword [ebp - 0x30], 0x14
mov dword [ebp - 0x24], ecx
nop
mov eax, dword [ecx]
mov esi, dword [0x1005b2f8]
add esi, 0x18cc
lea eax, [eax + eax*2]
add eax, eax
movss xmm0, dword [edi + eax*8 + 0x7c]
movss dword [ebp - 0x20], xmm0
movss xmm0, dword [edi + eax*8 + 0x8c]
movss dword [ebp - 0x1c], xmm0
movss xmm0, dword [edi + eax*8 + 0x9c]
mov eax, dword [esi + 0x10]
inc eax
movss dword [ebp - 0x18], xmm0
cmp dword [esi + 8], eax
ja 0x10012c6b
push ecx
mov ecx, esi
call fcn.1000ab40
mov ecx, dword [esi + 8]
lea eax, [ecx - 1]
dec ecx
and dword [esi + 0xc], eax
mov eax, dword [esi + 0x10]
add eax, dword [esi + 0xc]
and ecx, eax
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x34], ecx
cmp dword [eax + ecx*4], 0
jne 0x10012c9f
push 0xc
call fcn.1003d636
mov ecx, dword [esi + 4]
add esp, 4
mov edx, dword [ebp - 0x34]
mov dword [ecx + edx*4], eax
mov ecx, dword [esi + 8]
mov eax, dword [esi + 4]
dec ecx
and ecx, dword [ebp - 0x2c]
movq xmm0, qword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
mov ecx, dword [eax + ecx*4]
mov eax, dword [ebp - 0x18]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
inc dword [esi + 0x10]
mov eax, dword [0x1005b2f4]
mov esi, dword [0x1005b2f8]
add esi, 0x18cc
mov ecx, dword [eax + 0x20]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
lea eax, [eax + eax*2]
shl eax, 4
add eax, dword [ecx + edx]
movss xmm0, dword [eax + 0xc]
movss dword [ebp - 0x48], xmm0
movss xmm0, dword [eax + 0x1c]
movss dword [ebp - 0x44], xmm0
movss xmm0, dword [eax + 0x2c]
mov eax, dword [esi + 0x10]
inc eax
movss dword [ebp - 0x40], xmm0
cmp dword [esi + 8], eax
ja 0x10012d12
push ecx
mov ecx, esi
call fcn.1000ab40
mov ecx, dword [esi + 8]
lea eax, [ecx - 1]
dec ecx
and dword [esi + 0xc], eax
mov eax, dword [esi + 0x10]
add eax, dword [esi + 0xc]
and ecx, eax
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x34], ecx
cmp dword [eax + ecx*4], 0
jne 0x10012d46
push 0xc
call fcn.1003d636
mov ecx, dword [esi + 4]
add esp, 4
mov edx, dword [ebp - 0x34]
mov dword [ecx + edx*4], eax
mov ecx, dword [esi + 8]
mov eax, dword [esi + 4]
dec ecx
and ecx, dword [ebp - 0x2c]
movq xmm0, qword [ebp - 0x48]
mov ecx, dword [eax + ecx*4]
mov eax, dword [ebp - 0x40]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
mov ecx, dword [ebp - 0x24]
inc dword [esi + 0x10]
add ecx, 4
sub dword [ebp - 0x30], 1
mov dword [ebp - 0x24], ecx
jne 0x10012c20
mov esi, dword [0x1005b358]
mov ecx, dword [ebp - 0x28]
movss xmm0, dword [ebp - 0x4c]
mov eax, dword [esi + 4]
movss dword [esi + 0x10], xmm0
mov dword [ecx + 0xa5c], eax
movss xmm0, dword [esi + 0x10]
call fcn.1003e600
mov ecx, dword [ebp - 0x28]
movss xmm0, dword [ebp - 0x50]
mov edx, dword [0x1005b2f4]
mov dword [ecx + 0x2914], eax
movss dword [esi + 0x14], xmm0
mov ecx, dword [edx + 0x88]
mov esi, dword [ebp - 0x38]
mov eax, dword [edi + 0x1ebc]
add ecx, dword [esi]
mov dword [ecx], eax
mov eax, dword [edi + 0x1ec0]
mov dword [ecx + 4], eax
mov eax, dword [edi + 0x1ec4]
mov dword [ecx + 8], eax
mov ecx, dword [edx + 0x8c]
add ecx, dword [esi]
mov eax, dword [edi + 0x1ec8]
mov dword [ecx], eax
mov eax, dword [edi + 0x1ecc]
mov dword [ecx + 4], eax
mov eax, dword [edi + 0x1ed0]
mov dword [ecx + 8], eax
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.1003d53a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8