Function at 0x401000
Capabilities:
Create thread
Get common file path
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4022b7
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x1c
call fcn.0040155a
mov edi, eax
mov dword [ebp - 0x118], edi
xorps xmm0, xmm0
lea esi, [edi + 4]
movups xmmword [edi], xmm0
push 7
movq qword [edi + 0x10], xmm0
mov dword [edi + 0x18], 0
mov dword [edi], 0
movups xmmword [esi], xmm0
push str.hl2.exe
push esi
mov dword [esi + 0x10], 7
mov dword [esi + 0x14], 0xf
call sub.VCRUNTIME140.dll_memmove
add esp, 0x10
mov byte [esi + 7], 0
mov ecx, edi
call fcn.00401320
test eax, eax
jne 0x4010a1
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x401091
mov eax, dword [esi]
push eax
push str.Failed_getting__s_process_ID__Make_sure_your_game_is_running_and_its_called_hl2.exe_n
call fcn.004012f0
add esp, 8
jmp 0x4010b6
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x4010c3
push str.Failed_process_initialization._n
call fcn.004012f0
add esp, 4
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push str.VR.dll
lea eax, [ebp - 0x114]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
push str.DLL_Path:
call fcn.004012f0
lea eax, [ebp - 0x114]
push eax
call fcn.004012f0
add esp, 0x14
push str.LoadLibraryA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x118], eax
test eax, eax
je 0x4011dd
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401133
sub ecx, edx
push 4
push 0x3000
lea eax, [ecx + 1]
push eax
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edx, eax
mov dword [ebp - 0x11c], edx
test edx, edx
je 0x4011dd
lea ecx, [ebp - 0x114]
lea eax, [ecx + 1]
mov dword [ebp - 0x120], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401170
sub ecx, dword [ebp - 0x120]
push 0
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x114]
push eax
push edx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4011dd
push 0
push 0
push dword [ebp - 0x11c]
push dword [ebp - 0x118]
push 0
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
cmp eax, 0xffffffff
je 0x4011dd
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x8000
push 0
push dword [ebp - 0x11c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, str._nSuccessfully_injected__Please_close_this_window__n_n_n_n
jmp 0x4011e2
mov eax, str._nInjection_failed__n_n_n_n
push eax
call fcn.004012f0
push str.If_you_experience_unexpected_errors__Follow_the_steps_below:_n
call fcn.004012f0
push str.1._Remove_launch_commands_or_configs._n
call fcn.004012f0
push str.2._Re_install_Directx_and_Visual_C_Redistributable_2005_2019._n
call fcn.004012f0
push str.3._Dont_run_hl2.exe_in_compatibility_mode._n
call fcn.004012f0
push str.4._Switch_between_Nonsteam_version_and_Steam_version_of_VR.dll._n
call fcn.004012f0
push str.5._Uninstall_Reshade_ENB_or_any_d3d9_dll_based_mods._n
call fcn.004012f0
push str.6._Disable_all_mod_addons._n
call fcn.004012f0
push str.7._Disable_anti_virus_softwares._n
call fcn.004012f0
push str.8._Disable_Nvidia_AMD_upscalers_or_enhancers._n
call fcn.004012f0
push str.9._Make_sure_dependable_files_are_extracted_to_game_folder._n_n
call fcn.004012f0
add esp, 0x2c
call dword [sym.imp.api_ms_win_crt_conio_l1_1_0.dll__getwch]
mov ecx, dword [esi + 0x14]
movzx eax, ax
mov dword [ebp - 0x118], eax
cmp ecx, 0x10
jb 0x40128d
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x401283
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4012ca
mov eax, edx
push ecx
push eax
call fcn.0040154c
add esp, 8
push 0x1c
push edi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
call fcn.0040154c
mov eax, dword [ebp - 0x118]
add esp, 8
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.0040153e
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3