Function at 0x140059110
Capabilities:
Create thread
Execute command

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rax, qword [0x14009c040]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov r14d, r9d
mov r15, rcx
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 1
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rbx
lea r8, [0x14008da50]
mov rcx, rax
lea rdx, str.CONOUT_
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
xor r12d, r12d
mov ebx, r12d
mov qword [rbp - 0x19], r12
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x19]
lea edx, [r12 + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400591cc
mov rcx, qword [rbp - 0x19]
lea rax, [rbp - 9]
lea r9d, [r12 + 4]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 5]
mov dword [rbp - 9], 4
lea edx, [r12 + 0x14]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
cmovne ebx, dword [rbp - 5]
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x1400591db
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x140059214
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.___ruleaza_ba_codu_cu_admin
call fcn.1400598f0
lea rdx, [0x140059ac0]
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]
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
jmp 0x140059520
mov qword [rsp + 0xe0], rsi
lea rcx, [rbp + 0x17]
mov qword [rsp + 0xe8], rdi
call fcn.140065390
mov ecx, 0x30
call fcn.140066b6c
mov edx, dword [rbp + 0x37]
mov rdi, rax
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rbx, [rdi + 0x10]
lea rax, vtable.std::_Ref_count_obj2_class_memory::c_module_.0
mov rcx, rbx
mov qword [rdi], rax
call fcn.1400540e0
mov qword [0x14009ca60], rbx
mov esi, 0xffffffff
mov rbx, qword [0x14009ca68]
mov qword [0x14009ca68], rdi
test rbx, rbx
je 0x1400592a9
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400592a9
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400592a9
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov ecx, 0x38
call fcn.140066b6c
mov rdi, rax
lea rdx, [rbp + 0x17]
lea rcx, [rbp - 0x39]
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rbx, [rdi + 0x10]
lea rax, vtable.std::_Ref_count_obj2_class_memory::c_offsets_.0
mov qword [rdi], rax
call fcn.140059750
mov rdx, rax
mov rcx, rbx
call fcn.140054170
mov qword [0x14009ca70], rbx
mov rbx, qword [0x14009ca78]
mov qword [0x14009ca78], rdi
mov rdi, qword [rsp + 0xe8]
test rbx, rbx
je 0x140059333
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140059333
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x140059333
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov rax, qword [0x14009ca60]
mov rsi, qword [rsp + 0xe0]
cmp byte [rax + 0x18], r12b
je 0x1400594b2
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
call qword [sym.imp.KERNEL32.dll_FreeConsole]
mov ecx, 0x18
call fcn.140066b6c
lea rdx, [rbp + 0xf]
mov r9, rax
mov qword [rsp + 0x28], rdx
lea rcx, [0x140057ca0]
lea r8, [0x14005d240]
mov dword [rsp + 0x20], r12d
mov qword [rax + 0x10], rcx
xor edx, edx
xor ecx, ecx
mov dword [rax], r14d
mov qword [rax + 8], r15
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 7], rax
test rax, rax
je 0x1400594a2
mov ecx, 0x18
call fcn.140066b6c
lea rcx, [0x140058730]
mov r9, rax
lea r8, [0x14005d240]
xor edx, edx
mov qword [rax + 0x10], rcx
lea rcx, [rbp - 0x11]
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov dword [rax], r14d
mov qword [rax + 8], r15
mov dword [rsp + 0x20], r12d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x19], rax
test rax, rax
je 0x140059492
cmp dword [rbp - 0x11], r12d
je 0x140059486
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbp - 0x11], eax
je 0x14005947a
movaps xmm0, xmmword [rbp - 0x19]
lea rcx, [rbp - 0x49]
xor edx, edx
movdqa xmmword [rbp - 0x49], xmm0
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
jne 0x14005946e
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x19], xmm0
cmp dword [rbp + 0xf], r12d
je 0x140059486
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbp + 0xf], eax
je 0x14005947a
movaps xmm0, xmmword [rbp + 7]
lea rcx, [rbp - 0x49]
xor edx, edx
movdqa xmmword [rbp - 0x49], xmm0
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
jne 0x14005946e
xorps xmm0, xmm0
movdqa xmmword [rbp + 7], xmm0
cmp dword [rbp - 0x11], r12d
je 0x1400594e2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov ecx, 2
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 6
mov dword [rbp - 0x11], r12d
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 6
mov dword [rbp + 0xf], r12d
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.___failed_to_find_game_process
call fcn.1400598f0
lea rdx, [0x140059ac0]
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]
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rdx, qword [rbp + 0x2f]
cmp rdx, 0xf
jbe 0x140059520
mov rcx, qword [rbp + 0x17]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005951b
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005951b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140066af4
xor eax, eax
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1400664b0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret