Function at 0x1400473b0
Capabilities:
Patch process command line

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r14
sub rsp, 0x3f0
mov rax, qword [0x140064010]
xor rax, rsp
mov qword [rsp + 0x3e0], rax
mov edi, edx
mov qword [rsp + 0x38], rcx
mov rbx, rcx
mov r8d, edx
xor edx, edx
mov ecx, 0x410
xor r14d, r14d
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbp, rax
test rax, rax
jne 0x14004744a
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_open_process_with_PID
call fcn.14000b180
mov edx, edi
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x14000b570]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xorps xmm0, xmm0
lea rdx, [0x140050f54]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r14
xor r8d, r8d
mov rcx, rbx
mov qword [rbx + 0x18], r14
call fcn.14000bb30
jmp 0x1400475d2
lea rcx, [0x140054a00]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004766e
lea rdx, str.NtQueryInformationProcess
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14004766e
mov r9d, 0x30
mov qword [rsp + 0x20], r14
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rbp
call rax
test eax, eax
je 0x1400474c5
lea rdx, str.NtQueryInformationProcess_failed.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000b180
lea rdx, [0x14000b570]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140047425
mov rdx, qword [rsp + 0x48]
lea r8, [rsp + 0xf0]
mov r9d, 0x2c8
mov qword [rsp + 0x20], r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x1400474f3
lea rdx, str.ReadProcessMemory_failed.
jmp 0x14004749b
mov rdx, qword [rsp + 0x110]
lea r8, [rsp + 0x70]
mov r9d, 0x80
mov qword [rsp + 0x20], r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1400474ea
movzx ecx, word [rsp + 0xe0]
mov eax, 2
shr rcx, 1
mov rdi, 0xffffffffffffffff
inc rcx
mov qword [rsp + 0x420], rsi
mul rcx
cmovo rax, rdi
mov rcx, rax
call fcn.140048fcc
movzx r9d, word [rsp + 0xe0]
mov r8, rax
mov rdx, qword [rsp + 0xe8]
mov rcx, rbp
mov rsi, rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x1400475f9
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.ReadProcessMemory_failed.
call fcn.14000b180
lea rdx, [0x14000b570]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rsi
call fcn.140048f98
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
lea rdx, [0x140050f54]
movups xmmword [rbx], xmm0
xor r8d, r8d
mov qword [rbx + 0x10], r14
mov rcx, rbx
mov qword [rbx + 0x18], r14
call fcn.14000bb30
mov rsi, qword [rsp + 0x420]
mov rax, rbx
mov rcx, qword [rsp + 0x3e0]
xor rcx, rsp
call fcn.140048a50
mov rbx, qword [rsp + 0x428]
add rsp, 0x3f0
pop r14
pop rdi
pop rbp
ret
movzx eax, word [rsp + 0xe0]
xorps xmm0, xmm0
shr rax, 1
movups xmmword [rsp + 0x3c0], xmm0
mov qword [rsp + 0x3d0], r14
mov qword [rsp + 0x3d8], r14
mov word [rsi + rax*2], r14w
inc rdi
cmp word [rsi + rdi*2], r14w
jne 0x140047624
mov r8, rdi
lea rcx, [rsp + 0x3c0]
mov rdx, rsi
call fcn.14000bb30
mov rcx, rsi
call fcn.140048f98
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmm0, xmmword [rsp + 0x3c0]
movups xmm1, xmmword [rsp + 0x3d0]
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm1
jmp 0x1400475ca
lea rdx, str.NtQueryInformationProcess_function_not_found.
jmp 0x14004749b