Function at 0x1800c9020
Capabilities:
Query environment variable

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x280
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x2d8], rbx
mov rax, qword [0x180132920]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r14d, r8d
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
je 0x1800c9425
test rdx, rdx
je 0x1800c9425
test r8d, r8d
je 0x1800c9425
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 0x1800c90a8
mov dword [0x180157be0], 0xea
mov ecx, 0xea
jmp 0x1800c9434
mov r8, r14
add r8, r8
xor edx, edx
mov rcx, rbp
call fcn.18004a760
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 0x1800c90d0
movzx eax, word [rbx]
xor r15d, r15d
cmp ax, 0x5c
jne 0x1800c9352
lea r8d, [r15 + 0xc]
lea rdx, str.SystemRoot_
mov rcx, rbx
call fcn.1800b8c04
test eax, eax
jne 0x1800c911b
lea r8, [rbx + 0x18]
mov edx, r14d
mov rcx, rbp
call fcn.1800bf8d0
jmp 0x1800c943c
mov r8d, 8
lea rdx, [0x18010d958]
mov rcx, rbx
call fcn.1800b8c04
test eax, eax
je 0x1800c9321
mov r8d, 8
lea rdx, str._UNC_
mov rcx, rbx
call fcn.1800b8c04
test eax, eax
je 0x1800c9321
mov r8d, 8
lea rdx, str..UNC_
mov rcx, rbx
call fcn.1800b8c04
test eax, eax
je 0x1800c9321
mov r8d, 4
lea rdx, [0x1800e3c30]
mov rcx, rbx
call fcn.1800b8c04
test eax, eax
je 0x1800c92da
mov r8d, 4
lea rdx, [0x1800e3c20]
mov rcx, rbx
call fcn.1800b8c04
test eax, eax
je 0x1800c92da
mov r8d, 4
lea rdx, [0x1800e3c10]
mov rcx, rbx
call fcn.1800b8c04
test eax, eax
je 0x1800c92da
mov r8d, 0x10
lea rdx, [0x18010d918]
mov rcx, rbx
call fcn.1800b8c04
test eax, eax
jne 0x1800c93b1
lea rcx, [rsp + 0x38]
call fcn.180038e60
nop
lea rcx, [rsp + 0x20]
call fcn.180038e60
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x38]
call fcn.1800cb5f0
mov esi, r15d
mov ecx, dword [rsp + 0x28]
test ecx, ecx
jle 0x1800c92c0
mov rdi, r15
nop dword [rax]
mov r9, qword [rsp + 0x20]
mov rax, qword [rdi + r9]
mov r12d, dword [rax - 8]
test r12d, r12d
je 0x1800c9259
mov r8d, r12d
mov rdx, rbx
mov rcx, rax
call fcn.1800b8c04
test eax, eax
jne 0x1800c9255
movzx eax, word [rbx + r12*2]
cmp ax, 0x5c
je 0x1800c9265
cmp ax, 0x2f
je 0x1800c9265
mov ecx, dword [rsp + 0x28]
inc esi
add rdi, 8
cmp esi, ecx
jge 0x1800c92c0
jmp 0x1800c9220
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
sub ecx, r12d
add ecx, 2
cmp ecx, r14d
jae 0x1800c92c0
movsxd rcx, esi
mov rax, qword [rsp + 0x38]
mov r8d, 2
mov rdx, qword [rax + rcx*8]
mov rcx, rbp
call fcn.18004a580
lea rcx, [rbx + r12*2]
lea rdx, [rbp + 4]
sub rdx, rcx
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, 2
test ax, ax
jne 0x1800c92b0
lea rcx, [rsp + 0x20]
call fcn.18003e9c0
nop
lea rcx, [rsp + 0x38]
call fcn.18003e9c0
jmp 0x1800c93b1
cmp edi, 7
jb 0x1800c9315
cmp word [rbx + 0xa], 0x3a
jne 0x1800c9315
cmp word [rbx + 0xc], 0x5c
jne 0x1800c9315
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 0x1800c9300
jmp 0x1800c93b1
mov dword [rbp + 2], 0x2e005c
jmp 0x1800c93b1
mov dword [rbp], 0x5c005c
add rbx, 0x10
lea rcx, [rbp + 4]
sub rcx, rbx
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rcx + rbx], ax
add rbx, 2
test ax, ax
jne 0x1800c9340
jmp 0x1800c93b1
cmp ax, 0x25
jne 0x1800c93b1
mov edx, 0x25
lea rcx, [rbx + 2]
call fcn.18004ba34
mov rsi, rax
mov edx, 0x5c
lea rcx, [rbx + 2]
call fcn.18004ba34
test rsi, rsi
je 0x1800c93b1
test rax, rax
je 0x1800c93b1
cmp rsi, rax
jae 0x1800c93b1
lea edi, [r14 - 1]
mov r8d, edi
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1800c943a
cmp eax, edi
ja 0x1800c943a
dec eax
mov word [rbp + rax*2], r15w
mov rcx, rbp
call fcn.1800bf200
test eax, eax
je 0x1800c941e
mov word [rsp + 0x60], r15w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x62]
call fcn.18004a760
mov r8d, 0x104
lea rdx, [rsp + 0x60]
mov rcx, rbp
call fcn.1800c5ef0
test eax, eax
je 0x1800c941e
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x60]
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp ecx, r14d
jge 0x1800c941e
movsxd rdi, ecx
mov r8, rdi
lea rdx, [rsp + 0x60]
mov rcx, rbp
call fcn.18004a580
mov word [rbp + rdi*2], r15w
mov eax, 1
jmp 0x1800c943c
mov dword [0x180157be0], 0x57
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.18004ac60
mov rbx, qword [rsp + 0x2d8]
add rsp, 0x280
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret