Function at 0x42bc60
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 0x5958cb
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x238
mov eax, dword [0x5de00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x224], esi
cmp dword [esi + 4], 0
mov eax, dword [ebx + 8]
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x1e0], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x228], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x1f0], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x1dc], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x210], eax
mov eax, dword [ebx + 0x30]
mov dword [ebp - 0x20c], edi
mov dword [ebp - 0x1e4], eax
je 0x42c67a
cmp dword [esi + 0x47c], 0
je 0x42bd19
cmp dword [ebx + 0x34], 0
jne 0x42bd19
mov ecx, dword [esi + 0x28c]
mov eax, dword [ecx]
call dword [eax + 0x10c]
mov dword [esi + 0x47c], 0
movss xmm1, dword [esi + 0x44]
xorps xmm0, xmm0
ucomiss xmm1, xmm0
movss dword [ebp - 0x22c], xmm1
lahf
test ah, 0x44
jnp 0x42c67a
mov eax, dword [edi]
lea ecx, [ebp - 0x1f4]
push ecx
push 0
push edi
call dword [eax + 0x98]
mov eax, dword [0x5e4604]
mov dword [ebp - 0x1ec], eax
test eax, eax
jne 0x42bd8e
push 0xc
call fcn.0052d778
add esp, 4
mov dword [ebp - 0x1ec], eax
mov dword [ebp - 0x1e8], eax
mov dword [0x5e4604], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
test eax, eax
je 0x42c67a
mov dword [ebp - 0x208], 0
mov dword [ebp - 0x204], 0
mov dword [ebp - 0x200], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0
push ecx
push 2
lea ecx, [ebp - 0x208]
mov byte [ebp - 4], 1
call fcn.0040f410
push ecx
push 2
lea ecx, [ebp - 0x220]
call fcn.0040f410
mov ecx, dword [ebp - 0x220]
mov edx, dword [ebp - 0x208]
push ecx
mov ecx, dword [ebp - 0x1ec]
push edx
push dword [ebp - 0x1dc]
push edi
call fcn.00428520
mov ecx, dword [ebp - 0x220]
mov eax, dword [ebp - 0x208]
add ecx, 4
push ecx
add eax, 4
mov dword [ebp - 0x214], ecx
mov ecx, dword [ebp - 0x1ec]
push eax
push dword [ebp - 0x1dc]
mov dword [ebp - 0x1e8], eax
push edi
call fcn.00428520
mov ecx, dword [ebp - 0x220]
mov eax, dword [edi]
push dword [ecx]
push 0
push edi
call dword [eax + 0x94]
mov eax, dword [edi]
push 0
push ecx
mov dword [esp], 0x3f800000
push 0
push 7
push 0
push 0
push edi
call dword [eax + 0xac]
cmp dword [esi + 0x28c], 0
je 0x42c409
mov ecx, dword [esi + 0x288]
mov edx, dword [ebp - 0x208]
mov eax, dword [ecx]
push dword [edx]
call dword [eax + 0x60]
cmp dword [ebx + 0x20], 0
je 0x42c2d0
cmp dword [ebx + 0x2c], 0
je 0x42c2d0
cmp dword [ebp - 0x1e4], 0
je 0x42c2d0
mov ecx, dword [ebp - 0x1dc]
sub esp, 0xc
mov eax, dword [ecx + 0x18]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x5c7480]
mov eax, dword [ecx + 0x1c]
mov dword [esi + 0x3a8], 0
mov dword [esi + 0x3a4], 0
mov dword [esi + 0x3a0], 0
cvtpd2ps xmm0, xmm0
mov dword [esi + 0x39c], 0
mov dword [esi + 0x394], 0
mov dword [esi + 0x390], 0
mov dword [esi + 0x38c], 0
mov dword [esi + 0x388], 0
mov dword [esi + 0x380], 0
divss xmm0, dword [0x5de0cc]
mov dword [esi + 0x37c], 0
mov dword [esi + 0x378], 0
mov dword [esi + 0x374], 0
mov dword [esi + 0x3ac], 0x3f800000
mov dword [esi + 0x398], 0x3f800000
mov dword [esi + 0x384], 0x3f800000
mov dword [esi + 0x370], 0x3f800000
cvttss2si edx, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x5c7480]
lea eax, [esi + 0x370]
mov dword [esp + 8], 0
mov dword [ebp - 0x1e0], eax
mov eax, edx
cdq
sub eax, edx
cvtpd2ps xmm0, xmm0
mov esi, eax
mov eax, dword [ebp - 0x1e4]
sar esi, 1
movss xmm1, dword [eax + 0x108]
divss xmm0, dword [0x5de0cc]
cvttss2si ecx, xmm0
movd xmm0, esi
mov eax, ecx
cdq
sub eax, edx
mov edi, eax
mov eax, dword [ebp - 0x1e4]
cvtdq2ps xmm0, xmm0
sar edi, 1
movd xmm2, edi
subss xmm1, xmm0
movss xmm0, dword [eax + 0x10c]
cvtdq2ps xmm2, xmm2
lea eax, [ebp - 0x98]
movss dword [ebp - 0x1fc], xmm1
subss xmm0, xmm2
movss dword [ebp - 0x1f8], xmm0
xorps xmm0, xmmword [0x5c74e0]
movss dword [esp + 4], xmm0
movaps xmm0, xmm1
xorps xmm0, xmmword [0x5c74e0]
movss dword [esp], xmm0
push eax
call dword [sym.imp.d3dx9_43.dll_D3DXMatrixTranslation]
mov eax, dword [ebp - 0x1e4]
sub esp, 0xc
movss xmm1, dword [0x5c6e74]
movss xmm0, dword [eax + 0x1c]
xorps xmm0, xmmword [0x5c74e0]
mulss xmm0, xmm1
movss dword [esp + 8], xmm0
movss xmm0, dword [eax + 0x18]
mulss xmm0, xmm1
movss dword [esp + 4], xmm0
movss xmm0, dword [eax + 0x14]
lea eax, [ebp - 0x158]
mulss xmm0, xmm1
movss dword [esp], xmm0
push eax
call dword [sym.imp.d3dx9_43.dll_D3DXMatrixRotationYawPitchRoll]
movss xmm0, dword [ebp - 0x1f8]
lea eax, [ebp - 0xd8]
sub esp, 0xc
mov dword [esp + 8], 0
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 0x1fc]
movss dword [esp], xmm0
push eax
call dword [sym.imp.d3dx9_43.dll_D3DXMatrixTranslation]
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.d3dx9_43.dll_D3DXMatrixMultiply]
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.d3dx9_43.dll_D3DXMatrixMultiply]
mov eax, dword [ebp - 0x1e0]
sub esp, 0xc
movups xmm0, xmmword [ebp - 0x58]
movd xmm2, edi
movups xmmword [eax], xmm0
mov edi, dword [sym.imp.d3dx9_43.dll_D3DXMatrixTranslation]
movups xmm0, xmmword [ebp - 0x48]
mov dword [esp + 8], 0
cvtdq2ps xmm2, xmm2
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x38]
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [ebp - 0x28]
movups xmmword [eax + 0x30], xmm0
mov eax, dword [ebp - 0x1e4]
movd xmm0, esi
mov esi, eax
cvtdq2ps xmm0, xmm0
movss xmm1, dword [eax + 0xfc]
lea eax, [ebp - 0x98]
subss xmm1, xmm0
movss xmm0, dword [esi + 0x100]
subss xmm0, xmm2
movss dword [ebp - 0x1f8], xmm1
movss dword [ebp - 0x1fc], xmm0
xorps xmm0, xmmword [0x5c74e0]
movss dword [esp + 4], xmm0
movaps xmm0, xmm1
xorps xmm0, xmmword [0x5c74e0]
movss dword [esp], xmm0
push eax
call edi
movss xmm0, dword [esi + 0x28]
lea eax, [ebp - 0x198]
sub esp, 0xc
movss dword [esp + 8], xmm0
movss xmm0, dword [esi + 0x24]
movss dword [esp + 4], xmm0
movss xmm0, dword [esi + 0x20]
movss dword [esp], xmm0
push eax
call dword [sym.imp.d3dx9_43.dll_D3DXMatrixScaling]
movss xmm0, dword [ebp - 0x1fc]
lea eax, [ebp - 0xd8]
sub esp, 0xc
mov dword [esp + 8], 0
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 0x1f8]
movss dword [esp], xmm0
push eax
call edi
lea eax, [ebp - 0x98]
push eax
push dword [ebp - 0x1e0]
lea eax, [ebp - 0x118]
push eax
mov esi, dword [sym.imp.d3dx9_43.dll_D3DXMatrixMultiply]
call esi
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x1d8]
push eax
call esi
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x1d8]
push eax
lea eax, [ebp - 0x58]
push eax
call esi
mov eax, dword [ebp - 0x1e0]
sub esp, 0xc
movups xmm0, xmmword [ebp - 0x58]
movups xmmword [eax], xmm0
movups xmm0, xmmword [ebp - 0x48]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x38]
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [ebp - 0x28]
movups xmmword [eax + 0x30], xmm0
mov eax, dword [ebp - 0x1e4]
movss xmm0, dword [eax + 0x10]
movss dword [esp + 8], xmm0
movss xmm0, dword [eax + 0xc]
movss dword [esp + 4], xmm0
movss xmm0, dword [eax + 8]
lea eax, [ebp - 0x98]
movss dword [esp], xmm0
push eax
call edi
lea eax, [ebp - 0x98]
push eax
push dword [ebp - 0x1e0]
lea eax, [ebp - 0x58]
push eax
call esi
mov ecx, dword [ebp - 0x1e0]
movups xmm0, xmmword [ebp - 0x58]
mov esi, dword [ebp - 0x224]
mov edi, dword [ebp - 0x20c]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [ebp - 0x48]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x38]
movups xmmword [ecx + 0x20], xmm0
movups xmm0, xmmword [ebp - 0x28]
movups xmmword [ecx + 0x30], xmm0
jmp 0x42c39f
cmp dword [ebp - 0x1e0], 0
lea ecx, [esi + 0x370]
mov dword [ecx + 0x38], 0
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 8], 0
mov dword [ecx + 4], 0
mov dword [ecx + 0x3c], 0x3f800000
mov dword [ecx + 0x28], 0x3f800000
mov dword [ecx + 0x14], 0x3f800000
mov dword [ecx], 0x3f800000
je 0x42c39f
mov edx, dword [ebp - 0x1dc]
push 1
push esi
push ecx
mov eax, dword [edx + 0x1c]
mov ecx, dword [ebp - 0x1e0]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x5c7480]
mov eax, dword [edx + 0x18]
cvtpd2ps xmm3, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x5c7480]
cvtpd2ps xmm2, xmm0
call fcn.0048a0c0
lea ecx, [esi + 0x370]
mov eax, dword [edi]
push ecx
push 0x100
push edi
call dword [eax + 0xb0]
mov ecx, dword [edi]
lea eax, [esi + 0x3b0]
push eax
push 2
push edi
call dword [ecx + 0xb0]
mov ecx, dword [edi]
lea eax, [esi + 0x3f0]
push eax
push 3
push edi
call dword [ecx + 0xb0]
mov ecx, dword [esi + 0x28c]
mov eax, dword [ecx]
call dword [eax + 0x120]
push dword [ebp - 0x210]
mov eax, dword [edi]
push edi
call dword [eax + 0x15c]
mov eax, dword [edi]
push 0
push 0xe
push edi
call dword [eax + 0xe4]
mov eax, dword [edi]
push 0
push 7
push edi
call dword [eax + 0xe4]
movss xmm0, dword [esi + 0x44]
mov eax, dword [esi + 0x158]
mov dword [ebp - 0x230], 0x3f800000
mov dword [ebp - 0x234], 0x3f800000
mov dword [ebp - 0x238], 0x3f800000
movss dword [ebp - 0x22c], xmm0
cmp eax, dword [esi + 0x15c]
jne 0x42c490
cmp dword [esi + 0x1c8], 0
jne 0x42c490
cmp dword [esi + 0x220], 0
jne 0x42c490
push dword [ebp - 0x1f4]
mov eax, dword [edi]
push 0
push edi
call dword [eax + 0x94]
push dword [esi + 0x70]
lea eax, [ebp - 0x238]
mov ecx, esi
push eax
mov eax, dword [ebp - 0x208]
push dword [eax]
push dword [ebp - 0x1dc]
push dword [ebp - 0x1f0]
push edi
call fcn.004910c0
jmp 0x42c5c3
mov ecx, dword [ebp - 0x214]
mov eax, dword [edi]
push dword [ecx]
push 0
push edi
call dword [eax + 0x94]
mov eax, dword [edi]
push 0
push ecx
mov dword [esp], 0x3f800000
push 0
push 7
push 0
push 0
push edi
call dword [eax + 0xac]
push dword [esi + 0x70]
lea eax, [ebp - 0x238]
mov ecx, esi
push eax
mov eax, dword [ebp - 0x208]
push dword [eax]
push dword [ebp - 0x1dc]
push dword [ebp - 0x1f0]
push edi
call fcn.004910c0
push dword [ebp - 0x1f4]
mov eax, dword [edi]
push 0
push edi
call dword [eax + 0x94]
call fcn.004105f0
mov edx, dword [ebp - 0x1dc]
mov ecx, edi
call fcn.00412b40
mov ecx, dword [esi + 0x15c]
mov edx, dword [esi + 0x158]
sub ecx, edx
sar ecx, 2
mov dword [ebp - 0x1f0], eax
test ecx, ecx
je 0x42c550
xor edi, edi
push dword [edx + edi*4]
mov ecx, eax
call fcn.004da340
mov eax, dword [esi + 0x15c]
inc edi
mov edx, dword [esi + 0x158]
sub eax, edx
sar eax, 2
cmp edi, eax
mov eax, dword [ebp - 0x1f0]
jb 0x42c524
mov edi, dword [ebp - 0x20c]
movaps xmm0, xmmword [0x5c7420]
lea eax, [esi + 0x1c0]
push 0xffffffffffffffff
push 1
push dword [esi + 0x220]
movups xmmword [ebp - 0x248], xmm0
push eax
movss xmm0, dword [esi + 0x27c]
lea eax, [ebp - 0x248]
push ecx
movss dword [esp], xmm0
push dword [esi + 0x224]
mov ecx, dword [ebp - 0x1f0]
push dword [esi + 0x1c8]
push eax
push dword [ebp - 0x210]
mov eax, dword [ebp - 0x228]
push dword [eax]
mov eax, dword [ebp - 0x1e8]
push dword [eax]
push dword [ebp - 0x1dc]
push edi
call fcn.004d9bc0
mov ecx, dword [ebp - 0x1f0]
call fcn.004da450
mov edx, dword [ebp - 0x1ec]
xor ecx, ecx
mov edi, dword [edx + 4]
mov eax, dword [edx]
sub edi, eax
sar edi, 2
mov dword [ebp - 0x1e8], edi
test edi, edi
je 0x42c611
mov esi, eax
mov edi, dword [ebp - 0x214]
mov eax, dword [esi]
mov edx, dword [edi]
cmp dword [eax + 0x2c], edx
mov edx, dword [ebp - 0x1ec]
mov edi, dword [ebp - 0x1e8]
je 0x42c606
inc ecx
add esi, 4
cmp ecx, edi
jb 0x42c5e1
jmp 0x42c611
mov eax, dword [edx]
mov eax, dword [eax + ecx*4]
mov dword [eax], 0
mov eax, dword [ebp - 0x220]
xor ecx, ecx
mov esi, dword [edx + 4]
mov edi, dword [eax]
mov eax, dword [edx]
sub esi, eax
sar esi, 2
mov dword [ebp - 0x1e8], eax
test esi, esi
je 0x42c651
mov edx, eax
mov eax, dword [edx]
cmp dword [eax + 0x2c], edi
je 0x42c642
inc ecx
add edx, 4
cmp ecx, esi
jb 0x42c631
jmp 0x42c651
mov eax, dword [ebp - 0x1e8]
mov eax, dword [eax + ecx*4]
mov dword [eax], 0
mov eax, dword [ebp - 0x1f4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea ecx, [ebp - 0x220]
call fcn.0040b140
lea ecx, [ebp - 0x208]
call fcn.0040b140
mov eax, 1
jmp 0x42c67c
xor eax, 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.0052d3c5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x30