Function at 0x101a3310
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x103280cc]
sub esp, 0x20
mov eax, dword [eax + 0x14]
push esi
push edi
cmp byte [eax], 0
je 0x101a36d5
cmp byte [eax + 3], 0
je 0x101a36d5
mov eax, dword [0x103280d8]
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, dword fs:[0x2c]
mov edi, eax
mov eax, dword [0x10329638]
mov edx, dword [ecx + eax*4]
mov ecx, dword [0x10336e4c]
cmp ecx, dword [edx + 4]
jg 0x101a36db
mov esi, dword [0x10336e50]
mov ecx, edi
call fcn.10038450
cmp dword [eax], 9
je 0x101a36d5
mov ecx, edi
call fcn.10038450
cmp dword [eax], 8
je 0x101a36d5
mov ecx, edi
call fcn.10024220
test byte [eax], 1
jne 0x101a36d5
mov eax, dword fs:[0x2c]
mov edi, dword [0x10329638]
mov ecx, dword [eax + edi*4]
mov eax, dword [0x10336e28]
cmp eax, dword [ecx + 4]
jg 0x101a3711
mov eax, dword [0x103280d8]
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov ecx, dword [eax + 0x1c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x4c]
movss xmm0, dword [esp + 0x20]
sub esp, 8
subss xmm0, dword [0x103368dc]
mov dword [esp + 4], 0x43b40000
movss dword [esp], xmm0
call fcn.100e5cb0
fstp dword [esp + 0x18]
movss xmm0, dword [esp + 0x18]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.100e5a1a
movss xmm0, dword [esp + 0x28]
add esp, 8
mov ecx, dword [esi + 0x24]
movss xmm2, dword [0x102cd540]
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov eax, dword [0x103280cc]
fstp dword [esp + 0x18]
movss dword [0x103368dc], xmm0
mov eax, dword [eax + 0x14]
cmp byte [eax + 0xd0], 0
je 0x101a34c7
movss xmm0, dword [0x102cd4e0]
xorps xmm1, xmm1
test ecx, 0x200
je 0x101a3485
subss xmm1, xmm0
test ecx, 0x400
je 0x101a3491
addss xmm1, xmm0
test cl, 8
je 0x101a34a0
mulss xmm1, dword [0x102cd2ac]
jmp 0x101a34b7
test cl, 0x10
je 0x101a34b7
movaps xmm0, xmm1
movaps xmm1, xmm2
mulss xmm0, dword [0x102cd2ac]
subss xmm1, xmm0
movss xmm0, dword [esp + 0x20]
subss xmm0, xmm1
movss dword [esp + 0x20], xmm0
call fcn.1012cbb0
mov edx, 0x24045b30
mov dword [esp + 0xc], eax
mov ecx, eax
call edx
mov eax, dword [esp + 0xc]
sub esp, 8
movss xmm0, dword [eax + 0xf0]
movss xmm1, dword [eax + 0xec]
movss dword [esp + 4], xmm0
movss dword [esp], xmm1
call fcn.100f82cc
fstp dword [esp + 0x1c]
movss xmm0, dword [esp + 0x1c]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
sub esp, 8
movss xmm0, dword [0x102cd454]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.100e5e20
movss xmm0, dword [0x102cd540]
add esp, 0x10
divss xmm0, dword [0x102cd3ac]
fstp dword [esp + 0x14]
mulss xmm0, dword [esp + 0x14]
comiss xmm0, dword [esp + 0x18]
jbe 0x101a35e6
mov eax, dword [esp + 0xc]
sub esp, 8
movss xmm1, dword [eax + 0xec]
movss xmm0, dword [eax + 0xf0]
mov dword [esp + 4], 0x43b40000
call fcn.10028200
movss xmm1, dword [0x102cd540]
divss xmm1, dword [0x102cd3ac]
mulss xmm0, xmm1
movss xmm1, dword [esp + 0x28]
subss xmm1, xmm0
movss dword [esp], xmm1
call fcn.100e5cb0
add esp, 4
fstp dword [esp + 0x10]
movss xmm0, dword [esp + 0x10]
movss dword [esp], xmm0
call fcn.100e59f5
add esp, 4
test eax, eax
mov eax, dword [0x10336e2c]
movss xmm0, dword [eax + 0x28]
jne 0x101a35cd
xorps xmm0, xmmword [0x102cd9f0]
movss dword [esi + 0x1c], xmm0
movss xmm0, dword [esp + 0x20]
subss xmm0, dword [esp + 0xc]
movss dword [esp + 0x20], xmm0
jmp 0x101a361c
movss xmm0, dword [esp + 0x10]
push ecx
movss dword [esp], xmm0
call fcn.100e59f5
add esp, 4
test eax, eax
mov eax, dword [0x10336e2c]
je 0x101a360b
mov eax, dword [eax + 0x28]
mov dword [esi + 0x1c], eax
jmp 0x101a361c
movss xmm0, dword [eax + 0x28]
xorps xmm0, xmmword [0x102cd9f0]
movss dword [esi + 0x1c], xmm0
mov eax, dword fs:[0x2c]
movss xmm0, dword [esp + 0x20]
movss dword [esp + 0x18], xmm0
mov ecx, dword [eax + edi*4]
mov eax, dword [0x10336e4c]
cmp eax, dword [ecx + 4]
jg 0x101a3756
movss xmm1, dword [0x102cd3ac]
sub esp, 8
divss xmm1, dword [0x102cd540]
mov esi, dword [0x10336e50]
movss xmm0, dword [esi + 0x10]
subss xmm0, dword [esp + 0x20]
mulss xmm0, xmm1
movss dword [esp + 0x20], xmm0
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.100e5dd0
movss xmm0, dword [esp + 0x20]
cvtps2pd xmm0, xmm0
fstp dword [esp + 0x1c]
movsd qword [esp], xmm0
call fcn.100e5d80
movss xmm5, dword [esi + 0x18]
add esp, 8
movss xmm4, dword [esi + 0x1c]
movaps xmm2, xmm5
mulss xmm2, dword [esp + 0x14]
movaps xmm0, xmm4
mulss xmm4, dword [esp + 0x14]
fstp dword [esp + 0x18]
mulss xmm0, dword [esp + 0x18]
mulss xmm5, dword [esp + 0x18]
subss xmm2, xmm0
addss xmm5, xmm4
movss dword [esi + 0x18], xmm2
movss dword [esi + 0x1c], xmm5
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x10336e4c
call fcn.100bbde8
add esp, 4
cmp dword [0x10336e4c], 0xffffffff
jne 0x101a3375
push 0x10336e4c
mov dword [0x10336e50], 0
call fcn.100bbd97
add esp, 4
jmp 0x101a3375
push 0x10336e28
call fcn.100bbde8
add esp, 4
cmp dword [0x10336e28], 0xffffffff
jne 0x101a33cb
mov eax, dword [0x103280d8]
push str.cl_sidespeed
mov ecx, dword [eax + 0x34]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
push 0x10336e28
mov dword [0x10336e2c], eax
call fcn.100bbd97
add esp, 4
jmp 0x101a33cb
push 0x10336e4c
call fcn.100bbde8
add esp, 4
cmp dword [0x10336e4c], 0xffffffff
jne 0x101a3642
push 0x10336e4c
mov dword [0x10336e50], 0
call fcn.100bbd97
add esp, 4
jmp 0x101a3642