Function at 0x1401ecd64
Capabilities:
Query environment variable

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x27]
sub rsp, 0x100
mov qword [rbp + 0x17], 0xfffffffffffffffe
mov rdi, rcx
lea rcx, [rbp + 0x77]
call fcn.14000cb18
nop
xor r13d, r13d
mov qword [rbp - 0x61], r13
mov dword [rbp - 0x59], r13d
mov qword [rbp - 0x51], r13
lea rax, vtable.Piriform::Registry::CRegKeyEx.0
mov qword [rbp - 0x69], rax
or eax, 0xffffffff
mov dword [rbp - 0x49], eax
mov dword [rbp - 0x45], eax
mov dword [rbp - 0x41], r13d
mov rax, qword [rdi + 0xb8]
mov r9d, dword [rax + 0x7c]
or r9d, 0x10009
mov r8, qword [rbp + 0x77]
mov rdx, qword [rdi + 0x58]
lea rcx, [rbp - 0x61]
call fcn.1400114d4
or r14d, 0xffffffff
test eax, eax
jne 0x1401ed494
lea r8, [0x140370120]
lea rdx, [rbp + 0x77]
lea rcx, [rbp - 0x19]
call fcn.14001c3e0
mov rcx, qword [rdi + 0xb8]
mov r9d, dword [rcx + 0x7c]
lea esi, [r13 + 1]
or r9d, esi
mov r8, qword [rax]
mov rdx, qword [rdi + 0x58]
lea rcx, [rbp - 0x61]
call fcn.1400114d4
test eax, eax
sete bl
mov rdx, qword [rbp - 0x19]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x1401ece41
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
je 0x1401ed1a7
lea r9, [0x140330de8]
lea r8, [0x140330de8]
lea rdx, [rbp + 0x7f]
lea rcx, [rbp - 0x69]
call fcn.140224ba8
nop
lea rcx, [rbp + 0x7f]
call fcn.14000baec
lea rcx, [rbp + 0x7f]
call fcn.14000bbfc
mov r11, qword [rbp + 0x7f]
cmp dword [r11 - 0x10], r13d
je 0x1401ed19e
mov rax, qword [rdi + 0xb8]
mov edx, dword [rax + 0x7c]
lea rcx, [rbp + 0x7f]
call fcn.1401b7e9c
test al, al
jne 0x1401ed19e
lea rdx, str.e8cc4cbe_fdff_11d0_b865_00a0c9081c1d
mov rcx, qword [rbp + 0x77]
call fcn.1400bedf4
test eax, eax
jne 0x1401ed011
lea rdx, [0x14035d6e8]
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x1401ed011
lea rdx, [rbp + 0x7f]
lea rcx, [rsp + 0x30]
call fcn.14000c4d8
nop
lea rcx, [rbp + 0x67]
call fcn.14023dc9c
cmp dword [rbp + 0x67], r13d
jne 0x1401ecf11
lea rcx, [rsp + 0x30]
call fcn.14000b994
lea r8, str._CommonProgramFiles_x86__
lea rdx, str._commonprogramfiles_
lea rcx, [rsp + 0x30]
call fcn.14000b658
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
mov r9d, esi
mov ebx, 0x104
mov r8d, ebx
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 1]
call fcn.14000bd14
mov r8d, ebx
mov rdx, qword [rax + 8]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r12d, eax
mov eax, dword [rbp + 0xf]
mov rbx, qword [rbp - 1]
cmp eax, r14d
jne 0x1401ecf7b
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1401ecf72
mov eax, r13d
jmp 0x1401ecf83
movsxd rdx, dword [rcx - 0xc]
call fcn.1400beaac
test eax, eax
js 0x1401ed006
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x1401ed006
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], r13w
test r12d, r12d
je 0x1401ecfb8
mov rax, qword [rdi + 0xb8]
mov edx, dword [rax + 0x7c]
lea rcx, [rsp + 0x38]
call fcn.1401b7e9c
test al, al
sete sil
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x1401ecfda
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x1401ecffb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test sil, sil
je 0x1401ed19e
jmp 0x1401ed011
mov ecx, 0x80070057
call fcn.14000cbb8
nop
mov ecx, 0x88
call fcn.1400be454
mov qword [rbp - 0x31], rax
test rax, rax
je 0x1401ed035
mov rdx, qword [rdi + 0xb8]
mov rcx, rax
call fcn.14006de38
jmp 0x1401ed038
mov rax, r13
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1400186f8
nop
lea r8, [rbp + 0x7f]
lea rdx, str.InProcServer32_
lea rcx, [rbp - 0x29]
call fcn.14000d30c
nop
mov rcx, qword [rsp + 0x50]
add rcx, 0x58
mov rdx, rax
call fcn.14000c244
nop
mov rdx, qword [rbp - 0x29]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x1401ed08d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, [rbp + 0x77]
lea rdx, [0x140352420]
lea rcx, [rbp - 0x39]
call fcn.14000d30c
nop
mov rcx, qword [rsp + 0x50]
add rcx, 0x60
mov rdx, qword [rax]
mov r8d, dword [rdx - 0x10]
call fcn.14000c0c4
nop
mov rdx, qword [rbp - 0x39]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x1401ed0d8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x50]
add rcx, 0x20
lea rdx, [rbp + 0x7f]
call fcn.14000c244
lea rdx, [0x140352420]
lea rcx, [rbp - 0x79]
call fcn.14000cb18
nop
mov rbx, qword [rsp + 0x50]
add rbx, 0x40
mov rax, qword [rbx]
mov rcx, rbx
cmp dword [rax - 0x10], r13d
jne 0x1401ed11b
lea rdx, [rbp + 0x77]
call fcn.14000c244
jmp 0x1401ed139
mov rdx, qword [rbp - 0x79]
mov r8d, dword [rdx - 0x10]
call fcn.14000c0c4
mov rdx, qword [rbp + 0x77]
mov r8d, dword [rdx - 0x10]
mov rcx, rbx
call fcn.14000c0c4
nop
mov rdx, qword [rbp - 0x79]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x1401ed159
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.1401b5d9c
nop
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x1401ed19e
mov eax, r14d
lock xadd dword [rbx + 8], eax
add eax, r14d
jne 0x1401ed19e
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
add eax, r14d
jne 0x1401ed19e
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
nop
mov rdx, qword [rbp + 0x7f]
jmp 0x1401ed477
lea r8, str.LocalServer32
lea rdx, [rbp + 0x77]
lea rcx, [rbp - 9]
call fcn.14001c3e0
mov rcx, qword [rdi + 0xb8]
mov r9d, dword [rcx + 0x7c]
or r9d, esi
mov r8, qword [rax]
mov rdx, qword [rdi + 0x58]
lea rcx, [rbp - 0x61]
call fcn.1400114d4
test eax, eax
sete bl
mov rdx, qword [rbp - 9]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x1401ed1fe
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
je 0x1401ed494
lea r9, [0x140330de8]
lea r8, [0x140330de8]
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x69]
call fcn.140224ba8
nop
lea rcx, [rsp + 0x20]
call fcn.14000baec
lea rcx, [rsp + 0x20]
call fcn.14000bbfc
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.14000c4d8
nop
lea rcx, [rsp + 0x28]
call fcn.14000b994
mov r11, qword [rsp + 0x20]
cmp dword [r11 - 0x10], r13d
je 0x1401ed450
mov rbx, qword [rsp + 0x28]
cmp dword [rbx - 0x10], r13d
jl 0x1401ed28e
lea rdx, str.msmsgs.exe
mov rcx, rbx
call fcn.1400bee84
test rax, rax
je 0x1401ed28e
sub rax, rbx
sar rax, 1
cmp eax, r14d
jne 0x1401ed455
mov rax, qword [rdi + 0xb8]
mov edx, dword [rax + 0x7c]
lea rcx, [rsp + 0x20]
call fcn.1401b7e9c
test al, al
jne 0x1401ed455
lea rdx, str.D2B7A809_15DC_40B4_A1E1_C61EA97191DB
mov rcx, qword [rbp + 0x77]
call fcn.1400bedf4
test eax, eax
je 0x1401ed455
mov ecx, 0x88
call fcn.1400be454
mov qword [rbp - 0x31], rax
test rax, rax
je 0x1401ed2e6
mov rdx, qword [rdi + 0xb8]
mov rcx, rax
call fcn.14006de38
jmp 0x1401ed2e9
mov rax, r13
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400186f8
nop
lea r8, [rsp + 0x20]
lea rdx, str.LocalServer32_
lea rcx, [rbp - 0x11]
call fcn.14000d30c
nop
mov rcx, qword [rsp + 0x40]
add rcx, 0x58
mov rdx, rax
call fcn.14000c244
nop
mov rdx, qword [rbp - 0x11]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x1401ed33f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, [rbp + 0x77]
lea rdx, [0x140352420]
lea rcx, [rbp - 0x21]
call fcn.14000d30c
nop
mov rcx, qword [rsp + 0x40]
add rcx, 0x60
mov rdx, qword [rax]
mov r8d, dword [rdx - 0x10]
call fcn.14000c0c4
nop
mov rdx, qword [rbp - 0x21]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x1401ed38a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x40]
add rcx, 0x20
lea rdx, [rsp + 0x20]
call fcn.14000c244
lea rdx, [0x140352420]
lea rcx, [rbp - 0x71]
call fcn.14000cb18
nop
mov rbx, qword [rsp + 0x40]
add rbx, 0x40
mov rax, qword [rbx]
mov rcx, rbx
cmp dword [rax - 0x10], r13d
jne 0x1401ed3ce
lea rdx, [rbp + 0x77]
call fcn.14000c244
jmp 0x1401ed3ec
mov rdx, qword [rbp - 0x71]
mov r8d, dword [rdx - 0x10]
call fcn.14000c0c4
mov rdx, qword [rbp + 0x77]
mov r8d, dword [rdx - 0x10]
mov rcx, rbx
call fcn.14000c0c4
nop
mov rdx, qword [rbp - 0x71]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x1401ed40c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1401b5d9c
nop
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x1401ed450
mov eax, r14d
lock xadd dword [rbx + 8], eax
add eax, r14d
jne 0x1401ed450
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
add eax, r14d
jne 0x1401ed450
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov rbx, qword [rsp + 0x28]
lea rdx, [rbx - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x1401ed472
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x1401ed494
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rbp - 0x69]
call fcn.140224148
nop
mov rdx, qword [rbp + 0x77]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x1401ed4be
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add rsp, 0x100
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret