Function at 0x140004b5c
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x228]
sub rsp, 0x320
mov rax, qword [0x140162470]
xor rax, rsp
mov qword [rbp + 0x210], rax
xor esi, esi
mov edx, 0x72f70a21
mov ecx, 0x8d23bf0e
mov r8d, 0x327c51d9
mov dword [rsp + 0x44], esi
call fcn.140001078
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x140004bfd
lea r8d, [rsi + 0x17]
lea rcx, [0x140163f2a]
mov edx, 0xc452798c
call section..text
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140004bfd
lea r8, [rsp + 0x44]
lea rdx, [rsp + 0x74]
lea rcx, [rsp + 0x70]
call rax
mov eax, dword [rsp + 0x44]
and eax, 0xfffffff
mov dword [rsp + 0x44], eax
jmp 0x140004c01
mov eax, dword [rsp + 0x44]
cmp eax, 0x55f0
jb 0x140004d9a
mov edx, 0xb1ff5180
mov ecx, 0x4e2be45f
mov r8d, 0xf1740a53
call fcn.140001078
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rax
lea rax, [rsp + 0x48]
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140004d9a
mov dword [rsp + 0x40], 0x40
mov edi, esi
xor edx, edx
jmp 0x140004d5a
lea rax, [rsp + 0x58]
lea rdx, [rbp - 0x80]
mov r9d, 0x2001f
xor r8d, r8d
inc edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140004d58
mov edx, 0x4d417a2d
mov ecx, 0xb295cfbe
mov r8d, 0xdca21d0
mov dword [rsp + 0x40], 0x208
call fcn.140001078
mov rcx, qword [rsp + 0x58]
mov rdx, rax
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rax, [rbp]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], si
jne 0x140004cd2
cmp rbx, 0xc
jbe 0x140004d4d
mov edx, 0x90addd17
mov ecx, 0x6f7968a4
mov r8d, 0xd02686e8
call fcn.140001078
lea rcx, [rbp + rbx*2 - 0x18]
mov rdx, rax
call fcn.1400e85e8
test eax, eax
jne 0x140004d4d
mov edx, 0xd36de61c
mov ecx, 0x2cb95243
mov r8d, 0x93e6bde5
mov dword [rsp + 0x50], 1
call fcn.140001078
mov rcx, qword [rsp + 0x58]
mov rdx, rax
lea rax, [rsp + 0x50]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, edi
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
lea r8, [rbp - 0x80]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov rcx, qword [rsp + 0x48]
test eax, eax
je 0x140004c5d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [0x140174650]
cmp qword [rbx + 0x10], rsi
je 0x140004dd0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140004ddc
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140004ddc
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.USER32.dll_SetActiveWindow]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x140004ddc
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140018798
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.1400e7da0
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret