Function at 0x12952a50
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x140
mov qword [rsp + 0x110], 0xfffffffffffffffe
mov qword [rsp + 0x188], rbx
mov rbx, r9
mov r15, rdx
mov rdi, rcx
xor esi, esi
cmp qword [rcx + 0x68], rsi
jne 0x12952a9b
mov ebx, 0x520
jmp 0x129530e4
mov dword [rsp + 0xc0], esi
mov ecx, 8
call fcn.12958d80
mov qword [rsp + 0x70], rax
mov qword [rsp + 0xb0], rax
test rax, rax
je 0x12952acb
lea rcx, [rsp + 0xe0]
mov qword [rax], rcx
jmp 0x12952ace
mov rax, rsi
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xf8], rsi
mov qword [rsp + 0x100], rsi
mov qword [rsp + 0x108], rsi
mov ecx, 8
call fcn.12958d80
mov qword [rsp + 0x70], rax
mov qword [rsp + 0xb0], rax
test rax, rax
je 0x12952b14
lea rcx, [rsp + 0x78]
mov qword [rax], rcx
jmp 0x12952b17
mov rax, rsi
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x98], rsi
mov qword [rsp + 0xa0], rsi
mov dword [rsp + 0x64], esi
mov dword [rsp + 0x60], esi
mov dword [rsp + 0x6c], esi
mov dword [rsp + 0x68], esi
mov dword [rbx], esi
mov rax, qword [rsp + 0x1a0]
mov qword [rax], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rdi + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
or rbp, 0xffffffffffffffff
test eax, eax
jne 0x12952edf
mov ecx, dword [rsp + 0x6c]
inc ecx
mov eax, 2
mul rcx
cmovo rax, rbp
mov rcx, rax
call fcn.12958238
mov rbx, rax
mov qword [rsp + 0x70], rax
mov r14d, esi
cmp dword [rsp + 0x64], esi
jbe 0x12952ed2
mov eax, dword [rsp + 0x6c]
inc eax
mov dword [rsp + 0xbc], eax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0xbc]
mov r8, rbx
mov edx, r14d
mov rcx, qword [rdi + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x12952ec4
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rdi + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x12952ec4
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x12952eb6
mov ecx, dword [rsp + 0x68]
inc ecx
mov eax, 2
mul rcx
cmovo rax, rbp
mov rcx, rax
call fcn.12958238
mov r13, rax
mov r12d, esi
cmp dword [rsp + 0x60], esi
jbe 0x12952ea9
nop word [rax + rax]
mov eax, dword [rsp + 0x68]
inc eax
mov dword [rsp + 0xb8], eax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0xb8]
mov r8, r13
mov edx, r12d
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x12952e8a
mov rdx, r13
mov rcx, r15
call fcn.129512b0
test al, al
je 0x12952e8a
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, r13
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x12952e8a
mov rbx, qword [rsp + 0x90]
test rbx, rbx
jne 0x12952d59
mov rdx, rsi
jmp 0x12952d68
mov rdx, qword [rsp + 0xa0]
sub rdx, rbx
sar rdx, 3
mov rcx, qword [rsp + 0x98]
mov rax, rcx
sub rax, rbx
sar rax, 3
cmp rax, rdx
jae 0x12952d9b
mov rax, qword [rsp + 0xb0]
mov qword [rcx], rax
lea rax, [rcx + 8]
mov qword [rsp + 0x98], rax
jmp 0x12952e8a
mov rdi, rcx
cmp rbx, rcx
jbe 0x12952db8
call fcn.1295850c
mov rcx, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x78]
mov rbp, rdx
mov qword [rsp + 0xd0], rdx
mov qword [rsp + 0xd8], rdi
mov rax, rcx
sub rax, rbx
test rax, 0xfffffffffffffff8
jne 0x12952de3
mov rdi, rsi
jmp 0x12952e08
cmp rbx, rcx
jbe 0x12952df2
call fcn.1295850c
mov rdx, qword [rsp + 0x78]
test rbp, rbp
je 0x12952dfc
cmp rbp, rdx
je 0x12952e01
call fcn.1295850c
sub rdi, rbx
sar rdi, 3
movaps xmm0, xmmword [rsp + 0xd0]
movdqa xmmword [rsp + 0x120], xmm0
lea r9, [rsp + 0xb0]
mov r8d, 1
lea rdx, [rsp + 0x120]
lea rcx, [rsp + 0x78]
call fcn.12898c10
mov rbp, qword [rsp + 0x90]
cmp rbp, qword [rsp + 0x98]
jbe 0x12952e50
call fcn.1295850c
mov rbx, qword [rsp + 0x78]
test rbx, rbx
jne 0x12952e64
call fcn.1295850c
mov r11, rsi
jmp 0x12952e67
mov r11, qword [rbx]
lea rcx, [rbp + rdi*8]
cmp rcx, qword [r11 + 0x20]
ja 0x12952e85
test rbx, rbx
je 0x12952e7c
mov rax, qword [rbx]
jmp 0x12952e7f
mov rax, rsi
cmp rcx, qword [rax + 0x18]
jae 0x12952e8a
call fcn.1295850c
inc r12d
cmp r12d, dword [rsp + 0x60]
jb 0x12952cc0
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x180]
or rbp, 0xffffffffffffffff
test r13, r13
je 0x12952eb6
mov rcx, r13
call fcn.1295c768
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc r14d
cmp r14d, dword [rsp + 0x64]
jb 0x12952bd0
test rbx, rbx
je 0x12952edf
mov rcx, rbx
call fcn.1295c768
mov rcx, qword [rsp + 0x98]
sub rcx, qword [rsp + 0x90]
sar rcx, 3
test rcx, rcx
je 0x12953071
inc rcx
mov eax, 8
mul rcx
cmovo rax, rbp
mov rcx, rax
call fcn.12958238
mov qword [rsp + 0x70], rax
mov r12, rax
mov r8, qword [rsp + 0x98]
sub r8, qword [rsp + 0x90]
sar r8, 3
lea r8, [r8*8 + 8]
xor edx, edx
mov rcx, rax
call fcn.12959590
mov r11, qword [rsp + 0x90]
mov rdi, r11
mov rbp, qword [rsp + 0x98]
cmp r11, rbp
jbe 0x12952f6e
call fcn.1295850c
mov rbp, qword [rsp + 0x98]
mov r11, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x78]
mov r14, qword [rsp + 0x180]
mov r13, qword [rsp + 0x198]
cmp r11, rbp
jbe 0x12952f8d
call fcn.1295850c
test rbx, rbx
je 0x12952f99
cmp rbx, qword [rsp + 0x78]
je 0x12952f9e
call fcn.1295850c
cmp rdi, rbp
je 0x12953010
test rbx, rbx
jne 0x12952fb2
call fcn.1295850c
mov r11, rsi
jmp 0x12952fb5
mov r11, qword [rbx]
cmp rdi, qword [r11 + 0x20]
jb 0x12952fc0
call fcn.1295850c
mov r8, r12
mov rdx, qword [rdi]
mov rcx, r14
call fcn.12952100
test eax, eax
jne 0x12952fda
inc dword [r13]
add r12, 8
test rbx, rbx
jne 0x12952fe9
call fcn.1295850c
mov r11, rsi
jmp 0x12952fec
mov r11, qword [rbx]
cmp rdi, qword [r11 + 0x20]
jb 0x12952ff7
call fcn.1295850c
add rdi, 8
mov rbp, qword [rsp + 0x98]
mov r11, qword [rsp + 0x90]
jmp 0x12952f83
cmp dword [r13], 0
mov r13, qword [rsp + 0x70]
je 0x12953063
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov qword [rsp + 0xd0], r13
mov dword [rsp + 0xd8], esi
lea rcx, [r14 + 0x28]
lea r8, [rsp + 0xd0]
lea rdx, [rsp + 0x120]
call fcn.12814b60
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [rsp + 0x1a0]
mov qword [rax], r13
jmp 0x12953071
test r13, r13
je 0x12953071
mov rcx, r13
call fcn.1295c768
nop
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x12953083
call fcn.12958250
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x98], rsi
mov qword [rsp + 0xa0], rsi
mov rcx, qword [rsp + 0x78]
call fcn.12958250
nop
mov rcx, qword [rsp + 0xf8]
test rcx, rcx
je 0x129530b8
call fcn.12958250
mov qword [rsp + 0xf8], rsi
mov qword [rsp + 0x100], rsi
mov qword [rsp + 0x108], rsi
mov rcx, qword [rsp + 0xe0]
call fcn.12958250
mov ebx, dword [rsp + 0xc0]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
sete sil
mov eax, esi
mov rbx, qword [rsp + 0x188]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret