Function at 0x1400c2170
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x138
movdqa xmmword [rsp + 0x120], xmm6
mov rdi, rdx
movzx eax, byte [rdx + 0x18]
mov rbp, qword [rdx + 0x10]
test al, al
jne 0x1400c21a7
test rbp, rbp
jne 0x1400c21a7
xor eax, eax
jmp 0x1400c2862
mov qword [rsp + 0xd0], rcx
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xc8], 0
test al, al
je 0x1400c21dc
mov rax, qword [rdi]
test rax, rax
jne 0x1400c23fa
jmp 0x1400c283d
mov qword [rsp + 0x38], rbp
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
je 0x1400c28e6
mov qword [rsp + 0x30], rax
cmp word [rax], 0
je 0x1400c23de
lea r12, [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
jmp 0x1400c221d
cmp word [r13 + rbp*2], 0
je 0x1400c23de
mov r13, rbx
xor ecx, ecx
xor ebp, ebp
nop word cs:[rax + rax]
mov rax, rcx
cmp word [r13 + rbp*2], 0
lea rbp, [rbp + 1]
lea rcx, [rcx - 2]
jne 0x1400c2230
mov rbx, r13
sub rbx, rcx
lea r15, [rbp - 1]
cmp r15, 1
je 0x1400c2210
test r15, r15
je 0x1400c2884
add rax, 2
xor esi, esi
xor r14d, r14d
nop word cs:[rax + rax]
cmp word [r13 + r14*2 + 2], 0x3d
je 0x1400c2290
inc r14
add rsi, 0xfffffffffffffffe
cmp rax, rsi
jne 0x1400c2270
jmp 0x1400c2210
cmp r14, r15
jae 0x1400c2884
lea r8, [r14 + 1]
mov rcx, r12
mov rdx, r13
call fcn.1400bd1a0
lea rax, [r14 + 2]
cmp rax, r15
ja 0x1400c2884
mov r8, rbp
sub r8, r14
add r8, 0xfffffffffffffffd
mov rdx, r13
sub rdx, rsi
add rdx, 4
lea r15, [rsp + 0x90]
mov rcx, r15
call fcn.1400bd1a0
movups xmm0, xmmword [rsp + 0x40]
movups xmm1, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x80], xmm1
movaps xmmword [rsp + 0x70], xmm0
mov rsi, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
movdqa xmm6, xmmword [rsp + 0x80]
movups xmm0, xmmword [r15]
movups xmm1, xmmword [r15 + 0x10]
movaps xmmword [rsp + 0xe0], xmm0
movaps xmmword [rsp + 0xf0], xmm1
movabs rax, 0x8000000000000000
cmp rsi, rax
je 0x1400c23de
movaps xmm0, xmmword [rsp + 0xe0]
movaps xmm1, xmmword [rsp + 0xf0]
movaps xmmword [rsp + 0x110], xmm1
movaps xmmword [rsp + 0x100], xmm0
movq rax, xmm6
add rax, r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], rax
mov word [rsp + 0x50], 0
lea rcx, [rsp + 0x90]
mov rdx, r12
call fcn.1400c1ab0
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], r14
movdqu xmmword [rsp + 0x80], xmm6
mov rcx, r12
lea rdx, [rsp + 0xb8]
lea r8, [rsp + 0x70]
lea r9, [rsp + 0x100]
call fcn.1400c5cc0
mov rdx, qword [rsp + 0x40]
movabs rax, 0x8000000000000000
cmp rdx, rax
je 0x1400c2210
test rdx, rdx
je 0x1400c2210
mov rcx, qword [rsp + 0x48]
mov r8d, 1
call fcn.14004bad0
jmp 0x1400c2210
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbp, qword [rsp + 0x38]
mov rax, qword [rdi]
test rax, rax
je 0x1400c283d
test rbp, rbp
je 0x1400c283d
xor r14d, r14d
test rax, rax
setne r14b
movabs rbx, 0x8000000000000000
mov rdx, qword [rdi + 8]
xor ecx, ecx
mov qword [rsp + 0x60], rcx
lea rdi, [rsp + 0x70]
lea r13, [rsp + 0xb8]
xor r15d, r15d
jmp 0x1400c2451
mov rdx, rsi
mov eax, 0
dec rbp
je 0x1400c283d
test r14, r14
je 0x1400c2884
test r15, r15
je 0x1400c2480
movzx ecx, word [r15 + 0x3d2]
cmp rdx, rcx
jae 0x1400c2530
mov rsi, r15
mov rcx, rdx
jmp 0x1400c2557
mov r14d, 1
test rdx, rdx
je 0x1400c24bd
mov rcx, rdx
and rcx, 7
je 0x1400c24c2
mov r15, rax
xor eax, eax
nop dword [rax]
mov r15, qword [r15 + 0x3d8]
inc rax
cmp rcx, rax
jne 0x1400c24a0
mov rcx, rdx
sub rcx, rax
cmp rdx, 8
jae 0x1400c24d0
jmp 0x1400c250e
mov r15, rax
jmp 0x1400c250e
mov rcx, rdx
mov r15, rax
cmp rdx, 8
jb 0x1400c250e
nop
mov rax, qword [r15 + 0x3d8]
mov rax, qword [rax + 0x3d8]
mov rax, qword [rax + 0x3d8]
mov rax, qword [rax + 0x3d8]
mov rax, qword [rax + 0x3d8]
mov rax, qword [rax + 0x3d8]
mov rax, qword [rax + 0x3d8]
mov r15, qword [rax + 0x3d8]
add rcx, 0xfffffffffffffff8
jne 0x1400c24d0
xor edx, edx
xor eax, eax
movzx ecx, word [r15 + 0x3d2]
cmp rdx, rcx
jb 0x1400c2470
nop word cs:[rax + rax]
mov rsi, qword [r15 + 0x160]
test rsi, rsi
je 0x1400c2884
inc rax
movzx ecx, word [r15 + 0x3d0]
mov r15, rsi
cmp cx, word [rsi + 0x3d2]
jae 0x1400c2530
test rax, rax
je 0x1400c25f0
mov r15, qword [rsi + rcx*8 + 0x3e0]
mov rdx, rax
dec rdx
je 0x1400c25de
mov r8, rdx
and r8, 7
je 0x1400c2592
xor r9d, r9d
nop dword [rax]
mov r15, qword [r15 + 0x3d8]
inc r9
cmp r8, r9
jne 0x1400c2580
sub rdx, r9
add rax, 0xfffffffffffffffe
cmp rax, 7
jb 0x1400c25de
nop dword [rax]
mov rax, qword [r15 + 0x3d8]
mov rax, qword [rax + 0x3d8]
mov rax, qword [rax + 0x3d8]
mov rax, qword [rax + 0x3d8]
mov rax, qword [rax + 0x3d8]
mov rax, qword [rax + 0x3d8]
mov rax, qword [rax + 0x3d8]
mov r15, qword [rax + 0x3d8]
add rdx, 0xfffffffffffffff8
jne 0x1400c25a0
xor edx, edx
jmp 0x1400c25f7
lea rdx, [rcx + 1]
mov r15, rsi
imul rax, rcx, 0x38
lea r12, [rsi + rax]
add r12, 0x168
shl rcx, 5
cmp qword [rsi + rcx], rbx
jne 0x1400c2650
mov rsi, rdx
mov rcx, rdi
mov rdx, r13
mov r8, r12
call fcn.1400c6040
mov rdx, qword [rsp + 0x70]
cmp rdx, rbx
je 0x1400c2440
test rdx, rdx
je 0x1400c2440
mov rcx, qword [rsp + 0x78]
mov r8d, 1
call fcn.14004bad0
jmp 0x1400c2440
add rsi, rcx
mov r13, qword [r12 + 0x10]
test r13, r13
js 0x1400c2886
mov qword [rsp + 0xd8], rdx
mov rdi, qword [r12 + 8]
je 0x1400c2693
movzx eax, byte [0x140120b70]
mov ebx, 1
mov edx, 1
mov rcx, r13
call fcn.14004bac0
test rax, rax
jne 0x1400c2698
jmp 0x1400c28a4
mov eax, 1
mov qword [rsp + 0x30], rax
mov rcx, rax
mov rdx, rdi
mov r8, r13
call fcn.1400ea9f0
mov rbx, qword [r12 + 0x30]
test rbx, rbx
js 0x1400c28c5
lea rdi, [rbx + rbx]
movabs rax, 0x8000000000000000
add rax, 0xfffffffffffffffe
cmp rdi, rax
ja 0x1400c28c5
movzx eax, byte [r12 + 0x18]
mov byte [rsp + 0x2f], al
mov rdx, qword [r12 + 0x28]
test rdi, rdi
je 0x1400c2713
mov r12, rdx
movzx eax, byte [0x140120b70]
mov edx, 2
mov rcx, rdi
call fcn.14004bac0
test rax, rax
je 0x1400c28b6
mov rcx, rbx
mov rdx, r12
mov r12, rbx
jmp 0x1400c271b
mov eax, 2
xor r12d, r12d
mov qword [rsp + 0x38], rax
mov rcx, rax
mov r8, rdi
call fcn.1400ea9f0
mov qword [rsp + 0x70], r13
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], r13
movzx eax, byte [rsp + 0x2f]
mov byte [rsp + 0x88], al
mov qword [rsp + 0x90], r12
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], rbx
mov rdi, qword [rsi + 0x10]
test rdi, rdi
js 0x1400c2895
mov r12, qword [rsi + 8]
lea r13, [rsp + 0xb8]
je 0x1400c27a9
movzx eax, byte [0x140120b70]
mov ebx, 1
mov edx, 1
mov rcx, rdi
call fcn.14004bac0
test rax, rax
jne 0x1400c27ae
jmp 0x1400c28d4
mov eax, 1
mov rbx, rax
mov rcx, rax
mov rdx, r12
mov r8, rdi
call fcn.1400ea9f0
movzx eax, byte [rsi + 0x18]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rdi
mov byte [rsp + 0x58], al
lea rcx, [rsp + 0xe0]
mov rdx, r13
lea rdi, [rsp + 0x70]
mov r8, rdi
lea r9, [rsp + 0x40]
call fcn.1400c5cc0
mov rdx, qword [rsp + 0xe0]
movabs rbx, 0x8000000000000000
cmp rdx, rbx
je 0x1400c2827
test rdx, rdx
je 0x1400c2827
mov rcx, qword [rsp + 0xe8]
mov r8d, 1
call fcn.14004bad0
mov rdx, qword [rsp + 0xd8]
mov eax, 0
dec rbp
jne 0x1400c2451
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xd0]
mov qword [rcx + 0x18], rax
movups xmm0, xmmword [rsp + 0xb8]
movups xmmword [rcx + 8], xmm0
mov eax, 1
mov qword [rcx], rax
mov rax, rcx
movaps xmm6, xmmword [rsp + 0x120]
add rsp, 0x138
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
xor ebx, ebx
mov rcx, rbx
mov rdx, qword [rsp + 0x30]
call fcn.14006d9c0
xor ebx, ebx
mov rcx, rbx
mov rdx, qword [rsp + 0x68]
call fcn.14006d9c0
mov qword [rsp + 0x30], r13
mov rcx, rbx
mov rdx, qword [rsp + 0x30]
call fcn.14006d9c0
mov eax, 2
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x38], rdi
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x38]
call fcn.14006d9c0
mov qword [rsp + 0x68], rdi
mov rcx, rbx
mov rdx, qword [rsp + 0x68]
call fcn.14006d9c0
call sub.KERNEL32.dll_GetLastError
ud2