Function at 0x140025dec
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xd8
mov rdi, rcx
xor ebx, ebx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
jne 0x140025e1a
xor eax, eax
jmp 0x140026131
mov edx, dword [rdi + 4]
test edx, edx
je 0x1400260f8
sub edx, 2
je 0x1400260e1
cmp edx, 1
jne 0x14002612e
lea r8d, [rdx + 2]
lea rdx, [0x14004ca60]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsnicmp]
nop dword [rax + rax]
test eax, eax
jne 0x14002612e
mov rdi, qword [rdi + 0x10]
mov r15, rbx
mov qword [rbp + 0x7f], rbx
mov r14, rbx
mov r13d, 0x80004005
add rdi, 6
je 0x14002612e
or r12, 0xffffffffffffffff
mov rax, r12
inc rax
cmp word [rdi + rax*2], bx
jne 0x140025e7b
lea rsi, [rax + 1]
mov eax, 2
mul rsi
cmovo rax, r12
mov rcx, rax
call fcn.1400014a0
mov qword [rbp + 0x67], rax
mov r11, rax
test rax, rax
je 0x14002612e
mov r8, rdi
mov rdx, rsi
mov rcx, rax
call fcn.140010dd0
mov edi, 0x2c
mov rcx, r11
mov edx, edi
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcschr]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x1400260a8
mov word [rax], bx
lea eax, [rdi - 0xc]
jmp 0x140025ee7
mov word [rsi], bx
add rsi, 2
cmp ax, word [rsi]
je 0x140025ee4
mov edx, edi
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcschr]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140025f64
mov word [rax], bx
mov eax, reloc.ATL.DLL_AtlInternalQueryInterface
jmp 0x140025f16
mov word [rdi], bx
add rdi, 2
cmp ax, word [rdi]
je 0x140025f13
mov edx, 0x2c
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcschr]
nop dword [rax + rax]
mov r14, rax
test rax, rax
je 0x140025f53
mov word [rax], bx
mov eax, reloc.ATL.DLL_AtlInternalQueryInterface
jmp 0x140025f49
mov word [r14], bx
add r14, 2
cmp ax, word [r14]
je 0x140025f45
inc r12
cmp word [rdi + r12*2], bx
jne 0x140025f53
test r12, r12
cmove rdi, rbx
mov r12, qword [rbp + 0x67]
mov rdx, 0xffffffff80000001
mov rcx, r12
call fcn.14001e558
lea rcx, [rbp + 0x7f]
mov r9d, 1
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400260ac
mov ecx, 0x208
call fcn.1400014a0
mov dword [rbp + 0x67], 0x208
mov rsi, rax
test rax, rax
je 0x140026096
mov rcx, qword [rbp + 0x7f]
lea rax, [rbp + 0x67]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x6f]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rdi
mov dword [rbp + 0x6f], 1
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14002608e
mov ecx, dword [rbp + 0x6f]
lea eax, [rcx - 1]
cmp eax, 1
jbe 0x140026065
cmp ecx, 4
jne 0x14002608e
lea rax, [rbp + 0x67]
mov dword [rbp + 0x67], ecx
mov rcx, qword [rbp + 0x7f]
lea r9, [rbp + 0x6f]
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rbp + 0x77]
mov dword [rbp + 0x77], ebx
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14002608e
mov r9d, dword [rbp + 0x77]
lea r8, [0x14004b360]
mov edx, 0x104
mov rcx, rsi
call fcn.140010e44
test eax, eax
js 0x14002608e
mov r13d, ebx
mov r15, rsi
jmp 0x140026096
mov r13d, ebx
test r14, r14
je 0x140026060
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
nop dword [rax + rax]
mov r8, r14
mov edx, 0x104
mov rcx, rsi
call fcn.140010d0c
jmp 0x140026060
mov rcx, rsi
call fcn.140001454
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x1400260ac
mov r12, qword [rbp + 0x67]
mov rcx, r12
call fcn.140001454
test r13d, r13d
js 0x14002612e
mov eax, 0x3a
mov rcx, r15
cmp ax, word [r15 + 2]
jne 0x1400260cf
call fcn.14001b1a8
jmp 0x1400260d4
call fcn.14001eb30
mov rcx, r15
mov rbx, rax
call fcn.140001454
jmp 0x14002612e
call fcn.14001ab20
test eax, eax
je 0x14002612e
mov rcx, qword [rdi + 0x10]
call fcn.14001b1a8
mov rbx, rax
jmp 0x14002612e
mov rdx, rcx
lea rcx, [rsp + 0x30]
call fcn.14001fba0
lea rcx, [rsp + 0x30]
call fcn.140026df8
mov rcx, rax
call fcn.14001eb30
lea rcx, [rsp + 0x30]
mov rbx, rax
call fcn.14001fde4
lea rcx, [rsp + 0x30]
call fcn.14001fde4
mov rax, rbx
add rsp, 0xd8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret