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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
lea rbp, [rsp - 0x250]
sub rsp, 0x350
mov rax, qword [0x14004e010]
xor rax, rsp
mov qword [rbp + 0x240], rax
movaps xmm0, xmmword [str.systemCurrentControlSetControlClass4d36e972_e325_11ce_bfc1_08002be10318]
mov rsi, rcx
movaps xmm1, xmmword [0x14003cc70]
lea rcx, [rbp + 0x110]
mov eax, dword [0x14003ccf8]
xor ebx, ebx
movaps xmmword [rbp - 0x30], xmm0
xor edx, edx
movaps xmm0, xmmword [0x14003cc80]
mov r8d, 0x12c
movaps xmmword [rbp - 0x20], xmm1
movaps xmm1, xmmword [0x14003cc90]
movaps xmmword [rbp - 0x10], xmm0
movaps xmm0, xmmword [0x14003cca0]
movaps xmmword [rbp], xmm1
movaps xmm1, xmmword [0x14003ccb0]
movaps xmmword [rbp + 0x10], xmm0
movaps xmm0, xmmword [0x14003ccc0]
movaps xmmword [rbp + 0x20], xmm1
movaps xmm1, xmmword [0x14003ccd0]
movaps xmmword [rbp + 0x30], xmm0
movaps xmm0, xmmword [0x14003cce0]
movaps xmmword [rbp + 0x40], xmm1
movsd xmm1, qword [0x14003ccf0]
mov dword [rbp + 0x68], eax
xor eax, eax
movaps xmmword [rbp + 0x50], xmm0
movsd qword [rbp + 0x60], xmm1
mov dword [rsp + 0x48], 0x64
mov dword [rsp + 0x40], ebx
mov qword [rbp + 0x6c], rax
mov qword [rbp + 0x74], rax
mov qword [rbp + 0x7c], rax
mov qword [rbp + 0x84], rax
mov qword [rbp + 0x8c], rax
mov dword [rbp + 0x94], eax
call fcn.14001c4c0
xor eax, eax
lea r8d, [rbx + 0x64]
xor edx, edx
mov qword [rsp + 0x60], rax
lea rcx, [rbp + 0xa0]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov dword [rbp - 0x68], eax
call fcn.14001c4c0
mov eax, dword [0x14003cd18]
lea rcx, str.GetRegPanID_Enter___n
movups xmm0, xmmword [str.BTHMS_BTHPAN]
mov dword [rbp - 0x48], eax
xor eax, eax
movsd xmm1, qword [0x14003cd10]
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x44], rax
mov dword [rbp - 0x3c], eax
movsd qword [rbp - 0x50], xmm1
call fcn.14000e530
test rsi, rsi
jne 0x140001300
lea rcx, str.GetRegPanID__invalid_parameter_n
call fcn.14000e530
xor eax, eax
jmp 0x14000158f
lea rax, [rsp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140001339
lea rcx, str.GetRegPanID__cant_find_net_class_key_n
call fcn.14000e530
jmp 0x140001547
lea rcx, str.GetRegPanID__find_net_class_key_n
mov qword [rsp + 0x368], rdi
call fcn.14000e530
mov rcx, qword [rsp + 0x50]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rbx
lea r8, [rsp + 0x60]
xor eax, eax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
xor edx, edx
mov qword [rsi], rax
mov edi, ebx
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x40], 0x3c
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140001531
nop
lea r8, [rsp + 0x60]
mov edx, edi
lea rcx, str.GetRegPanID__find_net_class_sub_key__index__d__name__s_n
call fcn.14000e530
lea r8, [rbp - 0x30]
mov edx, 0x96
lea rcx, [rbp + 0x110]
call fcn.14002242c
lea r8, [0x14003cf10]
mov edx, 0x96
lea rcx, [rbp + 0x110]
call fcn.14002242c
lea r8, [rsp + 0x60]
mov edx, 0x96
lea rcx, [rbp + 0x110]
call fcn.14002242c
lea rax, [rsp + 0x58]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x110]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400015cc
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, str.DeviceInstanceID
lea rax, [rbp + 0xa0]
mov dword [rsp + 0x40], 0x64
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140001458
lea rcx, str.GetRegPanID__cant_get_DeviceInstanceID_n
jmp 0x1400014c4
mov r8d, 0xd
lea rdx, [rbp + 0xa0]
lea rcx, [rbp - 0x60]
call fcn.14002250c
test eax, eax
je 0x14000147b
lea rcx, str.GetRegPanID__DeviceInstanceID_doesnt_match_n
jmp 0x1400014c4
lea rdx, [rbp + 0xa0]
lea rcx, str.GetRegPanID__DeviceInstanceID_is__s_n
call fcn.14000e530
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, str.NetCfgInstanceId
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400015b3
lea rcx, str.GetRegPanID__cant_get_NetCfgInstanceId_n
call fcn.14000e530
xor edx, edx
mov dword [rsp + 0x40], 0x3c
mov r8d, 0x12c
lea rcx, [rbp + 0x110]
inc edi
call fcn.14001c4c0
xor edx, edx
lea rcx, [rbp + 0xa0]
lea r8d, [rdx + 0x64]
call fcn.14001c4c0
mov rcx, qword [rsp + 0x50]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rbx
lea r8, [rsp + 0x60]
xor eax, eax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov edx, edi
mov qword [rsi], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140001390
mov edx, edi
lea rcx, str.GetRegPanID__eum_net_class_sub_key_end__index__d_n
call fcn.14000e530
mov rdi, qword [rsp + 0x368]
mov rcx, qword [rsp + 0x50]
cmp rcx, 0xffffffffffffffff
je 0x140001564
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.GetRegPanID__close_hKey_n
call fcn.14000e530
mov rcx, qword [rsp + 0x58]
cmp rcx, 0xffffffffffffffff
je 0x140001581
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.GetRegPanID__close_hKey_n
call fcn.14000e530
lea rcx, str.GetRegPanID_Leave___n
call fcn.14000e530
mov eax, ebx
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.14001a550
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov rdx, rsi
lea rcx, str.GetRegPanID__NetCfgInstanceId_is__s_n
call fcn.14000e530
mov ebx, 1
jmp 0x14000153f
lea r8, [rsp + 0x60]
mov edx, edi
lea rcx, str.GetRegPanID__cant_open_net_class_sub_key__index__d__name__s_n
call fcn.14000e530
jmp 0x14000153f