Function at 0x10127400
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x1034c754]
sub esp, 0x28
movss xmm0, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
mov eax, dword [ecx + 4]
push ecx
mov ecx, dword [ecx]
movss dword [esp], xmm0
mov eax, dword [eax + 0x48]
push esi
call eax
cmp byte [ebp + 0x10], 0
je 0x10127c88
mov al, byte [0x10306bf0]
mov edi, esi
mov byte [0x1034c738], al
mov eax, dword [0x1034c74c]
mov ecx, dword [eax + 4]
mov eax, 0xb60b60b7
imul esi
add edx, esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x5a
sub edi, eax
shl edi, 6
add edi, dword [ecx + 0xc4]
mov dword [esp + 8], edi
je 0x10127c88
cmp dword ds:[edi + 4], 0
je 0x10127c88
mov eax, dword [0x1034c744]
mov eax, dword [eax + 4]
cmp byte [eax], 0
mov eax, dword [0x1034c750]
je 0x101274a5
cmp byte [eax], 0
jne 0x101274a5
mov byte [eax], 1
mov eax, dword [0x1034c750]
lea ecx, [eax + 0x3d]
mov al, 1
xchg byte [ecx], al
push edi
call fcn.10197260
mov eax, dword [0x1034c73c]
mov eax, dword ds:[eax]
cmp byte [eax], 0
je 0x10127c4c
mov eax, dword [0x1034c744]
mov eax, dword [eax + 0x18]
cmp byte [eax + 7], 0
je 0x101274ee
xor eax, eax
mov dword [edi + 0x24], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x38], eax
call fcn.1011be60
mov eax, dword [0x1034c750]
mov al, byte ds:[eax + 0x3e]
nop
test al, al
je 0x10127529
mov eax, dword [0x1034c750]
mov eax, dword [eax + 0x48]
nop
cmp eax, 1
mov eax, dword [0x1034c750]
sete byte [0x1034c738]
mov eax, dword [eax + 0x48]
nop
cmp eax, 3
jle 0x10127529
and dword [edi + 0x24], 0xfffffffe
mov eax, dword [0x1034c750]
mov ecx, dword [0x1034dcac]
mov esi, dword [eax + 0xc]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1035b434]
cmp eax, dword [ecx + 4]
jg 0x10127c90
mov ecx, dword [0x1035b438]
mov eax, dword [ecx + 0xc]
mov dword [esi + 0x20], eax
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x24], eax
mov eax, dword [ecx + 0x14]
mov dword [esi + 0x28], eax
mov ecx, dword [0x1034c750]
mov ecx, dword [ecx + 0x10]
call fcn.1018b780
call fcn.10193060
nop dword [eax]
call fcn.10193640
call fcn.10193ae0
call fcn.10193f20
mov eax, dword [0x1034c744]
mov eax, dword ds:[eax + 0x14]
cmp byte [eax], 0
je 0x1012761f
mov eax, dword [0x1034c74c]
mov edi, dword [eax + 0x10]
mov ecx, dword [eax + 0x1c]
mov edx, dword [edi]
mov eax, dword [ecx]
mov esi, dword [edx + 0xc]
mov eax, dword [eax + 0x30]
call eax
push eax
mov ecx, edi
call esi
mov esi, eax
mov ecx, esi
call fcn.100230c0
mov ecx, esi
mov dword [esp + 0x18], 9
mov dword [esp + 0x1c], 8
mov dword [esp + 0x20], 0xa
mov eax, dword [eax]
mov dword [esp + 0x14], eax
call fcn.1003b060
lea ecx, [esp + 0x18]
mov eax, dword [eax]
cmp dword [ecx], eax
je 0x10127605
add ecx, 4
lea edx, [esp + 0x24]
cmp ecx, edx
jne 0x101275f6
test byte [esp + 0x14], 1
jne 0x1012761f
lea eax, [esp + 0x24]
cmp ecx, eax
jne 0x1012761f
push 0
call fcn.10197260
and dword [eax + 0x24], 0xfffffffd
mov eax, dword [0x1034c744]
mov eax, dword [eax + 0x14]
cmp byte [eax + 2], 0
je 0x101276fe
mov eax, dword [0x1034c74c]
mov edi, dword [eax + 0x10]
mov ecx, dword [eax + 0x1c]
mov edx, dword [edi]
mov eax, dword [ecx]
mov esi, dword [edx + 0xc]
mov eax, dword [eax + 0x30]
call eax
push eax
mov ecx, edi
call esi
mov ecx, eax
call fcn.1003b060
cmp dword [eax], 9
je 0x101276fe
mov eax, dword [0x1034c74c]
mov edi, dword [eax + 0x10]
mov ecx, dword [eax + 0x1c]
mov edx, dword [edi]
mov eax, dword [ecx]
mov esi, dword [edx + 0xc]
mov eax, dword [eax + 0x30]
call eax
push eax
mov ecx, edi
call esi
mov ecx, eax
call fcn.1003b060
cmp dword [eax], 8
je 0x101276fe
mov eax, dword [0x1034c750]
mov eax, dword [eax + 0x10]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
test byte [eax + 0x78], 1
jne 0x101276e2
mov eax, dword [0x1034c74c]
mov edi, dword [eax + 0x10]
mov ecx, dword [eax + 0x1c]
mov edx, dword [edi]
mov eax, dword [ecx]
mov esi, dword [edx + 0xc]
mov eax, dword [eax + 0x30]
call eax
push eax
mov ecx, edi
call esi
mov ecx, eax
call fcn.100230c0
test byte [eax], 1
je 0x101276d7
push 0
call fcn.10197260
or dword [eax + 0x24], 4
jmp 0x101276fe
mov eax, dword ds:[esp + 0x14]
test byte [eax + 0x78], 1
je 0x101276fe
call fcn.1011be40
mov ecx, eax
call fcn.100230c0
test byte [eax], 1
jne 0x101276fe
push 0
call fcn.10197260
and dword [eax + 0x24], 0xfffffffb
mov ecx, dword [0x1034c750]
mov ecx, dword [ecx + 0x10]
call fcn.1018b780
mov eax, dword [0x1034c744]
mov eax, dword [eax + 8]
cmp byte [eax + 2], 0
je 0x1012779c
mov eax, dword [0x1034c74c]
mov edi, dword [eax + 0x10]
mov ecx, dword [eax + 0x1c]
mov edx, dword [edi]
mov eax, dword [ecx]
mov esi, dword [edx + 0xc]
mov eax, dword [eax + 0x30]
call eax
push eax
mov ecx, edi
call esi
mov esi, eax
mov ecx, esi
call fcn.100230c0
test byte [eax], 1
je 0x1012779c
mov ecx, esi
call fcn.1003aee0
cmp byte [eax], 0
je 0x10127791
mov eax, dword [0x1034c74c]
mov eax, dword ds:[eax]
movss xmm0, dword [eax + 0x1c]
mulss xmm0, dword [0x102fe06c]
mov eax, dword [eax + 0x18]
cdq
divss xmm0, dword [0x102fde40]
cvttss2si ecx, xmm0
idiv ecx
test edx, edx
je 0x10127791
push 0
call fcn.10197260
and dword [eax + 0x24], 0xfffffffb
jmp 0x1012779c
push 0
call fcn.10197260
or dword [eax + 0x24], 4
mov eax, dword [0x1034c750]
mov esi, dword [eax + 8]
mov ecx, esi
call fcn.1012dda0
test al, al
je 0x101277e5
mov ecx, dword [esi + 0x14]
call fcn.101a5cc0
mov ecx, esi
cmp dword [eax + 0x658], 0
jne 0x101277c9
call fcn.1012dfe0
jmp 0x101277e5
call fcn.1012db60
test al, al
je 0x101277e5
mov ecx, esi
call fcn.1012d6e0
mov ecx, esi
call fcn.1012d9c0
mov eax, dword [0x1034c750]
cmp byte [eax], 0
je 0x1012783e
mov eax, dword [0x1034c744]
mov eax, dword [eax + 4]
cmp byte [eax + 4], 0
je 0x1012783e
nop dword [eax]
call fcn.1011be60
mov esi, eax
test esi, esi
je 0x1012783e
mov ecx, esi
call fcn.101a5cc0
cmp dword [eax + 0x658], 8
je 0x1012783e
mov ecx, esi
call fcn.101a5cc0
cmp dword [eax + 0x658], 7
je 0x1012783e
call fcn.1011bc60
test al, al
je 0x1012783e
mov byte [0x1034c738], 0
mov ecx, dword [0x1034c750]
mov ecx, dword [ecx + 0x18]
call fcn.10194460
call fcn.1011be60
mov esi, eax
test esi, esi
je 0x101278c1
mov ecx, esi
call fcn.101a5cc0
cmp dword [eax + 0x658], 7
je 0x101278c1
mov ecx, esi
call fcn.101a5cc0
cmp dword [eax + 0x658], 8
je 0x101278c1
mov ecx, esi
call fcn.101a5cc0
cmp dword [eax + 0x658], 0
je 0x101278c1
mov ecx, esi
call fcn.10022960
movss xmm0, dword [eax]
mov eax, dword [0x1034c750]
mov eax, dword [eax + 0x10]
mov eax, dword [eax]
comiss xmm0, dword [eax + 0x74]
jb 0x101278c1
push 0
call fcn.10197260
test byte [eax + 0x24], 1
je 0x101278c1
push 0
call fcn.10197260
and dword [eax + 0x24], 0xfffffffe
mov ecx, dword [0x1034c750]
mov ecx, dword [ecx + 0xc]
call fcn.101311e0
mov eax, dword [0x1034c734]
cmp dword [eax], 0x14
jge 0x101278f3
mov eax, dword [0x1034c750]
mov al, byte [eax + 0x3e]
nop
test al, al
je 0x101278fa
mov eax, dword [0x1034c750]
mov al, byte [eax + 0x4c]
nop
test al, al
jne 0x101278fa
mov byte [0x1034c738], 1
mov ecx, dword [0x1034c750]
mov ecx, dword [ecx + 0xc]
call fcn.101318c0
mov eax, dword [0x1034c744]
mov eax, dword [eax + 0x14]
cmp byte [eax + 0xd8], 0
je 0x10127a91
mov eax, dword [0x1034c74c]
mov edi, dword [eax + 0x10]
mov ecx, dword [eax + 0x1c]
mov edx, dword [edi]
mov eax, dword [ecx]
mov esi, dword [edx + 0xc]
mov eax, dword [eax + 0x30]
call eax
push eax
mov ecx, edi
call esi
mov ecx, eax
call fcn.100225e0
mov esi, eax
sub esp, 8
movss xmm1, dword [esi + 4]
movss xmm2, dword [esi]
movss xmm0, dword [esi + 8]
mulss xmm2, xmm2
mulss xmm1, xmm1
mulss xmm0, xmm0
addss xmm2, xmm1
addss xmm2, xmm0
cvtps2pd xmm0, xmm2
movsd qword [esp], xmm0
call fcn.100d7410
movss xmm2, dword [0x102fdde4]
add esp, 8
fstp dword [esp + 0x14]
movss xmm1, dword [esp + 0x14]
movaps xmm0, xmm1
addss xmm0, dword [0x102fdcd8]
divss xmm2, xmm0
movaps xmm0, xmm1
mulss xmm0, dword [0x102fdd94]
movaps xmm3, xmm2
mulss xmm3, dword [esi]
movaps xmm4, xmm2
mulss xmm4, dword [esi + 4]
mulss xmm2, dword [esi + 8]
addss xmm0, dword [0x102fdedc]
movss dword [esi], xmm3
movss dword [esi + 4], xmm4
movss dword [esi + 8], xmm2
mov eax, dword [0x1034c74c]
mov eax, dword [eax]
mulss xmm0, dword [eax + 0x1c]
subss xmm1, xmm0
movss xmm0, dword [0x102fde30]
maxss xmm1, dword [0x102fdcc0]
mulss xmm3, xmm1
mulss xmm4, xmm1
mulss xmm2, xmm1
movss dword [esi], xmm3
movss dword [esi + 4], xmm4
movss dword [esi + 8], xmm2
mov eax, dword fs:[0x2c]
mov esi, dword [0x1034dcac]
mulss xmm3, xmm0
mulss xmm4, xmm0
mov ecx, dword [eax + esi*4]
mov eax, dword [0x1035b434]
mulss xmm2, xmm0
movss dword [esp + 0x10], xmm3
movss dword [esp + 0x14], xmm4
movss dword [esp + 0xc], xmm2
cmp eax, dword [ecx + 4]
jg 0x10127cc6
jmp 0x10127a60
movss xmm4, dword [esp + 0x14]
movss xmm3, dword [esp + 0x10]
movss xmm2, dword [esp + 0xc]
mov eax, dword [0x1035b438]
movss xmm0, dword [eax + 0xc]
subss xmm0, xmm3
movss dword [eax + 0xc], xmm0
movss xmm0, dword [eax + 0x10]
subss xmm0, xmm4
movss dword [eax + 0x10], xmm0
movss xmm0, dword [eax + 0x14]
subss xmm0, xmm2
movss dword [eax + 0x14], xmm0
jmp 0x10127a97
mov esi, dword [0x1034dcac]
call fcn.10194b00
mov ecx, dword [0x1034c750]
mov ecx, dword [ecx + 0xc]
call fcn.10131b80
mov eax, dword fs:[0x2c]
mov ecx, dword ds:[eax + esi*4]
mov eax, dword [0x1035b054]
cmp eax, dword [ecx + 4]
jg 0x10127d05
mov edi, dword [esp + 8]
mov eax, dword fs:[0x2c]
mov ecx, dword ds:[eax + esi*4]
mov eax, dword [0x1035b064]
cmp eax, dword [ecx + 4]
jg 0x10127d5f
mov eax, dword fs:[0x2c]
mov ecx, dword ds:[eax + esi*4]
mov eax, dword [0x1035b06c]
cmp eax, dword [ecx + 4]
jg 0x10127da5
movss xmm6, dword [edi + 0xc]
lea ecx, [esp + 0x24]
movss xmm3, dword [0x1035b060]
movaps xmm2, xmm6
movss xmm5, dword [0x1035b058]
movss xmm1, dword [edi + 0x10]
subss xmm2, xmm5
movss xmm4, dword [0x1035b05c]
movss xmm0, dword [edi + 0x14]
subss xmm1, xmm4
subss xmm0, xmm3
subss xmm5, xmm2
subss xmm4, xmm1
subss xmm3, xmm0
movss dword [esp + 0x24], xmm5
movss dword [esp + 0x28], xmm4
movss dword [esp + 0x2c], xmm3
call fcn.101a7fc0
mov eax, dword [0x1035b070]
movss xmm0, dword [esp + 0x28]
divss xmm0, dword [eax + 0x28]
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x24]
xorps xmm0, xmmword [0x102fe3a0]
mov word [edi + 0x38], ax
mov eax, dword [0x1035b068]
divss xmm0, dword [eax + 0x28]
cvttss2si eax, xmm0
mov word [edi + 0x3a], ax
movss dword [0x1035b058], xmm6
movss xmm0, dword [edi + 0x10]
movss dword [0x1035b05c], xmm0
movss xmm0, dword [edi + 0x14]
movss dword [0x1035b060], xmm0
xorps xmm0, xmm0
mov eax, dword [edi + 0x24]
movss xmm1, dword [edi + 0x18]
and eax, 0xfffff9e7
comiss xmm1, xmm0
mov dword [edi + 0x24], eax
jbe 0x10127bdf
or eax, 8
jmp 0x10127be7
comiss xmm0, xmm1
jbe 0x10127bea
or eax, 0x10
mov dword [edi + 0x24], eax
movss xmm1, dword [edi + 0x1c]
comiss xmm1, xmm0
jbe 0x10127bfb
or eax, 0x400
jmp 0x10127c07
comiss xmm0, xmm1
jbe 0x10127c0a
or eax, 0x200
mov dword [edi + 0x24], eax
mov dword [edi + 0x14], 0
mov ecx, dword [0x1034c750]
mov ecx, dword [ecx + 0x28]
call fcn.10118000
mov ecx, dword [0x1034c750]
mov eax, 0xb60b60b7
mov esi, dword [ecx + 0x10]
mov ecx, dword [ebp + 8]
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp + 8]
imul eax, eax, 0x5a
sub ecx, eax
mov eax, dword [esi + 0xc]
mov dword [eax + ecx*4], edx
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1034dcac]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1035b43c]
cmp eax, dword [ecx + 4]
jg 0x10127ded
mov al, byte [0x1034c738]
xor cl, cl
mov byte [0x10306bf0], al
mov eax, dword [0x1034c750]
mov dword [0x1035b440], edi
add eax, 0x3d
xchg byte [eax], cl
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
push 0x1035b434
call fcn.1009af0b
add esp, 4
cmp dword [0x1035b434], 0xffffffff
jne 0x10127551
push 0x1035b434
mov dword [0x1035b438], 0
call fcn.1009aeba
add esp, 4
jmp 0x10127551
push 0x1035b434
call fcn.1009af0b
add esp, 4
cmp dword [0x1035b434], 0xffffffff
jne 0x10127a4e
push 0x1035b434
mov dword [0x1035b438], 0
call fcn.1009aeba
add esp, 4
jmp 0x10127a4e
push 0x1035b054
call fcn.1009af0b
mov edi, dword ds:[esp + 0xc]
add esp, 4
cmp dword [0x1035b054], 0xffffffff
jne 0x10127ad0
movss xmm0, dword [edi + 0xc]
movss dword [0x1035b058], xmm0
movss xmm0, dword [edi + 0x10]
movss dword [0x1035b05c], xmm0
movss xmm0, dword [edi + 0x14]
push 0x1035b054
movss dword [0x1035b060], xmm0
call fcn.1009aeba
add esp, 4
jmp 0x10127ad0
push 0x1035b064
call fcn.1009af0b
add esp, 4
cmp dword [0x1035b064], 0xffffffff
jne 0x10127aec
mov eax, dword [0x1034c74c]
push str.m_pitch
mov ecx, dword [eax + 0x34]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
push 0x1035b064
mov dword [0x1035b068], eax
call fcn.1009aeba
add esp, 4
jmp 0x10127aec
push 0x1035b06c
call fcn.1009af0b
add esp, 4
cmp dword [0x1035b06c], 0xffffffff
jne 0x10127b0c
mov eax, dword [0x1034c74c]
push str.m_yaw
mov ecx, dword [eax + 0x34]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
push 0x1035b06c
mov dword [0x1035b070], eax
nop dword [eax]
call fcn.1009aeba
add esp, 4
jmp 0x10127b0c
push 0x1035b43c
call fcn.1009af0b
add esp, 4
cmp dword [0x1035b43c], 0xffffffff
jne 0x10127c6c
push 0x1035b43c
mov dword [0x1035b440], edi
call fcn.1009aeba
add esp, 4
jmp 0x10127c6c