Function at 0x401c50
Capabilities:
Acquire debug privileges
Check if file exists
Create process on windows
Create process suspended
Execute command
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4041a0
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
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
lea eax, [ebp - 0x190]
mov dword [ebp - 0x190], 0
push eax
xorps xmm0, xmm0
push 0x28
movups xmmword [ebp - 0x148], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x401d00
lea eax, [ebp - 0x144]
mov dword [ebp - 0x148], 1
push eax
push str.SeDebugPrivilege
push 0
mov dword [ebp - 0x13c], 2
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x401cf8
push 0
push 0
push 0
lea eax, [ebp - 0x148]
push eax
push 0
push dword [ebp - 0x190]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x190]
call esi
mov ax, word [0x4057bc]
xorps xmm0, xmm0
movlpd qword [ebp - 0x188], xmm0
movlpd qword [ebp - 0x180], xmm0
movlpd qword [ebp - 0x178], xmm0
movlpd qword [ebp - 0x170], xmm0
movlpd qword [ebp - 0x168], xmm0
movlpd qword [ebp - 0x160], xmm0
movlpd qword [ebp - 0x158], xmm0
movlpd qword [ebp - 0x150], xmm0
movups xmmword [ebp - 0x1a0], xmm0
mov word [ebp - 0xdc], ax
movups xmm0, xmmword [str.D:Programmingccsgorevival_buildWin32_Releasedll.dll]
mov al, byte [0x4057be]
push 0xc9
movups xmmword [ebp - 0x114], xmm0
mov byte [ebp - 0xda], al
lea eax, [ebp - 0xd9]
movups xmm0, xmmword [0x405794]
push 0
push eax
movups xmmword [ebp - 0x104], xmm0
mov dword [ebp - 0x18c], 0x44
movups xmm0, xmmword [0x4057a4]
movups xmmword [ebp - 0xf4], xmm0
movq xmm0, qword [0x4057b4]
movq qword [ebp - 0xe4], xmm0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1a0]
push eax
lea eax, [ebp - 0x18c]
push eax
push str.E:SteamLibrary_steamappscommonCounter_Strike_Global_Offensive_
push 0
push 4
push 0
push 0
push 0
push str.E:SteamLibrary_steamappscommonCounter_Strike_Global_Offensivecsgo.exe__insecure__allow_third_party_software
push str.E:SteamLibrary_steamappscommonCounter_Strike_Global_Offensivecsgo.exe
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [ebp - 0x1a0]
test eax, eax
jne 0x401e1c
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
mov eax, 0xfffffffe
jmp 0x40211d
mov edi, dword [sym.imp.KERNEL32.dll_IsWow64Process]
lea ecx, [ebp - 0x118]
push ecx
push eax
mov dword [ebp - 0x118], 0
call edi
test eax, eax
jne 0x401e50
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 0x401e78
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
mov eax, dword [ebp - 0x118]
cmp eax, dword [ebp - 0x11c]
je 0x401ead
push str.Invalid_Process_Architecture._n
call fcn.00401020
add esp, 4
push dword [ebp - 0x19c]
call esi
push dword [ebp - 0x1a0]
call esi
push str.PAUSE
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
mov eax, 0xfffffffd
jmp 0x40211d
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401ef4
push str.Dll_file_doesnt_exist_n
call fcn.00401020
add esp, 4
push dword [ebp - 0x19c]
call esi
push dword [ebp - 0x1a0]
call esi
push str.PAUSE
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
mov eax, 0xfffffffc
jmp 0x40211d
push 0xb8
lea eax, [ebp - 0x258]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x258]
call fcn.00402ce0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x258]
mov eax, dword [eax + 4]
mov eax, dword [ebp + eax - 0x24c]
test al, 6
je 0x401f91
push eax
push str.Opening_the_file_failed:__X_n
call fcn.00401020
add esp, 8
lea ecx, [ebp - 0x248]
call fcn.004030c0
test eax, eax
jne 0x401f69
push eax
mov eax, dword [ebp - 0x258]
lea ecx, [ebp - 0x258]
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 dword [ebp - 0x19c]
call esi
push dword [ebp - 0x1a0]
call esi
push str.PAUSE
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
mov esi, 0xfffffffb
jmp 0x402110
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp - 0x258]
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 - 0x138]
add eax, dword [ebp - 0x130]
mov ecx, dword [ebp - 0x134]
adc ecx, dword [ebp - 0x12c]
test ecx, ecx
jg 0x402025
jl 0x401fc9
cmp eax, 0x1000
jae 0x402025
push str.Filesize_invalid._n
call fcn.00401020
add esp, 4
lea ecx, [ebp - 0x248]
call fcn.004030c0
test eax, eax
jne 0x401ffd
push eax
mov eax, dword [ebp - 0x258]
lea ecx, [ebp - 0x258]
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 dword [ebp - 0x19c]
call esi
push dword [ebp - 0x1a0]
call esi
push str.PAUSE
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
mov esi, 0xfffffffa
jmp 0x402110
push eax
call fcn.00403475
add esp, 4
lea ecx, [ebp - 0x258]
mov edi, eax
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 - 0x138]
add edx, dword [ebp - 0x130]
mov ecx, dword [ebp - 0x134]
adc ecx, dword [ebp - 0x12c]
push ecx
push edx
push edi
lea ecx, [ebp - 0x258]
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 - 0x248]
call fcn.004030c0
test eax, eax
jne 0x402090
push eax
mov eax, dword [ebp - 0x258]
lea ecx, [ebp - 0x258]
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 ecx, dword [ebp - 0x1a0]
sub esp, 0x18
mov edx, edi
call fcn.00401050
add esp, 0x1c
push edi
test al, al
jne 0x4020e9
call fcn.0040342d
add esp, 4
push dword [ebp - 0x19c]
call esi
push dword [ebp - 0x1a0]
call esi
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 0x402110
call fcn.0040342d
add esp, 4
push dword [ebp - 0x19c]
call esi
push dword [ebp - 0x1a0]
call esi
push 0x405874
call fcn.00401020
add esp, 4
xor esi, esi
lea ecx, [ebp - 0x258]
call fcn.00402140
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.0040341f
mov esp, ebp
pop ebp
ret