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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x14012bc80]
xor rax, rsp
mov qword [rbp + 0xa0], rax
xor edi, edi
lea rax, [rsp + 0x68]
mov r15, rcx
lea rdx, str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x70], edi
mov dword [rsp + 0x60], edi
mov esi, edi
mov dword [rsp + 0x74], 0x104
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400c1a60
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x1400c1a55
cmp dword [rsp + 0x60], 1
jb 0x1400c194c
mov eax, dword [rsp + 0x70]
inc eax
mov ecx, eax
mov dword [rsp + 0x64], eax
call fcn.140010258
mov rsi, rax
mov ebx, edi
cmp dword [rsp + 0x60], ebx
jbe 0x1400c1a48
nop dword [rax + rax]
mov rcx, qword [rsp + 0x68]
lea rax, [rbp - 0x78]
lea r9, [rsp + 0x64]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov r8, rsi
mov edx, ebx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x1400c1a3c
mov rcx, qword [rsp + 0x68]
inc dword [rsp + 0x64]
lea rax, [rsp + 0x78]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400c1a3c
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x74]
lea r9, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x70]
lea rdx, str.NetCfgInstanceId
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400c1a31
lea rdx, [rbp - 0x70]
xor r8d, r8d
mov rcx, r15
call fcn.14002a750
test eax, eax
jne 0x1400c1a31
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x74]
lea r9, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x7c]
lea rdx, str.Characteristics
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1400c1a89
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x1400c1960
test rsi, rsi
je 0x1400c1a55
mov rcx, rsi
call fcn.140064760
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.14000c9f0
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret
mov eax, dword [rbp - 0x7c]
mov ebx, edi
test al, 4
jne 0x1400c1a9c
bt eax, 0xf
jae 0x1400c1aa1
test al, 1
je 0x1400c1aa1
mov ebx, 1
test rsi, rsi
je 0x1400c1aae
mov rcx, rsi
call fcn.140064760
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
setne dil
mov eax, edi
jmp 0x1400c1a62