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

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x3e8
mov rax, qword [0x1400213d8]
xor rax, rsp
mov qword [rsp + 0x3d8], rax
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x170], 0
mov rax, qword [rsp + 0x3f0]
mov eax, dword [rax + 4]
mov dword [rsp + 0x3c0], eax
cmp dword [rsp + 0x3c0], 1
je 0x14000a734
cmp dword [rsp + 0x3c0], 2
je 0x14000a6e8
cmp dword [rsp + 0x3c0], 4
je 0x14000a6f5
jmp 0x14000a74b
mov dword [rsp + 0x170], 0
jmp 0x14000a74b
cmp dword [rsp + 0x3f8], 0
jne 0x14000a732
mov rax, qword [rsp + 0x3f0]
mov eax, dword [rax]
shl eax, 0x1f
sar eax, 0x1f
test eax, eax
jne 0x14000a727
mov rax, qword [rsp + 0x3f0]
mov eax, dword [rax]
shl eax, 0x1e
sar eax, 0x1f
test eax, eax
je 0x14000a732
mov dword [rsp + 0x170], 1
jmp 0x14000a74b
mov rax, qword [rsp + 0x3f0]
mov eax, dword [rax]
shl eax, 0x1f
sar eax, 0x1f
mov dword [rsp + 0x170], eax
cmp dword [rsp + 0x170], 0
jne 0x14000a763
cmp dword [rsp + 0x3f8], 0
je 0x14000a9e9
call fcn.1400077c0
test eax, eax
je 0x14000a77a
lea rax, [0x1400233a0]
mov qword [rsp + 0x50], rax
jmp 0x14000a786
lea rax, [0x1400233c8]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000a9e9
mov dword [rsp + 0x3b0], 0
mov dword [rsp + 0x3b4], 0x104
mov r8d, 0x104
xor edx, edx
lea rcx, [rsp + 0x2a0]
call fcn.14000c9e0
lea rax, [rsp + 0x3b8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x3b4]
lea r8, [rsp + 0x2a0]
mov edx, dword [rsp + 0x3b0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x14000a9de
lea rcx, [rsp + 0x2a0]
call fcn.14000c170
mov rcx, qword [rsp + 0x50]
call fcn.14000b120
mov qword [rsp + 0x3c8], rax
lea rcx, [rsp + 0x2a0]
call fcn.14000b120
mov rcx, qword [rsp + 0x3c8]
add rcx, rax
mov rax, rcx
cmp rax, 0x104
jae 0x14000a9a9
mov r8d, 0x104
xor edx, edx
lea rcx, [rsp + 0x180]
call fcn.14000c9e0
lea r9, [rsp + 0x2a0]
mov r8, qword [rsp + 0x50]
lea rdx, [0x1400233f4]
lea rcx, [rsp + 0x60]
call fcn.14000baa8
lea rax, [rsp + 0x178]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000a9a9
mov dword [rsp + 0x3b4], 0x104
lea rax, [rsp + 0x3b4]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x180]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x290]
xor r8d, r8d
lea rdx, [0x140022cac]
mov rcx, qword [rsp + 0x178]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [rsp + 0x170], 0
je 0x14000a935
mov dword [rsp + 0x3d0], 0
jmp 0x14000a943
mov eax, dword [rsp + 0x3f8]
mov dword [rsp + 0x3d0], eax
mov rax, qword [rsp + 0x3f0]
add rax, 8
mov ecx, dword [rsp + 0x3d0]
mov dword [rsp + 0x28], ecx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x2a0]
lea r8, [rsp + 0x180]
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.14000aca0
cmp qword [rsp + 0x40], 0
je 0x14000a99b
mov rdx, qword [rsp + 0x178]
mov rcx, qword [rsp + 0x40]
call fcn.14000af70
mov rcx, qword [rsp + 0x178]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8d, 0x104
xor edx, edx
lea rcx, [rsp + 0x2a0]
call fcn.14000c9e0
mov dword [rsp + 0x3b4], 0x104
mov eax, dword [rsp + 0x3b0]
inc eax
mov dword [rsp + 0x3b0], eax
jmp 0x14000a7de
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov rcx, qword [rsp + 0x3d8]
xor rcx, rsp
call fcn.14000b050
add rsp, 0x3e8
ret