Function at 0x100050bb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2d0
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x100083138]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov rbx, r8
mov qword [rsp + 0x60], rbx
mov edi, edx
mov r13, rcx
mov qword [rsp + 0x80], rcx
lea rcx, [rsp + 0x30]
call fcn.100020360
nop
xor r12d, r12d
lea rcx, [rsp + 0x50]
call fcn.100020360
nop
lea rcx, [rsp + 0x48]
call fcn.100020360
nop
xor r15d, r15d
xor r14d, r14d
mov qword [rsp + 0x70], r14
and qword [rsp + 0x40], r14
mov rax, qword [r13]
cmp dword [rax - 0x10], r14d
je 0x1000510fb
mov rcx, r13
call fcn.100032d64
test al, al
je 0x1000510fb
test rbx, rbx
jne 0x100050c7b
lea rcx, [rsp + 0x48]
call fcn.10002006c
nop
lea rcx, [rsp + 0x50]
call fcn.10002006c
nop
lea rcx, [rsp + 0x30]
call fcn.10002006c
lea eax, [rbx + 0x57]
jmp 0x100051120
and dword [rbx], r14d
call fcn.100033d10
mov ebp, 1
lea esi, [rbp + 1]
cmp eax, esi
je 0x100050c9d
cmp eax, 3
je 0x100050c9d
cmp eax, 4
je 0x100050c9d
mov ebx, esi
jmp 0x100050c9f
mov ebx, ebp
lea rdx, [rsp + 0x30]
mov rcx, r13
call fcn.100063520
test eax, eax
jne 0x100050cc9
mov r8, qword [r13]
lea rdx, [0x1000129c0]
mov ecx, esi
call fcn.100054fd8
xor edi, edi
jmp 0x1000510d7
cmp ebx, ebp
jne 0x100050d30
lea rax, [rsp + 0x58]
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.100020390
nop
mov rcx, rax
call fcn.1000636e4
test eax, eax
je 0x100050d0b
mov r8, qword [rsp + 0x30]
lea rdx, [0x100012a18]
mov ecx, ebp
call fcn.100054fd8
jmp 0x100050dca
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov r9, qword [rsp + 0x30]
lea r8, [0x100012a50]
mov edx, eax
mov ecx, 3
call fcn.1000550a8
jmp 0x1000510d7
cmp ebx, esi
jne 0x100050dca
lea rcx, [0x100012988]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r14, rax
mov qword [rsp + 0x70], rax
test rax, rax
jne 0x100050d5f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1000510c8
lea rdx, [0x100012a80]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x100050d86
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1000510c8
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.100054510
mov edi, eax
test eax, eax
jne 0x100050dad
mov r8, qword [rsp + 0x30]
lea rdx, [0x100012a90]
mov ecx, ebp
call fcn.100054fd8
jmp 0x100050dca
mov r9, qword [rsp + 0x30]
lea r8, [0x100012ad0]
mov edx, eax
mov ecx, 3
call fcn.1000550a8
jmp 0x1000510c8
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.1000328c4
test al, al
jne 0x100050dec
mov edi, 0x57
jmp 0x1000510c8
mov r9d, 6
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x100050e15
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1000510c8
xor edi, edi
mov dword [rsp + 0x58], edi
mov dword [rsp + 0x90], 0x20
movsxd rax, ebx
mov qword [rsp + 0x78], rax
lea r8, [rsp + 0x90]
xor edx, edx
mov rcx, rbp
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x100051077
mov rbx, qword [rsp + 0x48]
mov esi, dword [rsp + 0x58]
mov r13, qword [rsp + 0x60]
mov r14, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x40]
jmp 0x100050e68
mov r12d, dword [rsp + 0x60]
add r12d, 1
mov dword [rsp + 0x60], r12d
mov dword [rsp + 0x28], 0x20019
mov dword [rsp + 0x20], 2
xor r9d, r9d
lea r8d, [r9 + 1]
lea rdx, [rsp + 0x90]
mov rcx, rbp
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x10005103a
mov dword [rsp + 0x68], 0x208
mov dword [rsp + 0x6c], 1
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x6c]
xor r8d, r8d
lea rdx, [0x100012b08]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10005102d
or dword [rsp + 0x28], 0xffffffff
mov qword [rsp + 0x20], rbx
or r9d, 0xffffffff
lea r8, [rsp + 0xb0]
lea edx, [rax + 1]
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x10005102d
and dword [rsp + 0x38], 0
cmp r14, 1
jne 0x100050f3e
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x90]
mov rcx, rbp
call fcn.100052fcc
mov esi, eax
jmp 0x100050fa6
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x90]
mov rdx, rbp
xor ecx, ecx
call rdi
test eax, eax
jne 0x100050fa6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0xe0000203
jne 0x100050fa6
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
xor r9d, r9d
lea r8, [rsp + 0x90]
mov rdx, rbp
xor ecx, ecx
call rdi
test eax, eax
jne 0x100050fa4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100050fa6
xor esi, esi
test esi, esi
jne 0x100050fb0
add r15d, 1
jmp 0x10005101e
cmp qword [0x100084728], 0
jne 0x100050fc4
cmp qword [0x100084740], 0
je 0x10005101e
lea rcx, [rsp + 0x40]
call fcn.100020360
nop
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x90]
mov rcx, rbp
call fcn.10005380c
test eax, eax
jne 0x100051000
mov r9, qword [rsp + 0x40]
lea r8, [0x100012b20]
mov edx, esi
lea ecx, [rax + 3]
call fcn.1000550a8
jmp 0x100051014
lea r8, [0x100012b78]
mov edx, esi
mov ecx, 3
call fcn.1000550a8
nop
lea rcx, [rsp + 0x40]
call fcn.10002006c
cmp dword [rsp + 0x38], 0
je 0x10005102d
mov dword [r13], 1
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
or r12, 0xffffffffffffffff
lea r8, [rsp + 0x90]
mov edx, dword [rsp + 0x60]
mov rcx, rbp
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x100050e63
cmp r12, 0xffffffffffffffff
mov edi, dword [rsp + 0x58]
mov r13, qword [rsp + 0x80]
mov r14, qword [rsp + 0x70]
je 0x100051077
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbp
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
cmp qword [0x100084728], 0
jne 0x100051094
cmp qword [0x100084740], 0
je 0x1000510c8
test r15d, r15d
je 0x1000510b3
mov r9, qword [r13]
mov r8d, r15d
lea rdx, [0x100012bb0]
mov ecx, 1
call fcn.100054fd8
jmp 0x1000510c8
mov r8, qword [r13]
lea rdx, [0x100012c10]
mov ecx, 1
call fcn.100054fd8
test r14, r14
je 0x1000510d7
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rcx, [rsp + 0x48]
call fcn.10002006c
nop
lea rcx, [rsp + 0x50]
call fcn.10002006c
nop
lea rcx, [rsp + 0x30]
call fcn.10002006c
mov eax, edi
jmp 0x100051120
lea rcx, [rsp + 0x48]
call fcn.10002006c
nop
lea rcx, [rsp + 0x50]
call fcn.10002006c
nop
lea rcx, [rsp + 0x30]
call fcn.10002006c
mov eax, 0x57
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.10006bd80
mov rbx, qword [rsp + 0x328]
add rsp, 0x2d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret