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

Disassembly:
sub rsp, 0x708
lea rcx, [0x140050fd0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.NtQueryInformationProcess
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x4b8], rax
cmp qword [rsp + 0x4b8], 0
jne 0x14000f7de
xor eax, eax
jmp 0x14000fb89
lea rcx, [0x140051000]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.RtlEnterCriticalSection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x6f8], rax
cmp qword [rsp + 0x6f8], 0
jne 0x14000f815
xor eax, eax
jmp 0x14000fb89
lea rcx, [0x140051030]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.RtlLeaveCriticalSection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x6e0], rax
cmp qword [rsp + 0x6e0], 0
jne 0x14000f84c
xor eax, eax
jmp 0x14000fb89
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.RtlInitUnicodeString
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x280], rax
cmp qword [rsp + 0x280], 0
jne 0x14000f883
xor eax, eax
jmp 0x14000fb89
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x290], eax
mov r8d, dword [rsp + 0x290]
xor edx, edx
mov ecx, 0x438
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x240], rax
cmp qword [rsp + 0x240], 0xffffffffffffffff
jne 0x14000f8bf
xor eax, eax
jmp 0x14000fb89
mov qword [rsp + 0x20], 0
mov r9d, gethostbyname
lea r8, [rsp + 0x248]
xor edx, edx
mov rcx, qword [rsp + 0x240]
call qword [rsp + 0x4b8]
mov qword [rsp + 0x20], 0
mov r9d, 8
lea r8, [rsp + 0x278]
lea rdx, [rsp + 0x250]
mov rcx, qword [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x14000f91f
xor eax, eax
jmp 0x14000fb89
mov rax, qword [rsp + 0x278]
add rax, 0x18
mov qword [rsp + 0x20], 0
mov r9d, 8
lea r8, [rsp + 0x288]
mov rdx, rax
mov rcx, qword [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x14000f95e
xor eax, eax
jmp 0x14000fb89
mov edx, 0x104
lea rcx, [rsp + 0x4d0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r8, [0x140051078]
mov edx, 0x105
lea rcx, [rsp + 0x4d0]
call fcn.140030cd0
mov ecx, 0x104
call fcn.14002fff8
mov qword [rsp + 0x6f0], rax
lea r8, [rsp + 0x4d0]
mov edx, 0x104
mov rcx, qword [rsp + 0x6f0]
call fcn.14002f2e0
mov rax, qword [rsp + 0x278]
mov rcx, qword [rax + 0x38]
call qword [rsp + 0x6f8]
mov rax, qword [rsp + 0x278]
mov rax, qword [rax + 0x20]
add rax, 0x60
mov rdx, qword [rsp + 0x6f0]
mov rcx, rax
call qword [rsp + 0x280]
mov rax, qword [rsp + 0x278]
mov rax, qword [rax + 0x20]
add rax, 0x70
mov rdx, qword [rsp + 0x6f0]
mov rcx, rax
call qword [rsp + 0x280]
mov r8d, 0x104
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rax, qword [rsp + 0x278]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x4b0], rax
mov rax, qword [rsp + 0x288]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x4c0], rax
mov qword [rsp + 0x20], 0
mov r9d, 8
lea r8, [rsp + 0x6e8]
lea rdx, [rsp + 0x4c0]
mov rcx, qword [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x14000fa84
xor eax, eax
jmp 0x14000fb89
mov rax, qword [rsp + 0x6e8]
movzx eax, word [rax + 0x4a]
mov qword [rsp + 0x20], 0
mov r9d, eax
lea r8, [rsp + 0x2a0]
mov rax, qword [rsp + 0x6e8]
mov rdx, qword [rax + 0x50]
mov rcx, qword [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x14000fac9
xor eax, eax
jmp 0x14000fb89
lea rdx, [rsp + 0x2a0]
lea rcx, [rsp + 0x30]
call fcn.140030c48
test eax, eax
jne 0x14000fb1d
mov rax, qword [rsp + 0x6e8]
add rax, 0x48
mov rdx, qword [rsp + 0x6f0]
mov rcx, rax
call qword [rsp + 0x280]
mov rax, qword [rsp + 0x6e8]
add rax, 0x58
mov rdx, qword [rsp + 0x6f0]
mov rcx, rax
call qword [rsp + 0x280]
jmp 0x14000fb46
mov rax, qword [rsp + 0x6e8]
mov rax, qword [rax]
mov qword [rsp + 0x4c0], rax
mov rax, qword [rsp + 0x4b0]
cmp qword [rsp + 0x4c0], rax
jne 0x14000fa4c
mov rax, qword [rsp + 0x278]
mov rcx, qword [rax + 0x38]
call qword [rsp + 0x6e0]
mov rcx, qword [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x2a0]
lea rcx, [rsp + 0x4d0]
call fcn.140030c48
test eax, eax
jne 0x14000fb84
xor eax, eax
jmp 0x14000fb89
mov eax, 1
add rsp, 0x708
ret