Function at 0x18007fd70
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x7c0]
sub rsp, 0x8c0
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rsp + 0x8f0], rbx
mov rax, qword [0x180139b10]
xor rax, rsp
mov qword [rbp + 0x7b0], rax
mov r14, r9
xor eax, eax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
mov r9d, 0x20019
mov r8, rdx
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x68]
call fcn.18007faf0
nop
mov dword [rbp - 0x78], 0x400
mov dword [rbp - 0x74], 0x400
xor r15d, r15d
mov dword [rbp - 0x70], r15d
mov esi, r15d
mov rax, qword [rbp - 0x68]
lea rcx, [rbp - 0x74]
mov qword [rsp + 0x38], rcx
lea rcx, [rbp - 0x50]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x70]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x78]
lea r8, [rbp + 0x3b0]
xor edx, edx
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
or rdi, 0xffffffffffffffff
test eax, eax
jne 0x18007ffa6
cmp dword [rbp - 0x70], 1
jne 0x18007ff4c
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r15
mov word [rsp + 0x40], r15w
cmp word [rbp + 0x3b0], ax
jne 0x18007fe63
mov r8, r15
jmp 0x18007fe7b
lea rax, [rbp + 0x3b0]
mov r8, rdi
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x18007fe70
lea rdx, [rbp + 0x3b0]
lea rcx, [rsp + 0x40]
call fcn.180003b30
nop
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], r15
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], r15
mov word [rsp + 0x60], r15w
cmp word [rbp - 0x50], 0
jne 0x18007feb7
mov r8, r15
jmp 0x18007fecb
lea rax, [rbp - 0x50]
mov r8, rdi
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x18007fec0
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x60]
call fcn.180003b30
nop
mov rcx, qword [r14 + 0x18]
test rcx, rcx
je 0x18007ffa0
mov rax, qword [rcx]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x40]
call qword [rax + select]
test al, al
sete bl
cmp qword [rsp + 0x78], 8
jb 0x18007ff0e
mov rcx, qword [rsp + 0x60]
call fcn.18007d480
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], r15
mov word [rsp + 0x60], r15w
cmp qword [rsp + 0x58], 8
jb 0x18007ff34
mov rcx, qword [rsp + 0x40]
call fcn.18007d480
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r15
mov word [rsp + 0x40], r15w
test bl, bl
jne 0x18007ff9b
mov dword [rbp - 0x78], 0x400
mov dword [rbp - 0x74], 0x400
inc esi
mov rax, qword [rbp - 0x68]
lea rcx, [rbp - 0x74]
mov qword [rsp + 0x38], rcx
lea rcx, [rbp - 0x50]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x70]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x78]
lea r8, [rbp + 0x3b0]
mov edx, esi
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
jmp 0x18007fe25
xor sil, sil
jmp 0x18007ffa9
call fcn.180096630
nop
mov sil, 1
mov rbx, qword [rbp - 0x60]
test rbx, rbx
je 0x18007ffcf
lock dec dword [rbx + 8]
jne 0x18007ffcf
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx]
lock dec dword [rbx + 0xc]
jne 0x18007ffcf
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + reloc.WS2_32.dll_htonl]
movzx eax, sil
mov rcx, qword [rbp + 0x7b0]
xor rcx, rsp
call fcn.18009b480
mov rbx, qword [rsp + 0x8f0]
add rsp, 0x8c0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret