Function at 0x180031de0
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x158]
sub rsp, 0x258
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x1801c2938]
xor rax, rsp
mov qword [rbp + 0x148], rax
movzx ebx, r9b
mov r13, r8
mov r12, rdx
mov rdi, rcx
xor r15d, r15d
mov qword [rsp + 0x50], r15
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
xor edx, edx
lea r8d, [r15 + 0x60]
lea rcx, [rsp + 0x78]
call fcn.1800c6a90
mov dword [rsp + 0x70], 0x68
mov dword [rbp - 0x54], 1
neg bl
sbb ax, ax
and ax, 5
mov word [rbp - 0x50], ax
mov rcx, qword [rdi + 0x10]
inc rcx
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1800bd064
mov rsi, rax
test rax, rax
jne 0x180031f54
lea rcx, [rbp - 0x20]
call fcn.180014d60
nop
lea rdx, str.new_FAILED.
lea rcx, [rbp - 0x20]
call fcn.180022d00
lea rdx, str.CProcUtility::CreateProcessInherit
lea rcx, [rbp + 0xd0]
call fcn.180012480
nop
lea rdx, str.ProcUtility.cpp
lea rcx, [rbp + 0xf8]
call fcn.180012480
nop
lea rdx, [rbp + 0x120]
lea rcx, [rbp - 0x20]
call fcn.180014e40
mov rbx, rax
call fcn.180016d70
mov rcx, rax
mov qword [rsp + 0x28], rbx
lea rax, [rbp + 0xd0]
mov qword [rsp + 0x20], rax
mov r9d, 0x10b
lea r8, [rbp + 0xf8]
xor edx, edx
call fcn.180030340
nop
lea rcx, [rbp + 0x120]
call fcn.1800a20a0
nop
lea rcx, [rbp + 0xf8]
call fcn.180001850
nop
lea rcx, [rbp + 0xd0]
call fcn.180001850
nop
lea rcx, [rbp + 0x68]
call fcn.180014de0
lea rcx, [rbp + 0x68]
call fcn.180013e40
xor al, al
jmp 0x180032113
mov r8, qword [rdi + 0x10]
inc r8
xor edx, edx
mov rcx, rax
call fcn.1800c6a90
cmp qword [rdi + 0x18], 8
jb 0x180031f71
mov r8, qword [rdi]
jmp 0x180031f74
mov r8, rdi
lea rdx, [0x18014ac74]
mov rcx, rsi
call qword [sym.imp.USER32.dll_wsprintfW]
mov r14b, 1
cmp qword [r13 + 0x10], r15
ja 0x180031f92
mov rbx, r15
jmp 0x180031f9d
mov rcx, r13
call fcn.1800144b0
mov rbx, rax
cmp qword [r12 + 0x10], r15
ja 0x180031fa9
mov rax, r15
jmp 0x180031fb1
mov rcx, r12
call fcn.1800144b0
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1800320e7
lea rcx, [rbp - 0x20]
call fcn.180014d60
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.CP_FAILED._GetLastError:
lea rcx, [rbp - 0x20]
call fcn.180022d00
mov rcx, rax
mov edx, ebx
call fcn.18002d850
mov rcx, rax
lea rdx, str.._cmd:
call fcn.180022d00
mov rcx, rax
mov rdx, rdi
call fcn.180022fd0
lea rdx, str.CProcUtility::CreateProcessInherit
lea rcx, [rbp + 0xf8]
call fcn.180012480
nop
lea rdx, str.ProcUtility.cpp
lea rcx, [rbp + 0xd0]
call fcn.180012480
nop
lea rdx, [rbp + 0x120]
lea rcx, [rbp - 0x20]
call fcn.180014e40
mov rbx, rax
call fcn.180016d70
mov rcx, rax
mov qword [rsp + 0x28], rbx
lea rax, [rbp + 0xf8]
mov qword [rsp + 0x20], rax
mov r9d, 0x11f
lea r8, [rbp + 0xd0]
mov edx, 1
call fcn.180030340
nop
lea rcx, [rbp + 0x120]
call fcn.1800a20a0
nop
lea rcx, [rbp + 0xd0]
call fcn.180001850
nop
lea rcx, [rbp + 0xf8]
call fcn.180001850
nop
lea rcx, [rbp + 0x68]
call fcn.180014de0
lea rcx, [rbp + 0x68]
call fcn.180013e40
xor r14b, r14b
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x50], r15
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x58], r15
mov rcx, rsi
call fcn.1800be7e8
movzx eax, r14b
mov rcx, qword [rbp + 0x148]
xor rcx, rsp
call fcn.1800bdf20
add rsp, 0x258
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret