Function at 0x140016c38
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x530
mov qword [rsp + 0xa8], 0xfffffffffffffffe
mov rax, qword [0x14002d148]
xor rax, rsp
mov qword [rsp + 0x520], rax
mov qword [rsp + 0x88], r9
mov r15, r8
mov dword [rsp + 0x5c], edx
xor r14d, r14d
cmp r8, r14
je 0x140017069
mov qword [r8], r14
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r14
mov qword [r11 - 0x4e8], r14
mov rbp, r14
mov qword [r11 - 0x4d8], r14
mov qword [r11 - 0x4d0], r14
mov qword [r11 - 0x4c8], r14
mov rsi, r14
mov qword [rsp + 0x50], r14
mov r8d, 0x20119
lea rdx, [rsp + 0x70]
call fcn.14001affc
movsxd rdi, eax
mov dword [rsp + 0x68], edi
cmp edi, r14d
jl 0x140017044
mov word [rsp + 0x100], r14w
mov ebx, 0x206
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x102]
call sub.msvcrt.dll_memset
mov word [rsp + 0x310], r14w
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x312]
call sub.msvcrt.dll_memset
mov r13d, r14d
mov dword [rsp + 0x58], r14d
mov dword [rsp + 0x44], r14d
mov ebx, r14d
cmp rdi, r14
jl 0x140017041
jmp 0x140016d3c
xor r14d, r14d
jmp 0x140016d3c
xor r14d, r14d
jmp 0x140016d3c
xor r14d, r14d
cmp ebx, r14d
jne 0x14001703d
mov dword [rsp + 0x40], 0x104
mov ebx, r14d
cmp rbp, r14
je 0x140016d6b
mov rcx, rbp
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov ebx, eax
mov rbp, r14
mov qword [rsp + 0x90], r14
cmp ebx, r14d
jne 0x140016d3c
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x100]
mov edx, r13d
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegEnumKeyExW]
mov ebx, eax
cmp eax, r14d
jne 0x140016d3c
inc r13d
mov dword [rsp + 0x48], r13d
lea rcx, [rsp + 0x100]
call qword [sym.imp.msvcrt.dll__wtoi]
mov r14d, eax
test eax, eax
js 0x140016d34
mov eax, dword [rsp + 0x5c]
test eax, r14d
je 0x140016d2f
and qword [rsp + 0x60], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0x100]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140016e23
test rbp, rbp
je 0x140016e16
mov rcx, rbp
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov ebx, eax
mov rbp, qword [rsp + 0x60]
mov qword [rsp + 0x90], rbp
test ebx, ebx
jne 0x140016d39
xor r13d, r13d
test ebx, ebx
jne 0x140016ffd
mov dword [rsp + 0x40], 0x104
mov dword [rsp + 0x44], 0x208
lea rax, [rsp + 0x44]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x310]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x100]
mov edx, r13d
mov rcx, rbp
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegEnumValueW]
mov ebx, eax
test eax, eax
jne 0x140016e2e
inc r13d
lea rsi, [0x1400037b8]
lea rdi, [rsp + 0x100]
lea ecx, [rax + 0x11]
repe cmpsw word [rsi], word [rdi]
jne 0x140016edd
lea rcx, [rsp + 0x310]
call qword [sym.imp.msvcrt.dll__wtoi64]
mov rsi, qword [rsp + 0x50]
cmp rsi, rax
jg 0x140016e2e
lea rcx, [rsp + 0x310]
call qword [sym.imp.msvcrt.dll__wtoi64]
mov rsi, rax
mov qword [rsp + 0x50], rax
jmp 0x140016e2e
movdqu xmm0, xmmword [0x140001bb0]
movdqu xmmword [rsp + 0xe8], xmm0
mov dword [rsp + 0xf8], r14d
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0x100]
call qword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
mov rsi, qword [rsp + 0x50]
js 0x140016e2e
lea rcx, [rsp + 0x310]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rdi, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140017032
mov rcx, rax
call qword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov edx, eax
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov rsi, rax
mov qword [rsp + 0xd0], rax
test rax, rax
je 0x140017027
lea rdx, [rsp + 0xb0]
lea rax, [rsp + 0xe8]
mov rcx, qword [rax]
mov qword [rdx], rcx
mov rcx, qword [rax + 8]
mov qword [rdx + 8], rcx
mov ecx, dword [rax + 0x10]
mov dword [rdx + 0x10], ecx
test rsi, rsi
jne 0x140016f8d
xor eax, eax
jmp 0x140016fa1
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov edx, eax
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov qword [rsp + 0xc8], rax
test rsi, rsi
je 0x140016fb3
test rax, rax
je 0x14001701c
lea r8, [rsp + 0xb0]
lea rdx, [rsp + 0xd8]
mov rcx, qword [rsp + 0x88]
call fcn.140018ff8
nop
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rsi, qword [rsp + 0x50]
jmp 0x140016e2e
cmp ebx, 0x103
mov r13d, dword [rsp + 0x48]
mov r14d, 0
jne 0x140016d3c
mov ebx, r14d
jmp 0x140016d3c
mov ecx, 0x8007000e
call fcn.1400057b8
nop
mov ecx, 0x8007000e
call fcn.1400057b8
nop
mov ecx, 0x8007000e
call fcn.1400057b8
int3
mov edi, dword [rsp + 0x68]
mov qword [r15], rsi
cmp rbp, r14
je 0x140017053
mov rcx, rbp
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
nop
cmp qword [rsp + 0x70], r14
je 0x140017065
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, edi
jmp 0x14001706e
mov eax, 0x80070057
mov rcx, qword [rsp + 0x520]
xor rcx, rsp
call fcn.140022620
add rsp, 0x530
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret