Function at 0x1800c24a0
Capabilities:
Query environment variable

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2a0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x2f8], rbx
mov rax, qword [0x1801903f8]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov r14d, r8d
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
je 0x1800c28e5
test rdx, rdx
je 0x1800c28e5
test r8d, r8d
je 0x1800c28e5
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
cmp ecx, r14d
jb 0x1800c2528
mov dword [0x1801b0670], 0xea
mov ecx, 0xea
jmp 0x1800c28f4
mov r8, r14
add r8, r8
xor edx, edx
mov rcx, rbp
call fcn.18007ead0
mov rdx, rbx
mov rcx, rbp
sub rcx, rbx
nop word [rax + rax]
movzx eax, word [rdx]
mov word [rcx + rdx], ax
add rdx, 2
test ax, ax
jne 0x1800c2550
movzx eax, word [rbx]
xor r15d, r15d
cmp ax, 0x5c
jne 0x1800c2803
lea r8d, [r15 + 0xc]
lea rdx, str.SystemRoot_
mov rcx, rbx
call fcn.18007f540
test eax, eax
jne 0x1800c259b
lea r8, [rbx + 0x18]
mov edx, r14d
mov rcx, rbp
call fcn.1800bb040
jmp 0x1800c28fc
mov r8d, 8
lea rdx, str.__UNC_
mov rcx, rbx
call fcn.18007f540
test eax, eax
je 0x1800c27d1
mov r8d, 8
lea rdx, str._UNC_
mov rcx, rbx
call fcn.18007f540
test eax, eax
je 0x1800c27d1
mov r8d, 8
lea rdx, str..UNC_
mov rcx, rbx
call fcn.18007f540
test eax, eax
je 0x1800c27d1
mov r8d, 4
lea rdx, [0x18014b880]
mov rcx, rbx
call fcn.18007f540
test eax, eax
je 0x1800c2789
mov r8d, 4
lea rdx, [0x18014b848]
mov rcx, rbx
call fcn.18007f540
test eax, eax
je 0x1800c2789
mov r8d, 4
lea rdx, [0x18014b858]
mov rcx, rbx
call fcn.18007f540
test eax, eax
je 0x1800c2789
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rdx, str.DeviceHarddisk
mov rcx, rbx
call fcn.18007f540
test eax, eax
jne 0x1800c2862
lea rcx, [rsp + 0x48]
call fcn.18011a580
nop
lea rcx, [rsp + 0x20]
call fcn.18011a580
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x48]
call fcn.1801101e0
mov esi, r15d
mov rdi, r15
mov rcx, qword [rsp + 0x30]
test rcx, rcx
jle 0x1800c276f
nop
test rdi, rdi
js 0x1800c2769
cmp rdi, rcx
jge 0x1800c2769
mov r9, qword [rsp + 0x28]
mov rax, qword [r9 + rdi*8]
mov r13d, dword [rax - 0x10]
test r13d, r13d
je 0x1800c26ec
mov r8d, r13d
mov rdx, rbx
mov rcx, rax
call fcn.18007f540
test eax, eax
jne 0x1800c26e7
movzx eax, word [rbx + r13*2]
cmp ax, 0x5c
je 0x1800c26fb
cmp ax, 0x2f
je 0x1800c26fb
mov rcx, qword [rsp + 0x30]
inc esi
inc rdi
movsxd rax, esi
cmp rax, rcx
jge 0x1800c276f
jmp 0x1800c26a0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
sub ecx, r13d
add ecx, 2
cmp ecx, r14d
jae 0x1800c276f
movsxd rdx, esi
test esi, esi
js 0x1800c2763
cmp rdx, qword [rsp + 0x58]
jge 0x1800c2763
mov rax, qword [rsp + 0x50]
mov r8d, 2
mov rdx, qword [rax + rdx*8]
mov rcx, rbp
call fcn.18007ea70
lea rcx, [rbx + r13*2]
mov rdx, rbp
sub rdx, rcx
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx + 4], ax
add rcx, 2
test ax, ax
jne 0x1800c2750
jmp 0x1800c276f
call fcn.1800329e8
int3
call fcn.1800329e8
nop
lea rcx, [rsp + 0x20]
call fcn.18011b0c0
nop
lea rcx, [rsp + 0x48]
call fcn.18011b0c0
jmp 0x1800c2862
cmp edi, 7
jb 0x1800c27c5
cmp word [rbx + 0xa], 0x3a
jne 0x1800c27c5
cmp word [rbx + 0xc], 0x5c
jne 0x1800c27c5
lea rcx, [rbx + 8]
mov rdx, rbp
sub rdx, rcx
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, 2
test ax, ax
jne 0x1800c27b0
jmp 0x1800c2862
mov dword [rbp + 2], 0x2e005c
jmp 0x1800c2862
mov dword [rbp], 0x5c005c
lea rcx, [rbx + 0x10]
mov rdx, rbp
sub rdx, rcx
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx + 4], ax
add rcx, 2
test ax, ax
jne 0x1800c27f0
jmp 0x1800c2862
cmp ax, 0x25
jne 0x1800c2862
mov edx, reloc.OLEAUT32.dll_SafeArrayDestroyDescriptor
lea rcx, [rbx + 2]
call fcn.18007fd08
mov rsi, rax
mov edx, VarDateFromDisp
lea rcx, [rbx + 2]
call fcn.18007fd08
test rsi, rsi
je 0x1800c2862
test rax, rax
je 0x1800c2862
cmp rsi, rax
jae 0x1800c2862
lea edi, [r14 - 1]
mov r8d, edi
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1800c28fa
cmp eax, edi
ja 0x1800c28fa
dec eax
mov word [rbp + rax*2], r15w
mov rcx, rbp
call fcn.1800ba970
test eax, eax
je 0x1800c28de
mov word [rsp + 0x80], r15w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x82]
call fcn.18007ead0
mov r8d, 0x104
lea rdx, [rsp + 0x80]
mov rcx, rbp
call fcn.1800c03d0
test eax, eax
je 0x1800c28de
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x80]
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp ecx, r14d
jge 0x1800c28de
movsxd rdi, ecx
mov r8, rdi
lea rdx, [rsp + 0x80]
mov rcx, rbp
call fcn.18007ea70
mov word [rbp + rdi*2], r15w
mov eax, 1
jmp 0x1800c28fc
mov dword [0x1801b0670], 0x57
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.18007e1e0
mov rbx, qword [rsp + 0x2f8]
add rsp, 0x2a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
jmp 0x1800c24a0