Function at 0x1601981f8
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
mov eax, 0x1450
call fcn.160072500
sub rsp, rax
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x160270bd8]
xor rax, rsp
mov qword [rsp + 0x1440], rax
mov r14, r8
mov rbx, rdx
mov rdi, rcx
xor r15d, r15d
mov esi, r15d
mov dword [rsp + 0x34], r15d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, qword [rdx + 8]
mov rcx, qword [rcx + 0xb0]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x160198277
jle 0x160198272
movzx eax, ax
or eax, 0x80070000
jmp 0x160198651
lea rcx, [rsp + 0x38]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
mov eax, dword [rsp + 0x34]
sub eax, 1
je 0x1601982fa
cmp eax, 3
je 0x1601982a6
lea rcx, [rsp + 0x38]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, 1
jmp 0x160198651
mov dword [rsp + 0x30], r15d
lea r8, [rsp + 0x30]
mov rdx, qword [rbx + 8]
mov rcx, rdi
call fcn.16005a9b0
test eax, eax
jne 0x1601982e7
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x1601982d5
movzx ebx, ax
or ebx, 0x80070000
lea rcx, [rsp + 0x38]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, ebx
jmp 0x160198651
mov edx, dword [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.160140b8c
jmp 0x160198624
lea rax, [rsp + 0x3f8]
mov qword [rsp + 0x3e8], rax
mov qword [rsp + 0x3f0], 0x401
mov word [rsp + 0x3f8], r15w
lea rax, fcn.160065ac0
mov qword [rsp + 0x3e0], rax
lea r8, [rsp + 0x3e0]
mov rdx, qword [rbx + 8]
mov rcx, rdi
call fcn.16005a7b0
mov rdx, rbx
call fcn.16019870c
test eax, eax
je 0x160198604
mov dword [rsp + 0x148], r15d
lea rax, [rsp + 0x170]
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x168], CreateErrorInfo
mov word [rsp + 0x170], r15w
lea rax, fcn.160019c60
mov qword [rsp + 0x158], rax
lea rax, [0x1601bd290]
mov qword [rsp + 0x140], rax
mov dword [rsp + 0x318], r15d
or r8d, 0xffffffff
mov rdx, qword [rsp + 0x3e8]
lea rcx, [rsp + 0x140]
call fcn.160027df8
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x140]
call fcn.160027fb8
mov rdx, rax
lea rcx, [rsp + 0xe0]
call fcn.160001e94
nop
lea rdx, [rsp + 0x1420]
lea rcx, [rsp + 0x140]
call fcn.160026fdc
mov rdx, rax
lea rcx, [rsp + 0x380]
call fcn.160001e94
nop
lea rax, [rsp + 0x98]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], 0x21
mov word [rsp + 0x98], r15w
lea rax, fcn.16003df60
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x140]
call fcn.160027930
mov ebx, 1
cmp word [rsp + 0x2f8], bx
jne 0x160198489
lea rdx, [0x160205204]
lea rcx, [rsp + 0x320]
call fcn.160197874
mov esi, ebx
lea rdx, [rsp + 0x320]
lea rcx, [rsp + 0x380]
call fcn.160001e38
test eax, eax
mov dil, bl
jne 0x16019848c
mov dil, r15b
test bl, sil
je 0x16019849e
lea rcx, [rsp + 0x320]
call fcn.16003dfc4
test dil, dil
je 0x1601985be
lea rax, [0x1601bbdf0]
mov qword [rsp + 0xc00], rax
lea rax, [rsp + 0xc18]
mov qword [rsp + 0xc08], rax
mov dword [rsp + 0xc10], 0x401
lea rdx, str.http:__
lea rcx, [rsp + 0xc00]
call fcn.1600adab4
lea rax, fcn.160065ac0
mov qword [rsp + 0xc00], rax
mov rax, qword [rsp + 0x3e0]
or r9d, 0xffffffff
xor r8d, r8d
mov rdx, qword [rsp + 0xc08]
lea rcx, [rsp + 0x3e0]
mov rax, qword [rax + 0x20]
call qword [case.0x16003fc5a.0]
nop
lea rcx, [rsp + 0xc00]
call fcn.160065ae4
mov dword [rsp + 0x30], reloc.OLEAUT32.dll_SafeArrayGetDim
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x1420]
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_GetComputerNameW]
or r9d, 0xffffffff
mov r8d, dword [rsp + 0x3f4]
lea rcx, [rsp + 0x3e0]
test eax, eax
mov rax, qword [rsp + 0x3e0]
je 0x16019857a
lea rdx, [rsp + 0x1420]
mov rax, qword [rax + 0x20]
call qword [case.0x16003fc5a.0]
jmp 0x16019858b
lea rdx, str.localhost
mov rax, qword [rax + 0x18]
call qword [case.0x16003fc5a.0]
mov rax, qword [rsp + 0x3e0]
mov r9d, dword [rsp + 0xf4]
mov r8d, dword [rsp + 0x3f4]
mov rdx, qword [rsp + 0xe8]
lea rcx, [rsp + 0x3e0]
mov rax, qword [rax + 0x20]
call qword [case.0x16003fc5a.0]
nop
lea rcx, [rsp + 0x80]
call fcn.16003dfc4
nop
lea rcx, [rsp + 0x380]
call fcn.16003dfc4
nop
lea rcx, [rsp + 0xe0]
call fcn.16003dfc4
nop
lea rax, [0x1601bbbd8]
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x158]
call fcn.160019cb0
mov rdx, qword [rsp + 0x3e8]
lea rcx, [rsp + 0x38]
call fcn.1600663cc
nop
lea rcx, [rsp + 0x3e0]
call fcn.160065ae4
mov rcx, r14
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov rdx, r14
lea rcx, [rsp + 0x38]
call fcn.160144998
mov ebx, eax
lea rcx, [rsp + 0x38]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, ebx
jmp 0x160198651
mov rcx, qword [rsp + 0x1440]
xor rcx, rsp
call fcn.16006e590
add rsp, 0x1450
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret