Function at 0x16005c2fc
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r13
lea rbp, [rax - 0x658]
sub rsp, 0x740
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x160270bd8]
xor rax, rsp
mov qword [rbp + 0x630], rax
mov rbx, rdx
xor edi, edi
mov qword [rsp + 0x58], rdi
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.16005e8e8
xor edx, edx
mov rcx, rbx
call fcn.160034ad4
mov rdx, rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov r13, 0xffffffff80000000
mov rcx, r13
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
mov esi, 0x80070000
test eax, eax
jle 0x16005c389
movzx ebx, ax
or ebx, esi
test ebx, ebx
jns 0x16005c3cd
cmp ebx, 0x80070002
setne bl
mov rcx, qword [rsp + 0x58]
test rcx, rcx
jne 0x16005c495
mov al, bl
mov rcx, qword [rbp + 0x630]
xor rcx, rsp
call fcn.16006e590
lea r11, [rsp + 0x740]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop rdi
pop rbp
ret
mov dword [rsp + 0x40], 0x208
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
mov ebx, eax
test eax, eax
jne 0x16009d404
test ebx, ebx
js 0x16005c38d
lea r9, [rbp + 0x10]
lea r8, str._wsCLSID
mov edx, 0x104
lea rcx, [rbp + 0x420]
call fcn.160059e34
mov ebx, eax
test eax, eax
js 0x16005c38d
mov qword [rsp + 0x50], rdi
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.16005e8e8
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp + 0x420]
mov rcx, r13
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jle 0x16005c47a
movzx ebx, ax
or ebx, esi
test ebx, ebx
jns 0x16009d418
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x16005c38d
jmp 0x16009d52e
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x16005c3a4
mov word [rbp + 0x10], di
jle 0x16005c40d
movzx ebx, ax
or ebx, esi
jmp 0x16005c40d
mov dword [rsp + 0x40], 0x4e
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
mov ebx, eax
test eax, eax
je 0x16009d461
mov word [rsp + 0x70], di
jle 0x16009d461
movzx ebx, ax
or ebx, esi
test ebx, ebx
js 0x16005c482
lea r9, [rsp + 0x70]
lea r8, str.CLSID_wsPersistentHandler
mov edx, 0xff
lea rcx, [rbp + 0x220]
call fcn.160059e34
mov ebx, eax
test eax, eax
js 0x16005c482
mov qword [rsp + 0x48], rdi
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.16005e8e8
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp + 0x220]
mov rcx, r13
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jle 0x16009d4cf
movzx ebx, ax
or ebx, esi
test ebx, ebx
js 0x16009d514
mov dword [rsp + 0x40], 0x4e
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
mov ebx, eax
test eax, eax
jle 0x16009d514
movzx ebx, ax
or ebx, esi
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x16005c482
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
jmp 0x16005c482
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
jmp 0x16005c38d