Function at 0x140026ea0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r15
lea rbp, [rsp - 0x4f]
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm6
mov rax, qword [0x1402f8c60]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r15, rdx
test ecx, ecx
je 0x140026ef0
sub ecx, 1
je 0x140026ee7
cmp ecx, 1
je 0x140026ede
xor eax, eax
jmp 0x140027112
movups xmm6, xmmword [0x14023e4c0]
jmp 0x140026ef7
movups xmm6, xmmword [0x14023e450]
jmp 0x140026ef7
movups xmm6, xmmword [0x14023e520]
mov qword [rsp + 0x100], rbx
mov qword [rsp + 0x110], rsi
mov qword [rsp + 0xe0], r14
movups xmmword [rdx], xmm6
call fcn.140002c10
test rax, rax
je 0x140027131
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetElement]
xor esi, esi
movdqa xmmword [rbp - 0x39], xmm6
lea rdx, [rbp - 0x51]
mov qword [rbp - 0x51], rsi
lea rcx, [rbp - 0x39]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x61], rbx
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
mov rdx, qword [rbp - 0x51]
lea r14, [rsi - 1]
test rdx, rdx
je 0x1400270de
mov rax, r14
nop
inc rax
cmp word [rdx + rax*2], si
jne 0x140026f60
mov r8d, eax
lea rcx, [rbp - 0x61]
call fcn.140004720
lea rcx, [rbp - 0x51]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
mov rbx, qword [rbp - 0x61]
cmp dword [rbx - 0x10], esi
je 0x1400270de
xor eax, eax
mov dword [rbp - 0x59], esi
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], rax
mov qword [rbp - 9], rax
mov qword [rbp - 1], rax
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x17], rax
mov word [rbp + 0x1f], ax
mov eax, 0x4a
mov dword [rbp - 0x69], eax
cmp dword [rbx - 8], 1
jle 0x140026fda
mov edx, dword [rbx - 0x10]
lea rcx, [rbp - 0x61]
call fcn.140002f00
mov eax, dword [rbp - 0x69]
mov rbx, qword [rbp - 0x61]
mov qword [rbp - 0x49], rsi
test rbx, rbx
je 0x1400270d9
test eax, eax
je 0x1400270d9
lea rax, [rbp - 0x49]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionAppletsSysTrayBattMeterFlyout
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400270d9
mov rcx, qword [rbp - 0x49]
test rcx, rcx
je 0x1400270d9
lea rax, [rbp - 0x69]
mov qword [rsp + 0x118], rdi
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x59]
lea rax, [rbp - 0x29]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp - 0x49]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
mov rdi, qword [rsp + 0x118]
jne 0x1400270d9
call fcn.140002c10
test rax, rax
je 0x140027131
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 0x41], rax
lea rax, [rbp - 0x29]
cmp rax, 0x10000
jae 0x1400270a9
lea rax, [rbp - 0x29]
movzx edx, ax
lea rcx, [rbp - 0x41]
call fcn.140004320
jmp 0x1400270c9
lea rcx, [rbp - 0x29]
mov rax, r14
inc rax
cmp word [rcx + rax*2], si
jne 0x1400270b0
mov r8d, eax
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x41]
call fcn.140004720
mov rdx, r15
lea rcx, [rbp - 0x41]
call fcn.140026880
test eax, eax
je 0x1400270de
mov esi, 1
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x1400270f8
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov rbx, qword [rsp + 0x100]
mov eax, esi
mov rsi, qword [rsp + 0x110]
mov r14, qword [rsp + 0xe0]
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140072680
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop r15
pop rbp
ret
mov ecx, 0x80004005
call fcn.140002ad0
int3