Function at 0x14001d390
Capabilities:
Query environment variable

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x2f8], rbx
mov rax, qword [0x14016ca00]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rsi, r8
mov rbx, rdx
cmp qword [rcx + 0x10], 0
jne 0x14001d3dd
xor al, al
jmp 0x14001d6f2
xor r15d, r15d
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], r15
mov word [rsp + 0x28], r15w
cmp qword [rcx + 0x18], 8
jb 0x14001d40a
mov rax, qword [rcx]
jmp 0x14001d40d
mov rax, rcx
cmp word [rax], 0x40
jne 0x14001d490
mov r8, qword [rcx + 0x10]
dec r8d
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.140061930
mov rdi, rax
lea rax, [rsp + 0x28]
cmp rax, rdi
je 0x14001d468
cmp qword [rsp + 0x40], 8
jb 0x14001d446
mov rcx, qword [rsp + 0x28]
call fcn.1400bd20c
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], r15
mov word [rsp + 0x28], r15w
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.14000b0c0
nop
cmp qword [rsp + 0x60], 8
jb 0x14001d47a
mov rcx, qword [rsp + 0x48]
call fcn.1400bd20c
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], r15
mov word [rsp + 0x48], r15w
jmp 0x14001d4ae
lea rax, [rsp + 0x28]
cmp rax, rcx
je 0x14001d4ae
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.140006b90
mov word [rbp - 0x70], r15w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp - 0x6e]
call fcn.1400c2130
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
mov r8d, 0x104
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp word [rbp - 0x70], 0
jne 0x14001d4f1
mov r8, r15
jmp 0x14001d50b
lea rax, [rbp - 0x70]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14001d500
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x28]
call fcn.140006900
mov qword [rsp + 0x78], r15
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], r15
mov word [rsp + 0x68], r15w
mov r8d, 2
lea rdx, [0x140125520]
lea rcx, [rsp + 0x68]
call fcn.140006900
nop
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rdx, qword [rsp + 0x68]
mov r9, qword [rsp + 0x78]
xor r8d, r8d
lea rcx, [rsp + 0x28]
call fcn.140012f50
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14001d681
mov r8d, eax
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x48]
call fcn.1400618d0
mov rdi, rax
cmp rbx, rax
je 0x14001d5c1
cmp qword [rbx + 0x18], 8
jb 0x14001d5a5
mov rcx, qword [rbx]
call fcn.1400bd20c
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r15
mov word [rbx], r15w
mov rdx, rdi
mov rcx, rbx
call fcn.14000b0c0
nop
cmp qword [rsp + 0x60], 8
jb 0x14001d5d3
mov rcx, qword [rsp + 0x48]
call fcn.1400bd20c
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], r15
mov word [rsp + 0x48], r15w
test rsi, rsi
je 0x14001d67d
mov r8d, dword [rsp + 0x38]
sub r8d, dword [rsp + 0x78]
sub r8d, r14d
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x48]
call fcn.140061930
nop
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdx, qword [rsp + 0x48]
mov r8, r15
movzx eax, word [rdx]
cmp ax, 0x30
jb 0x14001d654
nop word [rax + rax]
cmp ax, 0x39
ja 0x14001d654
movzx eax, ax
sub eax, 0x30
movsxd rcx, eax
lea rax, [r8 + r8*4]
lea r8, [rcx + rax*2]
add rdx, 2
movzx eax, word [rdx]
cmp ax, 0x30
jae 0x14001d630
mov dword [rsi], r8d
cmp qword [rsp + 0x60], 8
jb 0x14001d669
mov rcx, qword [rsp + 0x48]
call fcn.1400bd20c
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], r15
mov word [rsp + 0x48], r15w
mov bl, 1
jmp 0x14001d6a5
lea rax, [rsp + 0x28]
cmp rbx, rax
je 0x14001d69f
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.140006b90
test rsi, rsi
sete bl
cmp qword [rbp - 0x80], 8
jb 0x14001d6b6
mov rcx, qword [rsp + 0x68]
call fcn.1400bd20c
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], r15
mov word [rsp + 0x68], r15w
cmp qword [rsp + 0x40], 8
jb 0x14001d6db
mov rcx, qword [rsp + 0x28]
call fcn.1400bd20c
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], r15
mov word [rsp + 0x28], r15w
movzx eax, bl
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1400bcae0
mov rbx, qword [rsp + 0x2f8]
add rsp, 0x2b0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret