Function at 0x140041790
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x3d8
movaps xmmword [rsp + 0x3c0], xmm6
mov r15, r8
mov r12, rdx
mov rsi, rcx
mov rax, qword [0x14010d6b8]
xor rax, rsp
mov qword [rsp + 0x3b8], rax
lea rdi, [rsp + 0x220]
mov r8d, 0x190
mov rcx, rdi
mov dl, 0xaa
call fcn.1400a2bc0
cmp byte [r12 + 0x17], 0
mov rdx, r12
jns 0x1400417ed
mov rdx, qword [r12]
mov r8d, 0xc8
mov rcx, rdi
call fcn.1400587b0
mov rcx, rdi
call fcn.1400016e0
cmp byte [r15 + 0x21], 0
je 0x140041836
movzx ebx, byte [r15]
movzx edi, byte [r15 + 0x20]
movzx eax, byte [r12 + 0x17]
test al, al
js 0x140041960
mov qword [rsp + 0x190], r12
mov qword [rsp + 0x198], rax
jmp 0x140041982
movabs r14, 0xaaaaaaaaaaaaaaaa
movzx edi, byte [0x14010d770]
xor ebx, ebx
test dil, 0x19
jne 0x1400420c3
mov qword [rsp + 0x68], r14
mov rbp, r14
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x1b0], r14
movaps xmm6, xmmword [section..rdata]
movaps xmmword [rsp + 0x1a0], xmm6
lea rdx, str.LaunchProcess
lea r8, str....._baseprocesslaunch_win.cc
lea r13, [rsp + 0x110]
mov rcx, r13
mov r9d, 0x100
call fcn.1400470a0
lea r8, [0x140119004]
lea rcx, [rsp + 0x1a0]
mov rdx, r13
call fcn.140058b20
xorps xmm0, xmm0
movaps xmmword [rsp + 0x210], xmm0
mov qword [rsp + 0x180], r14
movaps xmmword [rsp + 0x170], xmm6
movaps xmmword [rsp + 0x160], xmm6
movaps xmmword [rsp + 0x150], xmm6
movaps xmmword [rsp + 0x140], xmm6
movaps xmmword [rsp + 0x130], xmm6
movaps xmmword [rsp + 0x120], xmm6
movaps xmmword [rsp + 0x110], xmm6
lea rcx, [rsp + 0x110]
call fcn.140058d00
cmp byte [r15 + 0x72], 0
je 0x140041920
call fcn.1400567c0
xor ebx, ebx
cmp eax, 0x10
setge bl
mov rax, qword [r15 + 0x28]
xor edx, edx
cmp rax, qword [r15 + 0x30]
setne dl
add edx, ebx
je 0x1400419f0
lea rcx, [rsp + 0x110]
call fcn.140058d80
mov r13d, 0x80000
test al, al
je 0x140041adb
cmp byte [r15 + 0x72], 0
jne 0x1400419fa
jmp 0x140041a34
mov rax, qword [r12 + 8]
mov r12, qword [r12]
mov qword [rsp + 0x190], r12
mov qword [rsp + 0x198], rax
test rax, rax
js 0x14004206b
test r12, r12
jne 0x140041990
test rax, rax
jne 0x140042097
lea r14, [rsp + 0x110]
lea rdx, [rsp + 0x190]
mov rcx, r14
call fcn.1400498c0
mov rcx, rsi
mov rdx, r14
mov r8d, edi
mov r9d, ebx
call fcn.140041490
mov rcx, r14
call fcn.140049510
mov rcx, qword [rsp + 0x3b8]
xor rcx, rsp
call fcn.14009fa30
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x3c0]
add rsp, 0x3d8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor r13d, r13d
cmp byte [r15 + 0x72], 0
je 0x140041a34
call fcn.1400567c0
cmp eax, 0x10
jl 0x140041a34
or byte [rsp + 0x21b], 0x20
lea rcx, [rsp + 0x110]
lea r8, [rsp + 0x210]
mov edx, 0x20007
mov r9d, 0x10
call fcn.140058e50
test al, al
je 0x140041adb
mov qword [rsp + 0x58], rbp
cmp dword [r15 + 0x24], 1
sete bpl
mov rbx, qword [r15 + 0x28]
mov r14, qword [r15 + 0x30]
cmp rbx, r14
je 0x140041b24
mov rax, r14
sub rax, rbx
mov ecx, 0xfffffff8
cmp rax, rcx
ja 0x140041c02
mov rbp, qword [sym.imp.KERNEL32.dll_SetHandleInformation]
nop
mov rcx, qword [rbx]
mov edx, 1
mov r8d, 1
call rbp
test eax, eax
je 0x140041a8f
add rbx, 8
cmp rbx, r14
jne 0x140041a70
jmp 0x140041aef
lea rcx, [rsp + 0x1c0]
lea rdx, str.LaunchProcess
lea r8, str....._baseprocesslaunch_win.cc
mov r9d, 0x13b
call fcn.1400470a0
lea rcx, [rsp + 0x108]
lea rdx, str.result
lea r8, [rsp + 0x1c0]
call fcn.14004da20
lea rcx, [rsp + 0x108]
call fcn.14004dad0
jmp 0x140041a84
mov rcx, rsi
xor edx, edx
call fcn.140041100
mov rbx, qword [rsp + 0x60]
jmp 0x14004201a
mov r8, qword [r15 + 0x28]
mov r9, qword [r15 + 0x30]
cmp r9, r8
je 0x140042107
sub r9d, r8d
and r9d, 0xfffffff8
lea rcx, [rsp + 0x110]
mov edx, 0x20002
call fcn.140058e50
mov bpl, 1
test al, al
je 0x140041c02
cmp byte [r15 + 0x22], 0
je 0x140041b33
or byte [rsp + 0x154], 0x80
cmp byte [r15 + 0x48], 0
je 0x140041b49
lea rax, [0x1400d9be8]
mov qword [rsp + 0x128], rax
or byte [rsp + 0x154], 1
xor eax, eax
cmp byte [r15 + 0x20], 0
sete al
mov word [rsp + 0x158], ax
mov rdx, qword [r15 + 0x58]
mov rcx, qword [r15 + 0x60]
mov rax, qword [r15 + 0x68]
test rdx, rdx
jne 0x140041b7e
test rcx, rcx
jne 0x140041b7e
test rax, rax
je 0x140041bc4
mov r8, qword [r15 + 0x28]
cmp r8, qword [r15 + 0x30]
jne 0x140041ba7
test rdx, rdx
je 0x140042133
test rcx, rcx
je 0x140042186
mov rax, qword [r15 + 0x68]
test rax, rax
je 0x1400421d1
or byte [rsp + 0x155], 1
movups xmm0, xmmword [r15 + 0x58]
movups xmmword [rsp + 0x168], xmm0
mov qword [rsp + 0x178], rax
cmp byte [r15 + 0x70], 0
lea r14d, [r13 + 0x1000000]
cmove r14d, r13d
xorps xmm0, xmm0
movaps xmmword [rsp + 0xd0], xmm0
mov qword [rsp + 0xe0], 0
movzx eax, byte [r15 + 0x1f]
test al, al
js 0x140041c1b
lea rcx, [r15 + 8]
xor ebx, ebx
test al, al
cmovne rbx, rcx
jmp 0x140041c28
mov rcx, rsi
xor edx, edx
call fcn.140041100
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x14004201a
mov rbx, qword [r15 + 0x10]
test rbx, rbx
je 0x140041c28
mov rbx, qword [r15 + 8]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xc0], rax
movaps xmmword [rsp + 0xb0], xmm6
lea r13, [rsp + 0xb0]
mov rcx, r13
mov rdx, r12
call fcn.140042220
mov rdx, qword [r15 + 0x40]
test rdx, rdx
je 0x140041d1e
mov qword [rsp + 0x1c0], 0
lea rcx, [rsp + 0x1c0]
xor r8d, r8d
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x140041d0a
or r14d, 0x400
mov rdx, qword [rsp + 0x1c0]
movzx eax, bpl
cmp byte [rsp + 0xc7], 0
jns 0x140041cab
mov r13, qword [rsp + 0xb0]
mov rcx, qword [r15 + 0x40]
lea r8, [rsp + 0xd0]
mov qword [rsp + 0x50], r8
lea r8, [rsp + 0x118]
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], 0
xor edx, edx
mov r8, r13
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov ebp, eax
mov rcx, qword [rsp + 0x1c0]
call sub.USERENV.dll_DestroyEnvironmentBlock
test ebp, ebp
jne 0x140041e17
mov rcx, rsi
xor edx, edx
call fcn.140041100
mov rbp, qword [rsp + 0x58]
jmp 0x140041ffe
xorps xmm0, xmm0
movaps xmmword [rsp + 0x1c0], xmm0
mov qword [rsp + 0x1d0], 0
cmp byte [r15 + 0x90], 0
je 0x140041f23
lea r8, [r15 + 0x78]
lea rdx, [0x1400dcfae]
lea rcx, [rsp + 0x70]
call fcn.140058e90
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x1d0], rax
movups xmm0, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x1c0], xmm0
cmp byte [rsp + 0x1d7], 0
lea r9, [rsp + 0x118]
jns 0x140041d91
mov rax, qword [rsp + 0x1c0]
jmp 0x140041d99
lea rax, [rsp + 0x1c0]
or r14d, 0x400
movzx ecx, bpl
cmp byte [rsp + 0xc7], 0
jns 0x140041db8
mov rdx, qword [rsp + 0xb0]
jmp 0x140041dc0
lea rdx, [rsp + 0xb0]
mov rbp, qword [rsp + 0x58]
lea r8, [rsp + 0xd0]
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], ecx
xor ecx, ecx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140041f7f
cmp byte [rsp + 0x1d7], 0
jns 0x140041e17
mov rcx, qword [rsp + 0x1c0]
call fcn.14009f64c
movabs rbx, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xa0], rbx
movaps xmmword [rsp + 0x90], xmm6
lea rcx, [rsp + 0x90]
lea rdx, [rsp + 0xd0]
call fcn.1400594e0
mov rcx, qword [r15 + 0x50]
test rcx, rcx
je 0x140041e65
mov rdx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x140041fa2
cmp byte [r15 + 0x71], 0
mov rbp, qword [rsp + 0x58]
je 0x140041e86
mov rcx, qword [rsp + 0x90]
call fcn.14004e5a0
mov ecx, eax
call qword [sym.imp.USER32.dll_AllowSetForegroundWindow]
cmp byte [r15], 0
je 0x140041f06
mov qword [rsp + 0x200], rbx
movaps xmmword [rsp + 0x1f0], xmm6
movaps xmmword [rsp + 0x1e0], xmm6
movaps xmmword [rsp + 0x1d0], xmm6
movaps xmmword [rsp + 0x1c0], xmm6
lea rdx, str.LaunchProcess
lea r8, str....._baseprocesslaunch_win.cc
lea r15, [rsp + 0x70]
mov rcx, r15
mov r9d, 0x1b3
call fcn.1400470a0
lea r12, [rsp + 0x1c0]
mov rcx, r12
mov rdx, r15
xor r8d, r8d
call fcn.140056e20
mov rcx, qword [rsp + 0x90]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, r12
call fcn.140057120
lea rcx, [rsp + 0x90]
call fcn.1400596f0
mov rcx, rsi
mov rdx, rax
call fcn.140041100
jmp 0x140041ff1
cmp qword [r15 + 0x88], 0
je 0x14004205c
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
je 0x140041d0a
mov r12, rax
lea r8, [r15 + 0x78]
lea rcx, [rsp + 0x70]
mov rdx, rax
call fcn.140058e90
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x1d0], rax
movups xmm0, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x1c0], xmm0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140041d75
mov rcx, rsi
xor edx, edx
call fcn.140041100
cmp byte [rsp + 0x1d7], 0
jns 0x140041ffe
mov rcx, qword [rsp + 0x1c0]
call fcn.14009f64c
jmp 0x140041ffe
movaps xmmword [rsp + 0x1c0], xmm6
lea rcx, [rsp + 0x90]
call fcn.1400596f0
lea r15, [rsp + 0x1c0]
mov rcx, r15
mov rdx, rax
call fcn.140041100
mov rcx, r15
mov edx, 1
mov r8b, 1
call fcn.140041270
mov rcx, rsi
xor edx, edx
call fcn.140041100
mov rcx, r15
call fcn.140041220
mov rbp, qword [rsp + 0x58]
lea rcx, [rsp + 0x90]
call fcn.140059650
mov rbx, qword [rsp + 0x60]
cmp byte [rsp + 0xc7], 0
jns 0x14004201a
mov rcx, qword [rsp + 0xb0]
call fcn.14009f64c
lea rcx, [rsp + 0x110]
call fcn.140058d40
lea rcx, [rsp + 0x1a0]
call fcn.140058c20
test dil, 0x19
je 0x1400419c1
cmp byte [rbx], 0
je 0x1400419c1
mov rcx, rbx
mov rdx, rbp
mov r8, qword [rsp + 0x68]
call fcn.140052ac0
jmp 0x1400419c1
xor eax, eax
lea r9, [rsp + 0x118]
jmp 0x140041da0
lea rax, str.string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string_view
lea r9, str.__len___static_cast_size_type__numeric_limits_difference_type_::max___
mov r8d, 0x13a
call fcn.140005a9c
lea rax, str.string_view::string_view__CharT___size_t_:_received_nullptr
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string_view
lea r9, str.__len__0____s___nullptr
mov r8d, 0x13c
call fcn.140005a9c
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea rdx, [0x14010d770]
lea rbp, str.LaunchProcess
mov cl, 0x58
mov qword [rsp + 0x60], rdx
mov r8, rbp
xor r9d, r9d
call fcn.140041350
mov qword [rsp + 0x68], rax
jmp 0x140041862
lea rax, str.vector___index_out_of_bounds
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_vector
lea r9, [0x1400d5217]
mov r8d, 0x62c
call fcn.140005a9c
lea rdx, str.LaunchProcess
lea r8, str....._baseprocesslaunch_win.cc
lea rbx, [rsp + 0x1c0]
mov rcx, rbx
mov r9d, 0x156
call fcn.1400470a0
lea rdx, str.options.stdin_handle
lea r14, [rsp + 0x100]
mov rcx, r14
mov r8, rbx
call fcn.14004d920
mov rcx, r14
call fcn.14004dad0
mov rcx, qword [r15 + 0x60]
test rcx, rcx
jne 0x140041b9a
lea rdx, str.LaunchProcess
lea r8, str....._baseprocesslaunch_win.cc
lea rbx, [rsp + 0x1c0]
mov rcx, rbx
mov r9d, 0x157
call fcn.1400470a0
lea rdx, str.options.stdout_handle
lea r14, [rsp + 0xf8]
mov rcx, r14
mov r8, rbx
call fcn.14004d920
mov rcx, r14
call fcn.14004dad0
jmp 0x140041b9a
lea rdx, str.LaunchProcess
lea r8, str....._baseprocesslaunch_win.cc
lea rbx, [rsp + 0x1c0]
mov rcx, rbx
mov r9d, 0x158
call fcn.1400470a0
lea rdx, str.options.stderr_handle
lea r14, [rsp + 0xf0]
mov rcx, r14
mov r8, rbx
call fcn.14004d920
mov rcx, r14
call fcn.14004dad0
mov rax, qword [r15 + 0x68]
jmp 0x140041ba7