Function at 0x1400040ac
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 [0x140009010]
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, [0x1400066b8]
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x70], rax
call fcn.140003f64
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r8d, 0x400
lea rdx, [0x140009b60]
lea rcx, [rbp + 0x770]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x3fe
ja 0x1400041c6
lea r8, [rsp + 0x38]
lea rdx, [0x1400066c0]
lea rcx, [0x140009b60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
test rax, rax
je 0x1400041e7
mov esi, r13d
mov ecx, pe_nt_image_headers64
cmp rsi, rcx
je 0x1400041ae
mov qword [rsp + rsi*8 + 0x70], rax
lea r8, [rsp + 0x38]
lea rdx, [0x1400066c0]
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 0x14000417e
jmp 0x1400041e7
mov r9d, ecx
mov r8, rdi
mov edx, 0x4a
mov rcx, rdi
call fcn.140003f0c
jmp 0x1400042d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x1400041e7
lea r8, [rbp + 0x770]
mov edx, 0x48
mov rcx, rdi
call fcn.140003eb4
mov rdx, r13
cmp r14, r13
jle 0x140004216
movsxd rcx, ebx
cmp rcx, 0x100
je 0x1400042ac
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 0x1400041f2
mov r8, rdi
lea rdx, str.__s_
lea rcx, [rbp + 0x980]
call fcn.140003f64
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r8d, 0x400
lea rdx, [0x14000a360]
lea rcx, [rbp + 0x980]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x3fe
ja 0x1400042b7
lea r8, [rsp + 0x38]
lea rdx, [0x1400066c0]
lea rcx, [0x14000a360]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
test rax, rax
je 0x1400042d8
movsxd rsi, ebx
mov ecx, pe_nt_image_headers64
cmp rsi, rcx
je 0x1400041ae
mov qword [rsp + rsi*8 + 0x70], rax
lea r8, [rsp + 0x38]
lea rdx, [0x1400066c0]
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 0x140004278
jmp 0x1400042d8
mov r9d, pe_nt_image_headers64
jmp 0x1400041b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x1400042d8
lea r8, [rbp + 0x980]
mov edx, 0x48
mov rcx, rdi
call fcn.140003eb4
cmp dword [r12], 5
mov rcx, r12
je 0x1400042eb
add rcx, 0x28
cmp dword [rcx], 5
jne 0x1400042e2
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.140002e68
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.140002e68
mov qword [rsp + 0x30], rax
mov r8, rax
test r14, r14
je 0x140004356
test rax, rax
jne 0x140004372
mov r8d, 0xbf
lea rdx, str.D:_a_work1_s_src_vctoolsCompilerUtc_src_toolspogocommoncmdline.cpp
mov ecx, 2
call fcn.140005a2c
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
xor eax, eax
and dword [rdx], 0
test r13, r13
je 0x1400043a7
lea rcx, [r12 + 0x20]
mov byte [rax + r14], 0
mov rdx, qword [rcx]
test rdx, rdx
je 0x140004396
mov byte [rdx], 0
inc rax
add rcx, 0x28
cmp rax, r13
jb 0x140004386
mov rdx, qword [rsp + 0x28]
xor cl, cl
mov ebx, 1
mov byte [rsp + 0x20], cl
mov r12b, 1
cmp rbx, r15
jge 0x14000457b
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 0x1400043ef
movsxd rax, dword [rdx]
mov qword [r8 + rax*8], r15
inc dword [rdx]
jmp 0x140004552
lea rdx, [0x140006680]
mov rcx, r15
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
je 0x140004542
lea rdx, str._nologo
mov rcx, r15
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
je 0x140004542
mov rcx, qword [rsp + 0x40]
lea rdx, [r15 + 2]
call fcn.140004604
inc rbx
add r14, 8
mov rsi, rax
test rax, rax
jne 0x140004460
mov r8, r15
lea edx, [rax + 0x3f]
mov rcx, rdi
call fcn.140003bf4
mov r8, qword [rsp + 0x30]
xor r12b, r12b
mov rdx, qword [rsp + 0x28]
mov r9d, 0xfffd
jmp 0x140004559
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 0x14000449d
mov r8, qword [r14]
mov edx, 0x43
mov rcx, rdi
call fcn.140003eb4
mov rax, qword [rsi + 0x20]
test rax, rax
je 0x1400044a9
mov byte [rax], 1
cmp dword [rsi], 0
jne 0x1400044b7
mov rax, qword [rsi + 0x18]
mov byte [rax], 1
jmp 0x140004527
cmp dword [rsi], 1
jne 0x1400044ca
mov rax, qword [rsi + 0x18]
mov cl, 1
mov byte [rsp + 0x20], cl
mov byte [rax], cl
jmp 0x14000452b
mov rdx, qword [0x140009b50]
test rdx, rdx
je 0x1400044e0
mov rcx, rsi
call fcn.140004048
jmp 0x140004527
cmp dword [rsi], 3
je 0x1400044ae
cmp rbx, qword [rsp + 0x50]
je 0x140004513
mov rdx, qword [rsp + rbx*8 + 0x70]
mov ecx, 0xfffd
movzx eax, word [rdx]
sub ax, 0x2d
test cx, ax
je 0x140004513
mov rcx, rsi
call fcn.140004048
inc rbx
add r14, 8
jmp 0x140004527
mov r8, qword [rsi + 8]
mov edx, 0x3d
mov rcx, rdi
call fcn.140003bf4
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 0x14000455d
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 0x1400043ce
mov r13, qword [rsp + 0x58]
test cl, cl
jne 0x1400045bd
test r12b, r12b
je 0x1400045bd
mov r14, qword [rsp + 0x48]
xor esi, esi
test r13, r13
je 0x1400045bd
mov rbx, qword [rsp + 0x40]
add rbx, 8
cmp dword [rbx - 8], 0
je 0x1400045b1
cmp byte [rbx + 8], 0
je 0x1400045b1
cmp byte [rsi + r14], 0
jne 0x1400045b1
mov r8, qword [rbx]
mov edx, 0x3e
mov rcx, rdi
call fcn.140003bf4
xor r12b, r12b
inc rsi
add rbx, 0x28
cmp rsi, r13
jb 0x14000458b
mov rcx, qword [rsp + 0x48]
call fcn.140002e60
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.140002e40
mov rbx, qword [rsp + 0xce8]
add rsp, 0xca0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret