Function at 0x18001dd28
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
lea rbp, [rax - 0x1c8]
sub rsp, 0x2c0
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, rcx
xor esi, esi
mov dword [rsp + 0x20], esi
mov qword [rbp - 0x20], rdx
mov qword [rbp - 0x18], r8
mov qword [rbp - 0x10], r9
mov rax, qword [rbp + 0x1f0]
mov qword [rbp - 8], rax
mov rax, qword [rbp + 0x1f8]
mov qword [rbp], rax
mov rax, qword [rbp + 0x200]
mov qword [rbp + 8], rax
lea rax, [rsp + 0x60]
mov qword [rbp + 0x1f0], rax
lea rax, [rsp + 0x60]
mov qword [rbp + 0x1f8], rax
xor edx, edx
lea r8d, [rsi + 0x40]
lea rcx, [rsp + 0x60]
call fcn.1801530a0
lea rax, [rsp + 0x60]
mov qword [rbp + 0x200], rax
mov word [rsp + 0x60], si
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x80], SafeArrayLock
mov qword [rsp + 0x78], rsi
mov byte [rsp + 0x68], sil
mov qword [rbp - 0x78], rsi
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x70], xmm0
lea rax, [rbp - 0x60]
mov qword [rbp + 0x200], rax
xor edx, edx
lea r8d, [rsi + 0x30]
lea rcx, [rsp + 0x28]
call fcn.1801530a0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
lea rcx, [0x18001a9e4]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.18001c630
nop
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x28]
lea rcx, [rbp - 0x60]
call fcn.18001a880
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x18001de70
mov rdx, qword [rsp + 0x48]
sub rdx, rcx
sar rdx, 3
lea r8d, [rsi + 8]
call fcn.1800060dc
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rsi
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x18001de7f
call qword [rsp + 0x28]
nop
mov rdx, qword [rbp - 0x20]
cmp qword [rsp + 0x78], rsi
jne 0x18001dea7
lea rax, [rsp + 0x68]
cmp rax, rdx
je 0x18001deb0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x68]
call fcn.180006868
jmp 0x18001deb0
lea rcx, [rbp - 0x78]
call fcn.1800225fc
mov rdx, qword [rbp]
lea rcx, [rbp - 0x60]
call fcn.180022888
lea rcx, [rbp - 0x60]
call fcn.18001d640
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x30]
call fcn.18001f020
nop
lea rax, [rbp + 0x30]
mov qword [rbp + 0x10], rax
lea rax, [rbp - 0x20]
mov qword [rbp + 0x18], rax
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0xc0]
call fcn.18001f054
nop
mov rdx, rdi
lea rcx, [rbp + 0xc0]
call fcn.18001e4b4
mov dword [rsp + 0x20], 1
mov rbx, qword [rbp + 0x158]
test rbx, rbx
je 0x18001df45
or eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x18001df45
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
or eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x18001df45
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rax, [rbp + 0x30]
mov qword [rbp + 0x1f0], rax
lea rax, [rbp + 0x78]
mov qword [rbp + 0x1f8], rax
lea rax, [rbp + 0x78]
mov qword [rbp + 0x1f8], rax
lea rcx, [rbp + 0x78]
call fcn.180019c38
nop
lea rcx, [rbp + 0x30]
call fcn.1800115e4
nop
lea rax, [rsp + 0x60]
mov qword [rbp + 0x1f0], rax
lea rax, [rsp + 0x60]
mov qword [rbp + 0x1f0], rax
lea rax, [rbp - 0x60]
mov qword [rbp + 0x1f8], rax
lea rax, [rbp - 0x60]
mov qword [rbp + 0x1f8], rax
lea rcx, [rbp - 0x60]
call fcn.180019c38
nop
lea rax, [rsp + 0x60]
mov qword [rbp + 0x1f0], rax
lea rcx, [rbp - 0x78]
call fcn.18000de18
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x18001dfe5
inc rdx
mov r8d, 1
mov rcx, qword [rsp + 0x68]
call fcn.1800060dc
mov qword [rbp - 0x80], SafeArrayLock
mov qword [rsp + 0x78], rsi
mov byte [rsp + 0x68], sil
mov rax, rdi
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret