Function at 0x1400497f0
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, 0x238
movaps xmmword [rsp + 0x220], xmm6
mov r15, r8
mov r12, rdx
mov rbp, rcx
mov rax, qword [0x140148038]
xor rax, rsp
mov qword [rsp + 0x218], rax
cmp byte [r8 + 0x21], 0
jne 0x140049e2c
movabs rsi, 0xaaaaaaaaaaaaaaaa
mov al, byte [0x140149f40]
xor ebx, ebx
mov byte [rsp + 0x5f], al
test al, 0x19
mov qword [rsp + 0x60], rbp
jne 0x140049cd1
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rsi
xor eax, eax
mov qword [rsp + 0x68], rax
lea r13, [rsp + 0x190]
mov qword [r13 + 0x10], rsi
movaps xmm6, xmmword [0x14012e710]
movaps xmmword [r13], xmm6
lea rdx, str.LaunchProcess
lea r8, str....._baseprocesslaunch_win.cc
lea rbp, [rsp + 0x100]
mov rcx, rbp
mov r9d, 0xfb
call fcn.14007ae20
lea r8, [0x14015a768]
mov rcx, r13
mov rdx, rbp
call fcn.140057580
xorps xmm0, xmm0
movaps xmmword [rsp + 0x200], xmm0
mov qword [rbp + 0x70], rsi
movaps xmmword [rbp + 0x60], xmm6
movaps xmmword [rbp + 0x50], xmm6
movaps xmmword [rbp + 0x40], xmm6
movaps xmmword [rbp + 0x30], xmm6
movaps xmmword [rbp + 0x20], xmm6
movaps xmmword [rbp + 0x10], xmm6
movaps xmmword [rbp], xmm6
lea rcx, [rsp + 0x100]
call fcn.1400583e0
cmp byte [r15 + 0x72], 0
je 0x1400498ff
call fcn.140057560
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 0x140049e86
lea rcx, [rsp + 0x100]
call fcn.140058460
mov ebx, 0x80000
test al, al
je 0x140049d5b
cmp byte [r15 + 0x72], 0
je 0x14004996c
call fcn.140057560
cmp eax, 0x10
jl 0x14004996c
lea r8, [rsp + 0x200]
or byte [r8 + 0xb], 0x20
lea rcx, [rsp + 0x100]
mov edx, 0x20007
mov r9d, 0x10
call fcn.140058530
test al, al
je 0x140049d5b
cmp dword [r15 + 0x24], 1
sete bpl
mov rsi, qword [r15 + 0x28]
mov rdi, qword [r15 + 0x30]
cmp rsi, rdi
je 0x140049a07
mov rax, rdi
sub rax, rsi
mov ecx, 0xfffffff8
cmp rax, rcx
ja 0x140049d5b
mov r14, qword [sym.imp.KERNEL32.dll_SetHandleInformation]
lea r13, str....._baseprocesslaunch_win.cc
lea rbp, [rsp + 0xf8]
mov rcx, qword [rsi]
mov edx, 1
mov r8d, 1
call r14
test eax, eax
je 0x140049d73
add rsi, 8
cmp rsi, rdi
jne 0x1400499b0
mov r8, qword [r15 + 0x28]
mov r9, qword [r15 + 0x30]
cmp r9, r8
je 0x140049e8d
sub r9d, r8d
and r9d, 0xfffffff8
lea rcx, [rsp + 0x100]
mov edx, 0x20002
call fcn.140058530
mov bpl, 1
test al, al
je 0x140049d5b
cmp byte [r15 + 0x22], 0
jne 0x140049eb9
cmp byte [r15 + 0x48], 0
jne 0x140049ec6
mov eax, dword [rsp + 0x144]
mov ecx, eax
or ecx, 1
mov dword [rsp + 0x144], ecx
xor ecx, ecx
cmp byte [r15 + 0x20], 0
sete cl
mov word [rsp + 0x148], cx
mov rcx, qword [r15 + 0x58]
mov rdx, qword [r15 + 0x60]
mov r8, qword [r15 + 0x68]
test rcx, rcx
jne 0x140049d91
test rdx, rdx
jne 0x140049d91
test r8, r8
jne 0x140049d91
cmp byte [r15 + 0x70], 0
lea edi, [rbx + 0x1000000]
cmove edi, ebx
xorps xmm0, xmm0
movaps xmmword [rsp + 0xe0], xmm0
mov qword [rsp + 0xf0], 0
movzx eax, byte [r15 + 0x1f]
test al, al
jns 0x140049aa1
mov rax, qword [r15 + 0x10]
mov rbx, qword [r15 + 8]
jmp 0x140049aa5
lea rbx, [r15 + 8]
test rax, rax
cmove rbx, rax
movabs r13, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xd0], r13
movaps xmmword [rsp + 0xc0], xmm6
cmp byte [r12 + 0x17], 0
jns 0x140049eda
mov rdx, qword [r12]
mov r8, qword [r12 + 8]
lea rcx, [rsp + 0xc0]
call fcn.140044470
lea r12, [rsp + 0x108]
mov rdx, qword [r15 + 0x40]
test rdx, rdx
jne 0x140049ef9
xorps xmm0, xmm0
movaps xmmword [rsp + 0x1b0], xmm0
mov qword [rsp + 0x1c0], 0
mov al, byte [r15 + 0x90]
test al, al
jne 0x140049dba
cmp qword [r15 + 0x88], 0
jne 0x140049dba
xor eax, eax
movzx ecx, bpl
cmp byte [rsp + 0xd7], 0
jns 0x140049b4b
mov rdx, qword [rsp + 0xc0]
jmp 0x140049b53
lea rdx, [rsp + 0xc0]
lea r8, [rsp + 0xe0]
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edi
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 0x14004a05c
cmp byte [rsp + 0x1c7], 0
js 0x140049f45
mov rbp, qword [rsp + 0x60]
mov bl, byte [rsp + 0x5f]
lea rcx, [rsp + 0xa0]
mov qword [rcx + 0x10], r13
movaps xmmword [rcx], xmm6
lea rdx, [rsp + 0xe0]
call fcn.140058620
mov rcx, qword [r15 + 0x50]
test rcx, rcx
jne 0x140049c70
cmp byte [r15 + 0x71], 0
jne 0x140049f57
cmp byte [r15], 0
jne 0x140049f71
lea rcx, [rsp + 0xa0]
call fcn.140058800
mov rcx, rbp
mov rdx, rax
call fcn.140049680
lea rcx, [rsp + 0xa0]
call fcn.140058750
cmp byte [rsp + 0xd7], 0
jns 0x140049c1e
mov rcx, qword [rsp + 0xc0]
call fcn.140094d80
lea rcx, [rsp + 0x100]
call fcn.140058420
lea rcx, [rsp + 0x190]
call fcn.140057880
test bl, 0x19
jne 0x140049d34
mov rcx, qword [rsp + 0x218]
xor rcx, rsp
call fcn.140096290
mov rax, rbp
movaps xmm6, xmmword [rsp + 0x220]
add rsp, 0x238
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x140049bcd
lea r15, [rsp + 0x1b0]
movaps xmmword [r15], xmm6
lea rcx, [rsp + 0xa0]
call fcn.140058800
mov rcx, r15
mov rdx, rax
call fcn.140049680
mov rcx, r15
mov edx, 1
mov r8b, 1
call fcn.1400e90c0
mov rcx, rbp
xor edx, edx
call fcn.140049680
mov rcx, r15
call fcn.140049700
jmp 0x140049bfa
lea rdi, [rsp + 0x100]
mov rcx, rdi
call fcn.1400723e0
call sub.KERNEL32.dll_GetCurrentThreadId
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rdx, [0x140149f40]
lea r8, str.LaunchProcess
mov cl, 0x58
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x78], r8
xor r9d, r9d
call fcn.140071180
mov qword [rsp + 0x70], rax
jmp 0x140049865
mov rax, qword [rsp + 0x68]
cmp byte [rax], 0
je 0x140049c41
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
call fcn.140071a40
jmp 0x140049c41
mov rbp, qword [rsp + 0x60]
mov rcx, rbp
xor edx, edx
call fcn.140049680
mov bl, byte [rsp + 0x5f]
jmp 0x140049c1e
mov rcx, rbp
mov rdx, r13
mov r8d, 0x136
call fcn.1400ede00
mov rcx, rbp
call fcn.1400ede20
jmp 0x1400499c9
or eax, 0x101
mov dword [rsp + 0x144], eax
mov qword [rsp + 0x158], rcx
mov qword [rsp + 0x160], rdx
mov qword [rsp + 0x168], r8
jmp 0x140049a69
test al, al
je 0x140049ff5
lea r8, [r15 + 0x78]
lea rdx, [0x140133222]
lea rcx, [rsp + 0x80]
call fcn.1400f2780
cmp byte [rsp + 0x1c7], 0
jns 0x140049df1
mov rcx, qword [rsp + 0x1b0]
call fcn.140094d80
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x1c0], rax
movups xmm0, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0x1b0], xmm0
cmp byte [rsp + 0x1c7], 0
jns 0x140049fe2
mov rax, qword [rsp + 0x1b0]
jmp 0x140049fea
mov bl, byte [r15]
mov dil, byte [r15 + 0x20]
movzx eax, byte [r12 + 0x17]
test al, al
mov rcx, qword [r12]
cmovns rcx, r12
lea rdx, [rsp + 0x180]
mov qword [rdx], rcx
cmovs rax, qword [r12 + 8]
mov qword [rdx + 8], rax
lea r14, [rsp + 0x100]
mov rcx, r14
call fcn.1400ed840
mov rcx, rbp
mov rdx, r14
mov r8d, edi
mov r9d, ebx
call fcn.1400e91a0
mov rcx, r14
call fcn.140051a70
jmp 0x140049c41
xor ebx, ebx
jmp 0x14004992e
lea rax, str.vector___index_out_of_bounds
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude_vector
lea r9, str.__n___size__
mov r8d, 0x5c0
call fcn.1400ceec0
or byte [rsp + 0x144], 0x80
jmp 0x140049a12
lea rax, [0x14012f5de]
mov qword [rsp + 0x118], rax
jmp 0x140049a1d
mov rax, qword [r12 + 0x10]
mov qword [rsp + 0xd0], rax
movups xmm0, xmmword [r12]
movaps xmmword [rsp + 0xc0], xmm0
jmp 0x140049ae8
lea rcx, [rsp + 0x1b0]
mov qword [rcx], 0
xor r8d, r8d
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x14004a0e8
or edi, 0x400
mov rdx, qword [rsp + 0x1b0]
add byte [rax], al
movzx eax, bpl
cmp byte [rsp + 0xd7], 0
jns 0x14004a08d
mov r8, qword [rsp + 0xc0]
jmp 0x14004a095
mov rcx, qword [rsp + 0x1b0]
call fcn.140094d80
jmp 0x140049b9b
mov rcx, qword [rsp + 0xa0]
call fcn.140049740
mov ecx, eax
call qword [sym.imp.USER32.dll_AllowSetForegroundWindow]
jmp 0x140049bd8
lea r15, [rsp + 0x1b0]
mov qword [r15 + 0x40], r13
movaps xmmword [r15 + 0x30], xmm6
movaps xmmword [r15 + 0x20], xmm6
movaps xmmword [r15 + 0x10], xmm6
movaps xmmword [r15], xmm6
lea rdx, str.LaunchProcess
lea r8, str....._baseprocesslaunch_win.cc
lea r12, [rsp + 0x80]
mov rcx, r12
mov r9d, 0x1aa
call fcn.14007ae20
mov rcx, r15
mov rdx, r12
xor r8d, r8d
call fcn.140074820
mov rcx, qword [rsp + 0xa0]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, r15
call fcn.140074a50
jmp 0x140049be2
lea rax, [rsp + 0x1b0]
or edi, 0x400
jmp 0x140049b33
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
je 0x14004a05c
mov rsi, rax
lea r8, [r15 + 0x78]
lea rcx, [rsp + 0x80]
mov rdx, rax
call fcn.1400f2780
cmp byte [rsp + 0x1c7], 0
jns 0x14004a02e
mov rcx, qword [rsp + 0x1b0]
call fcn.140094d80
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x1c0], rax
movups xmm0, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0x1b0], xmm0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140049e11
mov rcx, qword [rsp + 0x60]
xor edx, edx
call fcn.140049680
cmp byte [rsp + 0x1c7], 0
jns 0x14004a07f
mov rcx, qword [rsp + 0x1b0]
call fcn.140094d80
mov rbp, qword [rsp + 0x60]
mov bl, byte [rsp + 0x5f]
jmp 0x140049c07
lea r8, [rsp + 0xc0]
mov rcx, qword [r15 + 0x40]
lea r9, [rsp + 0xe0]
mov qword [rsp + 0x50], r9
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], 0
xor edx, edx
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov ebp, eax
mov rcx, qword [rsp + 0x1b0]
call sub.USERENV.dll_DestroyEnvironmentBlock
test ebp, ebp
jne 0x140049b9b
mov rbp, qword [rsp + 0x60]
mov rcx, rbp
xor edx, edx
call fcn.140049680
jmp 0x14004a084