Function at 0x1800c8c30
Capabilities:
Query environment variable

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x180
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x1c8], rbx
mov rax, qword [0x180132920]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov r13d, r8d
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
je 0x1800c8fda
test rdx, rdx
je 0x1800c8fda
test r8d, r8d
je 0x1800c8fda
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
dec rcx
mov rdi, rcx
cmp ecx, r13d
jb 0x1800c8cb3
mov dword [0x180157be0], 0xea
mov ecx, 0xea
jmp 0x1800c8fe9
mov r8, r13
xor edx, edx
mov rcx, rbp
call fcn.18004a760
mov rdx, rbx
mov rcx, rbp
sub rcx, rbx
nop dword [rax]
movzx eax, byte [rdx]
mov byte [rcx + rdx], al
inc rdx
test al, al
jne 0x1800c8cd0
movzx eax, byte [rbx]
cmp al, 0x5c
jne 0x1800c8f0f
mov r8d, 0xc
lea rdx, [0x18010de48]
mov rcx, rbx
call fcn.18005d834
test eax, eax
jne 0x1800c8d15
lea r8, [rbx + 0xc]
mov edx, r13d
mov rcx, rbp
call fcn.1800bf810
jmp 0x1800c8ff1
mov r8d, 8
lea rdx, str.__UNC_
mov rcx, rbx
call fcn.18005d834
test eax, eax
je 0x1800c8eef
mov r8d, 8
lea rdx, [0x18010de28]
mov rcx, rbx
call fcn.18005d834
test eax, eax
je 0x1800c8eef
mov r8d, 8
lea rdx, [0x18010de18]
mov rcx, rbx
call fcn.18005d834
test eax, eax
je 0x1800c8eef
mov r8d, 4
lea rdx, [0x1800f654c]
mov rcx, rbx
call fcn.18005d834
test eax, eax
je 0x1800c8eb7
mov r8d, 4
lea rdx, [0x1800f6544]
mov rcx, rbx
call fcn.18005d834
test eax, eax
je 0x1800c8eb7
mov r8d, 4
lea rdx, str.._
mov rcx, rbx
call fcn.18005d834
test eax, eax
je 0x1800c8eb7
mov r8d, 0x10
lea rdx, str.DeviceHarddisk
mov rcx, rbx
call fcn.18005d834
test eax, eax
jne 0x1800c8f6a
lea rcx, [rsp + 0x38]
call fcn.180038d50
nop
lea rcx, [rsp + 0x20]
call fcn.180038d50
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x38]
call fcn.1800cb490
xor esi, esi
cmp dword [rsp + 0x28], esi
jle 0x1800c8e9d
mov edi, esi
nop word [rax + rax]
mov rcx, qword [rsp + 0x20]
mov rax, qword [rdi + rcx]
mov r12d, dword [rax - 8]
mov r8d, r12d
mov rdx, rbx
mov rcx, rax
call fcn.18005d834
test eax, eax
je 0x1800c8e4d
inc esi
add rdi, 8
cmp esi, dword [rsp + 0x28]
jl 0x1800c8e20
jmp 0x1800c8e9d
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
dec rcx
sub ecx, r12d
add ecx, 2
cmp ecx, r13d
jae 0x1800c8e9d
movsxd rcx, esi
mov rax, qword [rsp + 0x38]
mov r8d, 2
mov rdx, qword [rax + rcx*8]
mov rcx, rbp
call fcn.18004a5e0
lea rcx, [rbx + r12]
lea rdx, [rbp + 2]
sub rdx, rcx
nop
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
inc rcx
test al, al
jne 0x1800c8e90
lea rcx, [rsp + 0x20]
call fcn.18003e4b0
nop
lea rcx, [rsp + 0x38]
call fcn.18003e4b0
jmp 0x1800c8f6a
cmp edi, 7
jb 0x1800c8ee4
cmp byte [rbx + 5], 0x3a
jne 0x1800c8ee4
cmp byte [rbx + 6], 0x5c
jne 0x1800c8ee4
lea rcx, [rbx + 4]
mov rdx, rbp
sub rdx, rcx
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
inc rcx
test al, al
jne 0x1800c8ed2
jmp 0x1800c8f6a
mov word [rbp + 1], 0x2e5c
jmp 0x1800c8f6a
mov word [rbp], 0x5c5c
lea rcx, [rbx + 8]
lea rdx, [rbp + 2]
sub rdx, rcx
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
inc rcx
test al, al
jne 0x1800c8f00
jmp 0x1800c8f6a
cmp al, 0x25
jne 0x1800c8f6a
mov edx, 0x25
lea rcx, [rbx + 1]
call fcn.18004c68c
mov rsi, rax
mov edx, 0x5c
lea rcx, [rbx + 1]
call fcn.18004c68c
test rsi, rsi
je 0x1800c8f6a
test rax, rax
je 0x1800c8f6a
cmp rsi, rax
jae 0x1800c8f6a
lea edi, [r13 - 1]
mov r8d, edi
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x1800c8fef
cmp eax, edi
ja 0x1800c8fef
dec eax
mov byte [rax + rbp], 0
mov rcx, rbp
call fcn.1800bf0f0
test eax, eax
je 0x1800c8fd3
mov byte [rsp + 0x60], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x61]
call fcn.18004a760
mov r8d, 0x104
lea rdx, [rsp + 0x60]
mov rcx, rbp
call fcn.1800c5d50
test eax, eax
je 0x1800c8fd3
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x60]
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp ecx, r13d
jge 0x1800c8fd3
movsxd rdi, ecx
mov r8, rdi
lea rdx, [rsp + 0x60]
mov rcx, rbp
call fcn.18004a5e0
mov byte [rdi + rbp], 0
mov eax, 1
jmp 0x1800c8ff1
mov dword [0x180157be0], 0x57
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.18004ac60
mov rbx, qword [rsp + 0x1c8]
add rsp, 0x180
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
jmp 0x1800c8c30