Function at 0x140011250
Capabilities:
Create process on windows
Resume thread
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x130]
sub rsp, 0x230
xor r12d, r12d
mov r15, r8
mov r14, rcx
mov rsi, rdx
lea rcx, [rbp - 0x60]
lea r8d, [r12 + 0x68]
xor edx, edx
mov edi, r12d
mov dword [rbp + 0x168], r12d
call fcn.14001ac40
cmp byte [rsi + 0x10], dil
lea rax, [0x140034afc]
cmove rax, qword [rbp - 0x50]
cmp byte [rsi + 1], dil
mov dword [rbp - 0x60], 0x68
mov qword [rbp - 0x50], rax
mov eax, 5
mov dword [rbp - 0x24], 1
cmovne ax, r12w
mov word [rbp - 0x20], ax
cmp qword [rsi + 0x20], rdi
jne 0x1400112e1
cmp qword [rsi + 0x28], rdi
jne 0x1400112e1
cmp qword [rsi + 0x30], rdi
je 0x14001146c
call fcn.140010f60
cmp eax, 1
jne 0x14001132a
call fcn.1400108b0
cmp eax, 3
jg 0x14001132a
cmp byte [rsi + 2], dil
jne 0x14001132a
mov edi, 1
lea rdx, str.c:_b_build_slavewin_x64_build_src_baseprocess_util_win.cc
lea rcx, [rbp + 0x10]
lea r9d, [rdi + 2]
mov r8d, 0x120
call fcn.14000fca0
lea rdx, str.Check_failed:_options.inherit_handles.
lea rcx, [rax + 8]
call fcn.140001770
test dil, 1
je 0x14001133c
lea rcx, [rbp + 0x10]
and edi, 0xfffffffe
call fcn.14000fde0
call fcn.140010f60
cmp eax, 1
jne 0x140011385
call fcn.1400108b0
cmp eax, 3
jg 0x140011385
cmp qword [rsi + 0x20], r12
jne 0x140011385
lea rdx, str.c:_b_build_slavewin_x64_build_src_baseprocess_util_win.cc
lea rcx, [rbp + 0x10]
mov r9d, 3
mov r8d, 0x121
or edi, 2
call fcn.14000fca0
lea rdx, str.Check_failed:_options.stdin_handle.
lea rcx, [rax + 8]
call fcn.140001770
test dil, 2
je 0x140011397
lea rcx, [rbp + 0x10]
and edi, 0xfffffffd
call fcn.14000fde0
call fcn.140010f60
cmp eax, 1
jne 0x1400113e0
call fcn.1400108b0
cmp eax, 3
jg 0x1400113e0
cmp qword [rsi + 0x28], r12
jne 0x1400113e0
lea rdx, str.c:_b_build_slavewin_x64_build_src_baseprocess_util_win.cc
lea rcx, [rbp + 0x10]
mov r9d, 3
mov r8d, 0x122
or edi, 4
call fcn.14000fca0
lea rdx, str.Check_failed:_options.stdout_handle.
lea rcx, [rax + 8]
call fcn.140001770
test dil, 4
je 0x1400113f2
lea rcx, [rbp + 0x10]
and edi, 0xfffffffb
call fcn.14000fde0
call fcn.140010f60
cmp eax, 1
jne 0x14001143b
call fcn.1400108b0
cmp eax, 3
jg 0x14001143b
cmp qword [rsi + 0x30], r12
jne 0x14001143b
lea rdx, str.c:_b_build_slavewin_x64_build_src_baseprocess_util_win.cc
lea rcx, [rbp + 0x10]
mov r9d, 3
mov r8d, 0x123
or edi, 8
call fcn.14000fca0
lea rdx, str.Check_failed:_options.stderr_handle.
lea rcx, [rax + 8]
call fcn.140001770
test dil, 8
je 0x14001144d
lea rcx, [rbp + 0x10]
and edi, 0xfffffff7
call fcn.14000fde0
mov rax, qword [rsi + 0x20]
or dword [rbp - 0x24], 0x100
mov qword [rbp - 0x10], rax
mov rax, qword [rsi + 0x28]
mov qword [rbp - 8], rax
mov rax, qword [rsi + 0x30]
mov qword [rbp], rax
mov ebx, r12d
mov eax, 0x1000004
cmp qword [rsi + 0x18], rbx
cmovne ebx, eax
cmp byte [rsi + 0x38], r12b
je 0x140011485
bts ebx, 0x18
lea rcx, [rsp + 0x60]
call fcn.140016940
mov rdx, qword [rsi + 8]
test rdx, rdx
je 0x140011547
lea rcx, [rbp + 0x168]
xor r8d, r8d
bts ebx, 0xa
mov qword [rbp + 0x168], r12
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
jne 0x1400114c3
test dil, 0x10
jmp 0x14001161b
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x60]
call fcn.1400169a0
cmp qword [r14 + 0x18], 8
jb 0x1400114dc
mov r14, qword [r14]
movzx ecx, byte [rsi + 2]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x48], rax
mov rax, qword [rbp + 0x168]
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsi + 8]
xor r9d, r9d
mov r8, r14
xor edx, edx
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov rcx, qword [rbp - 0x70]
lea rdx, [rsp + 0x78]
mov ebx, eax
call fcn.140016a60
mov rcx, qword [rbp + 0x168]
call sub.USERENV.dll_DestroyEnvironmentBlock
test ebx, ebx
jne 0x1400115b5
test dil, 0x20
jmp 0x14001161b
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x60]
call fcn.1400169a0
cmp qword [r14 + 0x18], 8
mov rcx, rax
jb 0x140011563
mov r14, qword [r14]
movzx eax, byte [rsi + 2]
mov qword [rsp + 0x48], rcx
lea rcx, [rbp - 0x60]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
xor ecx, ecx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [rbp - 0x70]
lea rdx, [rsp + 0x78]
test eax, eax
sete bl
call fcn.140016a60
test bl, bl
je 0x1400115b5
test dil, 0x40
jmp 0x14001161b
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x140011635
mov rdx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x14001162a
test dil, dil
jns 0x1400115df
lea rcx, [rbp + 0x10]
btr edi, 7
call fcn.14000fde0
mov rbx, qword [rsp + 0x60]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne al
test al, al
je 0x140011615
mov edx, 0xea60
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140011626
test edi, 0x100
jmp 0x14001161b
test edi, 0x200
je 0x140011626
lea rcx, [rbp + 0x10]
call fcn.1400100b0
xor bl, bl
jmp 0x14001165c
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp byte [rsi], r12b
je 0x140011648
mov rcx, qword [rsp + 0x60]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test r15, r15
je 0x14001165a
lea rcx, [rsp + 0x60]
call fcn.140016b40
mov qword [r15], rax
mov bl, 1
lea rcx, [rsp + 0x60]
call fcn.140016960
lea r11, [rsp + 0x230]
movzx eax, bl
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret