Function at 0x100054600
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov qword [rsp + 0x98], 0xfffffffffffffffe
cmp qword [rsp + 0xd0], 0
jne 0x10005463e
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100054a3a
cmp dword [rsp + 0xc8], 1
je 0x100054656
cmp dword [rsp + 0xc8], 2
jne 0x1000547d3
mov rcx, qword [rsp + 0xc0]
call fcn.100056420
test eax, eax
jne 0x10005466e
xor eax, eax
jmp 0x100054a3a
lea rcx, [rsp + 0x38]
call fcn.100014450
nop
mov edx, 0x104
lea rcx, [rsp + 0x38]
call fcn.100015c10
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
call fcn.100013fa0
inc eax
cdqe
shl rax, 1
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x100004d80]
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x48], eax
mov edx, 0xffffffff
lea rcx, [rsp + 0x38]
call fcn.100013fd0
cmp dword [rsp + 0x48], 0
je 0x10005470a
mov dword [rsp + 0x70], 0
lea rcx, [rsp + 0x38]
call fcn.1000144b0
mov eax, dword [rsp + 0x70]
jmp 0x100054a3a
lea rcx, [rsp + 0x38]
call fcn.100013fb0
movzx eax, al
test eax, eax
je 0x100054736
mov dword [rsp + 0x74], 0
lea rcx, [rsp + 0x38]
call fcn.1000144b0
mov eax, dword [rsp + 0x74]
jmp 0x100054a3a
cmp dword [rsp + 0xc8], 1
jne 0x10005476d
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0xd0]
call fcn.100015fc0
mov dword [rsp + 0x78], 1
lea rcx, [rsp + 0x38]
call fcn.1000144b0
mov eax, dword [rsp + 0x78]
jmp 0x100054a3a
lea rcx, [rsp + 0x50]
call fcn.100014450
nop
mov rax, qword [rsp + 0xc0]
add rax, 0x10
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.100048450
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0xd0]
call fcn.100015fc0
mov dword [rsp + 0x7c], 1
lea rcx, [rsp + 0x50]
call fcn.1000144b0
nop
lea rcx, [rsp + 0x38]
call fcn.1000144b0
mov eax, dword [rsp + 0x7c]
jmp 0x100054a3a
cmp dword [rsp + 0xc8], 3
jne 0x100054808
mov rax, qword [rsp + 0xc0]
add rax, 8
mov rdx, rax
mov rcx, qword [rsp + 0xd0]
call fcn.100015fc0
mov eax, 1
jmp 0x100054a3a
cmp dword [rsp + 0xc8], 0xe
jne 0x100054852
mov rax, qword [rsp + 0xc0]
cmp dword [rax + 0x28], 0
je 0x100054846
mov rax, qword [rsp + 0xc0]
add rax, 0x10
mov rdx, rax
mov rcx, qword [rsp + 0xd0]
call fcn.100015fc0
mov eax, 1
jmp 0x100054a3a
xor eax, eax
jmp 0x100054a3a
mov rcx, qword [rsp + 0xc0]
call fcn.100056420
test eax, eax
jne 0x10005486a
xor eax, eax
jmp 0x100054a3a
cmp dword [rsp + 0xc8], 0xb
jne 0x100054882
lea rax, [0x10000a750]
mov qword [rsp + 0x60], rax
jmp 0x1000548dc
cmp dword [rsp + 0xc8], 0xc
jne 0x10005489a
lea rax, [0x10000a728]
mov qword [rsp + 0x60], rax
jmp 0x1000548dc
cmp dword [rsp + 0xc8], 0xd
jne 0x1000548b2
lea rax, [0x1000082c0]
mov qword [rsp + 0x60], rax
jmp 0x1000548dc
cmp dword [rsp + 0xc8], 7
jne 0x1000548ca
lea rax, [0x10000a700]
mov qword [rsp + 0x60], rax
jmp 0x1000548dc
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100054a3a
mov dword [rsp + 0x58], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 0
jne 0x100054926
cmp dword [rsp + 0x58], 1
ja 0x100054937
mov ecx, dword [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100054a3a
mov eax, dword [rsp + 0x58]
add rax, 4
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x58]
mov rcx, rax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x100054973
xor eax, eax
jmp 0x100054a3a
mov eax, dword [rsp + 0x58]
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x68]
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1000549d9
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0x88]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
xor eax, eax
jmp 0x100054a3a
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xd0]
call fcn.100016d00
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x90]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
cmp dword [rsp + 0x58], 0
jbe 0x100054a19
mov dword [rsp + 0xa0], 1
jmp 0x100054a24
mov dword [rsp + 0xa0], 0
mov eax, dword [rsp + 0xa0]
jmp 0x100054a3a
add rsp, 0xb8
ret