Function at 0x1400031fc
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, [0x140006550]
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x70], rax
call fcn.1400030b4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r8d, 0x400
lea rdx, [0x140009cc0]
lea rcx, [rbp + 0x770]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x3fe
ja 0x140003316
lea r8, [rsp + 0x38]
lea rdx, [0x140006558]
lea rcx, [0x140009cc0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
test rax, rax
je 0x140003337
mov esi, r13d
mov ecx, pe_nt_image_headers64
cmp rsi, rcx
je 0x1400032fe
mov qword [rsp + rsi*8 + 0x70], rax
lea r8, [rsp + 0x38]
lea rdx, [0x140006558]
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 0x1400032ce
jmp 0x140003337
mov r9d, ecx
mov r8, rdi
mov edx, 0x4a
mov rcx, rdi
call fcn.14000305c
jmp 0x140003428
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x140003337
lea r8, [rbp + 0x770]
mov edx, 0x48
mov rcx, rdi
call fcn.140003004
mov rdx, r13
cmp r14, r13
jle 0x140003366
movsxd rcx, ebx
cmp rcx, 0x100
je 0x1400033fc
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 0x140003342
mov r8, rdi
lea rdx, str.__s_
lea rcx, [rbp + 0x980]
call fcn.1400030b4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r8d, 0x400
lea rdx, [0x14000a4c0]
lea rcx, [rbp + 0x980]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x3fe
ja 0x140003407
lea r8, [rsp + 0x38]
lea rdx, [0x140006558]
lea rcx, [0x14000a4c0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
test rax, rax
je 0x140003428
movsxd rsi, ebx
mov ecx, pe_nt_image_headers64
cmp rsi, rcx
je 0x1400032fe
mov qword [rsp + rsi*8 + 0x70], rax
lea r8, [rsp + 0x38]
lea rdx, [0x140006558]
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 0x1400033c8
jmp 0x140003428
mov r9d, pe_nt_image_headers64
jmp 0x140003301
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x140003428
lea r8, [rbp + 0x980]
mov edx, 0x48
mov rcx, rdi
call fcn.140003004
cmp dword [r12], 5
mov rcx, r12
je 0x14000343b
add rcx, 0x28
cmp dword [rcx], 5
jne 0x140003432
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.140004d50
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.140004d50
mov qword [rsp + 0x30], rax
mov r8, rax
test r14, r14
je 0x1400034a6
test rax, rax
jne 0x1400034c2
mov r8d, 0xbf
lea rdx, str.D:_a_work1_s_src_vctoolsCompilerUtc_src_toolspogocommoncmdline.cpp
mov ecx, 2
call fcn.140004be4
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
xor eax, eax
and dword [rdx], 0
test r13, r13
je 0x1400034f7
lea rcx, [r12 + 0x20]
mov byte [rax + r14], 0
mov rdx, qword [rcx]
test rdx, rdx
je 0x1400034e6
mov byte [rdx], 0
inc rax
add rcx, 0x28
cmp rax, r13
jb 0x1400034d6
mov rdx, qword [rsp + 0x28]
xor cl, cl
mov ebx, 1
mov byte [rsp + 0x20], cl
mov r12b, 1
cmp rbx, r15
jge 0x1400036cb
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 0x14000353f
movsxd rax, dword [rdx]
mov qword [r8 + rax*8], r15
inc dword [rdx]
jmp 0x1400036a2
lea rdx, [0x140006518]
mov rcx, r15
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
je 0x140003692
lea rdx, str._nologo
mov rcx, r15
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
je 0x140003692
mov rcx, qword [rsp + 0x40]
lea rdx, [r15 + 2]
call fcn.140003754
inc rbx
add r14, 8
mov rsi, rax
test rax, rax
jne 0x1400035b0
mov r8, r15
lea edx, [rax + 0x3f]
mov rcx, rdi
call fcn.140002cec
mov r8, qword [rsp + 0x30]
xor r12b, r12b
mov rdx, qword [rsp + 0x28]
mov r9d, 0xfffd
jmp 0x1400036a9
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 0x1400035ed
mov r8, qword [r14]
mov edx, 0x43
mov rcx, rdi
call fcn.140003004
mov rax, qword [rsi + 0x20]
test rax, rax
je 0x1400035f9
mov byte [rax], 1
cmp dword [rsi], 0
jne 0x140003607
mov rax, qword [rsi + 0x18]
mov byte [rax], 1
jmp 0x140003677
cmp dword [rsi], 1
jne 0x14000361a
mov rax, qword [rsi + 0x18]
mov cl, 1
mov byte [rsp + 0x20], cl
mov byte [rax], cl
jmp 0x14000367b
mov rdx, qword [0x140009cb0]
test rdx, rdx
je 0x140003630
mov rcx, rsi
call fcn.140003198
jmp 0x140003677
cmp dword [rsi], 3
je 0x1400035fe
cmp rbx, qword [rsp + 0x50]
je 0x140003663
mov rdx, qword [rsp + rbx*8 + 0x70]
mov ecx, 0xfffd
movzx eax, word [rdx]
sub ax, 0x2d
test cx, ax
je 0x140003663
mov rcx, rsi
call fcn.140003198
inc rbx
add r14, 8
jmp 0x140003677
mov r8, qword [rsi + 8]
mov edx, 0x3d
mov rcx, rdi
call fcn.140002cec
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 0x1400036ad
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 0x14000351e
mov r13, qword [rsp + 0x58]
test cl, cl
jne 0x14000370d
test r12b, r12b
je 0x14000370d
mov r14, qword [rsp + 0x48]
xor esi, esi
test r13, r13
je 0x14000370d
mov rbx, qword [rsp + 0x40]
add rbx, 8
cmp dword [rbx - 8], 0
je 0x140003701
cmp byte [rbx + 8], 0
je 0x140003701
cmp byte [rsi + r14], 0
jne 0x140003701
mov r8, qword [rbx]
mov edx, 0x3e
mov rcx, rdi
call fcn.140002cec
xor r12b, r12b
inc rsi
add rbx, 0x28
cmp rsi, r13
jb 0x1400036db
mov rcx, qword [rsp + 0x48]
call fcn.140004d58
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.140002180
mov rbx, qword [rsp + 0xce8]
add rsp, 0xca0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret