Function at 0x14004b1f0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbp
lea rbp, [r11 - 0x1c8]
sub rsp, 0x2c0
mov rax, qword [0x140177698]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov qword [r11 - 0x10], rsi
lea r8, [rsp + 0x70]
mov qword [r11 - 0x20], r14
mov rsi, rcx
xor r14d, r14d
mov qword [rcx], r14
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x64], r14d
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x68], r14
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x14004b419
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x58], r14
xor r9d, r9d
mov qword [rsp + 0x50], r14
xor r8d, r8d
mov qword [rsp + 0x48], r14
xor edx, edx
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x14004b419
mov qword [rsp + 0x2b0], rdi
mov edi, r14d
cmp dword [rsp + 0x64], r14d
jbe 0x14004b411
mov qword [rsp + 0x2a0], r15
mov r15d, 0x100
mov qword [rsp + 0x2e0], rbx
nop word [rax + rax]
mov rcx, qword [rsp + 0x70]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x38], r14
lea r8, [rbp + 0x90]
mov qword [rsp + 0x30], r14
mov edx, edi
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x60], 0xff
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x14004b3f5
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x68]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp + 0x90]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14004b401
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rdx, str.Enabled
lea rax, [rsp + 0x78]
mov dword [rsp + 0x60], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14004b3e5
cmp byte [rbp + 0x90], r14b
je 0x14004b3e5
cmp dword [rsp + 0x78], r14d
je 0x14004b3e5
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 0x70]
call fcn.140054930
test rax, rax
je 0x14004b3e5
cmp byte [rbp - 0x70], r14b
je 0x14004b3e5
mov ecx, pe_nt_image_headers64
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x14004b401
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 0x70]
call fcn.140052520
lea rcx, [rbx + 0xc]
cmp ax, r15w
ja 0x14004b3d9
movzx r8d, ax
lea rdx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memcpy
jmp 0x14004b3dc
mov byte [rcx], r14b
mov rax, qword [rsi]
mov qword [rbx], rax
mov qword [rsi], rbx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x68], r14
inc edi
cmp edi, dword [rsp + 0x64]
jb 0x14004b2d0
mov rbx, qword [rsp + 0x2e0]
mov r15, qword [rsp + 0x2a0]
mov rdi, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x2a8]
mov rsi, qword [rsp + 0x2b8]
test rcx, rcx
je 0x14004b439
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14004b449
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14006a270
add rsp, 0x2c0
pop rbp
ret