Function at 0x140071570
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x120
mov qword [rsp + 0x100], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov r12, r8
mov rbp, rdx
mov rsi, rcx
lea r14, vtable.StringStorage.0
mov qword [rsp + 0x70], r14
mov ecx, 8
call fcn.1400797fc
xor r13d, r13d
test rax, rax
je 0x1400715c7
lea rcx, [rsp + 0x78]
mov qword [rax], rcx
jmp 0x1400715ca
mov rax, r13
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x90], r13
mov qword [rsp + 0x98], r13
mov qword [rsp + 0xa0], r13
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x1400d1b20]
repne scasw ax, word [rdi]
not rcx
mov rdx, rcx
xor r8d, r8d
lea rcx, [rsp + 0x78]
call fcn.14002bfc0
mov rdx, qword [rsp + 0x98]
mov rbx, rdx
mov rdi, qword [rsp + 0x90]
sub rbx, rdi
sar rbx, 1
add rbx, rbx
cmp rdi, rdx
jbe 0x140071630
call fcn.1400796a8
mov rax, qword [rsp + 0x78]
test rax, rax
jne 0x140071644
call fcn.1400796a8
mov rdx, r13
jmp 0x140071647
mov rdx, qword [rax]
cmp rdi, qword [rdx + 0x20]
jb 0x140071652
call fcn.1400796a8
mov r8, rbx
lea rdx, [0x1400d1b20]
mov rcx, rdi
call fcn.14007ad70
nop
mov qword [rsp + 0x38], r14
mov ecx, 8
call fcn.1400797fc
test rax, rax
je 0x140071683
lea rcx, [rsp + 0x40]
mov qword [rax], rcx
jmp 0x140071686
mov rax, r13
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r13
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x1400d1b20]
repne scasw ax, word [rdi]
not rcx
mov rdx, rcx
xor r8d, r8d
lea rcx, [rsp + 0x40]
call fcn.14002bfc0
mov rdx, qword [rsp + 0x60]
mov rbx, rdx
mov rdi, qword [rsp + 0x58]
sub rbx, rdi
sar rbx, 1
add rbx, rbx
cmp rdi, rdx
jbe 0x1400716dd
call fcn.1400796a8
mov rax, qword [rsp + 0x40]
test rax, rax
jne 0x1400716f1
call fcn.1400796a8
mov rdx, r13
jmp 0x1400716f4
mov rdx, qword [rax]
cmp rdi, qword [rdx + 0x20]
jb 0x1400716ff
call fcn.1400796a8
mov r8, rbx
lea rdx, [0x1400d1b20]
mov rcx, rdi
call fcn.14007ad70
nop
lea r8, [rsp + 0x70]
mov rdx, rbp
mov rcx, rsi
call fcn.140070400
lea r8, [rsp + 0x38]
mov rdx, rbp
mov rcx, rsi
call fcn.1400705a0
mov rbx, qword [rsp + 0x90]
cmp rbx, qword [rsp + 0x98]
jbe 0x140071749
call fcn.1400796a8
mov rax, qword [rsp + 0x78]
test rax, rax
jne 0x14007175d
call fcn.1400796a8
mov rdx, r13
jmp 0x140071760
mov rdx, qword [rax]
cmp rbx, qword [rdx + 0x20]
jb 0x14007176b
call fcn.1400796a8
mov rdi, qword [rsi + 8]
lea rsi, vtable.RegistryKey.0
mov qword [rsp + 0xb0], rsi
lea rcx, [rsp + 0xc8]
call fcn.14002e130
nop
mov rax, qword [rdi + 8]
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xb8], r13
mov rdx, rbx
lea rcx, [rsp + 0xc8]
mov rax, qword [rsp + 0xc8]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdx, qword [rsp + 0xf0]
mov rdi, qword [rsp + 0xe8]
sub rdx, rdi
sar rdx, 1
cmp rdx, 1
je 0x14007180e
mov edx, 0x5c
lea rcx, [rsp + 0xc8]
call fcn.14002e3d0
test al, al
jne 0x140071806
lea rdx, [0x1400d26a4]
lea rcx, [rsp + 0xc8]
call fcn.14002e5d0
mov rdi, qword [rsp + 0xe8]
jmp 0x14007180e
mov rdi, qword [rsp + 0xe8]
cmp rdi, qword [rsp + 0xf0]
jbe 0x14007181d
call fcn.1400796a8
mov rax, qword [rsp + 0xd0]
test rax, rax
jne 0x140071834
call fcn.1400796a8
mov r11, r13
jmp 0x140071837
mov r11, qword [rax]
cmp rdi, qword [r11 + 0x20]
jb 0x140071842
call fcn.1400796a8
lea r8, [rsp + 0xb8]
mov rdx, rdi
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
nop
mov rdi, qword [rsp + 0x58]
cmp rdi, qword [rsp + 0x60]
jbe 0x14007186d
call fcn.1400796a8
mov rax, qword [rsp + 0x40]
test rax, rax
jne 0x140071881
call fcn.1400796a8
mov rdx, r13
jmp 0x140071884
mov rdx, qword [rax]
cmp rdi, qword [rdx + 0x20]
jb 0x14007188f
call fcn.1400796a8
mov rcx, qword [rsp + 0xb8]
test rcx, rcx
jne 0x1400718a1
xor dil, dil
jmp 0x1400718e5
mov dword [rsp + 0x30], ntohs
mov dword [rsp + 0x168], 8
lea rax, [rsp + 0x168]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete dil
mov rcx, qword [rsp + 0xb8]
mov qword [rsp + 0xb0], rsi
test rcx, rcx
je 0x14007190a
cmp rcx, qword [rsp + 0xc0]
je 0x140071902
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0xb8], r13
mov qword [rsp + 0xc8], r14
mov rcx, qword [rsp + 0xe8]
test rcx, rcx
je 0x140071924
call fcn.140078e60
mov qword [rsp + 0xe8], r13
mov qword [rsp + 0xf0], r13
mov qword [rsp + 0xf8], r13
mov rcx, qword [rsp + 0xd0]
call fcn.140078e60
nop
mov qword [rsp + 0x38], r14
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14007195e
call fcn.140078e60
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r13
mov rcx, qword [rsp + 0x40]
call fcn.140078e60
nop
mov qword [rsp + 0x70], r14
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x14007198f
call fcn.140078e60
mov qword [rsp + 0x90], r13
mov qword [rsp + 0x98], r13
mov qword [rsp + 0xa0], r13
mov rcx, qword [rsp + 0x78]
call fcn.140078e60
mov al, dil
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret