Function at 0x180003410
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rdi
push r12
push r13
push r14
sub rsp, 0x1b0
lea rbp, [rsp + 0x60]
mov qword [rbp + 0x190], rbx
mov qword [rbp + 0x198], rsi
mov rax, qword [0x1800ba600]
xor rax, rbp
mov qword [rbp + 0x140], rax
xor r13d, r13d
mov r12d, r8d
mov rbx, rdx
mov rdi, rcx
mov qword [rbp + 8], r13
cmp rdx, r13
je 0x18000398e
mov eax, dword [0x180098608]
cmp dword [rcx], eax
jne 0x18000348c
mov eax, dword [0x18009860c]
cmp dword [rcx + 4], eax
jne 0x18000348c
mov eax, dword [0x180098610]
cmp dword [rcx + 8], eax
jne 0x18000348c
mov eax, dword [0x180098614]
cmp dword [rcx + 0xc], eax
je 0x18000398e
lea rax, [rbp + 8]
mov r14d, 1
lea r9, [0x18008c5e0]
lea rcx, [0x1800985f8]
xor edx, edx
mov r8d, r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, r13d
jl 0x18000397f
cmp dword [rbx], r13d
je 0x180003522
mov rax, qword [rbx + 8]
mov rcx, qword [rbp + 8]
lea r9, [rbp + 0x30]
mov r8d, r14d
mov rdx, rdi
movdqu xmm0, xmmword [rax]
movdqu xmmword [rbp + 0x30], xmm0
mov rax, qword [rcx]
cmp r12d, r13d
je 0x18000350f
cmp dword [rbx], r14d
jne 0x1800034ef
call qword [rax + 0x28]
jmp 0x1800034f2
call qword [rax + 0x38]
cmp eax, r13d
mov esi, eax
jge 0x18000351c
mov rcx, qword [rbp + 8]
cmp rcx, r13
je 0x180003508
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, esi
jmp 0x180003990
cmp dword [rbx], r14d
jne 0x180003519
call qword [rax + 0x30]
jmp 0x18000351c
call qword [rax + 0x40]
add rbx, 0x10
jmp 0x1800034bd
cmp r12d, r13d
jne 0x18000397f
lea rdx, [rbp + 0xc0]
mov r8d, 0x40
mov rcx, rdi
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea rcx, [rbp + 0xc0]
mov rbx, r13
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 0xffffffff
add eax, r14d
movsxd rsi, eax
mov eax, 0x80000000
add rsi, rsi
add rax, rsi
cmp rax, rcx
ja 0x180003617
or r12, 0xffffffffffffffff
cmp esi, 0x400
jg 0x1800035b2
movsxd rdi, esi
mov rcx, rdi
call fcn.180001d80
cmp al, r13b
je 0x1800035b2
lea rax, [rdi + 0xf]
cmp rax, rdi
ja 0x18000359f
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.180080590
sub rsp, rax
lea rdi, [rsp + 0x60]
jmp 0x1800035dd
movsxd rcx, esi
mov rax, r12
sub rax, rcx
cmp rax, 0x10
jb 0x1800039bd
add rcx, 0x10
call fcn.1800645c8
cmp rax, r13
je 0x180003617
mov qword [rax], r13
mov rbx, rax
lea rdi, [rax + 0x10]
cmp rdi, r13
je 0x180003617
mov qword [rsp + 0x38], r13
xor edx, edx
mov qword [rsp + 0x30], r13
lea r8, [rbp + 0xc0]
lea ecx, [rdx + 3]
mov r9d, r12d
mov dword [rsp + 0x28], esi
mov byte [rdi], r13b
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb rsi, rsi
and rsi, rdi
jmp 0x18000361a
mov rsi, r13
cmp rsi, r13
je 0x18000397a
mov edi, 0x80
lea r8, str.CLSID_
lea rcx, [rbp + 0x40]
mov rdx, rdi
call fcn.1800647ec
lea r14d, [rdi - 0x74]
cmp eax, r13d
je 0x180003679
cmp eax, r14d
je 0x18000366e
cmp eax, 0x16
je 0x180003663
cmp eax, 0x22
je 0x180003663
cmp eax, 0x50
je 0x180003679
mov ecx, 0x80004005
call fcn.18000100c
int3
mov ecx, 0x80070057
call fcn.18000100c
int3
mov ecx, 0x8007000e
call fcn.18000100c
int3
lea rcx, [rbp + 0x40]
mov r8, rsi
mov rdx, rdi
call fcn.18006494c
cmp eax, r13d
je 0x1800036c2
cmp eax, r14d
je 0x1800036b7
cmp eax, 0x16
je 0x1800036ac
cmp eax, 0x22
je 0x1800036ac
cmp eax, 0x50
je 0x1800036c2
mov ecx, 0x80004005
call fcn.18000100c
int3
mov ecx, 0x80070057
call fcn.18000100c
int3
mov ecx, 0x8007000e
call fcn.18000100c
int3
lea r8, str.Required_Categories
lea rcx, [rbp + 0x40]
mov rdx, rdi
call fcn.18006494c
cmp eax, r13d
je 0x18000370f
cmp eax, r14d
je 0x180003704
cmp eax, 0x16
je 0x1800036f9
cmp eax, 0x22
je 0x1800036f9
cmp eax, 0x50
je 0x18000370f
mov ecx, 0x80004005
call fcn.18000100c
int3
mov ecx, 0x80070057
call fcn.18000100c
int3
mov ecx, 0x8007000e
call fcn.18000100c
int3
lea rax, [rbp + 0x18]
mov rcx, 0xffffffff80000000
lea rdx, [rbp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov dword [rbp + 0x28], r13d
mov qword [rsp + 0x20], rax
mov qword [rbp + 0x20], rcx
mov rdi, r13
mov dword [rbp], r13d
mov qword [rbp + 0x18], r13
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, r13d
jne 0x1800037b7
mov rdi, qword [rbp + 0x18]
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
lea rax, [rbp]
mov qword [rsp + 0x30], r13
mov rcx, rdi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
movsxd r12, eax
cmp rdi, r13
je 0x18000379f
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, r13
cmp r12, r13
jne 0x1800037b7
cmp dword [rbp], r13d
jne 0x1800037b7
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x20]
call fcn.1800011c4
mov r12d, 0x80
lea r8, str.CLSID_
lea rcx, [rbp + 0x40]
mov rdx, r12
call fcn.1800647ec
cmp eax, r13d
je 0x18000380a
cmp eax, r14d
je 0x1800037ff
cmp eax, 0x16
je 0x1800037f4
cmp eax, 0x22
je 0x1800037f4
cmp eax, 0x50
je 0x18000380a
mov ecx, 0x80004005
call fcn.18000100c
int3
mov ecx, 0x80070057
call fcn.18000100c
int3
mov ecx, 0x8007000e
call fcn.18000100c
int3
lea rcx, [rbp + 0x40]
mov r8, rsi
mov rdx, r12
call fcn.18006494c
cmp eax, r13d
je 0x180003853
cmp eax, r14d
je 0x180003848
cmp eax, 0x16
je 0x18000383d
cmp eax, 0x22
je 0x18000383d
cmp eax, 0x50
je 0x180003853
mov ecx, 0x80004005
call fcn.18000100c
int3
mov ecx, 0x80070057
call fcn.18000100c
int3
mov ecx, 0x8007000e
call fcn.18000100c
int3
lea r8, str.Implemented_Categories
lea rcx, [rbp + 0x40]
mov rdx, r12
call fcn.18006494c
cmp eax, r13d
je 0x1800038a0
cmp eax, r14d
je 0x180003895
cmp eax, 0x16
je 0x18000388a
cmp eax, 0x22
je 0x18000388a
cmp eax, 0x50
je 0x1800038a0
mov ecx, 0x80004005
call fcn.18000100c
int3
mov ecx, 0x80070057
call fcn.18000100c
int3
mov ecx, 0x8007000e
call fcn.18000100c
int3
lea rax, [rbp + 0x10]
mov r12, 0xffffffff80000000
lea rdx, [rbp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, r12
mov qword [rsp + 0x20], rax
mov qword [rbp + 0x10], r13
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, r13d
jne 0x180003956
mov eax, r13d
cmp rdi, r13
je 0x1800038e4
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rbp + 0x10]
cmp eax, r13d
jne 0x180003956
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
lea rax, [rbp]
mov qword [rsp + 0x30], r13
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
movsxd rsi, eax
cmp rdi, r13
je 0x18000393e
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, r13
cmp rsi, r13
jne 0x180003956
cmp dword [rbp], r13d
jne 0x180003956
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x20]
call fcn.1800011c4
cmp rdi, r13
je 0x180003964
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x18000397a
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.180064680
cmp rbx, r13
jne 0x18000396f
mov rcx, qword [rbp + 8]
cmp rcx, r13
je 0x18000398e
mov rax, qword [rcx]
call qword [rax + 0x10]
xor eax, eax
mov rcx, qword [rbp + 0x140]
xor rcx, rbp
call fcn.180064d20
mov rbx, qword [rbp + 0x190]
mov rsi, qword [rbp + 0x198]
lea rsp, [rbp + 0x150]
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
mov ecx, 0x80070057
call fcn.18000100c
int3