Function at 0x140085160
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7c0]
sub rsp, 0x8c0
mov qword [rbp - 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x908], rbx
mov rbx, r8
mov r13, rdx
lea rdi, vtable.CSABString.0
mov qword [rsp + 0x58], rdi
mov dword [rsp + 0x68], 6
mov ecx, 7
call fcn.140247068
mov qword [rsp + 0x60], rax
test rax, rax
je 0x1400851da
mov ecx, dword [str.CLSID_]
mov dword [rax], ecx
movzx ecx, word [0x14028b03c]
mov word [rax + 4], cx
movzx ecx, byte [0x14028b03e]
mov byte [rax + 6], cl
mov r12d, 1
mov dword [rsp + 0x6c], r12d
mov rdx, r13
lea rcx, [rsp + 0x58]
call fcn.140028ca0
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x50], r12d
lea ecx, [r12 + 1]
call fcn.140247068
mov r15, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14008521d
movzx ecx, word [0x140287e84]
mov word [rax], cx
mov dword [rsp + 0x54], r12d
mov rdi, qword [rsp + 0x60]
mov esi, dword [rsp + 0x68]
lea ecx, [rsi + 2]
call fcn.140247068
mov r14, rax
test rdi, rdi
je 0x14008526e
mov rdx, rdi
mov r8, rax
sub r8, rdi
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx]
mov byte [r8 + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140085250
mov rcx, rdi
call fcn.140247060
mov qword [rsp + 0x60], r14
jmp 0x140085273
mov qword [rsp + 0x60], rax
mov rdi, 0xffffffffffffffff
test r14, r14
je 0x14008529e
mov edx, esi
movzx ecx, word [r15]
mov word [rdx + r14], cx
mov rsi, rdi
nop dword [rax]
inc rsi
cmp byte [r14 + rsi], 0
jne 0x140085290
mov dword [rsp + 0x68], esi
test r15, r15
je 0x1400852ab
mov rcx, r15
call fcn.140247060
lea rax, vtable.CSABString.0
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x50], SafeArrayGetDim
mov ecx, SafeArrayGetDim
call fcn.140247068
mov r15, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140085300
movsd xmm0, qword [str.InprocServer32]
movsd qword [rax], xmm0
mov ecx, dword [0x14028b490]
mov dword [rax + 8], ecx
movzx ecx, word [0x14028b494]
mov word [rax + 0xc], cx
movzx ecx, byte [0x14028b496]
mov byte [rax + 0xe], cl
mov dword [rsp + 0x54], r12d
lea ecx, [rsi + 0xf]
call fcn.140247068
mov qword [rbp + 0x818], rax
test r14, r14
je 0x140085346
mov rcx, r14
mov rdx, rax
sub rdx, r14
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x140085322
mov rcx, r14
call fcn.140247060
mov r8, qword [rbp + 0x818]
mov qword [rsp + 0x60], r8
jmp 0x14008534e
mov r8, rax
mov qword [rsp + 0x60], rax
test r8, r8
je 0x14008538e
mov edx, esi
add rdx, r8
movsd xmm0, qword [r15]
movsd qword [rdx], xmm0
mov ecx, dword [r15 + 8]
mov dword [rdx + 8], ecx
movzx eax, word [r15 + 0xc]
mov word [rdx + 0xc], ax
movzx eax, byte [r15 + 0xe]
mov byte [rdx + 0xe], al
mov rax, rdi
nop dword [rax]
inc rax
cmp byte [r8 + rax], 0
jne 0x140085380
mov dword [rsp + 0x68], eax
test r15, r15
je 0x1400853a2
mov rcx, r15
call fcn.140247060
mov r8, qword [rbp + 0x818]
mov r15, qword [rbp + 0x800]
mov r10, qword [r15 + 0x28]
mov eax, dword [r15 + 0x14e4]
or eax, 9
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov rdx, 0xffffffff80000000
lea rcx, [r15 + 0x28]
call qword [r10 + reloc.OLEAUT32.dll_SafeArrayGetElement]
test eax, eax
jne 0x140085600
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp - 0x60]
call fcn.140249b10
mov dword [rbp + 0x800], 0x410
mov rax, qword [r15 + 0x28]
lea rcx, [rbp + 0x800]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x60]
mov qword [rsp + 0x28], rcx
xor esi, esi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
lea rcx, [r15 + 0x28]
call qword [rax + 0x60]
test eax, eax
jne 0x1400855e8
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140085446
call fcn.140247060
mov qword [rbx + 0x38], rsi
lea rcx, [rbp - 0x60]
mov rax, rdi
nop dword [rax]
inc rax
cmp byte [rcx + rax], sil
jne 0x140085450
mov dword [rbx + 0x40], eax
lea ecx, [rax + 1]
call fcn.140247068
mov qword [rbx + 0x38], rax
test rax, rax
je 0x140085480
mov r8d, dword [rbx + 0x40]
inc r8d
lea rdx, [rbp - 0x60]
mov rcx, rax
call fcn.1402496a0
mov rcx, qword [rbx + 0x2b8]
test rcx, rcx
je 0x140085498
call fcn.140247060
mov qword [rbx + 0x2b8], rsi
lea rcx, [rbp - 0x60]
mov rax, rdi
nop
inc rax
cmp byte [rcx + rax], sil
jne 0x1400854a0
mov dword [rbx + 0x2c0], eax
lea ecx, [rax + 1]
call fcn.140247068
mov qword [rbx + 0x2b8], rax
test rax, rax
je 0x1400854d9
mov r8d, dword [rbx + 0x2c0]
inc r8d
lea rdx, [rbp - 0x60]
mov rcx, rax
call fcn.1402496a0
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp + 0x3b0]
call fcn.140249b10
mov r8d, 0x410
lea rdx, [rbp + 0x3b0]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea rcx, [rbp + 0x3b0]
call fcn.140250f2c
xor r9d, r9d
mov r8, rbx
lea rdx, [rbp + 0x3b0]
mov rcx, r15
call fcn.1400876f0
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140085537
call fcn.140247060
mov qword [rbx + 0x38], rsi
lea rax, [rbp + 0x3b0]
nop
inc rdi
cmp byte [rax + rdi], sil
jne 0x140085540
mov dword [rbx + 0x40], edi
lea ecx, [rdi + 1]
call fcn.140247068
mov qword [rbx + 0x38], rax
test rax, rax
je 0x140085573
mov r8d, dword [rbx + 0x40]
inc r8d
lea rdx, [rbp + 0x3b0]
mov rcx, rax
call fcn.1402496a0
cmp dword [rbx + 0x90], esi
jne 0x1400855eb
mov dword [rbx + 0x90], r12d
mov rcx, qword [rbx + 0xa0]
test rcx, rcx
je 0x14008559a
call fcn.140247060
mov qword [rbx + 0xa0], rsi
mov dword [rbx + 0xa8], 4
mov ecx, 5
call fcn.140247068
mov qword [rbx + 0xa0], rax
test rax, rax
je 0x1400855eb
mov r8d, dword [rbx + 0xa8]
inc r8d
lea rdx, [0x14028b498]
mov rcx, rax
call fcn.1402496a0
mov rax, qword [r15 + 0x28]
mov rdx, qword [rsp + 0x70]
lea rcx, [r15 + 0x28]
call qword [rax + 0x28]
jmp 0x140085a49
mov r12d, esi
mov rax, qword [r15 + 0x28]
mov rdx, qword [rsp + 0x70]
lea rcx, [r15 + 0x28]
call qword [rax + 0x28]
jmp 0x140085a49
lea rsi, vtable.CSABString.0
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x50], 6
mov ecx, 7
call fcn.140247068
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140085645
mov ecx, dword [str.CLSID_]
mov dword [rax], ecx
movzx edx, word [0x14028b03c]
mov word [rax + 4], dx
movzx edx, byte [0x14028b03e]
mov byte [rax + 6], dl
mov dword [rsp + 0x54], r12d
mov rdx, r13
lea rcx, [rsp + 0x40]
call fcn.140028ca0
mov qword [rbp - 0x80], rsi
mov dword [rbp - 0x70], r12d
mov ecx, 2
call fcn.140247068
mov r12, rax
mov qword [rbp - 0x78], rax
test rax, rax
je 0x14008567f
movzx ecx, word [0x140287e84]
mov word [rax], cx
mov dword [rbp - 0x6c], 1
mov r15, qword [rsp + 0x48]
mov esi, dword [rsp + 0x50]
lea ecx, [rsi + 2]
call fcn.140247068
mov r14, rax
test r15, r15
je 0x1400856ce
mov rdx, r15
mov r8, rax
sub r8, r15
nop dword [rax + rax]
movzx eax, byte [rdx]
mov byte [r8 + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1400856b0
mov rcx, r15
call fcn.140247060
mov qword [rsp + 0x48], r14
jmp 0x1400856d3
mov qword [rsp + 0x48], rax
test r14, r14
je 0x1400856fe
mov edx, esi
movzx ecx, word [r12]
mov word [rdx + r14], cx
mov rsi, rdi
nop word [rax + rax]
inc rsi
cmp byte [r14 + rsi], 0
jne 0x1400856f0
mov dword [rsp + 0x50], esi
test r12, r12
je 0x14008570b
mov rcx, r12
call fcn.140247060
lea rax, vtable.CSABString.0
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x70], SafeArrayGetDim
mov ecx, SafeArrayGetDim
call fcn.140247068
mov r13, rax
mov qword [rbp - 0x78], rax
test rax, rax
je 0x140085753
movsd xmm0, qword [0x14029b648]
movsd qword [rax], xmm0
mov ecx, dword [0x14029b650]
mov dword [rax + 8], ecx
movzx ecx, word [0x14029b654]
mov word [rax + 0xc], cx
mov r12d, 1
mov dword [rbp - 0x6c], r12d
lea ecx, [rsi + 0xe]
call fcn.140247068
mov r15, rax
test r14, r14
je 0x14008579d
mov rcx, r14
mov rdx, rax
sub rdx, r14
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x140085780
mov rcx, r14
call fcn.140247060
mov qword [rsp + 0x48], r15
jmp 0x1400857a2
mov qword [rsp + 0x48], rax
test r15, r15
je 0x1400857de
mov edx, esi
movsd xmm0, qword [r13]
movsd qword [rdx + r15], xmm0
mov ecx, dword [r13 + 8]
mov dword [rdx + r15 + 8], ecx
movzx eax, word [r13 + 0xc]
mov word [rdx + r15 + 0xc], ax
mov rax, rdi
nop dword [rax]
inc rax
cmp byte [r15 + rax], 0
jne 0x1400857d0
mov dword [rsp + 0x50], eax
test r13, r13
je 0x1400857eb
mov rcx, r13
call fcn.140247060
mov r13, qword [rbp + 0x800]
mov r10, qword [r13 + 0x28]
mov eax, dword [r13 + 0x14e4]
or eax, 9
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, r15
mov rdx, 0xffffffff80000000
lea rcx, [r13 + 0x28]
call qword [r10 + reloc.OLEAUT32.dll_SafeArrayGetElement]
test eax, eax
jne 0x140085a34
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp - 0x60]
call fcn.140249b10
mov dword [rbp + 0x800], 0x410
mov rax, qword [r13 + 0x28]
lea rcx, [rbp + 0x800]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x60]
mov qword [rsp + 0x28], rcx
xor esi, esi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
lea rcx, [r13 + 0x28]
call qword [rax + 0x60]
test eax, eax
jne 0x140085a23
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140085892
call fcn.140247060
mov qword [rbx + 0x38], rsi
lea rcx, [rbp - 0x60]
mov rax, rdi
nop dword [rax]
inc rax
cmp byte [rcx + rax], sil
jne 0x1400858a0
mov dword [rbx + 0x40], eax
lea ecx, [rax + 1]
call fcn.140247068
mov qword [rbx + 0x38], rax
test rax, rax
je 0x1400858d0
mov r8d, dword [rbx + 0x40]
inc r8d
lea rdx, [rbp - 0x60]
mov rcx, rax
call fcn.1402496a0
mov rcx, qword [rbx + 0x2b8]
test rcx, rcx
je 0x1400858e8
call fcn.140247060
mov qword [rbx + 0x2b8], rsi
lea rcx, [rbp - 0x60]
mov rax, rdi
nop
inc rax
cmp byte [rcx + rax], sil
jne 0x1400858f0
mov dword [rbx + 0x2c0], eax
lea ecx, [rax + 1]
call fcn.140247068
mov qword [rbx + 0x2b8], rax
test rax, rax
je 0x140085929
mov r8d, dword [rbx + 0x2c0]
inc r8d
lea rdx, [rbp - 0x60]
mov rcx, rax
call fcn.1402496a0
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp + 0x3b0]
call fcn.140249b10
mov r8d, 0x410
lea rdx, [rbp + 0x3b0]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea rcx, [rbp + 0x3b0]
call fcn.140250f2c
xor r9d, r9d
mov r8, rbx
lea rdx, [rbp + 0x3b0]
mov rcx, r13
call fcn.1400876f0
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140085987
call fcn.140247060
mov qword [rbx + 0x38], rsi
lea rax, [rbp + 0x3b0]
nop
inc rdi
cmp byte [rax + rdi], sil
jne 0x140085990
mov dword [rbx + 0x40], edi
lea ecx, [rdi + 1]
call fcn.140247068
mov qword [rbx + 0x38], rax
test rax, rax
je 0x1400859c3
mov r8d, dword [rbx + 0x40]
inc r8d
lea rdx, [rbp + 0x3b0]
mov rcx, rax
call fcn.1402496a0
cmp dword [rbx + 0x90], esi
jne 0x140085a23
mov dword [rbx + 0x90], r12d
mov rcx, qword [rbx + 0xa0]
test rcx, rcx
je 0x1400859ea
call fcn.140247060
mov qword [rbx + 0xa0], rsi
mov dword [rbx + 0xa8], 4
mov ecx, 5
call fcn.140247068
mov qword [rbx + 0xa0], rax
test rax, rax
je 0x140085a23
mov r8d, dword [rbx + 0xa8]
inc r8d
lea rdx, [0x14028b498]
mov rcx, rax
call fcn.1402496a0
mov rax, qword [r13 + 0x28]
mov rdx, qword [rsp + 0x78]
lea rcx, [r13 + 0x28]
call qword [rax + 0x28]
nop
cmp dword [rsp + 0x54], 1
jne 0x140085a49
test r15, r15
je 0x140085a49
mov rcx, r15
call fcn.140247060
nop
cmp dword [rsp + 0x6c], 1
jne 0x140085a64
mov rax, qword [rbp + 0x818]
test rax, rax
je 0x140085a64
mov rcx, rax
call fcn.140247060
mov eax, r12d
mov rbx, qword [rsp + 0x908]
add rsp, 0x8c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret