Function at 0x14000c430
Capabilities:
Query environment variable

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x1401730f8]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov r14, r8
mov rsi, rdx
mov rdi, rcx
lea r15, [0x140102478]
mov qword [rbp - 0x70], r15
lea r12, [0x1401025f8]
mov qword [rbp - 0x30], r12
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x28], eax
xor ebx, ebx
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], rbx
mov word [rbp - 0x68], bx
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], rbx
mov qword [rbp - 0x38], rbx
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
mov ecx, dword [rbp + rcx - 0x30]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14000c4db
mov rax, qword [rcx]
lea r8, [rbp - 0x70]
mov rdx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rsp + 0x40], r15
mov qword [rbp - 0x80], r12
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x78], eax
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rbx
mov word [rsp + 0x48], bx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbx
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov ecx, dword [rbp + rcx - 0x80]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x14000c653
sub ecx, 1
je 0x14000c5f9
sub ecx, 1
je 0x14000c56e
sub ecx, 1
je 0x14000c558
cmp ecx, 1
je 0x14000c5f9
jmp 0x14000c70a
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rsp + 0x48]
call fcn.140006cd0
jmp 0x14000c70a
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rcx, qword [rbp - 0x68]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test eax, eax
je 0x14000c5d1
mov r8d, ebx
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x40]
call fcn.140009620
nop
mov byte [rax + 8], 1
mov rcx, qword [rax]
call fcn.140002ef0
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rcx, qword [rbp - 0x68]
mov r8d, ebx
mov rdx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
nop
lea rcx, [rsp + 0x28]
call fcn.140009c60
lea rcx, [r14 + 8]
lea rax, [rsp + 0x48]
cmp rcx, rax
je 0x14000c70a
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x48]
call fcn.140004680
jmp 0x14000c70a
lea rcx, [rdi + 0x20]
lea rdx, [rbp - 0x20]
call fcn.140006540
nop
lea r8, [rbp - 0x70]
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.14000cf90
nop
test rax, rax
je 0x14000c62b
lea rbx, [rax + 8]
lea rax, [rsp + 0x48]
cmp rax, rbx
je 0x14000c640
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140004680
nop
lea rcx, [rbp + 0x30]
call fcn.1400048d0
nop
lea rcx, [rbp - 0x20]
jmp 0x14000c705
mov rax, qword [rsi]
lea r8, [rbp - 0x70]
lea rdx, [rbp - 0x20]
mov rcx, rsi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
test rax, rax
je 0x14000c67a
lea rdx, [rax + 8]
lea rax, [rsp + 0x48]
cmp rax, rdx
je 0x14000c68f
jmp 0x14000c67d
mov rdx, rbx
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x48]
call fcn.140004680
nop
lea rcx, [rbp - 0x20]
call fcn.1400048d0
cmp qword [rsp + 0x58], 0
jne 0x14000c70a
cmp byte [rdi + 0x70], 0
jne 0x14000c70a
lea r8, [rbp - 0x70]
lea rdx, [0x140102c44]
lea rcx, [rbp + 0x30]
call fcn.14000ccf0
nop
lea r8, [0x140102c40]
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.14000cde0
nop
test rax, rax
je 0x14000c6e2
lea rbx, [rax + 8]
lea rax, [rsp + 0x48]
cmp rax, rbx
je 0x14000c6f7
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140004680
nop
lea rcx, [rbp - 0x20]
call fcn.1400048d0
nop
lea rcx, [rbp + 0x30]
call fcn.1400048d0
lea rcx, [r14 + 8]
lea rax, [rsp + 0x48]
cmp rcx, rax
je 0x14000c72a
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x48]
call fcn.140004680
nop
lea rcx, [rsp + 0x40]
call fcn.1400048d0
nop
lea rcx, [rbp - 0x70]
call fcn.1400048d0
xor eax, eax
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.1400b31f0
add rsp, 0x190
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret