Function at 0x1400141c0
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x158]
sub rsp, 0x230
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov rax, qword [0x140042010]
xor rax, rsp
mov qword [rbp + 0x100], rax
mov r14, rcx
xor edi, edi
mov dword [rsp + 0x20], edi
lea edx, [rdi + 0x2c]
call fcn.140019014
test rax, rax
jne 0x140014672
mov rax, qword [0x140043e80]
test rax, rax
jne 0x1400142b6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x24], eax
mov r8d, 0x100
lea rdx, [rbp]
lea rcx, str.WINPTY_DEBUG
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
dec eax
movzx ecx, byte [rbp]
cmp eax, 0xfe
cmova ecx, edi
mov byte [rbp], cl
lea rax, [rbp]
mov rbx, 0xffffffffffffffff
nop
lea rbx, [rbx + 1]
cmp byte [rax + rbx], 0
jne 0x140014270
lea rcx, [rbx + 1]
call fcn.1400178ac
mov rsi, rax
lea r8, [rbx + 1]
lea rdx, [rbp]
mov rcx, rax
call fcn.14001b450
xor eax, eax
lock cmpxchg qword [0x140043e80], rsi
je 0x1400142ac
mov rcx, rsi
call fcn.140017530
nop
mov ecx, dword [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [0x140043e80]
cmp byte [rsi], 0
jne 0x1400142c9
xor al, al
jmp 0x14001462a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], 0xf
mov byte [rsp + 0x58], 0
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rsi + r8], 0
jne 0x1400142f0
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.140004c60
nop
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], 0xf
mov byte [rsp + 0x38], 0
mov r8, 0xffffffffffffffff
inc r8
cmp byte [r14 + r8], 0
jne 0x140014322
mov rdx, r14
lea rcx, [rsp + 0x38]
call fcn.140004c60
nop
movdqa xmm0, xmmword [0x14003abb0]
movdqu xmmword [rbp - 0x78], xmm0
mov byte [rsp + 0x78], 0
mov dword [rsp + 0x20], 1
mov rsi, qword [rsp + 0x68]
lea rdx, [rsi + 1]
lea rcx, [rsp + 0x78]
call fcn.14000a470
mov r8d, 1
lea rdx, [0x140039f94]
lea rcx, [rsp + 0x78]
call fcn.140004db0
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae rdx, qword [rsp + 0x58]
mov r8, rsi
lea rcx, [rsp + 0x78]
call fcn.140004db0
mov r8d, 1
lea rdx, [0x140039f94]
lea rcx, [rsp + 0x78]
call fcn.140004db0
movups xmm7, xmmword [rax]
movups xmmword [rbp - 0x28], xmm7
movups xmm6, xmmword [rax + 0x10]
movups xmmword [rbp - 0x18], xmm6
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rcx, [rsp + 0x58]
call fcn.140004750
movups xmmword [rsp + 0x58], xmm7
movups xmmword [rsp + 0x68], xmm6
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x140014422
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001441c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014687
call fcn.140017530
nop
movdqa xmm0, xmmword [0x14003abb0]
movdqu xmmword [rbp - 0x58], xmm0
mov byte [rbp - 0x68], 0
mov dword [rsp + 0x20], 6
mov rsi, qword [rsp + 0x48]
lea rdx, [rsi + 1]
lea rcx, [rbp - 0x68]
call fcn.14000a470
mov r8d, 1
lea rdx, [0x140039f94]
lea rcx, [rbp - 0x68]
call fcn.140004db0
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rdx, qword [rsp + 0x38]
mov r8, rsi
lea rcx, [rbp - 0x68]
call fcn.140004db0
mov r8d, 1
lea rdx, [0x140039f94]
lea rcx, [rbp - 0x68]
call fcn.140004db0
movups xmm7, xmmword [rax]
movups xmmword [rbp - 0x48], xmm7
movups xmm6, xmmword [rax + 0x10]
movups xmmword [rbp - 0x38], xmm6
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rcx, [rsp + 0x38]
call fcn.140004750
movups xmmword [rsp + 0x38], xmm7
movups xmmword [rsp + 0x48], xmm6
mov rdx, qword [rbp - 0x50]
cmp rdx, 0x10
jb 0x140014503
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400144fe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001468d
call fcn.140017530
lea r14, [rsp + 0x38]
mov r13, qword [rbp - 0x48]
cmp qword [rbp - 0x30], 0x10
cmovae r14, r13
lea r12, [rsp + 0x58]
mov r15, qword [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae r12, r15
mov rsi, qword [rbp - 0x38]
mov rax, qword [rbp - 0x18]
cmp rsi, rax
ja 0x14001459b
test rsi, rsi
je 0x1400145a2
sub rax, rsi
mov qword [rsp + 0x28], rax
lea r8, [rax + 1]
add r8, r12
movsx edx, byte [r14]
sub r8, r12
mov rcx, r12
call fcn.14002ba20
mov rdi, rax
test rax, rax
je 0x14001459b
nop
mov r8, rsi
mov rdx, r14
mov rcx, rdi
call fcn.14002b8c0
test eax, eax
je 0x140014664
inc rdi
mov r8, qword [rsp + 0x28]
inc r8
add r8, r12
sub r8, rdi
movsx edx, byte [r14]
mov rcx, rdi
call fcn.14002ba20
mov rdi, rax
test rax, rax
jne 0x140014560
mov rdi, 0xffffffffffffffff
cmp rdi, 0xffffffffffffffff
setne dil
mov rax, qword [rbp - 0x30]
cmp rax, 0x10
jb 0x1400145e6
lea rdx, [rax + 1]
mov rax, r13
cmp rdx, 0x1000
jb 0x1400145dd
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014693
mov rcx, r13
call fcn.140017530
nop
mov rax, qword [rbp - 0x10]
cmp rax, 0x10
jb 0x14001461e
lea rdx, [rax + 1]
mov rax, r15
cmp rdx, 0x1000
jb 0x140014615
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001466c
mov rcx, r15
call fcn.140017530
nop
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
movzx eax, dil
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.1400174d0
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
sub rdi, r12
jmp 0x1400145a2
call fcn.14001bb5c
nop
mov rdx, r14
lea rcx, str.INTERNAL_ERROR:_hasDebugFlag_flag_has_comma:__s
call fcn.1400146a0
call fcn.14001e7fc
nop
call fcn.14001bb5c
int3
call fcn.14001bb5c
nop
call fcn.14001bb5c
int3