Function at 0x18002679c
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
mov qword [rax + 0x20], r15
push rbp
lea rbp, [rax - 0x188]
sub rsp, 0x280
mov rax, qword [0x18008a480]
xor rax, rsp
mov qword [rbp + 0x170], rax
and qword [rsp + 0x50], 0
lea r12, [0x18003b390]
test r12, r12
je 0x180046878
lea rax, [rsp + 0x48]
mov rdi, 0xffffffff80000002
lea rdx, [0x180035580]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
je 0x18003a2ae
lea rax, [rsp + 0x48]
lea rdx, [0x180035610]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
je 0x18003a2ae
xor ebx, ebx
lea rcx, [0x18008ac00]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_AcquireSRWLockExclusive]
lea rcx, [0x18008ac00]
mov dword [0x18008a108], ebx
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_ReleaseSRWLockExclusive]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.180001000
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov r15, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov rcx, qword [rsp + 0x48]
xor edi, edi
lea r9, [rsp + 0x40]
and qword [rsp + 0x38], rdi
and qword [rsp + 0x30], rdi
and qword [rsp + 0x28], rdi
and qword [rsp + 0x20], rdi
lea r8, [rsp + 0x60]
xor edx, edx
mov dword [rsp + 0x40], 0x105
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
test eax, eax
jne 0x18003a385
lea r15, [0x18008a130]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x180046954
mov rcx, qword [rsp + 0x50]
mov rdx, r12
call fcn.18003a780
mov ebx, eax
test eax, eax
jne 0x180046883
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x48]
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
inc edi
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x60]
mov edx, edi
mov dword [rsp + 0x40], 0x105
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
test eax, eax
je 0x18003a2f2
jmp 0x18003a385
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
jmp 0x180026848
mov eax, 0x57
jmp 0x18002686a
mov rcx, qword [0x18008a130]
cmp rcx, r15
je 0x1800468b6
test dword [rcx + 0x1c], 0x400
je 0x1800468b6
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x60]
lea r8, [0x180082770]
mov edx, reloc.WS2_32.dll_select
mov dword [rsp + 0x20], eax
call fcn.180058df4
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
cmp ebx, 0x32
jne 0x1800468ce
xor ebx, ebx
jmp 0x18003a341
mov rcx, qword [0x18008abf8]
lea rdx, [0x18004d180]
call qword [sym.imp.ntdll.dll_EtwEventEnabled]
test al, al
je 0x1800468fa
lea r8, [rsp + 0x60]
lea rdx, [0x18004d180]
mov r9d, ebx
call fcn.180065aa8
prefetchw byte [0x18008a010]
mov eax, dword [0x18008a010]
mov edx, 0x10000
mov ecx, eax
or ecx, edx
lock cmpxchg dword [0x18008a010], ecx
jne 0x18004690c
test edx, eax
jne 0x18004694a
mov rcx, qword [0x18008abf8]
lea rdx, [0x18004d170]
call qword [sym.imp.ntdll.dll_EtwEventEnabled]
test al, al
je 0x18004694a
lea r8, [rsp + 0x60]
lea rdx, [0x18004d170]
mov r9d, ebx
call fcn.180065aa8
mov ebx, 0x2564
jmp 0x18003a385
mov rcx, qword [0x18008a130]
cmp rcx, r15
je 0x18003a385
test dword [rcx + 0x1c], 0x400
je 0x18003a385
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x60]
lea r8, [0x180082770]
mov edx, send
mov dword [rsp + 0x20], eax
call fcn.180058df4
nop
jmp 0x18003a385