Function at 0x1400040e4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xba0]
sub rsp, 0xca0
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rbp + 0xb90], rax
mov rax, qword [rbp + 0xc00]
mov r15, r8
and qword [rsp + 0x38], 0
mov rdi, rcx
mov qword [rsp + 0x60], rax
mov r13d, 1
mov rax, qword [rbp + 0xc08]
mov r12, r9
mov qword [rsp + 0x28], rax
mov ebx, r13d
mov rax, qword [r8]
mov r8, rcx
movsxd r14, edx
lea rcx, [rbp + 0x770]
lea rdx, [0x140006838]
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x70], rax
call fcn.140003f9c
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
mov r8d, 0x400
lea rdx, [0x14000ab60]
lea rcx, [rbp + 0x770]
call qword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x3fe
ja 0x1400041fe
lea r8, [rsp + 0x38]
lea rdx, [0x140006840]
lea rcx, [0x14000ab60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
test rax, rax
je 0x14000421f
mov esi, r13d
mov ecx, pe_nt_image_headers64
cmp rsi, rcx
je 0x1400041e6
mov qword [rsp + rsi*8 + 0x70], rax
lea r8, [rsp + 0x38]
lea rdx, [0x140006840]
xor ecx, ecx
add rsi, r13
add ebx, r13d
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
test rax, rax
jne 0x1400041b6
jmp 0x14000421f
mov r9d, ecx
mov r8, rdi
mov edx, 0x4a
mov rcx, rdi
call fcn.140003f38
jmp 0x140004310
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
cmp eax, 0xcb
je 0x14000421f
lea r8, [rbp + 0x770]
mov edx, 0x48
mov rcx, rdi
call fcn.140003ed4
mov rdx, r13
cmp r14, r13
jle 0x14000424e
movsxd rcx, ebx
cmp rcx, 0x100
je 0x1400042e4
mov rax, qword [r15 + rdx*8]
add ebx, r13d
mov qword [rsp + rcx*8 + 0x70], rax
add rdx, r13
add rcx, r13
cmp rdx, r14
jl 0x14000422a
mov r8, rdi
lea rdx, str.__s_
lea rcx, [rbp + 0x980]
call fcn.140003f9c
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
mov r8d, 0x400
lea rdx, [0x14000b360]
lea rcx, [rbp + 0x980]
call qword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x3fe
ja 0x1400042ef
lea r8, [rsp + 0x38]
lea rdx, [0x140006840]
lea rcx, [0x14000b360]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
test rax, rax
je 0x140004310
movsxd rsi, ebx
mov ecx, pe_nt_image_headers64
cmp rsi, rcx
je 0x1400041e6
mov qword [rsp + rsi*8 + 0x70], rax
lea r8, [rsp + 0x38]
lea rdx, [0x140006840]
xor ecx, ecx
add rsi, r13
add ebx, r13d
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
test rax, rax
jne 0x1400042b0
jmp 0x140004310
mov r9d, pe_nt_image_headers64
jmp 0x1400041e9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
cmp eax, 0xcb
je 0x140004310
lea r8, [rbp + 0x980]
mov edx, 0x48
mov rcx, rdi
call fcn.140003ed4
cmp dword [r12], 5
mov rcx, r12
je 0x140004323
add rcx, 0x28
cmp dword [rcx], 5
jne 0x14000431a
sub rcx, r12
movabs rax, 0x6666666666666667
imul rcx
mov r13, rdx
sar r13, 4
mov rax, r13
shr rax, 0x3f
add r13, rax
movsxd rcx, r13d
mov qword [rsp + 0x58], r13
call fcn.140002e78
mov r14, rax
mov qword [rsp + 0x48], rax
movsxd r15, ebx
mov rcx, 0xffffffffffffffff
mov eax, 8
mov qword [rsp + 0x50], r15
mul r15
cmovo rax, rcx
mov rcx, rax
call fcn.140002e78
mov qword [rsp + 0x30], rax
mov r8, rax
test r14, r14
je 0x14000438e
test rax, rax
jne 0x1400043aa
mov r8d, 0xbf
lea rdx, str.D:_a_work1_s_src_vctoolsCompilerUtc_src_toolspogocommoncmdline.cpp
mov ecx, 2
call fcn.140005a6c
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
xor eax, eax
and dword [rdx], 0
test r13, r13
je 0x1400043df
lea rcx, [r12 + 0x20]
mov byte [rax + r14], 0
mov rdx, qword [rcx]
test rdx, rdx
je 0x1400043ce
mov byte [rdx], 0
inc rax
add rcx, 0x28
cmp rax, r13
jb 0x1400043be
mov rdx, qword [rsp + 0x28]
xor cl, cl
mov ebx, 1
mov byte [rsp + 0x20], cl
mov r12b, 1
cmp rbx, r15
jge 0x1400045b3
mov r13, qword [rsp + 0x48]
lea r14, [rsp + 0x70]
mov r9d, 0xfffd
mov r15, qword [rsp + rbx*8 + 0x70]
movzx eax, word [r15]
sub ax, 0x2d
test r9w, ax
je 0x140004427
movsxd rax, dword [rdx]
mov qword [r8 + rax*8], r15
inc dword [rdx]
jmp 0x14000458a
lea rdx, [0x140006800]
mov rcx, r15
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
je 0x14000457a
lea rdx, str._nologo
mov rcx, r15
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
je 0x14000457a
mov rcx, qword [rsp + 0x40]
lea rdx, [r15 + 2]
call fcn.14000463c
inc rbx
add r14, 8
mov rsi, rax
test rax, rax
jne 0x140004498
mov r8, r15
lea edx, [rax + 0x3f]
mov rcx, rdi
call fcn.140003be4
mov r8, qword [rsp + 0x30]
xor r12b, r12b
mov rdx, qword [rsp + 0x28]
mov r9d, 0xfffd
jmp 0x140004591
mov rcx, rsi
movabs rax, 0x6666666666666667
sub rcx, qword [rsp + 0x40]
imul rcx
mov r15, rdx
sar r15, 4
mov rax, r15
shr rax, 0x3f
add r15, rax
cmp byte [r15 + r13], 0
je 0x1400044d5
mov r8, qword [r14]
mov edx, 0x43
mov rcx, rdi
call fcn.140003ed4
mov rax, qword [rsi + 0x20]
test rax, rax
je 0x1400044e1
mov byte [rax], 1
cmp dword [rsi], 0
jne 0x1400044ef
mov rax, qword [rsi + 0x18]
mov byte [rax], 1
jmp 0x14000455f
cmp dword [rsi], 1
jne 0x140004502
mov rax, qword [rsi + 0x18]
mov cl, 1
mov byte [rsp + 0x20], cl
mov byte [rax], cl
jmp 0x140004563
mov rdx, qword [0x14000ab50]
test rdx, rdx
je 0x140004518
mov rcx, rsi
call fcn.140004080
jmp 0x14000455f
cmp dword [rsi], 3
je 0x1400044e6
cmp rbx, qword [rsp + 0x50]
je 0x14000454b
mov rdx, qword [rsp + rbx*8 + 0x70]
mov ecx, 0xfffd
movzx eax, word [rdx]
sub ax, 0x2d
test cx, ax
je 0x14000454b
mov rcx, rsi
call fcn.140004080
inc rbx
add r14, 8
jmp 0x14000455f
mov r8, qword [rsi + 8]
mov edx, 0x3d
mov rcx, rdi
call fcn.140003be4
xor r12b, r12b
mov cl, byte [rsp + 0x20]
mov r8, qword [rsp + 0x30]
mov r9d, 0xfffd
mov rdx, qword [rsp + 0x28]
mov byte [r15 + r13], 1
jmp 0x140004595
mov r8, qword [rsp + 0x30]
mov r9d, 0xfffd
mov rdx, qword [rsp + 0x28]
inc rbx
add r14, 8
mov cl, byte [rsp + 0x20]
cmp rbx, qword [rsp + 0x50]
jl 0x140004406
mov r13, qword [rsp + 0x58]
test cl, cl
jne 0x1400045f5
test r12b, r12b
je 0x1400045f5
mov r14, qword [rsp + 0x48]
xor esi, esi
test r13, r13
je 0x1400045f5
mov rbx, qword [rsp + 0x40]
add rbx, 8
cmp dword [rbx - 8], 0
je 0x1400045e9
cmp byte [rbx + 8], 0
je 0x1400045e9
cmp byte [rsi + r14], 0
jne 0x1400045e9
mov r8, qword [rbx]
mov edx, 0x3e
mov rcx, rdi
call fcn.140003be4
xor r12b, r12b
inc rsi
add rbx, 0x28
cmp rsi, r13
jb 0x1400045c3
mov rcx, qword [rsp + 0x48]
call fcn.140002e70
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
mov qword [rcx], rax
mov al, r12b
mov rcx, qword [rbp + 0xb90]
xor rcx, rsp
call fcn.140002e50
mov rbx, qword [rsp + 0xce8]
add rsp, 0xca0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret