Function at 0x1400029d0
Capabilities:
Execute command

Disassembly:
push rdi
sub rsp, 0x210
mov rax, qword [0x14000c010]
xor rax, rsp
mov qword [rsp + 0x200], rax
mov dword [rsp + 0x98], 0
lea rdx, str.Counter_Strike_2
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowW]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x140002a2f
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov eax, 1
jmp 0x140002edc
mov dword [rsp + 0x1e0], 0
lea rdx, [rsp + 0x1e0]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
jne 0x140002a72
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov eax, 1
jmp 0x140002edc
lea rax, str.internal_cs2.dll
mov qword [rsp + 0xa0], rax
mov eax, dword [rsp + 0x1e0]
mov dword [rsp + 0x60], eax
mov edx, dword [rsp + 0x60]
lea rcx, str.Process_pid:__d_n
call fcn.140001020
mov ecx, dword [rsp + 0x60]
call fcn.140001450
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140002ae3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
mov edx, dword [rsp + 0x68]
lea rcx, str.OpenProcess_failed:_0x_X_n
call fcn.140001020
lea rcx, str.PAUSE
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov eax, 0xfffffffe
jmp 0x140002edc
lea rax, [rsp + 0xd0]
mov rdi, rax
xor eax, eax
mov ecx, 0x110
rep stosb byte [rdi], al
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 0x24
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0xd0]
call fcn.1400046b0
nop
mov rax, qword [rsp + 0xd0]
movsxd rax, dword [rax + 4]
lea rax, [rsp + rax + 0xd0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::fail_void_const___ptr64]
movzx eax, al
test eax, eax
je 0x140002bcb
mov rax, qword [rsp + 0xd0]
movsxd rax, dword [rax + 4]
lea rax, [rsp + rax + 0xd0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::ios_base::rdstate_void_const___ptr64]
mov edx, eax
lea rcx, str.Opening_the_file_failed:__X_n
call fcn.140001020
lea rcx, [rsp + 0xd0]
call fcn.1400045c0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.PAUSE
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov dword [rsp + 0x6c], 0xfffffffb
lea rax, [rsp + 0x180]
mov rcx, rax
call fcn.140004620
lea rax, [rsp + 0x180]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov eax, dword [rsp + 0x6c]
jmp 0x140002edc
lea rdx, [rsp + 0x1e8]
lea rcx, [rsp + 0xd0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____cdecl_std::basic_istream_char__struct_std::char_traits_char__::tellg_void____ptr64]
mov rax, qword [rsp + 0x1e8]
add rax, qword [rsp + 0x1f0]
cmp rax, 0x1000
jge 0x140002c5c
lea rcx, str.Filesize_invalid._n
call fcn.140001020
lea rcx, [rsp + 0xd0]
call fcn.1400045c0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.PAUSE
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov dword [rsp + 0x70], 0xfffffffa
lea rax, [rsp + 0x180]
mov rcx, rax
call fcn.140004620
lea rax, [rsp + 0x180]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov eax, dword [rsp + 0x70]
jmp 0x140002edc
mov rax, qword [rsp + 0x1e8]
add rax, qword [rsp + 0x1f0]
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xa8]
call fcn.140001250
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140002d01
lea rcx, str.Cant_allocate_dll_file._n
call fcn.140001020
lea rcx, [rsp + 0xd0]
call fcn.1400045c0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.PAUSE
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov dword [rsp + 0x74], 0xfffffff9
lea rax, [rsp + 0x180]
mov rcx, rax
call fcn.140004620
lea rax, [rsp + 0x180]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov eax, dword [rsp + 0x74]
jmp 0x140002edc
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xd0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int____ptr64]
mov rax, qword [rsp + 0x1e8]
add rax, qword [rsp + 0x1f0]
mov r8, rax
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0xd0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::read_char____ptr64__long_long___int64_____ptr64]
lea rcx, [rsp + 0xd0]
call fcn.1400045c0
lea rcx, str.Mapping..._n
call fcn.140001020
mov rax, qword [rsp + 0x1e8]
add rax, qword [rsp + 0x1f0]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 1
mov byte [rsp + 0x30], 0
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], 1
mov r9b, 1
mov r8, qword [rsp + 0xb8]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call fcn.140001da0
movzx eax, al
test eax, eax
jne 0x140002e4f
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0x88]
call fcn.1400067e0
cmp qword [rsp + 0x88], 0
jne 0x140002de3
mov qword [rsp + 0xc0], 0
jmp 0x140002df9
mov qword [rsp + 0x50], 0x8123
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xc0], rax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.Error_while_mapping._n
call fcn.140001020
lea rcx, str.PAUSE
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov dword [rsp + 0x78], 0xfffffff8
lea rax, [rsp + 0x180]
mov rcx, rax
call fcn.140004620
lea rax, [rsp + 0x180]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov eax, dword [rsp + 0x78]
jmp 0x140002edc
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x90]
call fcn.1400067e0
cmp qword [rsp + 0x90], 0
jne 0x140002e82
mov qword [rsp + 0xc8], 0
jmp 0x140002e98
mov qword [rsp + 0x50], 0x8123
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xc8], rax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x140008b40]
call fcn.140001020
mov dword [rsp + 0x7c], 0
lea rax, [rsp + 0x180]
mov rcx, rax
call fcn.140004620
lea rax, [rsp + 0x180]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov eax, dword [rsp + 0x7c]
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.1400067c0
add rsp, 0x210
pop rdi
ret