Function at 0x140026d70
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xb8
mov qword [rbp + 7], 0xfffffffffffffffe
mov rbx, r9
mov r14, rcx
xor edi, edi
mov dword [rbp - 0x25], edi
mov rcx, qword [r8]
sub rcx, 0x18
call fcn.1400026f0
add rax, 0x18
mov qword [r14], rax
mov r15d, 1
mov dword [rbp - 0x25], r15d
lea rcx, [rbp - 0x49]
call fcn.140026bf0
nop
mov rax, qword [rbx]
or r12d, 0xffffffff
cmp dword [rax - 0x10], edi
je 0x140026e6b
mov r8, rbx
lea rdx, [0x140050ac8]
lea rcx, [rbp - 1]
call fcn.140005790
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rbx, qword [rbp - 0x49]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x140026e4c
cmp dword [rbx + 0x10], edi
jl 0x140026e3e
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140026e3e
call fcn.1400026f0
mov rsi, rax
mov ecx, r12d
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140026e34
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rsi + 0x18]
mov qword [rbp - 0x49], rax
jmp 0x140026e4c
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x49]
call fcn.140005390
nop
mov rdx, qword [rbp - 1]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140026e6b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rbp - 0x21], rdi
mov dword [rbp - 0x19], edi
mov qword [rbp - 0x11], rdi
mov qword [rbp - 0x31], rdi
lea rax, [rbp - 9]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x31]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp - 0x49]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140027082
mov r13, qword [rbp - 0x31]
mov qword [rbp - 0x21], r13
mov dword [rbp - 0x19], edi
lea rcx, [0x14006bfe0]
mov rax, qword [0x14006bfe0]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x41], rbx
mov dword [rbp + 0x77], edi
mov esi, edi
lea rax, [rbp + 0x77]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x39]
xor r8d, r8d
mov rdx, qword [rbp + 0x6f]
mov rdx, qword [rdx]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140026f2d
mov eax, dword [rbp - 0x39]
cmp eax, 1
je 0x140026f1b
cmp eax, 2
jne 0x140026f2d
mov esi, dword [rbp + 0x77]
shr esi, 1
jns 0x140026f2d
mov ecx, 0x80070057
call fcn.140001050
int3
sub r15d, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, r15d
jge 0x140026f4a
mov edx, esi
lea rcx, [rbp - 0x41]
call fcn.140003900
mov rbx, qword [rbp - 0x41]
lea eax, [rsi + rsi]
mov dword [rbp + 0x7f], eax
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x29]
xor r8d, r8d
mov rax, qword [rbp + 0x6f]
mov rdx, qword [rax]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
jne 0x140026fb6
mov eax, dword [rbp - 0x29]
cmp eax, 1
je 0x140026f8f
cmp eax, 2
je 0x140026f8f
mov esi, 0xd
jmp 0x140026fb6
test rbx, rbx
je 0x140026fb4
mov eax, dword [rbp + 0x7f]
test eax, eax
je 0x140026fb1
test al, 1
jne 0x140026faa
shr rax, 1
cmp word [rbx + rax*2 - 2], 0
je 0x140026fb4
mov esi, 0xd
jmp 0x140026fb6
mov word [rbx], di
mov esi, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.140034b74
test eax, eax
js 0x140027077
cmp eax, dword [rbx - 0xc]
jg 0x140027077
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], di
test esi, esi
jne 0x140027041
lea rcx, [rbx - 0x18]
mov rsi, qword [r14]
sub rsi, 0x18
cmp rcx, rsi
je 0x140027041
cmp dword [rsi + 0x10], 0
jl 0x140027032
mov rax, qword [rsi]
cmp qword [rcx], rax
jne 0x140027032
call fcn.1400026f0
mov rbx, rax
mov ecx, r12d
lock xadd dword [rsi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140027021
mov rcx, qword [rsi]
mov r8, qword [rcx]
mov rdx, rsi
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rbx + 0x18]
mov qword [r14], rax
mov rbx, qword [rbp - 0x41]
mov r13, qword [rbp - 0x31]
jmp 0x140027041
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
mov rcx, r14
call fcn.140005390
test r13, r13
je 0x140027053
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x21], rdi
mov dword [rbp - 0x19], edi
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140027071
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdi, qword [rbp - 0x21]
jmp 0x140027082
mov ecx, 0x80070057
call fcn.140001050
nop
test rdi, rdi
je 0x140027091
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp - 0x49]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r12d
dec r12d
test r12d, r12d
jg 0x1400270b0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, r14
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret