Function at 0x140013190
Capabilities:
Query or enumerate registry key

Disassembly:
push rbx
push rbp
push rsi
push r13
push r14
push r15
sub rsp, 0x88
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor r13d, r13d
mov r14, 0xffffffffffffffff
mov r15d, r13d
mov rbx, r14
mov rsi, rdx
mov rbp, rcx
inc rbx
cmp word [rdx + rbx*2], r13w
jne 0x1400131c6
lea rax, [rsp + 0x68]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001325e
mov rcx, qword [rsp + 0x68]
xor r8d, r8d
mov rdx, rsi
call fcn.140012ee0
mov rcx, qword [rsp + 0x68]
mov rdx, rsi
call fcn.140013060
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], r13
xor r9d, r9d
mov qword [rsp + 0x50], r13
xor r8d, r8d
mov qword [rsp + 0x48], r13
xor edx, edx
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
mov dword [rsp + 0x60], r13d
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x140013265
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x14001344a
mov eax, dword [rsp + 0x60]
inc eax
mov qword [rsp + 0xd0], rdi
mov ecx, eax
mov dword [rsp + 0x60], eax
mov eax, 2
mul rcx
mov qword [rsp + 0x80], r12
cmovo rax, r14
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r12d, dword [rsp + 0x60]
mov rdi, rax
inc r12d
mov eax, 2
add r12d, ebx
mul r12
cmovo rax, r14
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, dword [rsp + 0x60]
mov rbx, rax
mov dword [rsp + 0x70], ecx
test rdi, rdi
jne 0x1400132e9
test rax, rax
je 0x1400132d7
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x14001343a
test rax, rax
je 0x1400132d7
movzx r14d, word [rsi]
test r14w, r14w
jne 0x140013301
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x70]
mov qword [rsp + 0x38], r13
mov r8, rdi
mov qword [rsp + 0x30], r13
xor edx, edx
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400133fa
lea r13, str.SOFTWAREMicrosoftWindowsCurrentVersionInstallerUserData
nop dword [rax]
test r14w, r14w
je 0x140013362
mov r9, rsi
mov qword [rsp + 0x20], rdi
lea r8, str._ls_ls
mov rdx, r12
mov rcx, rbx
call fcn.140001010
jmp 0x140013365
mov rbx, rdi
mov rax, 0xffffffffffffffff
nop dword [rax]
movzx ecx, word [rbx + rax*2 + 2]
cmp cx, word [r13 + rax*2 + 2]
jne 0x140013393
add rax, 2
cmp rax, 0x3d
je 0x1400133a9
movzx ecx, word [rbx + rax*2]
cmp cx, word [r13 + rax*2]
je 0x140013370
mov rdx, rbx
mov rcx, rbp
call fcn.140013190
mov rdx, rbx
mov rcx, rbp
call fcn.140013060
mov eax, dword [rsp + 0x60]
xor edx, edx
mov rcx, rdi
inc r15d
lea r8d, [rax + rax]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [rsp + 0x60]
lea r9, [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
mov r8, rdi
mov dword [rsp + 0x70], eax
mov edx, r15d
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140013340
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.Freing_the_data_moment_n
call fcn.1400023e0
test r14w, r14w
je 0x140013420
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, str.Succass_n
call fcn.1400023e0
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 1
mov rdi, qword [rsp + 0xd0]
mov r12, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14001a080
add rsp, 0x88
pop r15
pop r14
pop r13
pop rsi
pop rbp
pop rbx
ret