Function at 0x14004ac40
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x9d0]
sub rsp, 0xad0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0xb20], rbx
mov rax, qword [0x1401bbe90]
xor rax, rsp
mov qword [rbp + 0x9c0], rax
mov r15, rdx
xor r13d, r13d
mov qword [rsp + 0x50], r13
mov dword [rsp + 0x58], r13d
mov qword [rsp + 0x60], r13
xor r8d, r8d
mov rdx, rcx
lea rcx, [rsp + 0x70]
call fcn.1400488e0
nop
mov qword [rsp + 0x68], r13
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, qword [0x1401bed48]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
test eax, eax
jne 0x14004ace3
mov dword [rsp + 0x58], r13d
mov ecx, r13d
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x50], rax
test ecx, ecx
setne bl
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004ad01
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
je 0x14004ad6a
mov eax, dword [0x1401c3d80]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 0x80000003
jge 0x14004ad20
dec ecx
or ecx, 0xfffffffc
inc ecx
cmp ecx, 1
jne 0x14004ad5d
mov ecx, 0x28
call fcn.1400cd108
mov rdi, rax
mov rbx, r13
call fcn.1400ce478
add eax, dword [0x1401c3d80]
mov dword [rdi + rbx*4], eax
inc rbx
cmp rbx, 0xa
jl 0x14004ad35
mov ecx, dword [rdi + 0x24]
mov dword [0x1401c3d80], ecx
mov rcx, rdi
call fcn.1400cebfc
xor dil, dil
mov rbx, qword [rsp + 0x50]
jmp 0x14004b037
mov r12d, r13d
mov ecx, dword [0x1401c3d80]
lea r8d, [rcx + 2]
lea eax, [rcx + 1]
imul r8d, eax
imul r8d, ecx
mov eax, 0x2aaaaaab
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 3
sub r8d, eax
cmp r8d, 9
jne 0x14004adc0
mov edx, 0x93
lea r8d, [rdx + 1]
lea rcx, str._d__d_n
call fcn.1400ce3cc
nop dword [rax + rax]
mov word [rbp + 0x1c0], r13w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp + 0x1c2]
call fcn.1400d2f00
mov dword [rsp + 0x48], 0x400
lea rax, [rbp - 0x80]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x48]
lea r8, [rbp + 0x1c0]
mov edx, r12d
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov r10d, eax
inc r12d
mov r9d, dword [0x1401c3d80]
mov r8d, r9d
imul r8d, r9d
imul r8d, r9d
mov eax, 0x38e38e39
imul r8d
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea eax, [rdx + rdx*8]
add eax, eax
sub r8d, eax
cmp r8d, 0x10
jne 0x14004ae83
mov ecx, r13d
lea rdx, [rbp - 0x70]
nop dword [rax + rax]
mov eax, dword [rdx]
imul eax, eax, 0xfd
add r9d, eax
inc ecx
lea rdx, [rdx + 4]
movsxd rax, ecx
cmp rax, 0x224
jb 0x14004ae60
mov dword [0x1401c3d80], r9d
test r10d, r10d
jne 0x14004b019
lea rcx, [0x1401bb9a8]
mov rax, qword [0x1401bb9a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
lea rcx, [rbp + 0x1c0]
lea rax, [rbp + 0x1c0]
test rax, 0xffffffffffff0000
jne 0x14004aee4
movzx ebx, cx
mov ecx, ebx
call fcn.1400019e0
test rax, rax
je 0x14004afc8
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400025b0
jmp 0x14004afc8
lea rax, [rbp + 0x1c0]
or rdi, 0xffffffffffffffff
nop
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14004aef0
test edi, edi
jne 0x14004af50
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x14004afc8
cmp dword [rdx + 0x10], 0
jge 0x14004af2c
cmp dword [rbx - 0xc], 0
jl 0x14004aff8
mov dword [rbx - 0x10], r13d
mov word [rbx], r13w
jmp 0x14004afc8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004af3c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
jmp 0x14004afc8
mov r14d, dword [rbx - 0x10]
lea rsi, [rbp + 0x1c0]
sub rsi, rbx
sar rsi, 1
test edi, edi
js 0x14004b00e
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14004af8b
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.1400023b0
mov rbx, qword [rsp + 0x40]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp rsi, r14
lea r14, [rax + rax]
mov r9, r14
ja 0x14004afaf
lea r8, [rbx + rsi*2]
call fcn.1400ce2e4
jmp 0x14004afbb
lea r8, [rbp + 0x1c0]
call fcn.1400ce4a4
cmp edi, dword [rbx - 0xc]
jg 0x14004b003
mov dword [rbx - 0x10], edi
mov word [r14 + rbx], r13w
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.140027510
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004adc0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14004adc0
mov ecx, 0x80070057
call fcn.140001920
int3
mov ecx, 0x80070057
call fcn.140001920
int3
mov ecx, 0x80070057
call fcn.140001920
nop
test rbx, rbx
je 0x14004b02f
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r13
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x58], r13d
mov dil, 1
test rbx, rbx
je 0x14004b04a
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], r13
mov dword [rsp + 0x58], r13d
movzx eax, dil
mov rcx, qword [rbp + 0x9c0]
xor rcx, rsp
call fcn.1400cdac0
mov rbx, qword [rsp + 0xb20]
add rsp, 0xad0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret