Function at 0x1800c5b90
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x1d8]
sub rsp, 0x2b0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1802247b8]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov r15, r8
xor r12d, r12d
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], r12
mov word [rsp + 0x48], r12w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x48]
call fcn.180005330
nop
mov rax, qword [rsp + 0x58]
mov rdi, rax
cmp rax, 1
jb 0x1800c5ce7
mov ebx, r12d
test rax, rax
je 0x1800c5ce7
nop
cmp rax, rbx
jbe 0x1800c5cd5
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rax, qword [rsp + 0x48]
movzx edx, word [rax + rbx*2]
lea rcx, [0x1801aa720]
call fcn.18013b7bc
test rax, rax
je 0x1800c5c5e
inc rbx
cmp rbx, rdi
jae 0x1800c5c5e
mov rax, qword [rsp + 0x58]
jmp 0x1800c5c20
test rbx, rbx
je 0x1800c5ce2
mov rdi, qword [rsp + 0x58]
cmp rdi, rbx
ja 0x1800c5c89
mov qword [rsp + 0x58], r12
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rax, qword [rsp + 0x48]
mov word [rax], r12w
jmp 0x1800c5ce2
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x60]
cmp r8, 8
cmovae rcx, rdx
sub rdi, rbx
je 0x1800c5cbc
lea r8, [rdi + rdi]
lea rdx, [rcx + rbx*2]
call fcn.180139340
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x48]
mov qword [rsp + 0x58], rdi
lea rax, [rsp + 0x48]
cmp r8, 8
cmovae rax, rdx
mov word [rax + rdi*2], r12w
jmp 0x1800c5ce2
lea rcx, [0x1801a8aa8]
call fcn.180112354
int3
mov rax, qword [rsp + 0x58]
mov r14, rax
cmp rax, 1
jb 0x1800c5d6e
mov rbx, rax
test rax, rax
je 0x1800c5d73
lea rsi, [rax*2 - 2]
lea rdi, [rbx - 1]
cmp rax, rdi
jbe 0x1800c5d61
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rax, qword [rsp + 0x48]
movzx edx, word [rsi + rax]
lea rcx, [0x1801aa720]
call fcn.18013b7bc
test rax, rax
je 0x1800c5d42
mov rbx, rdi
sub rsi, 2
test rdi, rdi
je 0x1800c5d42
mov rax, qword [rsp + 0x58]
jmp 0x1800c5d00
cmp rbx, r14
jae 0x1800c5d5a
sub r14, rbx
mov r8, r14
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.180005ac0
mov rax, qword [rsp + 0x58]
jmp 0x1800c5d6e
lea rcx, [0x1801a8aa8]
call fcn.180112354
int3
test rax, rax
jne 0x1800c5d7a
xor bl, bl
jmp 0x1800c6007
mov word [rbp - 0x70], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp - 0x6e]
call fcn.180140c00
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
mov r8d, 0x104
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1800c5de9
cmp word [rbp - 0x70], 0
jne 0x1800c5dc1
mov r8, r12
jmp 0x1800c5ddb
lea rax, [rbp - 0x70]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1800c5dd0
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x48]
call fcn.180005920
lea rcx, [rsp + 0x48]
call fcn.1800282b0
test al, al
je 0x1800c5e1c
lea rax, [rsp + 0x48]
cmp r15, rax
je 0x1800c5e15
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov rcx, r15
call fcn.180005330
mov bl, 1
jmp 0x1800c6007
xor r8d, r8d
lea rcx, [rsp + 0x48]
call fcn.1800c6350
test rax, rax
jne 0x1800c5ea1
lea r8d, [rax + 1]
lea rcx, [rsp + 0x48]
call fcn.1800c6350
cmp rax, 0xffffffffffffffff
je 0x1800c5ea1
lea r9, [rax - 1]
mov r8d, 1
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x48]
call fcn.180023940
nop
mov rdx, rax
mov rcx, r15
call fcn.180005060
nop
cmp qword [rsp + 0x38], 8
jb 0x1800c5e7a
mov rcx, qword [rsp + 0x20]
call fcn.180139b7c
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], r12
mov word [rsp + 0x20], r12w
mov rcx, r15
call fcn.1800282b0
test al, al
je 0x1800c5ea1
mov bl, 1
jmp 0x1800c6007
mov rdi, r12
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], r12
mov word [rsp + 0x68], r12w
mov edx, 0x20
lea r8d, [rdx - 0x1f]
lea rcx, [rsp + 0x48]
call fcn.180025830
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800c5fe1
lea rcx, [rdi + 1]
mov rdi, rbx
cmp rbx, rcx
je 0x1800c5f9d
mov r9, rbx
xor r8d, r8d
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x48]
call fcn.180023940
mov rsi, rax
lea rax, [rsp + 0x68]
cmp rax, rsi
je 0x1800c5f44
cmp qword [rbp - 0x80], 8
jb 0x1800c5f23
mov rcx, qword [rsp + 0x68]
call fcn.180139b7c
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], r12
mov word [rsp + 0x68], r12w
mov rdx, rsi
lea rcx, [rsp + 0x68]
call fcn.180005250
nop
cmp qword [rsp + 0x38], 8
jb 0x1800c5f56
mov rcx, qword [rsp + 0x20]
call fcn.180139b7c
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], r12
mov word [rsp + 0x20], r12w
lea rcx, [rsp + 0x68]
call fcn.18003d950
test al, al
jne 0x1800c5fbf
mov r8d, 4
lea rdx, [0x1801ab238]
lea rcx, [rsp + 0x68]
call fcn.1800057b0
lea rcx, [rsp + 0x68]
call fcn.18003d950
test al, al
jne 0x1800c5fbf
lea r8, [rbx + 1]
mov edx, 0x20
lea rcx, [rsp + 0x48]
call fcn.180025830
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1800c5ee0
jmp 0x1800c5fe1
lea rax, [rsp + 0x68]
cmp r15, rax
je 0x1800c5fdd
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rcx, r15
call fcn.180005330
mov bl, 1
jmp 0x1800c5fe3
xor bl, bl
cmp qword [rbp - 0x80], 8
jb 0x1800c5ff4
mov rcx, qword [rsp + 0x68]
call fcn.180139b7c
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], r12
mov word [rsp + 0x68], r12w
cmp qword [rsp + 0x60], 8
jb 0x1800c6019
mov rcx, qword [rsp + 0x48]
call fcn.180139b7c
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], r12
mov word [rsp + 0x48], r12w
movzx eax, bl
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.180139310
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret