Function at 0x1403f3010
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x140601e40]
xor rax, rsp
mov qword [rbp + 0x60], rax
xor edi, edi
mov rsi, rcx
mov r14d, edi
mov qword [rsp + 0x40], rdi
mov qword [rcx], rdi
call fcn.1403f7de0
cmp eax, 3
je 0x1403f3054
xor eax, eax
jmp 0x1403f3366
lea rax, [rsp + 0x48]
mov qword [rsp + 0x198], rbx
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetServicesTcpipParameters
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1403f30dd
mov rcx, qword [rsp + 0x48]
lea rdx, str.SearchList
mov r8, rsi
call fcn.1403f2f40
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x40]
lea rdx, str.Domain
call fcn.1403f2f40
test eax, eax
je 0x1403f30d2
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call fcn.1403f25a0
mov rcx, qword [rsp + 0x40]
call qword [0x14060c6f8]
mov qword [rsp + 0x40], rdi
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x48]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwarePoliciesMicrosoftWindows_NTDNSClient
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1403f314a
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x40]
lea rdx, str.SearchList
call fcn.1403f2f40
test eax, eax
je 0x1403f313f
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call fcn.1403f25a0
mov rcx, qword [rsp + 0x40]
call qword [0x14060c6f8]
mov qword [rsp + 0x40], rdi
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x48]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwarePoliciesMicrosoftSystemDNSClient
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1403f31b7
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x40]
lea rdx, str.PrimaryDNSSuffix
call fcn.1403f2f40
test eax, eax
je 0x1403f31ac
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call fcn.1403f25a0
mov rcx, qword [rsp + 0x40]
call qword [0x14060c6f8]
mov qword [rsp + 0x40], rdi
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x48]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SystemCurrentControlSetServicesTcpipParametersInterfaces
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1403f3355
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x38], rdi
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], rdi
xor edx, edx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x50], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x1403f334a
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
inc r14d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1403f330e
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x40]
lea rdx, str.SearchList
call fcn.1403f2f40
test eax, eax
je 0x1403f3295
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call fcn.1403f25a0
mov rcx, qword [rsp + 0x40]
call qword [0x14060c6f8]
mov qword [rsp + 0x40], rdi
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x40]
lea rdx, str.Domain
call fcn.1403f2f40
test eax, eax
je 0x1403f32cc
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call fcn.1403f25a0
mov rcx, qword [rsp + 0x40]
call qword [0x14060c6f8]
mov qword [rsp + 0x40], rdi
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x40]
lea rdx, str.DhcpDomain
call fcn.1403f2f40
test eax, eax
je 0x1403f3303
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call fcn.1403f25a0
mov rcx, qword [rsp + 0x40]
call qword [0x14060c6f8]
mov qword [rsp + 0x40], rdi
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x38], rdi
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], rdi
mov edx, r14d
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x50], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x1403f3230
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsi], rdi
mov rbx, qword [rsp + 0x198]
setne dil
mov eax, edi
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.140284180
mov rsi, qword [rsp + 0x1a0]
add rsp, 0x170
pop r14
pop rdi
pop rbp
ret