Function at 0x1001c9f0
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 0x100b8789
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x88
push esi
push edi
mov eax, dword [0x10103040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [0x10103ea8]
mov ecx, 0x10175a17
call fcn.100b6430
cmp byte [0x10103fd8], 0
je 0x1001ca72
movss xmm0, dword [esi + 0x24]
mulss xmm0, dword [0x100fab6c]
or dword [esi + 0x30], 0x20000
movss dword [esi + 0x24], xmm0
movss xmm0, dword [esi + 0x28]
mulss xmm0, dword [0x100fab6c]
movss dword [esi + 0x28], xmm0
cmp byte [0x10103ff0], 0
je 0x1001caa6
movss xmm0, dword [esi + 0x24]
mulss xmm0, dword [0x100fab68]
or dword [esi + 0x30], 0x20000
movss dword [esi + 0x24], xmm0
movss xmm0, dword [esi + 0x28]
mulss xmm0, dword [0x100fab68]
movss dword [esi + 0x28], xmm0
cmp byte [0x10103ff8], 0
je 0x1001cada
movss xmm0, dword [esi + 0x24]
mulss xmm0, dword [0x100fab50]
or dword [esi + 0x30], 0x20000
movss dword [esi + 0x24], xmm0
movss xmm0, dword [esi + 0x28]
mulss xmm0, dword [0x100fab50]
movss dword [esi + 0x28], xmm0
cmp byte [0x101040b8], 0
je 0x1001cb0e
movss xmm0, dword [esi + 0x24]
mulss xmm0, dword [0x100fab48]
or dword [esi + 0x30], 0x20000
movss dword [esi + 0x24], xmm0
movss xmm0, dword [esi + 0x28]
mulss xmm0, dword [0x100fab48]
movss dword [esi + 0x28], xmm0
mov eax, dword [0x1016ebd4]
mov ecx, dword [eax]
test ecx, ecx
je 0x1001cb33
cmp dword [ecx + 0x25c], 9
je 0x1001d1ba
cmp dword [ecx + 0x25c], 8
je 0x1001d1ba
mov eax, dword [0x1017072c]
mov al, byte [eax]
test al, al
je 0x1001cd16
call fcn.10016ec0
test byte [eax], 1
jne 0x1001cd16
mov eax, dword [0x1016ebd4]
mov ecx, dword [eax]
call fcn.1000dfa0
movss xmm1, dword [eax + 4]
movss xmm0, dword [eax]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
call fcn.1000edd0
comiss xmm0, dword [0x100facb0]
jbe 0x1001cd16
mov ecx, dword [esi + 0x30]
mov edx, ecx
shr edx, 3
mov eax, ecx
and edx, 0xffffff01
shr eax, 4
mov dword [ebp - 0x14], edx
mov edx, ecx
shr edx, 9
shr ecx, 0xa
and dl, 1
and cl, 1
test al, 1
je 0x1001cbf4
movss xmm0, dword [0x100fadfc]
mov dword [0x101040bc], 0xc3340000
test dl, dl
je 0x1001cbd8
movss xmm0, dword [0x100fae00]
mov dword [0x101040bc], 0xc3610000
jmp 0x1001cc61
test cl, cl
je 0x1001cc61
movss xmm0, dword [0x100fadf8]
mov dword [0x101040bc], 0xc3070000
jmp 0x1001cc61
test dl, dl
je 0x1001cc24
cmp byte [ebp - 0x14], 0
movss xmm0, dword [0x100fad1c]
mov dword [0x101040bc], 0x42b40000
je 0x1001cc61
movss xmm0, dword [0x100facf8]
mov dword [0x101040bc], 0x42340000
jmp 0x1001cc61
test cl, cl
je 0x1001cc54
cmp byte [ebp - 0x14], 0
movss xmm0, dword [0x100fadec]
mov dword [0x101040bc], 0xc2b40000
je 0x1001cc61
movss xmm0, dword [0x100fade0]
mov dword [0x101040bc], 0xc2340000
jmp 0x1001cc61
mov dword [0x101040bc], 0
xorps xmm0, xmm0
addss xmm0, dword [ebx + 0xc]
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov eax, dword [0x1016ebd4]
movss dword [ebx + 0xc], xmm0
mov ecx, dword [eax]
call fcn.1000dfa0
movss xmm0, dword [eax]
mov eax, dword [0x1016ebd4]
movss dword [ebp - 0x18], xmm0
mov ecx, dword [eax]
call fcn.1000dfa0
movss xmm0, dword [eax + 4]
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x30], xmm0
movss xmm0, dword [ebp - 0x18]
fld qword [ebp - 0x30]
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x30], xmm0
fld qword [ebp - 0x30]
call sub.ucrtbased.dll__CIatan2
movss xmm0, dword [ebx + 0xc]
fstp qword [ebp - 0x30]
movsd xmm1, qword [ebp - 0x30]
cvtpd2ps xmm1, xmm1
mulss xmm1, dword [0x100fad00]
subss xmm0, xmm1
call fcn.1001c990
movaps xmm2, xmm0
xorps xmm0, xmm0
comiss xmm2, xmm0
jbe 0x1001ccf6
movss xmm1, dword [0x100fae08]
jmp 0x1001ccfe
movss xmm1, dword [0x100fad58]
movss xmm0, dword [ebx + 0xc]
subss xmm0, xmm2
movss dword [esi + 0x28], xmm1
call fcn.1001c990
movss dword [ebx + 0xc], xmm0
mov eax, dword [esi + 0x14]
lea edx, [ebp - 0x30]
movq xmm0, qword [esi + 0xc]
lea ecx, [ebx + 8]
and dword [esi + 0x30], 0xfffff9e7
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x2c], 0x7f800000
push eax
mov dword [ebp - 0x30], 0x7f800000
mov dword [ebp - 0x58], 0x7f800000
mov dword [ebp - 0x5c], 0x7f800000
mov dword [ebp - 0x78], 0x7f800000
mov dword [ebp - 0x64], 0x7f800000
mov dword [ebp - 0x68], 0x7f800000
mov dword [ebp - 0x70], 0x7f800000
mov dword [ebp - 0x74], 0x7f800000
mov dword [ebp - 0x84], 0x7f800000
movq qword [ebp - 0x98], xmm0
call fcn.1002a090
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x74]
push eax
lea edx, [ebp - 0x68]
lea ecx, [ebp - 0x98]
call fcn.1002a090
movss xmm1, dword [ebp - 0x30]
add esp, 0x10
movss xmm0, dword [ebp - 0x2c]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
call fcn.1000edd0
movss xmm1, dword [ebp - 0x5c]
movss dword [ebp - 0x18], xmm0
movss xmm0, dword [ebp - 0x58]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
call fcn.1000edd0
movss dword [ebp - 0x14], xmm0
movss xmm0, dword [ebp - 0x78]
mulss xmm0, xmm0
call fcn.1000edd0
movss xmm4, dword [0x100fabf8]
movaps xmm2, xmm4
divss xmm2, dword [ebp - 0x18]
movaps xmm1, xmm2
mulss xmm2, dword [ebp - 0x2c]
mulss xmm1, dword [ebp - 0x30]
movss dword [ebp - 0x38], xmm2
movaps xmm2, xmm4
divss xmm2, dword [ebp - 0x14]
movss dword [ebp - 0x34], xmm1
movaps xmm1, xmm2
mulss xmm2, dword [ebp - 0x58]
mulss xmm1, dword [ebp - 0x5c]
movss dword [ebp - 0x3c], xmm2
movss dword [ebp - 0x50], xmm1
movaps xmm1, xmm4
divss xmm1, xmm0
movss xmm0, dword [ebp - 0x64]
mulss xmm1, dword [ebp - 0x78]
mulss xmm0, xmm0
movss dword [ebp - 0x14], xmm1
movss xmm1, dword [ebp - 0x68]
mulss xmm1, xmm1
addss xmm0, xmm1
call fcn.1000edd0
movss xmm1, dword [ebp - 0x74]
movss dword [ebp - 0x18], xmm0
movss xmm0, dword [ebp - 0x70]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
call fcn.1000edd0
movss dword [ebp - 0x1c], xmm0
movss xmm0, dword [ebp - 0x84]
mulss xmm0, xmm0
call fcn.1000edd0
movss xmm3, dword [0x100fabf8]
xorps xmm4, xmm4
movaps xmm1, xmm3
movss xmm7, dword [esi + 0x28]
divss xmm1, dword [ebp - 0x18]
movss xmm5, dword [ebp - 0x14]
movaps xmm6, xmm7
movaps xmm2, xmm1
mulss xmm5, dword [esi + 0x2c]
mulss xmm1, dword [ebp - 0x64]
mulss xmm2, dword [ebp - 0x68]
movss dword [ebp - 0x44], xmm1
movaps xmm1, xmm3
divss xmm1, dword [ebp - 0x1c]
divss xmm3, xmm0
mulss xmm6, dword [ebp - 0x50]
mulss xmm3, dword [ebp - 0x84]
movss dword [ebp - 0x40], xmm2
movaps xmm2, xmm1
mulss xmm2, dword [ebp - 0x74]
mulss xmm1, dword [ebp - 0x70]
movss dword [ebp - 0x28], xmm3
movss xmm3, dword [esi + 0x24]
movaps xmm0, xmm3
movss dword [ebp - 0x48], xmm2
mulss xmm0, dword [ebp - 0x34]
movaps xmm2, xmm7
mulss xmm2, dword [ebp - 0x3c]
movss dword [ebp - 0x34], xmm0
movaps xmm0, xmm3
mulss xmm0, dword [ebp - 0x38]
movss dword [ebp - 0x4c], xmm1
movss xmm1, dword [esi + 0x2c]
mulss xmm1, xmm4
movss dword [ebp - 0x1c], xmm0
xorps xmm0, xmm0
mulss xmm3, xmm4
mulss xmm7, xmm4
movss dword [ebp - 0x3c], xmm2
mulss xmm2, dword [ebp - 0x44]
movss dword [ebp - 0x18], xmm1
movaps xmm4, xmm7
movss xmm1, dword [ebp - 0x1c]
mulss xmm1, dword [ebp - 0x44]
mulss xmm4, xmm0
movss dword [ebp - 0x38], xmm3
mulss xmm3, xmm0
movss dword [ebp - 0x14], xmm5
mulss xmm5, xmm0
movaps xmm0, xmm6
mulss xmm0, dword [ebp - 0x40]
addss xmm2, xmm0
movss xmm0, dword [ebp - 0x34]
mulss xmm0, dword [ebp - 0x40]
addss xmm1, xmm0
movss xmm0, dword [ebp - 0x18]
addss xmm2, xmm4
addss xmm1, xmm3
addss xmm2, xmm1
movss xmm1, dword [ebp - 0x40]
mulss xmm1, xmm0
mulss xmm0, dword [ebp - 0x44]
addss xmm1, xmm0
movss xmm0, dword [ebp - 0x34]
mulss xmm0, dword [ebp - 0x48]
addss xmm1, xmm5
addss xmm2, xmm1
movss dword [esi + 0x24], xmm2
movss xmm2, dword [ebp - 0x1c]
mulss xmm2, dword [ebp - 0x4c]
addss xmm2, xmm0
movaps xmm0, xmm6
mulss xmm0, dword [ebp - 0x48]
addss xmm2, xmm3
movss xmm3, dword [ebp - 0x3c]
movaps xmm1, xmm3
mulss xmm1, dword [ebp - 0x4c]
addss xmm1, xmm0
addss xmm1, xmm4
movss xmm4, dword [ebp - 0x48]
addss xmm2, xmm1
movss xmm1, dword [ebp - 0x18]
movaps xmm0, xmm1
mulss xmm4, xmm1
mov edi, dword [0x10103e6c]
mulss xmm0, dword [ebp - 0x4c]
addss xmm4, xmm0
movss xmm0, dword [ebp - 0x1c]
addss xmm4, xmm5
xorps xmm5, xmm5
mulss xmm0, xmm5
mulss xmm3, xmm5
addss xmm2, xmm4
mulss xmm6, xmm5
movss xmm4, dword [ebp - 0x28]
mulss xmm1, xmm5
addss xmm3, xmm6
mulss xmm7, xmm4
movss dword [esi + 0x28], xmm2
addss xmm1, xmm1
movss xmm2, dword [ebp - 0x34]
mulss xmm2, xmm5
addss xmm3, xmm7
addss xmm2, xmm0
movss xmm0, dword [ebp - 0x38]
mulss xmm0, xmm4
addss xmm2, xmm0
movss xmm0, dword [ebp - 0x14]
mulss xmm0, xmm4
addss xmm3, xmm2
addss xmm1, xmm0
addss xmm3, xmm1
movss dword [esi + 0x2c], xmm3
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + edi*4]
mov eax, dword [0x101729b8]
cmp eax, dword [ecx + 4]
jg 0x1001d1ce
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + edi*4]
mov eax, dword [0x101729c0]
cmp eax, dword [ecx + 4]
jg 0x1001d21f
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + edi*4]
mov eax, dword [0x101729b4]
cmp eax, dword [ecx + 4]
jg 0x1001d270
mov ecx, dword [0x101729bc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov ecx, dword [0x101729bc]
fstp dword [ebp - 0x3c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
fstp dword [ebp - 0x28]
movss xmm0, dword [ebp - 0x28]
lea eax, [ebp - 0x3c]
xorps xmm0, xmmword [0x100fb030]
lea ecx, [esi + 0x24]
push eax
lea edx, [ebp - 0x28]
movss dword [ebp - 0x28], xmm0
call fcn.1000bcd0
mov ecx, dword [0x101729c4]
add esp, 4
mov eax, dword [eax]
mov dword [esi + 0x24], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov ecx, dword [0x101729c4]
fstp dword [ebp - 0x50]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
fstp dword [ebp - 0x28]
movss xmm0, dword [ebp - 0x28]
lea eax, [ebp - 0x50]
xorps xmm0, xmmword [0x100fb030]
lea ecx, [esi + 0x28]
push eax
lea edx, [ebp - 0x38]
movss dword [ebp - 0x38], xmm0
call fcn.1000bcd0
mov ecx, dword [0x101729c8]
add esp, 4
mov eax, dword [eax]
mov dword [esi + 0x28], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov ecx, dword [0x101729c8]
fstp dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
fstp dword [ebp - 0x28]
movss xmm0, dword [ebp - 0x28]
lea eax, [ebp - 0x14]
xorps xmm0, xmmword [0x100fb030]
lea ecx, [esi + 0x2c]
push eax
lea edx, [ebp - 0x1c]
movss dword [ebp - 0x1c], xmm0
call fcn.1000bcd0
add esp, 4
mov eax, dword [eax]
mov dword [esi + 0x2c], eax
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
push 0x101729b8
call fcn.100b4050
add esp, 4
cmp dword [0x101729b8], 0xffffffff
jne 0x1001d0ae
mov dword [ebp - 4], 0
mov ecx, dword [0x10103ed8]
push str.cl_forwardspeed
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
call eax
push 0x101729b8
mov dword [0x101729bc], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100b4000
add esp, 4
jmp 0x1001d0ae
push 0x101729c0
call fcn.100b4050
add esp, 4
cmp dword [0x101729c0], 0xffffffff
jne 0x1001d0c8
mov dword [ebp - 4], 1
mov ecx, dword [0x10103ed8]
push str.cl_sidespeed
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
call eax
push 0x101729c0
mov dword [0x101729c4], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100b4000
add esp, 4
jmp 0x1001d0c8
push 0x101729b4
call fcn.100b4050
add esp, 4
cmp dword [0x101729b4], 0xffffffff
jne 0x1001d0e2
mov dword [ebp - 4], 2
mov ecx, dword [0x10103ed8]
push str.cl_upspeed
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
call eax
push 0x101729b4
mov dword [0x101729c8], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100b4000
add esp, 4
jmp 0x1001d0e2