Function at 0x401c50
Capabilities:
Acquire debug privileges
Check if file exists
Enumerate threads
Execute command
Get file attributes
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404160
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push str.Grand_theft_auto_San_Andreas
call dword [sym.imp.USER32.dll_FindWindowW]
lea ecx, [ebp - 0x44]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x44]
push str.Process_pid:__d_n
call fcn.00401020
mov eax, dword [ebp - 0x44]
add esp, 8
mov dword [ebp - 0x18], eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x64], 0x1c
lea eax, [ebp - 0x64]
mov dword [ebp - 0x13c], esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Thread32First]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
nop word [eax + eax]
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x58], eax
jne 0x401d0d
push dword [ebp - 0x5c]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
inc dword [ebp - 0x14]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push esi
call edi
mov esi, dword [ebp - 0x13c]
lea eax, [ebp - 0x64]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x401ce0
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push esi
call edi
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0
push eax
xorps xmm0, xmm0
push 0x28
movups xmmword [ebp - 0x40], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401d91
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x40], 1
push eax
push str.SeDebugPrivilege
push 0
mov dword [ebp - 0x34], 2
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x401d8c
push 0
push 0
push 0
lea eax, [ebp - 0x40]
push eax
push 0
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x48]
call edi
push dword [ebp - 0x44]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x401dce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenProcess_failed:_0x_X_n
call fcn.00401020
push str.PAUSE
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 0xc
lea eax, [esi - 2]
jmp 0x4020de
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
jne 0x401dfa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cant_confirm_target_process_architecture:_0x_X_n
call fcn.00401020
add esp, 8
jmp 0x401e1a
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
je 0x401e42
push str.Invalid_Process_Architecture._n
call fcn.00401020
add esp, 4
push esi
call edi
push str.PAUSE
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
mov eax, 0xfffffffd
jmp 0x4020de
push str.100101.dll
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401e7a
push str.Dll_file_doesnt_exist_n
call fcn.00401020
add esp, 4
push esi
call edi
push str.PAUSE
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
mov eax, 0xfffffffc
jmp 0x4020de
push 0xb8
lea eax, [ebp - 0x138]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push ecx
lea ecx, [ebp - 0x138]
call fcn.00402ca0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x138]
mov eax, dword [eax + 4]
mov eax, dword [ebp + eax - 0x12c]
test al, 6
je 0x401f04
push eax
push str.Opening_the_file_failed:__X_n
call fcn.00401020
add esp, 8
lea ecx, [ebp - 0x128]
call fcn.00403080
test eax, eax
jne 0x401ee9
push eax
mov eax, dword [ebp - 0x138]
lea ecx, [ebp - 0x138]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
push esi
call edi
push str.PAUSE
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
mov esi, 0xfffffffb
jmp 0x4020d1
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x138]
call dword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____thiscall_std::basic_istream_char__struct_std::char_traits_char__::tellg_void_]
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
adc ecx, dword [ebp - 0x24]
test ecx, ecx
jg 0x401f7c
jl 0x401f2d
cmp eax, 0x1000
jae 0x401f7c
push str.Filesize_invalid._n
call fcn.00401020
add esp, 4
lea ecx, [ebp - 0x128]
call fcn.00403080
test eax, eax
jne 0x401f61
push eax
mov eax, dword [ebp - 0x138]
lea ecx, [ebp - 0x138]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
push esi
call edi
push str.PAUSE
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
mov esi, 0xfffffffa
jmp 0x4020d1
push eax
mov dword [ebp - 0x13c], ecx
call fcn.00403430
add esp, 4
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x138]
push 0
push 0
push 0
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int_]
mov edx, dword [ebp - 0x30]
add edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
adc ecx, dword [ebp - 0x24]
push ecx
push edx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x138]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
lea ecx, [ebp - 0x128]
call fcn.00403080
test eax, eax
jne 0x401fe4
push eax
mov eax, dword [ebp - 0x138]
lea ecx, [ebp - 0x138]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
push str.Mapping..._n
call fcn.00401020
mov edx, dword [ebp - 0x14]
sub esp, 0x18
mov ecx, esi
call fcn.00401050
add esp, 0x1c
push dword [ebp - 0x14]
test al, al
jne 0x402032
call fcn.004033ed
add esp, 4
push esi
call edi
push str.Error_while_mapping._n
call fcn.00401020
push str.PAUSE
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 8
mov esi, 0xfffffff8
jmp 0x4020d1
call fcn.004033ed
add esp, 4
push esi
call edi
push 0x4057ac
call fcn.00401020
mov eax, dword [ebp - 0x44]
add esp, 4
mov dword [ebp - 0x13c], eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x80], 0x1c
lea eax, [ebp - 0x80]
mov dword [ebp - 0x18], esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Thread32First]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
nop dword [eax]
mov eax, dword [ebp - 0x13c]
cmp dword [ebp - 0x74], eax
jne 0x4020ad
push dword [ebp - 0x78]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
inc dword [ebp - 0x14]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call edi
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x80]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x402080
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push esi
call edi
xor esi, esi
lea ecx, [ebp - 0x138]
call fcn.00402100
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004033df
mov esp, ebp
pop ebp
ret