Function at 0x14000d9f0
Capabilities:
Query environment variable

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
lea rcx, str.PG_COLOR
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__isatty]
test eax, eax
setne dil
test eax, eax
je 0x14000da8d
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [rsp + 0x48], 0
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000da52
xor dil, dil
jmp 0x14000da8d
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
jne 0x14000da69
xor dil, dil
jmp 0x14000da8d
mov edx, dword [rsp + 0x48]
test dl, 4
je 0x14000da77
mov dil, 1
jmp 0x14000da8d
or edx, 4
mov rcx, rdi
mov dword [rsp + 0x48], edx
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
test eax, eax
setne dil
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
xor r9d, r9d
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 4]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_setvbuf]
mov rcx, rsi
call fcn.140011a10
mov qword [0x14002ef58], rax
mov dword [0x14002f818], 2
test rbx, rbx
je 0x14000dc98
xor ecx, ecx
lea rdx, [0x1400219c4]
nop word [rax + rax]
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x14000daf5
cmp rcx, 7
jne 0x14000dae0
jmp 0x14000db20
xor ecx, ecx
lea rdx, str.auto
nop
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x14000dc98
cmp rcx, 5
jne 0x14000db00
test dil, dil
je 0x14000dc98
lea rcx, str.PG_COLORS
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x14000dc6e
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rsi, rax
test rax, rax
je 0x14000dc98
lea rdx, [0x1400219e4]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok]
mov rbx, rax
test rax, rax
je 0x14000dc5d
mov qword [rsp + 0x40], rbp
lea rbp, str.locus
mov qword [rsp + 0x50], r14
lea r14, str.error
mov qword [rsp + 0x58], r15
lea r15, str.warning
nop dword [rax + rax]
mov edx, Ordinal_64
mov rcx, rbx
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x14000dc33
mov byte [rax], 0
lea rdi, [rax + 1]
xor ecx, ecx
nop
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [r14 + rcx - 1]
jne 0x14000dbd4
cmp rcx, 6
jne 0x14000dbb0
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov qword [0x14002ef78], rax
xor ecx, ecx
nop word [rax + rax]
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [r15 + rcx - 1]
jne 0x14000dc04
cmp rcx, 8
jne 0x14000dbe0
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov qword [0x14002ef80], rax
xor edx, edx
nop word [rax + rax]
movzx eax, byte [rbx + rdx]
inc rdx
cmp al, byte [rdx + rbp - 1]
jne 0x14000dc33
cmp rdx, 6
jne 0x14000dc10
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov qword [0x14002ef88], rax
lea rdx, [0x1400219e4]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok]
mov rbx, rax
test rax, rax
jne 0x14000db90
mov r15, qword [rsp + 0x58]
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x40]
mov rcx, rsi
add rsp, 0x20
pop rdi
pop rsi
pop rbx
jmp qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rax, str.01_31
mov qword [0x14002ef78], rax
lea rax, str.01_35
mov qword [0x14002ef80], rax
lea rax, [0x140021a10]
mov qword [0x14002ef88], rax
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret