Function at 0x14004dc48
Capabilities:
Create process on windows
Terminate process

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x4a8]
sub rsp, 0x5a8
mov rax, qword [0x1401f05f0]
xor rax, rsp
mov qword [rbp + 0x490], rax
mov rax, qword [rbp + 0x518]
mov r15, qword [rbp + 0x510]
mov rsi, rcx
mov rcx, rdx
mov r12b, r9b
mov rbx, r8
mov qword [rsp + 0x78], rax
mov r13, rdx
call fcn.14009ef30
mov rcx, qword [rsi + 0x50]
and qword [rsi + 0x50], 0
mov rdi, rax
test rcx, rcx
je 0x14004dcb2
call fcn.1400993dc
mov rcx, rbx
mov qword [rsi + 0x50], rdi
call fcn.14009ef30
cmp qword [r15 + 0x68], 0
mov r14d, 0x40c
mov rbx, rax
mov eax, 0x8040c
cmovne r14d, eax
cmp qword [rsi + 0x30], 0
je 0x14004dceb
call fcn.14001e1c0
cmp eax, 5
jge 0x14004dceb
bts r14d, 0x18
xor eax, eax
lea rcx, [rbp - 0x78]
lea rdi, [rsi + 0x18]
mov qword [rsp + 0x50], rcx
mov rcx, qword [rdi]
mov qword [rsp + 0x48], r15
xor r15d, r15d
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov qword [rbp - 0x68], rax
movzx eax, r12b
mov dword [rsp + 0x30], r14d
xor r9d, r9d
mov dword [rsp + 0x28], eax
mov r8, rbx
mov rdx, r13
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x14004dd4d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x14004de7e
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x60]
call fcn.14001db00
mov rax, qword [rdi]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14004dd8c
call fcn.14001232c
mov r8, qword [rbp + 0x4e8]
mov rcx, qword [rdi]
mov r9, rax
mov rdx, rdi
call fcn.1400127c8
mov rcx, qword [rdi]
call fcn.1400125ac
mov qword [rdi], r15
mov rcx, qword [rsi + 0x30]
test rcx, rcx
je 0x14004dda8
mov rdx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x14004de32
lea rdi, [rsi + 0x20]
mov rdx, qword [rdi]
lea rax, [rdx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14004de01
mov rax, qword [rsp + 0x68]
lea rcx, [rbp - 0x80]
mov qword [rbp - 0x80], rax
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
je 0x14004de32
mov rax, qword [rdi]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14004de01
call fcn.14001232c
mov r8, qword [rbp + 0x4e8]
mov rcx, qword [rdi]
mov r9, rax
mov rdx, rdi
call fcn.1400127c8
mov rcx, qword [rdi]
call fcn.1400125ac
mov qword [rdi], r15
mov rcx, qword [rsp + 0x68]
lea rdx, [rbp - 0x40]
mov dword [rbp - 0x10], 0x10001f
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x14004de32
mov rcx, qword [rsp + 0x78]
mov rdi, qword [rbp + 0x40]
lea rdx, [rsp + 0x60]
call fcn.14001dcac
test al, al
jne 0x14004de49
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x60]
xor edx, edx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x14004de74
mov rdx, rdi
mov rcx, r13
call fcn.14004deb0
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x60]
mov qword [rsi + 0x48], rax
call fcn.14001dd7c
mov rcx, rsi
mov rdx, rax
call fcn.14001dd20
mov edi, r15d
lea rcx, [rsp + 0x60]
call fcn.14001db24
test rbx, rbx
je 0x14004de8b
mov rcx, rbx
call fcn.1400993dc
mov eax, edi
mov rcx, qword [rbp + 0x490]
xor rcx, rsp
call fcn.1400991d0
add rsp, 0x5a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret