Function at 0x140017660
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x48], 0
lea r8, str.SUBSYS_E0001458
mov dword [rsp + 0x40], 0
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [r8 + rbx*2], 0
jne 0x140017690
add ebx, ebx
lea rcx, [0x140256e00]
mov r9d, ebx
mov edx, 0x28
mov edi, ebx
call fcn.14000b550
mov dword [0x140256e50], ebx
mov dword [0x140256ea4], ebx
test ebx, ebx
je 0x140017771
cmp rdi, 0x28
ja 0x1400176e5
mov r8d, edi
lea rdx, str.SUBSYS_12021462
lea rcx, [0x140256e54]
call fcn.1401679c0
jmp 0x14001771a
xor eax, eax
mov qword [0x140256e54], rax
mov qword [0x140256e5c], rax
mov qword [0x140256e64], rax
mov qword [0x140256e6c], rax
mov qword [0x140256e74], rax
call fcn.14016fbd8
mov dword [rax], 0x22
call fcn.14016ae3c
test ebx, ebx
je 0x140017771
cmp rdi, 0x28
ja 0x14001773c
mov r8, rdi
lea rdx, str.SUBSYS_7A921462
lea rcx, [0x140256ea8]
call fcn.1401679c0
jmp 0x140017771
xor eax, eax
mov qword [0x140256ea8], rax
mov qword [0x140256eb0], rax
mov qword [0x140256eb8], rax
mov qword [0x140256ec0], rax
mov qword [0x140256ec8], rax
call fcn.14016fbd8
mov dword [rax], 0x22
call fcn.14016ae3c
mov dword [0x140256ef8], ebx
test ebx, ebx
je 0x1400177ce
cmp rdi, 0x28
ja 0x140017799
mov r8, rdi
lea rdx, str.SUBSYS_B9121462
lea rcx, [0x140256efc]
call fcn.1401679c0
jmp 0x1400177ce
xor eax, eax
mov qword [0x140256efc], rax
mov qword [0x140256f04], rax
mov qword [0x140256f0c], rax
mov qword [0x140256f14], rax
mov qword [0x140256f1c], rax
call fcn.14016fbd8
mov dword [rax], 0x22
call fcn.14016ae3c
mov dword [0x140256f4c], ebx
test ebx, ebx
je 0x14001782b
cmp rdi, 0x28
ja 0x1400177f6
mov r8, rdi
lea rdx, str.SUBSYS_121C1462
lea rcx, [0x140256f50]
call fcn.1401679c0
jmp 0x14001782b
xor eax, eax
mov qword [0x140256f50], rax
mov qword [0x140256f58], rax
mov qword [0x140256f60], rax
mov qword [0x140256f68], rax
mov qword [0x140256f70], rax
call fcn.14016fbd8
mov dword [rax], 0x22
call fcn.14016ae3c
mov edx, 0x24
mov dword [0x140256fa0], ebx
lea rcx, str.SUBSYS_30001A56
call fcn.14016b024
mov rbx, rax
add ebx, ebx
mov r8d, ebx
je 0x14001789c
cmp r8, 0x28
ja 0x140017867
lea rdx, str.SUBSYS_30001A56
lea rcx, [0x140256fa4]
call fcn.1401679c0
jmp 0x14001789c
xor eax, eax
mov qword [0x140256fa4], rax
mov qword [0x140256fac], rax
mov qword [0x140256fb4], rax
mov qword [0x140256fbc], rax
mov qword [0x140256fc4], rax
call fcn.14016fbd8
mov dword [rax], 0x22
call fcn.14016ae3c
lea rax, [rsp + 0x48]
mov dword [0x140256ff4], ebx
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesIntel_Connectivity_Network_ServiceSLibCFG
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001792c
mov rcx, qword [rsp + 0x48]
lea rax, [0x140257048]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [0x140256ff8]
mov dword [0x140257048], 0x46
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.MultiGig_ID
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140017920
cmp dword [rsp + 0x40], 1
jne 0x140017920
mov dword [reloc.OLEAUT32.dll_SysStringLen], 7
jmp 0x14001793d
mov dword [0x140257048], 0
jmp 0x14001793d
lea rdx, str.__Unable_to_open_SLibCFG_Registry_
mov ecx, 2
call fcn.140013600
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14001794d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [0x140257058], 0
jne 0x140017978
call fcn.140017990
test al, al
jne 0x140017978
lea r8, str.enum_initHwLookUpTbl
mov ecx, 2
lea rdx, str._s:_SetupApi.DLL_failed_to_load
call fcn.140013600
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret