Function at 0x1012be10
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101797ed
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1029c3d4]
push esi
mov esi, dword [eax + ecx*4]
mov eax, dword [0x102a6df0]
mov dword [ebp - 0x38], esi
cmp eax, dword [esi + 4]
jle 0x1012be8b
push 0x102a6df0
call fcn.101707aa
add esp, 4
cmp dword [0x102a6df0], 0xffffffff
jne 0x1012be8b
push str.sv_usercmd_custom_random_seed
mov dword [ebp - 4], 0
call fcn.1016c1e0
push 0x102a6df0
mov dword [0x102a6de4], eax
mov dword [ebp - 4], 0xffffffff
call fcn.10170759
add esp, 4
mov eax, dword [0x102a6de4]
test eax, eax
je 0x1012bea5
mov eax, dword [eax + 0x1c]
cmp dword [eax + 0x30], 1
je 0x1012bea5
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x34]
jmp 0x1012bec7
call fcn.1012b470
cvtsd2ss xmm0, xmm0
addss xmm0, dword [0x1029dd88]
mulss xmm0, dword [0x10286f54]
movss dword [ebp - 0x3c], xmm0
movzx eax, byte [ebp - 0x3c]
cmp dword [0x1029dd7c], 0
mov dword [0x1029dd8c], eax
je 0x1012c7b2
cmp dword [0x1029da30], 1
jne 0x1012c7b2
mov eax, dword [0x10299ea0]
test eax, eax
jne 0x1012befe
mov ecx, 0x10299ea0
call fcn.1016f570
mov eax, dword [0x10299ea0]
push edi
mov edi, dword [ebp + 0xc]
mov ecx, edi
mov dword [ebp - 0x3c], eax
call dword [ebp - 0x3c]
xorps xmm0, xmm0
fstp dword [ebp - 0x3c]
comiss xmm0, dword [ebp - 0x3c]
movss dword [ebp - 0x14], xmm0
jae 0x1012c7b1
cmp byte [0x1029da2c], 0
je 0x1012c7b1
mov eax, dword [0x10299ea0]
test eax, eax
jne 0x1012bf44
mov ecx, 0x10299ea0
call fcn.1016f570
mov eax, dword [0x10299ea0]
mov ecx, edi
mov dword [ebp - 0x3c], eax
call dword [ebp - 0x3c]
mov eax, dword [0x1029a1dc]
mov dword [ebp - 0x34], eax
fstp dword [ebp - 0x50]
test eax, eax
jne 0x1012bf6d
mov ecx, 0x1029a1dc
call fcn.1016f570
mov eax, dword [0x1029a1dc]
mov dword [ebp - 0x34], eax
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x5f4]
call eax
push eax
call dword [ebp - 0x34]
add esp, 4
test eax, eax
je 0x1012bf8f
mov ecx, dword [eax + 0x6fc]
mov dword [ebp - 0x34], ecx
jmp 0x1012bf96
mov dword [ebp - 0x34], 1
mov eax, dword [0x1029db6c]
cmp eax, dword [esi + 4]
jle 0x1012bff1
push 0x1029db6c
call fcn.101707aa
add esp, 4
cmp dword [0x1029db6c], 0xffffffff
jne 0x1012bff1
mov dword [ebp - 4], 1
mov eax, dword [0x102998f0]
test eax, eax
jne 0x1012bfd8
mov ecx, 0x102998f0
call fcn.1016f570
mov eax, dword [0x102998f0]
push 0x1029db6c
mov dword [0x1029db4c], eax
mov dword [ebp - 4], 0xffffffff
call fcn.10170759
add esp, 4
movd xmm0, dword [ebp - 0x34]
mov eax, dword [0x1029db4c]
push 1
push 0
cvtdq2ps xmm0, xmm0
push edi
push str.mult_bullets_per_shot
push ecx
mov dword [ebp - 0x3c], eax
movss dword [esp], xmm0
call dword [ebp - 0x3c]
xor esi, esi
xor edi, edi
fstp dword [ebp - 0x34]
cvttss2si eax, dword [ebp - 0x34]
add esp, 0x14
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], esi
xor ecx, ecx
mov dword [ebp - 4], 2
mov dword [ebp - 0x30], ecx
movss xmm4, dword [ebp - 0x14]
movss dword [ebp - 0x20], xmm4
movaps xmm5, xmm4
movss dword [ebp - 0x1c], xmm5
movaps xmm6, xmm4
test eax, eax
jle 0x1012c63c
mov esi, dword [ebp - 0x38]
nop dword [eax + eax]
mov eax, dword [0x1029dd8c]
add eax, ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [0x1029dcbc]
cmp eax, dword [esi + 4]
jle 0x1012c0b6
push 0x1029dcbc
call fcn.101707aa
add esp, 4
cmp dword [0x1029dcbc], 0xffffffff
jne 0x1012c0b6
push str.RandomSeed
push str.vstdlib.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1029dcbc
mov dword [0x1029dc8c], eax
call fcn.10170759
add esp, 4
push dword [ebp - 0x2c]
call dword [0x1029dc8c]
add esp, 4
cmp dword [ebp - 0x30], 0
jne 0x1012c1c1
push ecx
call fcn.1013d1a0
test eax, eax
jne 0x1012c1c1
mov eax, dword [0x1029db0c]
cmp eax, dword [esi + 4]
jle 0x1012c126
push 0x1029db0c
call fcn.101707aa
add esp, 4
cmp dword [0x1029db0c], 0xffffffff
jne 0x1012c126
push str.m_flLastFireTime
push str.CTFWeaponBase
mov byte [ebp - 4], 3
call fcn.1016f4e0
push 0x1029db0c
mov dword [0x1029db30], eax
mov byte [ebp - 4], 2
call fcn.10170759
add esp, 4
mov eax, dword [0x1029db30]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x1029dae8]
cmp eax, dword [esi + 4]
jle 0x1012c17a
push 0x1029dae8
call fcn.101707aa
add esp, 4
cmp dword [0x1029dae8], 0xffffffff
jne 0x1012c17a
push str.m_nTickBase
push str.CBasePlayer
mov byte [ebp - 4], 4
call fcn.1016f4e0
push 0x1029dae8
mov dword [0x1029db00], eax
mov byte [ebp - 4], 2
call fcn.10170759
add esp, 4
mov eax, dword [0x1029db00]
mov ecx, dword [ebp + 8]
movd xmm0, dword [eax + ecx]
mov eax, dword [0x1029da70]
mov ecx, dword [ebp + 0xc]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [eax + 0x1c]
mov eax, dword [ebp - 0x2c]
subss xmm0, dword [eax + ecx]
cvttss2si eax, dword [ebp - 0x34]
cmp eax, 1
jne 0x1012c1b2
comiss xmm0, dword [0x10286d14]
jmp 0x1012c1bb
jle 0x1012c1c1
comiss xmm0, dword [0x10286c84]
ja 0x1012c7a9
mov eax, dword [0x1029dd30]
cmp eax, dword [esi + 4]
jle 0x1012c20d
push 0x1029dd30
call fcn.101707aa
add esp, 4
cmp dword [0x1029dd30], 0xffffffff
jne 0x1012c20d
push str.RandomFloat
push str.vstdlib.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1029dd30
mov dword [0x1029dd3c], eax
call fcn.10170759
add esp, 4
mov eax, dword [0x1029dd3c]
sub esp, 8
mov dword [ebp - 0x2c], eax
mov dword [esp + 4], 0x3f000000
mov dword [esp], 0xbf000000
call dword [ebp - 0x2c]
mov eax, dword [0x1029dd30]
add esp, 8
fstp dword [ebp - 0x24]
cmp eax, dword [esi + 4]
jle 0x1012c27c
push 0x1029dd30
call fcn.101707aa
add esp, 4
cmp dword [0x1029dd30], 0xffffffff
jne 0x1012c27c
push str.RandomFloat
push str.vstdlib.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1029dd30
mov dword [0x1029dd3c], eax
call fcn.10170759
add esp, 4
mov eax, dword [0x1029dd3c]
sub esp, 8
mov dword [ebp - 0x2c], eax
mov dword [esp + 4], 0x3f000000
mov dword [esp], 0xbf000000
call dword [ebp - 0x2c]
fadd dword [ebp - 0x24]
mov eax, dword [0x1029dd30]
add esp, 8
fstp dword [ebp - 0x4c]
cmp eax, dword [esi + 4]
jle 0x1012c2ee
push 0x1029dd30
call fcn.101707aa
add esp, 4
cmp dword [0x1029dd30], 0xffffffff
jne 0x1012c2ee
push str.RandomFloat
push str.vstdlib.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1029dd30
mov dword [0x1029dd3c], eax
call fcn.10170759
add esp, 4
mov eax, dword [0x1029dd3c]
sub esp, 8
mov dword [ebp - 0x2c], eax
mov dword [esp + 4], 0x3f000000
mov dword [esp], 0xbf000000
call dword [ebp - 0x2c]
mov eax, dword [0x1029dd30]
add esp, 8
fstp dword [ebp - 0x24]
cmp eax, dword [esi + 4]
jle 0x1012c35d
push 0x1029dd30
call fcn.101707aa
add esp, 4
cmp dword [0x1029dd30], 0xffffffff
jne 0x1012c35d
push str.RandomFloat
push str.vstdlib.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1029dd30
mov dword [0x1029dd3c], eax
call fcn.10170759
add esp, 4
mov eax, dword [0x1029dd3c]
sub esp, 8
mov dword [ebp - 0x2c], eax
mov dword [esp + 4], 0x3f000000
mov dword [esp], 0xbf000000
call dword [ebp - 0x2c]
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x3c]
fadd dword [ebp - 0x24]
add esp, 8
add ecx, 0xc
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x24], ecx
movss xmm1, dword [0x10286c1c]
movss xmm0, dword [ecx]
mulss xmm0, xmm1
mov dword [ebp - 0x10], eax
fstp dword [ebp - 0x58]
movss dword [ebp - 0x2c], xmm0
fld dword [ebp - 0x2c]
fsincos
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
fstp dword [edx]
fstp dword [eax]
movss xmm0, dword [ecx + 4]
lea eax, [ebp - 0x40]
mulss xmm0, xmm1
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x10], eax
movss dword [ebp - 0x2c], xmm0
fld dword [ebp - 0x2c]
fsincos
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
fstp dword [edx]
fstp dword [eax]
movss xmm0, dword [ecx + 8]
lea eax, [ebp - 0x28]
mulss xmm0, xmm1
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x10], eax
movss dword [ebp - 0x2c], xmm0
fld dword [ebp - 0x2c]
fsincos
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
fstp dword [edx]
fstp dword [eax]
movss xmm7, dword [ebp - 0x40]
movss xmm5, dword [ebp - 0x3c]
movaps xmm0, xmm7
movss xmm6, dword [ebp - 0x44]
mulss xmm0, xmm5
movaps xmm3, xmm6
xorps xmm3, xmmword [0x10287330]
movss xmm4, dword [ebp - 0x48]
movss dword [ebp - 0x54], xmm0
movaps xmm1, xmm4
mulss xmm1, dword [ebp - 0x38]
movaps xmm0, xmm6
mulss xmm0, xmm5
movss dword [ebp - 0x5c], xmm0
movss xmm0, dword [ebp - 0x38]
xorps xmm0, xmmword [0x10287330]
movss dword [ebp - 0x60], xmm0
movss xmm0, dword [ebp - 0x28]
mulss xmm0, dword [0x10286fdc]
movss dword [ebp - 0x10], xmm0
movaps xmm0, xmm3
mulss xmm0, dword [ebp - 0x10]
mulss xmm3, xmm4
movss dword [ebp - 0x18], xmm0
movaps xmm0, xmm1
movss xmm2, dword [ebp - 0x18]
mulss xmm0, xmm7
mulss xmm1, xmm6
subss xmm2, xmm0
movss xmm0, dword [ebp - 0x10]
mulss xmm0, xmm7
subss xmm0, xmm1
movss dword [ebp - 0x18], xmm2
movss dword [ebp - 0x10], xmm0
movaps xmm0, xmm4
mulss xmm0, dword [0x10286fdc]
mulss xmm0, xmm5
movss xmm5, dword [ebp - 0x28]
mulss xmm5, dword [ebp - 0x38]
movss dword [ebp - 0x2c], xmm0
movaps xmm2, xmm5
mulss xmm5, xmm6
mulss xmm2, xmm7
subss xmm2, xmm3
movss xmm1, dword [ebp - 0x4c]
movss xmm0, dword [ebp - 0x58]
movss xmm6, dword [ebp - 0x10]
mulss xmm4, xmm7
movss xmm7, dword [ebp - 0x50]
movss xmm3, dword [ebp - 0x28]
mulss xmm3, dword [ebp - 0x3c]
subss xmm5, xmm4
movss xmm4, dword [ebp - 0x18]
mulss xmm4, xmm1
mulss xmm2, xmm0
mulss xmm4, xmm7
mulss xmm6, xmm1
addss xmm4, dword [ebp - 0x54]
mulss xmm2, xmm7
mulss xmm5, xmm0
addss xmm4, xmm2
mulss xmm6, xmm7
movss xmm2, dword [ebp - 0x2c]
mulss xmm2, xmm1
addss xmm6, dword [ebp - 0x5c]
mulss xmm3, xmm0
movaps xmm1, xmm4
mulss xmm5, xmm7
mulss xmm2, xmm7
addss xmm6, xmm5
mulss xmm3, xmm7
addss xmm2, dword [ebp - 0x60]
mulss xmm1, xmm4
movaps xmm0, xmm6
movss dword [ebp - 0x18], xmm4
mulss xmm0, xmm6
addss xmm2, xmm3
movss dword [ebp - 0x10], xmm6
addss xmm0, xmm1
movaps xmm1, xmm2
movss dword [ebp - 0x2c], xmm2
mulss xmm1, xmm2
addss xmm0, xmm1
call fcn.1003cae0
addss xmm0, dword [0x10286b98]
movss xmm1, dword [0x10286d00]
movss xmm5, dword [ebp - 0x1c]
movss xmm6, dword [ebp - 0x20]
movss xmm4, dword [ebp - 0x14]
divss xmm1, xmm0
movaps xmm2, xmm1
movaps xmm3, xmm1
mulss xmm2, dword [ebp - 0x18]
mulss xmm3, dword [ebp - 0x10]
addss xmm5, xmm2
mulss xmm1, dword [ebp - 0x2c]
addss xmm6, xmm3
movss dword [ebp - 0x78], xmm2
movss dword [ebp - 0x74], xmm3
addss xmm4, xmm1
movss dword [ebp - 0x70], xmm1
movss dword [ebp - 0x1c], xmm5
movss dword [ebp - 0x20], xmm6
movss dword [ebp - 0x14], xmm4
cmp edi, dword [ebp - 0x64]
je 0x1012c601
movss dword [edi], xmm2
movss dword [edi + 4], xmm3
movss dword [edi + 8], xmm1
add edi, 0xc
mov dword [ebp - 0x68], edi
jmp 0x1012c611
lea eax, [ebp - 0x78]
push eax
push edi
lea ecx, [ebp - 0x6c]
call fcn.100c0fd0
mov edi, dword [ebp - 0x68]
cvttss2si eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
inc ecx
mov dword [ebp - 0x30], ecx
cmp ecx, eax
jl 0x1012c060
mov esi, dword [ebp - 0x6c]
movss xmm4, dword [ebp - 0x14]
movss xmm5, dword [ebp - 0x1c]
movss xmm6, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
jmp 0x1012c645
mov ecx, dword [ebp + 0x10]
add ecx, 0xc
mov dword [ebp - 0x24], ecx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm5, xmm0
divss xmm6, xmm0
movss dword [ebp - 0x1c], xmm5
movss dword [ebp - 0x20], xmm6
divss xmm4, xmm0
movss dword [ebp - 0x14], xmm4
cmp esi, edi
je 0x1012c7a9
lea eax, [esi + 0xc]
mov dword [ebp - 0x24], ecx
mov dword [ebp + 0xc], eax
cmp eax, edi
je 0x1012c73c
movss xmm0, dword [esi]
movss xmm3, dword [eax + 4]
subss xmm0, xmm5
movss xmm2, dword [eax]
subss xmm3, xmm6
movss xmm1, dword [eax + 8]
subss xmm2, xmm5
subss xmm1, xmm4
movss dword [ebp - 0x60], xmm0
movss xmm0, dword [esi + 4]
subss xmm0, xmm6
mulss xmm3, xmm3
mulss xmm2, xmm2
mulss xmm1, xmm1
addss xmm3, xmm2
movss dword [ebp + 8], xmm0
movss xmm0, dword [esi + 8]
subss xmm0, xmm4
addss xmm3, xmm1
movss dword [ebp - 0x5c], xmm0
movaps xmm0, xmm3
call fcn.1003cae0
movss xmm1, dword [ebp + 8]
movss dword [ebp - 0x58], xmm0
movss xmm0, dword [ebp - 0x60]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm1, xmm0
movss xmm0, dword [ebp - 0x5c]
mulss xmm0, xmm0
addss xmm0, xmm1
call fcn.1003cae0
comiss xmm0, dword [ebp - 0x58]
mov eax, dword [ebp + 0xc]
movss xmm4, dword [ebp - 0x14]
movss xmm5, dword [ebp - 0x1c]
movss xmm6, dword [ebp - 0x20]
cmova esi, eax
add eax, 0xc
mov dword [ebp + 0xc], eax
cmp eax, edi
jne 0x1012c680
mov ecx, dword [ebp + 0x10]
add ecx, 0xc
mov dword [ebp - 0x24], ecx
cmp esi, edi
je 0x1012c7a9
lea edx, [ebp - 0x78]
mov dword [ebp - 0x70], 0
mov ecx, esi
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x78], 0
call fcn.100ab200
mov eax, dword [ebp - 0x24]
mov ecx, eax
movss xmm0, dword [eax]
subss xmm0, dword [ebp - 0x78]
addss xmm0, dword [eax]
movss dword [eax], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [ebp - 0x74]
addss xmm0, dword [eax + 4]
movss dword [eax + 4], xmm0
movss xmm0, dword [eax + 8]
subss xmm0, dword [ebp - 0x70]
addss xmm0, dword [eax + 8]
movss dword [eax + 8], xmm0
call fcn.100aae90
mov byte [0x1029db1c], 1
lea ecx, [ebp - 0x6c]
call fcn.10090d50
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc