Function at 0x14002ee60
Capabilities:
Create process on windows

Disassembly:
push r13
push r14
sub rsp, 0x118
mov r14, rcx
lea rcx, str.EnableWarnings
mov r13, rdx
call sym.ProcessHacker.exe_PhGetIntegerSetting
test eax, eax
je 0x14002eeb4
mov r8, qword [r13 + 0x20]
lea r9, str.Debugging_a_process_may_result_in_loss_of_data.
lea rdx, str.debug
mov rcx, r14
add r8, 0x10
mov byte [rsp + 0x20], 0
call sym.ProcessHacker.exe_PhShowConfirmMessage
test al, al
jne 0x14002eeb4
add rsp, 0x118
pop r14
pop r13
ret
mov qword [rsp + 0x130], rbx
mov qword [rsp + 0x110], rbp
mov qword [rsp + 0x108], rsi
mov qword [rsp + 0x100], rdi
mov qword [rsp + 0xf8], r12
xor ebp, ebp
or r12, 0xffffffffffffffff
cmp dword [0x1400d1848], 1
mov qword [rsp + 0xf0], r15
mov r15d, 0x22
je 0x14002f062
mov ecx, 2
xor eax, eax
lock cmpxchg dword [0x1400d1848], ecx
test eax, eax
je 0x14002ef35
sub eax, 1
je 0x14002f062
cmp eax, 1
jne 0x14002f062
lea rcx, [0x1400d1850]
xor edx, edx
call sym.ProcessHacker.exe_PhfWaitForEvent
jmp 0x14002f062
lea r8, [rsp + 0x148]
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionAeDebug
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x14002eff7
mov rcx, qword [rsp + 0x148]
lea rdx, str.Debugger
call sym.ProcessHacker.exe_PhQueryRegistryString
mov rbx, rax
test rax, rax
je 0x14002efe9
lea rcx, [rax + 0x10]
mov edx, r15d
call fcn.14009585c
mov rdi, rax
test rax, rax
je 0x14002efd4
sub rdi, rbx
sub rdi, 0x10
sar rdi, 1
cmp edi, 0xffffffff
je 0x14002efd4
inc edi
mov edx, r15d
lea rsi, [rbx + rdi*2 + 0x10]
mov rcx, rsi
call fcn.14009585c
test rax, rax
je 0x14002efd4
sub rax, rbx
sub rax, 0x10
sar rax, 1
cmp eax, 0xffffffff
je 0x14002efd4
sub eax, edi
mov rcx, rsi
mov edx, eax
add rdx, rdx
call sym.ProcessHacker.exe_PhCreateStringEx
mov qword [0x1400d6418], rax
lea rcx, [rbx - 0x20]
mov eax, r12d
lock xadd dword [rcx], eax
add eax, 0xffffffff
jne 0x14002efe9
call fcn.14001fcd0
mov rcx, qword [rsp + 0x148]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
xchg dword [0x1400d1848], eax
mov edx, dword [0x1400d1850]
test dl, 1
jne 0x14002f062
lea ecx, [rdx + 1]
mov eax, edx
lock cmpxchg dword [0x1400d1850], ecx
cmp eax, edx
jne 0x14002f002
mov rcx, qword [0x1400d1858]
test rcx, rcx
je 0x14002f032
xor edx, edx
call qword [sym.imp.ntdll.dll_NtSetEvent]
mov eax, 0xfffffffe
lock xadd dword [0x1400d1850], eax
sub eax, 2
test eax, 0xfffffffe
jne 0x14002f062
mov rcx, qword [0x1400d1858]
test rcx, rcx
je 0x14002f062
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [0x1400d1858], rbp
mov rax, qword [0x1400d6418]
test rax, rax
jne 0x14002f087
lea r8, str.Unable_to_locate_the_debugger.
lea edx, [rax + 0x10]
mov rcx, r14
call sym.ProcessHacker.exe_PhShowMessage
xor al, al
jmp 0x14002f33e
movzx eax, word [rax]
mov rbx, qword [0x1400d91a8]
xor r8d, r8d
add eax, 0x1e
mov rcx, rbx
lea rdi, [rax + 0x12]
mov dword [rsp + 0x50], eax
mov esi, eax
mov rdx, rdi
call fcn.14001fbe0
lock add dword [rbx + 0x18], 1
mov qword [rax + 8], rdi
lea rdi, [rax + 0x20]
mov dword [rax], 1
mov qword [rax + 0x10], rbx
mov word [rdi + 2], si
lea rcx, [rdi + 0x10]
mov qword [rdi + 8], rcx
mov rax, rsi
mov qword [rsp + 0x58], rdi
shr rax, 1
mov word [rdi + rax*2 + 0x10], bp
mov word [rdi], bp
mov word [rcx], bp
cmp rsi, 2
jae 0x14002f100
movzx edx, bp
lea rcx, [rsp + 0x50]
add edx, 2
call fcn.140002670
mov rdi, qword [rsp + 0x58]
movzx eax, word [rdi]
shr rax, 1
mov word [rdi + rax*2 + 0x10], r15w
add word [rdi], 2
movzx eax, word [rdi]
shr rax, 1
mov word [rdi + rax*2 + 0x10], bp
mov rax, qword [0x1400d6418]
movzx ebx, word [rax]
lea rsi, [rax + 0x10]
test ebx, ebx
je 0x14002f170
movzx edx, word [rdi]
add edx, ebx
cmp dword [rsp + 0x50], edx
jae 0x14002f147
lea rcx, [rsp + 0x50]
call fcn.140002670
mov rdi, qword [rsp + 0x58]
test rsi, rsi
je 0x14002f162
movzx eax, word [rdi]
mov r8, rbx
mov rdx, rsi
shr rax, 1
lea rcx, [rdi + rax*2 + 0x10]
call fcn.140094930
add word [rdi], bx
movzx eax, word [rdi]
shr rax, 1
mov word [rdi + rax*2 + 0x10], bp
movzx edx, word [rdi]
mov eax, dword [rsp + 0x50]
lea rcx, [rdx + 2]
cmp rax, rcx
jae 0x14002f192
lea rcx, [rsp + 0x50]
add edx, 2
call fcn.140002670
mov rdi, qword [rsp + 0x58]
movzx eax, word [rdi]
lea rdx, str.__p__u
lea rcx, [rsp + 0x50]
shr rax, 1
mov word [rdi + rax*2 + 0x10], r15w
add word [rdi], 2
movzx eax, word [rdi]
shr rax, 1
mov word [rdi + rax*2 + 0x10], bp
mov r8d, dword [r13 + 0x10]
call sym.ProcessHacker.exe_PhAppendFormatStringBuilder
mov r8, qword [rsp + 0x58]
mov rdi, rbp
add r8, 0x10
je 0x14002f1ee
xor eax, eax
mov rdi, r8
mov rcx, r12
repne scasw ax, word [rdi]
not rcx
lea rdx, [rcx + rcx - 2]
mov rcx, r8
call sym.ProcessHacker.exe_PhCreateStringEx
mov rdi, rax
xor edx, edx
lea rcx, [rsp + 0x80]
lea r8d, [rdx + 0x68]
call fcn.14009e740
mov dword [rsp + 0x80], 0x68
test rdi, rdi
je 0x14002f217
lea rdx, [rdi + 0x10]
jmp 0x14002f21a
mov rdx, rbp
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
xor ecx, ecx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x14002f278
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x14002f269
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x14002f278
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebp, ax
or ebp, 0xc0070000
test rdi, rdi
je 0x14002f292
lea rcx, [rdi - 0x20]
mov eax, r12d
lock xadd dword [rcx], eax
add eax, 0xffffffff
jne 0x14002f292
call fcn.14001fcd0
test ebp, ebp
js 0x14002f2ac
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntdll.dll_NtClose]
mov rax, qword [rsp + 0x58]
lea rcx, [rax - 0x20]
lock xadd dword [rcx], r12d
add r12d, 0xffffffff
jne 0x14002f2c5
call fcn.14001fcd0
test ebp, ebp
jns 0x14002f33c
cmp qword [r13 + 0x10], 0
jl 0x14002f308
mov r8, qword [r13 + 0x20]
mov r9d, dword [r13 + 0x10]
lea rdx, str.debug
lea rcx, str.Unable_to__s__s__PID__u_
add r8, 0x10
call sym.ProcessHacker.exe_PhaFormatString
xor r9d, r9d
mov r8d, ebp
add rax, 0x10
mov rcx, r14
mov rdx, rax
call sym.ProcessHacker.exe_PhShowContinueStatus
xor al, al
jmp 0x14002f33e
mov r8, qword [r13 + 0x20]
lea rdx, str.debug
lea rcx, str.Unable_to__s__s
add r8, 0x10
call sym.ProcessHacker.exe_PhaFormatString
xor r9d, r9d
mov r8d, ebp
add rax, 0x10
mov rcx, r14
mov rdx, rax
call sym.ProcessHacker.exe_PhShowContinueStatus
xor al, al
jmp 0x14002f33e
mov al, 1
mov r12, qword [rsp + 0xf8]
mov rdi, qword [rsp + 0x100]
mov rsi, qword [rsp + 0x108]
mov rbp, qword [rsp + 0x110]
mov rbx, qword [rsp + 0x130]
mov r15, qword [rsp + 0xf0]
add rsp, 0x118
pop r14
pop r13
ret