Function at 0x1400143d0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov rax, qword [0x140045010]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov rsi, rcx
mov edx, 0x2c
call fcn.140019dd0
test rax, rax
jne 0x140014984
mov rax, qword [0x140046e60]
xor edi, edi
test rax, rax
jne 0x1400144b6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
mov r8d, pe_nt_image_headers64
lea rdx, [rbp + 0x20]
lea rcx, str.WINPTY_DEBUG
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
dec eax
movzx ecx, byte [rbp + 0x20]
cmp eax, 0xfe
cmova ecx, edi
mov byte [rbp + 0x20], cl
lea rax, [rbp + 0x20]
mov rbx, 0xffffffffffffffff
nop dword [rax]
lea rbx, [rbx + 1]
cmp byte [rax + rbx], 0
jne 0x140014470
lea rcx, [rbx + 1]
call fcn.140017fb8
mov r14, rax
lea r8, [rbx + 1]
lea rdx, [rbp + 0x20]
mov rcx, rax
call fcn.14001dbe0
xor eax, eax
lock cmpxchg qword [0x140046e60], r14
je 0x1400144ac
mov rcx, r14
call fcn.140017cec
nop
mov ecx, dword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [0x140046e60]
cmp byte [r14], 0
jne 0x1400144ca
xor al, al
jmp 0x14001493c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], 0xf
mov byte [rsp + 0x58], 0
mov r8, 0xffffffffffffffff
inc r8
cmp byte [r14 + r8], 0
jne 0x1400144f5
mov rdx, r14
lea rcx, [rsp + 0x58]
call fcn.140004bd0
nop
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x70], 0xf
mov byte [rsp + 0x78], 0
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rsi + r8], 0
jne 0x140014530
mov rdx, rsi
lea rcx, [rsp + 0x78]
call fcn.140004bd0
nop
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
mov rdx, qword [rsp + 0x68]
sub rax, rdx
cmp rax, 1
jb 0x140014999
lea r9, [rsp + 0x58]
mov r13, qword [rsp + 0x70]
cmp r13, 0x10
setae byte [rsp + 0x20]
mov r15, qword [rsp + 0x58]
cmovae r9, r15
mov qword [rsp + 0x28], r9
mov qword [rbp - 0x68], rdi
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x50], rdi
lea r12, [rdx + 1]
mov esi, 0xf
lea r14, [rbp - 0x68]
cmp r12, rsi
jbe 0x140014640
mov rsi, r12
cmp r12, 0x10
cmovb rsi, qword [0x14003e4c0]
or rsi, 0xf
cmp rsi, rcx
jbe 0x1400145f8
mov rsi, rcx
movabs rax, 0x8000000000000027
mov rcx, rax
call fcn.140017cb0
test rax, rax
je 0x1400149a5
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
mov rdx, qword [rsp + 0x68]
mov r9, qword [rsp + 0x28]
jmp 0x14001463c
mov eax, 0x16
cmp rsi, rax
cmovb rsi, rax
lea rcx, [rsi + 1]
cmp rcx, 0x1000
jb 0x140014620
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14001497e
jmp 0x1400145cf
test rcx, rcx
je 0x140014639
call fcn.140017cb0
mov r14, rax
mov rdx, qword [rsp + 0x68]
mov r9, qword [rsp + 0x28]
jmp 0x14001463c
mov r14, rdi
mov qword [rbp - 0x68], r14
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], rsi
movzx eax, byte [0x14003e49c]
mov byte [r14], al
lea rcx, [r14 + 1]
mov r8, rdx
mov rdx, r9
call fcn.14001dbe0
mov byte [r14 + r12], 0
mov r8d, 1
lea rdx, [0x14003e49c]
lea rcx, [rbp - 0x68]
call fcn.140005870
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x48], xmm1
movups xmmword [rbp - 0x18], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
cmp byte [rsp + 0x20], 0
je 0x1400146e6
lea rdx, [r13 + 1]
mov rax, r15
cmp rdx, 0x1000
jb 0x1400146d4
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001499f
mov rcx, r15
call fcn.140017cec
movups xmm0, xmmword [rsp + 0x28]
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm1
mov rdx, qword [rbp - 0x50]
cmp rdx, 0x10
jb 0x14001472b
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014726
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400149a5
call fcn.140017cec
lea r8, [rsp + 0x78]
lea rcx, [rbp - 8]
call fcn.140014c90
nop
mov r8d, 1
lea rdx, [0x14003e49c]
mov rcx, rax
call fcn.140005870
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rbp - 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x38], xmm1
movups xmmword [rbp - 0x38], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x1400147bd
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400147ae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400149ab
call fcn.140017cec
movups xmm0, xmmword [rsp + 0x48]
movups xmm1, xmmword [rsp + 0x38]
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rbp - 0x78], xmm1
mov rdx, qword [rbp + 0x10]
cmp rdx, 0x10
jb 0x140014801
inc rdx
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400147fc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400149b1
call fcn.140017cec
lea r12, [rsp + 0x78]
mov rcx, qword [rbp - 0x30]
cmp rcx, 0x10
setae byte [rsp + 0x20]
mov r15, qword [rbp - 0x48]
cmovae r12, r15
lea r13, [rsp + 0x58]
cmp qword [rbp - 0x10], 0x10
setae byte [rsp + 0x21]
mov rsi, qword [rbp - 0x28]
cmovae r13, rsi
mov r14, qword [rbp - 0x38]
mov rax, qword [rbp - 0x18]
cmp r14, rax
ja 0x1400148b0
test r14, r14
je 0x1400148b7
sub rax, r14
mov qword [rsp + 0x38], rax
lea r8, [rax + 1]
add r8, r13
movsx edx, byte [r12]
sub r8, r13
mov rcx, r13
call fcn.14002fdd0
mov rdi, rax
test rax, rax
je 0x1400148ac
nop dword [rax + rax]
mov r8, r14
mov rdx, r12
mov rcx, rdi
call fcn.14002fc20
test eax, eax
je 0x14001496c
inc rdi
mov r8, qword [rsp + 0x38]
inc r8
add r8, r13
sub r8, rdi
movsx edx, byte [r12]
mov rcx, rdi
call fcn.14002fdd0
mov rdi, rax
test rax, rax
jne 0x140014870
mov rcx, qword [rbp - 0x30]
mov rdi, 0xffffffffffffffff
cmp rdi, 0xffffffffffffffff
setne dil
cmp byte [rsp + 0x20], 0
je 0x1400148f8
lea rdx, [rcx + 1]
mov rax, r15
cmp rdx, 0x1000
jb 0x1400148ef
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400149b7
mov rcx, r15
call fcn.140017cec
nop
cmp byte [rsp + 0x21], 0
je 0x140014930
mov rdx, qword [rbp - 0x10]
inc rdx
mov rax, rsi
cmp rdx, 0x1000
jb 0x140014927
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014978
mov rcx, rsi
call fcn.140017cec
nop
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
movzx eax, dil
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.140017c90
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
sub rdi, r13
mov rcx, qword [rbp - 0x30]
jmp 0x1400148b7
call fcn.14001e704
nop
call fcn.1400010f0
nop
mov rdx, rsi
lea rcx, str.INTERNAL_ERROR:_hasDebugFlag_flag_has_comma:__s
call fcn.1400149c0
call fcn.1400220e4
nop
call fcn.140001110
nop
call fcn.14001e704
nop
call fcn.14001e704
nop
call fcn.14001e704
nop
call fcn.14001e704
nop
call fcn.14001e704
int3