Function at 0x100049710
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, 0xae0
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x100081138]
xor rax, rsp
mov qword [rsp + 0xad0], rax
mov rbp, rdx
mov qword [rsp + 0x80], rdx
mov rbx, rcx
mov qword [rsp + 0x88], rcx
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.10001e134
nop
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.10001e134
nop
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.10001e134
nop
xor r14d, r14d
mov qword [rsp + 0x58], r14
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.1000453d0
cmp eax, r14d
jne 0x1000497d7
mov r8, qword [rbx]
lea rdx, [0x10000f410]
lea ecx, [r14 + 2]
call fcn.100037e18
nop
lea rcx, [rsp + 0x50]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x68]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x48]
call fcn.10001f3ec
jmp 0x100049c15
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x48]
call fcn.10002f82c
cmp al, r14b
jne 0x10004982c
mov r8, qword [rsp + 0x48]
lea rdx, [0x100010340]
mov ecx, 3
call fcn.100037e18
nop
lea rcx, [rsp + 0x50]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x68]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x48]
call fcn.10001f3ec
jmp 0x100049c15
lea rcx, [rsp + 0x58]
call fcn.100049c48
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rbx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.100044998
cmp eax, r14d
jne 0x10004989d
cmp rbx, r14
je 0x100049878
lock add dword [rbx + 8], 0xffffffff
jne 0x100049873
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rsp + 0x58], r14
lea rcx, [rsp + 0x50]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x68]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x48]
call fcn.10001f3ec
jmp 0x100049c15
mov dword [rsp + 0xa0], 0x20
mov edi, r14d
lea r8, [rsp + 0xa0]
xor edx, edx
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
mov esi, 1
cmp eax, r14d
je 0x100049bdd
add edi, esi
mov dword [rsp + 0x60], edi
xor r9d, r9d
mov r8d, dword [rsp + 0xb4]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x94]
call qword [sym.imp.SETUPAPI.dll_CM_Get_DevNode_Status]
cmp eax, 0xd
je 0x100049902
cmp eax, 0x25
jne 0x100049bb4
mov r15d, r14d
mov r13d, r14d
cmp r15d, r14d
jne 0x100049baa
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x2d0]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x44], 0x800
mov eax, r13d
neg eax
sbb r8d, r8d
neg r8d
add r8d, esi
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x800
lea rax, [rsp + 0x2d0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea rdx, [rsp + 0xa0]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
cmp eax, r14d
je 0x100049b9b
lea r12, [rsp + 0x2d0]
cmp word [rsp + 0x2d0], r14w
je 0x100049b9b
cmp r15d, r14d
jne 0x100049b9b
mov rbp, qword [rbp]
cmp rbp, r14
je 0x100049b77
mov eax, r14d
cmp rbp, r14
setne al
cmp eax, r14d
je 0x100049bd2
mov rdx, rbp
mov rbp, qword [rbp]
add rdx, 0x10
lea rcx, [rsp + 0x78]
call fcn.10001e09c
nop
mov rdx, r12
mov rdi, qword [rsp + 0x78]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, r14d
jne 0x100049b64
mov r15d, esi
mov dword [rsp + 0x28], 0x20019
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, esi
lea rdx, [rsp + 0xa0]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x100049b61
mov dword [rsp + 0x44], 0x208
mov dword [rsp + 0x70], esi
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, [0x10000f560]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100049b53
or dword [rsp + 0x28], 0xffffffff
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
or r9d, 0xffffffff
lea r8, [rsp + 0xc0]
mov edx, esi
mov ecx, 0x7f
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x100049ab1
mov rax, qword [rsp + 0x88]
mov r9, qword [rax]
mov r8, rdi
lea rdx, [0x1000103a0]
mov ecx, esi
call fcn.100037e18
jmp 0x100049b53
and dword [rsp + 0x40], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8d, [r9 + 0xa]
lea rdx, [rsp + 0xa0]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x100049b42
or dword [rsp + 0x40], 0x20
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x40]
mov r8d, 0xa
lea rdx, [rsp + 0xa0]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.SETUPAPI.dll_SetupDiSetDeviceRegistryPropertyW]
test eax, eax
je 0x100049b2c
mov r8, rdi
lea rdx, [0x100010450]
mov ecx, esi
call fcn.100037e18
jmp 0x100049b53
mov r8, rdi
lea rdx, [0x100010500]
mov ecx, 3
call fcn.100037e18
jmp 0x100049b53
mov r8, rdi
lea rdx, [0x1000105a0]
mov ecx, esi
call fcn.100037e18
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r14d, r14d
jmp 0x100049b64
xor r14d, r14d
lea rcx, [rsp + 0x78]
call fcn.10001f3ec
cmp rbp, r14
jne 0x1000499a6
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, esi
cdqe
lea r12, [r12 + rax*2]
cmp word [r12], r14w
mov rbp, qword [rsp + 0x80]
jne 0x100049990
add r13d, esi
cmp r13d, 2
jb 0x100049908
jmp 0x100049bb0
mov edi, dword [rsp + 0x60]
jmp 0x100049bb4
mov edi, dword [rsp + 0x60]
lea r8, [rsp + 0xa0]
mov edx, edi
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
cmp eax, r14d
je 0x100049bdd
jmp 0x1000498cd
mov ecx, 0x80004005
call fcn.10001f28c
nop
lock add dword [rbx + 8], 0xffffffff
jne 0x100049bf0
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
mov edx, esi
call qword [rax]
mov qword [rsp + 0x58], r14
lea rcx, [rsp + 0x50]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x68]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x48]
call fcn.10001f3ec
mov rcx, qword [rsp + 0xad0]
xor rcx, rsp
call fcn.10005cbe0
mov rbx, qword [rsp + 0xb30]
add rsp, 0xae0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret