Function at 0x180003980
Capabilities:
Get common file path
Patch process command line

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5c0]
sub rsp, 0x6c0
mov rax, qword [0x18000f040]
xor rax, rsp
mov qword [rbp + 0x5b0], rax
lea rcx, [0x18000ac58]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x18000ab90]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x180003c56
lea rcx, [0x18000ac58]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlEnterCriticalSection
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rax, rax
je 0x180003c56
lea rcx, [0x18000ac58]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlLeaveCriticalSection
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
test rax, rax
je 0x180003c56
lea rcx, [0x18000ac58]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlInitUnicodeString
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
je 0x180003c56
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 0x438
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180003c56
xor r13d, r13d
lea r8, [rsp + 0x50]
mov r9d, 0x30
mov qword [rsp + 0x20], r13
xor edx, edx
mov rcx, rax
call rdi
mov r9d, 8
mov qword [rsp + 0x20], r13
lea r8, [rsp + 0x30]
mov rcx, rbx
lea rdx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x180003c56
mov rdx, qword [rsp + 0x30]
lea r8, [rsp + 0x48]
add rdx, 0x18
mov qword [rsp + 0x20], r13
mov r9d, 8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x180003c56
mov edx, 0x104
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r8, str.explorer.exe
mov edx, 0x105
lea rcx, [rbp - 0x80]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov ecx, 0x104
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
lea r8, [rbp - 0x80]
mov edx, 0x104
mov rcx, rax
mov r12, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x38]
call r14
mov rcx, qword [rsp + 0x30]
mov rdx, r12
mov rcx, qword [rcx + 0x20]
add rcx, 0x60
call rsi
mov rcx, qword [rsp + 0x30]
mov rdx, r12
mov rcx, qword [rcx + 0x20]
add rcx, 0x70
call rsi
mov r8d, 0x104
lea rdx, [rbp + 0x3a0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x18]
mov rax, qword [rsp + 0x48]
mov rdi, qword [rcx + 0x10]
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x40], rcx
nop
mov r9d, 8
mov qword [rsp + 0x20], r13
lea r8, [rsp + 0x38]
mov rcx, rbx
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x180003c56
mov rdx, qword [rsp + 0x38]
lea r8, [rbp + 0x190]
mov rcx, rbx
mov qword [rsp + 0x20], r13
movzx r9d, word [rdx + 0x4a]
mov rdx, qword [rdx + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x180003c56
lea rdx, [rbp + 0x190]
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x180003c09
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
mov qword [rsp + 0x40], rcx
cmp rcx, rdi
jne 0x180003b90
jmp 0x180003c25
mov rcx, qword [rsp + 0x38]
mov rdx, r12
add rcx, 0x48
call rsi
mov rcx, qword [rsp + 0x38]
mov rdx, r12
add rcx, 0x58
call rsi
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x38]
call r15
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbp + 0x190]
lea rcx, [rbp - 0x80]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x180003c56
mov eax, 1
jmp 0x180003c58
xor eax, eax
mov rcx, qword [rbp + 0x5b0]
xor rcx, rsp
call fcn.1800061b0
lea r11, [rsp + 0x6c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret