Function at 0x140013470
Capabilities:
Execute command

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140021010]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x28]
call fcn.140002700
nop
cmp qword [rsp + 0x38], 0
je 0x14001360e
lea rcx, [rsp + 0x28]
call fcn.140001e90
nop
mov rdx, qword [rsp + 0x40]
test al, al
je 0x140013502
cmp rdx, 0x10
jb 0x14001353f
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400134fb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001364e
call fcn.14001605c
jmp 0x14001353f
cmp rdx, 0x10
jb 0x14001353a
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013535
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001364e
call fcn.14001605c
call fcn.140002440
lea rdx, str.CS:S_v34_ClientMod_v3
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
jne 0x1400135ba
lea rbx, str.Wait_game_launch_:_
nop word [rax + rax]
lea rdx, [0x14001ae68]
cmp byte [0x140021daf], 0
cmovne rdx, rbx
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001340
lea rdx, [0x140001510]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x14001aaf8]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rdx, str.CS:S_v34_ClientMod_v3
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x140013560
call fcn.140015c00
call fcn.140012380
call fcn.140012880
call fcn.140012df0
mov r12d, 0x96
lea r15d, [r12 + 0x69]
nop dword [rax]
call fcn.1400116d0
cmp byte [0x140021dad], 1
jne 0x1400135e0
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rbp, rax
xor edi, edi
movzx eax, byte [0x140021dac]
test al, al
jne 0x140013655
mov r14d, 0xc8
jmp 0x14001365e
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x14001353a
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013535
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140013535
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xor r14d, r14d
cmp al, 1
cmove r14d, r12d
mov edx, dword [0x140021db0]
lea esi, [rdx - 1]
lea eax, [rdx + 1]
cmp esi, eax
jg 0x140013721
mov ecx, dword [0x140021da8]
nop dword [rax + rax]
lea ebx, [rcx - 1]
lea eax, [rcx + 1]
cmp ebx, eax
jg 0x140013714
nop
mov r8d, ebx
mov edx, esi
mov rcx, rbp
call qword [sym.imp.GDI32.dll_GetPixel]
mov r10d, eax
movzx ecx, byte [0x140021dac]
test cl, cl
jne 0x1400136b4
mov r9d, 0xff0000
jmp 0x1400136be
xor r9d, r9d
cmp cl, 1
cmove r9d, r15d
shr eax, 0x10
movzx eax, al
mov ecx, r9d
shr ecx, 0x10
sub eax, ecx
cdq
mov r8d, eax
xor r8d, edx
sub r8d, edx
movzx ecx, r9b
movzx eax, r10b
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
add r8d, eax
shr r10d, 8
movzx eax, r10b
add r8d, eax
cmp r8d, r14d
jge 0x1400136ff
inc edi
cmp edi, 1
jge 0x140013735
inc ebx
mov ecx, dword [0x140021da8]
lea eax, [rcx + 1]
cmp ebx, eax
jle 0x140013690
mov edx, dword [0x140021db0]
inc esi
lea eax, [rdx + 1]
cmp esi, eax
jle 0x140013680
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
cmp edi, 1
jl 0x1400135e0
cmp byte [0x140021dae], 0
jne 0x140013748
call fcn.140001210
jmp 0x1400135e0
call fcn.140001210
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400135e0