Function at 0x14012a1c0
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x270
mov rax, qword [0x140212c80]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rsi, qword [rsp + 0x290]
xor ebx, ebx
mov rax, qword [rsi]
mov rcx, qword [rax + 0x128]
test rcx, rcx
je 0x14012a211
call fcn.140129100
mov rbx, rax
test rax, rax
je 0x14012a33c
test dword [rsi + 0x28], 0x100
je 0x14012a243
test rbx, rbx
je 0x14012a22f
mov rax, qword [0x140212a88]
mov rcx, rbx
call qword [case.0x1400cc851.0]
lea rcx, str.CARES_HOSTS
call fcn.140161b3c
mov rcx, rax
jmp 0x14012a32f
test rbx, rbx
jne 0x14012a350
mov byte [rsp + 0x40], bl
call fcn.140126c60
cmp eax, 3
jne 0x14012a2e6
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SystemCurrentControlSetServicesTcpipParameters
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14012a2fb
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.DatabasePath
lea rax, [rsp + 0x150]
mov dword [rsp + 0x30], 0x104
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov r8d, 0x104
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14012a2fb
cmp eax, 2
jne 0x14012a346
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea rcx, [rsp + 0x40]
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x14012a303
mov eax, dword [str.hosts]
mov dword [rcx], eax
movzx eax, word [0x1401aa8ac]
mov word [rcx + 4], ax
movzx eax, byte [0x1401aa8ae]
mov byte [rcx + 6], al
lea rcx, [rsp + 0x40]
call fcn.140129100
mov rbx, rax
test rax, rax
jne 0x14012a350
mov eax, reloc.WS2_32.dll_ntohs
jmp 0x14012a43c
mov eax, 4
jmp 0x14012a43c
lea rdx, [0x1401aa8b0]
mov qword [rsp + 0x298], rbp
mov rcx, rbx
call fcn.14015bbac
mov rbp, rax
test rax, rax
jne 0x14012a39b
call qword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
je 0x14012a394
cmp eax, 1
je 0x14012a394
mov rax, qword [0x140212a88]
lea edi, [rbp + 0xe]
mov rcx, rbx
call qword [case.0x1400cc851.0]
jmp 0x14012a3d7
mov edi, 4
jmp 0x14012a3c3
mov rax, qword [rsi + 0x50]
lea r9, [rsi + 0x28]
movzx r8d, word [rsi + 0x10]
mov rcx, rbp
mov rdx, qword [rsi + 8]
mov qword [rsp + 0x20], rax
call fcn.14012e810
mov rcx, rbp
mov edi, eax
call fcn.140154674
mov rax, qword [0x140212a88]
mov rcx, rbx
call qword [case.0x1400cc851.0]
test edi, edi
je 0x14012a432
mov rbx, qword [rsi + 8]
test rbx, rbx
je 0x14012a432
lea rdx, str.localhost
mov rcx, rbx
call fcn.14015ed60
test eax, eax
je 0x14012a41c
mov rcx, rbx
call fcn.140129190
cmp rax, 0xa
jb 0x14012a432
lea rcx, [rbx - 0xa]
add rcx, rax
lea rdx, str..localhost
call fcn.14015ed60
test eax, eax
jne 0x14012a432
mov rbx, qword [rsi + 8]
mov r9, qword [rsi + 0x50]
lea r8, [rsi + 0x28]
movzx edx, word [rsi + 0x10]
mov rcx, rbx
call fcn.14012ed00
jmp 0x14012a434
mov eax, edi
mov rbp, qword [rsp + 0x298]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140133600
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x270
pop r14
pop rdi
pop rsi
ret