Function at 0x14001f6a0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x14003a020]
xor rax, rsp
mov qword [rbp - 8], rax
xor r13b, r13b
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
xor edi, edi
mov qword [rbp - 0x38], rdi
mov r15d, 7
mov qword [rbp - 0x30], r15
mov word [rbp - 0x48], di
cmp dword [0x14003b7cc], edi
je 0x14001f6fa
xor bl, bl
jmp 0x14001fa11
lea rax, [0x14003b7c8]
mov qword [rbp - 0x50], rax
mov ebx, edi
mov eax, 1
xchg dword [0x14003b7c8], eax
test eax, eax
je 0x14001f73f
nop word [rax + rax]
mov eax, ebx
inc ebx
test eax, 0x3ff
jne 0x14001f730
call sub.KERNEL32.dll_SwitchToThread
mov eax, 1
xchg dword [0x14003b7c8], eax
test eax, eax
jne 0x14001f720
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov qword [0x14003b7d0], rax
mov qword [rbp - 0x38], rdi
lea rax, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rax, qword [rbp - 0x48]
mov word [rax], di
xor r8d, r8d
xor edx, edx
lea rcx, str.COREHOST_TRACEFILE
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
mov rsi, 0xffffffffffffffff
lea r12d, [rsi + 5]
test eax, eax
jne 0x14001f7c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x14001f88d
test eax, eax
jle 0x14001f7a6
movzx eax, ax
or eax, 0x80070000
mov r8d, eax
lea rdx, str.COREHOST_TRACEFILE
lea rcx, str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
call fcn.14001fe70
jmp 0x14001f88d
mov eax, 2
mul rbx
cmovo rax, rsi
mov rcx, rax
call fcn.1400298cc
mov r14, rax
mov r8d, ebx
mov rdx, rax
lea rcx, str.COREHOST_TRACEFILE
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14001f789
mov rdx, rsi
inc rdx
cmp word [r14 + rdx*2], 0
jne 0x14001f7f2
mov rax, qword [rbp - 0x30]
cmp rdx, rax
ja 0x14001f833
lea rdi, [rbp - 0x48]
cmp rax, 8
cmovae rdi, qword [rbp - 0x48]
mov qword [rbp - 0x38], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r14
mov rcx, rdi
call fcn.14002aec0
xor eax, eax
mov word [rbx + rdi], ax
xor edi, edi
jmp 0x14001f83f
mov r9, r14
lea rcx, [rbp - 0x48]
call fcn.14001e990
mov rcx, r14
call fcn.140029600
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, qword [rbp - 0x48]
mov r8d, 0x40
lea rdx, [0x1400337a8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfsopen]
mov rbx, rax
test rax, rax
je 0x14001f88a
xor r9d, r9d
mov r8d, r12d
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_setvbuf]
mov qword [0x14003b7d0], rbx
jmp 0x14001f88d
mov r13b, 1
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x10], r15
mov qword [rbp - 0x18], rdi
mov word [rbp - 0x28], di
xor r8d, r8d
xor edx, edx
lea rcx, str.COREHOST_TRACE_VERBOSITY
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test eax, eax
je 0x14001f8e6
mov eax, 2
mul rbx
cmovo rax, rsi
mov rcx, rax
call fcn.1400298cc
mov r14, rax
mov r8d, ebx
mov rdx, rax
lea rcx, str.COREHOST_TRACE_VERBOSITY
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x14001f920
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x14001f98f
test eax, eax
jle 0x14001f903
movzx eax, ax
or eax, 0x80070000
mov r8d, eax
lea rdx, str.COREHOST_TRACE_VERBOSITY
lea rcx, str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
call fcn.14001fe70
jmp 0x14001f98f
inc rsi
cmp word [r14 + rsi*2], 0
jne 0x14001f920
mov rax, qword [rbp - 0x10]
cmp rsi, rax
ja 0x14001f961
lea rdi, [rbp - 0x28]
cmp rax, 8
cmovae rdi, qword [rbp - 0x28]
mov qword [rbp - 0x18], rsi
lea rbx, [rsi + rsi]
mov r8, rbx
mov rdx, r14
mov rcx, rdi
call fcn.14002aec0
xor eax, eax
mov word [rbx + rdi], ax
xor edi, edi
jmp 0x14001f970
mov r9, r14
mov rdx, rsi
lea rcx, [rbp - 0x28]
call fcn.14001e990
mov rcx, r14
call fcn.140029600
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rcx, qword [rbp - 0x28]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov r12d, eax
mov dword [0x14003b7cc], r12d
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x14001f9d9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001f9d4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001f9d4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140029600
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x10], r15
mov word [rbp - 0x28], di
nop
mov dword [0x14003b7c8], edi
test r13b, r13b
je 0x14001fa0b
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rdx, qword [rbp - 0x48]
lea rcx, str.Unable_to_open_COREHOST_TRACEFILE_s_for_writing
call fcn.14001fbe0
mov bl, 1
mov r15, qword [rbp - 0x30]
cmp r15, 8
jb 0x14001fa50
lea rdx, [r15*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001fa4b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001fa4b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140029600
movzx eax, bl
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400295e0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret