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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x1e8
mov rax, qword [0x1401ad1c0]
xor rax, rsp
mov qword [rsp + 0x1d8], rax
mov dword [rsp + 0x64], 0
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x98], 0
mov dword [rsp + 0x78], 0
mov qword [rsp + 0x90], 0
mov dword [rsp + 0x88], Ordinal_266
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [rsp + 0x7c], eax
cmp dword [rsp + 0x7c], 0
jne 0x1401477ae
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [rsp + 0x7c], eax
cmp dword [rsp + 0x7c], 0
jne 0x140147574
cmp dword [rsp + 0x78], 1
jb 0x140147572
mov eax, dword [rsp + 0x98]
add eax, 1
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x68]
mov rcx, rax
call sub.MSVCR110.dll_malloc
mov qword [rsp + 0x90], rax
jmp 0x140147586
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1401477b0
mov dword [rsp + 0x64], 0
jmp 0x14014759b
mov eax, dword [rsp + 0x64]
add eax, 1
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x78]
cmp dword [rsp + 0x64], eax
jae 0x14014778b
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov r8, qword [rsp + 0x90]
mov edx, dword [rsp + 0x64]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [rsp + 0x7c], eax
cmp dword [rsp + 0x7c], 0
jne 0x140147786
mov eax, dword [rsp + 0x68]
add eax, 1
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [rsp + 0x7c], eax
cmp dword [rsp + 0x7c], 0
jne 0x140147786
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xac]
xor r8d, r8d
lea rdx, str.NetCfgInstanceId
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [rsp + 0x7c], eax
cmp dword [rsp + 0x7c], 0
jne 0x140147778
lea rdx, [rsp + 0xc0]
mov rcx, qword [rsp + 0x1f0]
call sub.MSVCR110.dll_strcmp
test eax, eax
jne 0x140147778
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xac]
xor r8d, r8d
lea rdx, str.Characteristics
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [rsp + 0x7c], eax
cmp dword [rsp + 0x7c], 0
jne 0x140147778
mov dword [rsp + 0x1d0], 0
mov eax, dword [rsp + 0xa8]
and eax, 4
test eax, eax
jne 0x140147725
mov eax, dword [rsp + 0xa8]
and eax, 0x8000
test eax, eax
je 0x140147730
mov eax, dword [rsp + 0xa8]
and eax, 1
test eax, eax
je 0x140147730
mov dword [rsp + 0x1d0], 1
cmp qword [rsp + 0x90], 0
je 0x140147748
mov rcx, qword [rsp + 0x90]
call fcn.14007bfb0
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x1d0], 0
je 0x140147774
mov eax, 1
jmp 0x1401477b0
xor eax, eax
jmp 0x1401477b0
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140147590
cmp qword [rsp + 0x90], 0
je 0x1401477a3
mov rcx, qword [rsp + 0x90]
call fcn.14007bfb0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x1d8]
xor rcx, rsp
call fcn.14006b6a0
add rsp, 0x1e8
ret