Function at 0x14001e9d0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x14003c020]
xor rax, rsp
mov qword [rbp + 0x60], rax
xor r15d, r15d
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], r15
mov word [rsp + 0x48], r15w
xor r8d, r8d
xor edx, edx
lea rcx, str.COREHOST_TRACE
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test eax, eax
jne 0x14001ea73
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x14001ec8b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x14001ea58
movzx eax, ax
or eax, 0x80070000
mov r8d, eax
lea rdx, str.COREHOST_TRACE
lea rcx, str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
call fcn.14001f1f0
jmp 0x14001ec8b
mov eax, 2
mul rbx
mov rsi, 0xffffffffffffffff
cmovo rax, rsi
mov rcx, rax
call fcn.14002bfac
mov r14, rax
mov r8d, ebx
mov rdx, rax
lea rcx, str.COREHOST_TRACE
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14001ea46
mov rdx, rsi
nop dword [rax + rax]
inc rdx
cmp word [r14 + rdx*2], 0
jne 0x14001eab0
mov rax, qword [rsp + 0x60]
cmp rdx, rax
ja 0x14001eaf2
lea rdi, [rsp + 0x48]
cmp rax, 8
cmovae rdi, qword [rsp + 0x48]
mov qword [rsp + 0x58], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r14
mov rcx, rdi
call fcn.14002d580
mov word [rbx + rdi], r15w
jmp 0x14001eaff
mov r9, r14
lea rcx, [rsp + 0x48]
call fcn.14001ddf0
mov rcx, r14
call fcn.14002bce0
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
test eax, eax
jle 0x14001ec8b
call fcn.14001ed00
test al, al
je 0x14001ec8b
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov qword [rsp + 0x20], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
mov dword [rbp - 0x78], eax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__gmtime64_s]
lea r9, [rsp + 0x68]
lea r8, str._c_GMT
mov edx, 0x64
lea rcx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_wcsftime]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r15
lea rax, [rbp - 0x70]
nop
inc rsi
cmp word [rax + rsi*2], 0
jne 0x14001eb90
movabs rbx, 0x7ffffffffffffffe
cmp rsi, rbx
ja 0x14001ecf9
mov qword [rsp + 0x40], 7
cmp rsi, 8
jae 0x14001ebd5
mov qword [rsp + 0x38], rsi
lea r8, [rsi + rsi]
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x28]
call fcn.14002d580
jmp 0x14001ec28
mov rax, rsi
or rax, 7
cmp rax, rbx
ja 0x14001ebf0
mov rbx, rax
mov ecx, 0xa
cmp rax, rcx
cmovb rbx, rcx
lea rdx, [rbx + 1]
lea rcx, [rsp + 0x28]
call fcn.14001d590
mov rdi, rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rbx
lea rbx, [rsi + rsi]
mov r8, rbx
lea rdx, [rbp - 0x70]
mov rcx, rax
call fcn.14002d580
mov word [rbx + rdi], r15w
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
lea rcx, str.Tracing_enabled____s
call fcn.14001f160
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x14001ec8b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001ec85
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001ec85
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002bce0
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14001ecd0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001eccb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001eccb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002bce0
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.14002bcc0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.1400194b0
nop
int3