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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x5f8
mov rax, qword [0x180021e40]
xor rax, rsp
mov qword [rsp + 0x5e0], rax
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x48], 0
lea rcx, [0x1800213e0]
call fcn.180007160
mov qword [rsp + 0xa0], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9d, 0x108
xor r8d, r8d
mov rdx, qword [rsp + 0xa0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180004a50
mov ecx, 0x40000
call fcn.180005d60
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180004a42
lea rdx, [0x180022810]
mov rcx, qword [rsp + 0x48]
call fcn.18000b680
lea rcx, [0x180021450]
call fcn.180007160
mov qword [rsp + 0x90], rax
lea rcx, [0x180021470]
call fcn.180007160
mov qword [rsp + 0x88], rax
lea rcx, [0x180021498]
call fcn.180007160
mov qword [rsp + 0x80], rax
lea rcx, [0x1800214b8]
call fcn.180007060
mov qword [rsp + 0x60], rax
lea rcx, [0x1800214c8]
call fcn.180007060
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x58], 0
jmp 0x1800046de
mov eax, dword [rsp + 0x58]
inc eax
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x78], 0x104
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
lea r8, [rsp + 0x3d0]
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1800049f1
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x101
xor r8d, r8d
lea rdx, [rsp + 0x3d0]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1800049ec
mov dword [rsp + 0x40], 0x104
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1c0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800049e1
mov eax, dword [rsp + 0x40]
mov byte [rsp + rax + 0x1c0], 0
mov eax, dword [rsp + 0x40]
mov byte [rsp + rax + 0x1c1], 0
lea rcx, [rsp + 0x1c0]
call fcn.180005ca0
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x180004831
mov rax, qword [rsp + 0x48]
movsx eax, byte [rax]
test eax, eax
je 0x1800047f6
cmp dword [rsp + 0x58], 0
je 0x1800047f6
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call fcn.18000b5e0
mov rcx, qword [rsp + 0x50]
call fcn.18000b750
mov r8d, eax
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0xb0]
call fcn.1800011e0
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x48]
call fcn.18000b5e0
mov rcx, qword [rsp + 0x50]
call fcn.180005d90
mov dword [rsp + 0x40], 0x104
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1c0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800048eb
mov eax, dword [rsp + 0x40]
mov byte [rsp + rax + 0x1c0], 0
mov eax, dword [rsp + 0x40]
mov byte [rsp + rax + 0x1c1], 0
lea rcx, [rsp + 0x1c0]
call fcn.180005ca0
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1800048e9
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call fcn.18000b5e0
mov rcx, qword [rsp + 0x50]
call fcn.18000b750
mov r8d, eax
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0xb0]
call fcn.1800011e0
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x48]
call fcn.18000b5e0
mov rcx, qword [rsp + 0x50]
call fcn.180005d90
jmp 0x180004909
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call fcn.18000b5e0
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
call fcn.18000b5e0
mov dword [rsp + 0x40], 0x104
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1c0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800049c3
mov eax, dword [rsp + 0x40]
mov byte [rsp + rax + 0x1c0], 0
mov eax, dword [rsp + 0x40]
mov byte [rsp + rax + 0x1c1], 0
lea rcx, [rsp + 0x1c0]
call fcn.180005ca0
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1800049c1
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call fcn.18000b5e0
mov rcx, qword [rsp + 0x50]
call fcn.18000b750
mov r8d, eax
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0xb0]
call fcn.1800011e0
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x48]
call fcn.18000b5e0
mov rcx, qword [rsp + 0x50]
call fcn.180005d90
jmp 0x1800049e1
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call fcn.18000b5e0
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
call fcn.18000b5e0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1800046d4
mov rcx, qword [rsp + 0x48]
call fcn.18000b750
inc eax
mov rcx, qword [rsp + 0x600]
mov dword [rcx], eax
mov rcx, qword [rsp + 0x70]
call fcn.180007260
mov rcx, qword [rsp + 0x60]
call fcn.180007260
mov rcx, qword [rsp + 0x80]
call fcn.180007260
mov rcx, qword [rsp + 0x88]
call fcn.180007260
mov rcx, qword [rsp + 0x90]
call fcn.180007260
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0xa0]
call fcn.180007260
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x5e0]
xor rcx, rsp
call fcn.180007a70
add rsp, 0x5f8
ret