Function at 0x18007f150
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.18007eed0
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 0x18007f386
cmp dword [rbp - 0x70], 1
jne 0x18007f32c
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 0x18007f243
mov r8, r15
jmp 0x18007f25b
lea rax, [rbp + 0x3b0]
mov r8, rdi
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x18007f250
lea rdx, [rbp + 0x3b0]
lea rcx, [rsp + 0x40]
call fcn.180003b20
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 0x18007f297
mov r8, r15
jmp 0x18007f2ab
lea rax, [rbp - 0x50]
mov r8, rdi
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x18007f2a0
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x60]
call fcn.180003b20
nop
mov rcx, qword [r14 + 0x18]
test rcx, rcx
je 0x18007f380
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 0x18007f2ee
mov rcx, qword [rsp + 0x60]
call fcn.18007c990
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], r15
mov word [rsp + 0x60], r15w
cmp qword [rsp + 0x58], 8
jb 0x18007f314
mov rcx, qword [rsp + 0x40]
call fcn.18007c990
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r15
mov word [rsp + 0x40], r15w
test bl, bl
jne 0x18007f37b
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 0x18007f205
xor sil, sil
jmp 0x18007f389
call fcn.1800959d0
nop
mov sil, 1
mov rbx, qword [rbp - 0x60]
test rbx, rbx
je 0x18007f3af
lock dec dword [rbx + 8]
jne 0x18007f3af
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx]
lock dec dword [rbx + 0xc]
jne 0x18007f3af
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.18009a820
mov rbx, qword [rsp + 0x8f0]
add rsp, 0x8c0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret