Function at 0x1400199c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140073058]
xor rax, rsp
mov qword [rbp - 8], rax
mov rax, qword [rcx + 0x60]
xor ebx, ebx
mov rsi, rcx
mov qword [rbp - 0x18], rbx
xor r9d, r9d
mov qword [rbp - 0x20], rax
xor r8d, r8d
xor ecx, ecx
lea edx, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rcx, qword [0x140075e50]
mov qword [rbp - 0x10], rcx
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x20], rbx
je 0x140019d05
test rax, rax
je 0x140019d05
test rcx, rcx
je 0x140019d05
lea rax, [rbp - 0x50]
mov qword [rbp - 0x50], rbx
lea r9d, [rbx + 0x11]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesIBMPMSVCParameters2Type20Notification
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140019d05
cmp qword [rbp - 0x50], rbx
je 0x140019d05
lea rdx, [rbp - 0x44]
mov dword [rbp - 0x48], ebx
mov dword [rbp - 0x44], ebx
call fcn.14001eef0
test eax, eax
je 0x140019d05
mov r9, qword [rbp - 0x18]
lea r8d, [rbx + 4]
mov rcx, qword [rbp - 0x50]
xor edx, edx
mov qword [rsp + 0x98], rdi
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
test eax, eax
jne 0x140019cf3
nop dword [rax]
xor r8d, r8d
lea rdx, [rbp - 0x20]
mov r9d, 0xffffffff
lea ecx, [r8 + 3]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x140019ce9
sub eax, 1
je 0x140019bc2
cmp eax, 1
jne 0x140019cf3
lea rax, [rbp - 0x40]
mov qword [rbp - 0x40], rbx
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rbp - 0x38], rbx
lea rdx, str.SYSTEMCurrentControlSetServicesIBMPMSVCParameters2Type20Notification
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140019b71
mov rcx, qword [rbp - 0x40]
lea rax, [rbp - 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x38]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, str.Type22
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140019b71
mov rcx, qword [rbp - 0x40]
lea rax, [rbp - 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x38]
lea rax, [rbp - 0x48]
xor r8d, r8d
lea rdx, str.Type22
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov edi, ebx
sete dil
jmp 0x140019b73
mov edi, ebx
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x140019b82
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x140019b95
mov rcx, qword [rsi + 0x60]
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x140019cc0
call fcn.140019d30
test al, al
jne 0x140019bad
mov rcx, qword [rsi + 0x60]
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x140019cc0
mov eax, dword [rbp - 0x48]
mov rcx, qword [rbp - 0x10]
mov dword [rbp - 0x44], eax
call qword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x140019cc0
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rax, [rbp - 0x30]
mov qword [rbp - 0x30], rbx
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rbp - 0x28], rbx
lea rdx, str.SYSTEMCurrentControlSetServicesIBMPMSVCParameters2Type20Notification
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140019c5c
mov rcx, qword [rbp - 0x30]
lea rax, [rbp - 0x24]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x28]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, str.Type22
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140019c5c
mov rcx, qword [rbp - 0x30]
lea rax, [rbp - 0x24]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x28]
lea rax, [rbp - 0x48]
xor r8d, r8d
lea rdx, str.Type22
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov edi, ebx
sete dil
jmp 0x140019c5e
mov edi, ebx
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140019c6d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x140019c7d
mov rcx, qword [rsi + 0x60]
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x140019cc0
mov edx, dword [rbp - 0x44]
mov ecx, edx
mov r8d, dword [rbp - 0x48]
mov eax, r8d
shr ecx, 2
shr eax, 2
xor cl, al
test cl, 1
jne 0x140019ca5
shr edx, 3
shr r8d, 3
xor dl, r8b
test dl, 1
je 0x140019cc0
call fcn.140019d30
test al, al
jne 0x140019cba
mov rcx, qword [rsi + 0x60]
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x140019cc0
mov eax, dword [rbp - 0x48]
mov dword [rbp - 0x44], eax
mov r9, qword [rbp - 0x18]
xor edx, edx
mov rcx, qword [rbp - 0x50]
mov dword [rbp - 0x48], ebx
mov dword [rsp + 0x20], 1
lea r8d, [rdx + 4]
call qword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
test eax, eax
je 0x140019ab0
jmp 0x140019cf3
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x98]
mov ecx, ebx
call fcn.1400356bc
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14002a740
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret