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, 0xbe41035f
mov ecx, 0x5a895adc
mov r8d, 0xdb383d2f
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, 0xe55c3550
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, 0x2202a8b2
mov ecx, 0xc6caf1c1
mov r8d, 0x477b96e9
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, 0xb3b3780
mov ecx, 0xeff36ebf
mov r8d, 0x6e4209f5
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, 0x873f6740
mov ecx, 0x63f73e5f
mov r8d, 0xe2465937
call fcn.140001078
lea rcx, [rbp + rbx*2 - 0x18]
mov rdx, rax
call fcn.1400e8228
test eax, eax
jne 0x140004d4d
mov edx, 0x7fd123e8
mov ecx, 0x9b197b1b
mov r8d, 0x1aa81d99
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 [0x1401745b0]
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.1400184a8
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.1400e79e0
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