Function at 0x14004ae70
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x8110]
mov eax, 0x8210
call fcn.1400d3380
sub rsp, rax
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x8260], rbx
mov rax, qword [0x1401bce90]
xor rax, rsp
mov qword [rbp + 0x8100], rax
mov r14, rdx
xor esi, esi
mov qword [rsp + 0x50], rsi
mov dword [rsp + 0x58], esi
mov qword [rsp + 0x60], rsi
xor r8d, r8d
mov rdx, rcx
lea rcx, [rsp + 0x70]
call fcn.140048210
nop
mov qword [rsp + 0x68], rsi
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, qword [0x1401bfd48]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
test eax, eax
jne 0x14004af14
mov dword [rsp + 0x58], esi
mov ecx, esi
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x50], rax
test ecx, ecx
setne bl
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14004af37
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
je 0x14004af48
xor dil, dil
mov rbx, qword [rsp + 0x50]
jmp 0x14004b2c3
mov dword [rsp + 0x48], 0x4000
mov word [rbp + 0x100], si
xor edx, edx
mov r8d, 0x7ffe
lea rcx, [rbp + 0x102]
call fcn.1400d3710
mov r8d, dword [0x1401c4d60]
mov ecx, r8d
imul ecx, r8d
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x17
sub ecx, edx
cmp ecx, 0xb
jne 0x14004afc3
mov ecx, esi
lea rdx, [rbp - 0x70]
nop dword [rax]
mov eax, dword [rdx]
imul eax, eax, 0x8c
add r8d, eax
inc ecx
lea rdx, [rdx + 4]
movsxd rax, ecx
cmp rax, 0x168
jb 0x14004afa0
mov dword [0x1401c4d60], r8d
mov r13d, esi
call fcn.140046bc0
test al, al
jne 0x14004afd7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetFileType]
mov rbx, qword [rsp + 0x50]
nop dword [rax]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x48]
lea r8, [rbp + 0x100]
mov edx, r13d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov r12d, eax
inc r13d
test eax, eax
je 0x14004b021
cmp eax, 0x103
jne 0x14004b244
lea rcx, [0x1401bc9a8]
mov rdx, qword [0x1401bc9a8]
call qword [rdx + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
lea rcx, [rbp + 0x100]
lea rax, [rbp + 0x100]
test rax, 0xffffffffffff0000
jne 0x14004b07e
movzx edi, cx
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x14004b16c
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400025a0
mov rbx, qword [rsp + 0x40]
jmp 0x14004b16c
lea rax, [rbp + 0x100]
or rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14004b090
test edi, edi
jne 0x14004b0ee
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x14004b16c
cmp dword [rdx + 0x10], 0
jge 0x14004b0ca
cmp dword [rbx - 0xc], 0
jl 0x14004b29b
mov dword [rbx - 0x10], esi
mov word [rbx], si
jmp 0x14004b16c
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004b0da
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]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
jmp 0x14004b16c
mov r15d, dword [rbx - 0x10]
lea rsi, [rbp + 0x100]
sub rsi, rbx
sar rsi, 1
test edi, edi
js 0x14004b2eb
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14004b129
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.1400023a0
mov rbx, qword [rsp + 0x40]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp rsi, r15
lea r15, [rax + rax]
mov r9, r15
ja 0x14004b14d
lea r8, [rbx + rsi*2]
call fcn.1400ceaf4
jmp 0x14004b159
lea r8, [rbp + 0x100]
call fcn.1400cebf0
cmp edi, dword [rbx - 0xc]
jg 0x14004b2e0
mov dword [rbx - 0x10], edi
xor esi, esi
mov word [r15 + rbx], si
cmp dword [rbx - 0x10], 0
je 0x14004b20e
mov rax, qword [r14 + 8]
lea rcx, [rsp + 0x40]
cmp rcx, rax
jae 0x14004b1d9
mov rcx, qword [r14]
lea rdx, [rsp + 0x40]
cmp rcx, rdx
ja 0x14004b1d9
lea rdi, [rsp + 0x40]
sub rdi, rcx
sar rdi, 3
cmp rax, qword [r14 + 0x10]
jne 0x14004b1ab
mov rcx, r14
call fcn.14001d5b0
mov rax, qword [r14]
lea rcx, [rax + rdi*8]
mov rdi, qword [r14 + 8]
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x80], rdi
test rdi, rdi
je 0x14004b1d7
mov rcx, qword [rcx]
sub rcx, 0x18
call fcn.140002400
add rax, 0x18
mov qword [rdi], rax
jmp 0x14004b209
cmp rax, qword [r14 + 0x10]
jne 0x14004b1e7
mov rcx, r14
call fcn.14001d5b0
mov rdi, qword [r14 + 8]
mov qword [rbp - 0x80], rdi
mov qword [rsp + 0x78], rdi
test rdi, rdi
je 0x14004b209
lea rcx, [rbx - 0x18]
call fcn.140002400
add rax, 0x18
mov qword [rdi], rax
add qword [r14 + 8], 8
mov dword [rsp + 0x48], 0x4000
xor edx, edx
mov r8d, 0x8000
lea rcx, [rbp + 0x100]
call fcn.1400d3710
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004b23f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x50]
mov ecx, dword [0x1401c4d60]
imul ecx, ecx
mov eax, 0x30c30c31
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x15
sub ecx, edx
cmp ecx, 0xe
jne 0x14004b291
mov eax, 0xa7
mov r8d, 0xba
test r8d, r8d
je 0x14004b288
mov ecx, r8d
cdq
idiv r8d
mov r8d, edx
mov eax, ecx
test ecx, ecx
jne 0x14004b273
add eax, r8d
mov dword [0x1401c4d60], eax
test r12d, r12d
jne 0x14004b2a6
jmp 0x14004afe0
mov ecx, 0x80070057
call fcn.140001920
nop
test rbx, rbx
je 0x14004b2bc
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rsi
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x58], esi
mov dil, 1
test rbx, rbx
je 0x14004b2d6
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], rsi
mov dword [rsp + 0x58], esi
movzx eax, dil
jmp 0x14004b2f6
mov ecx, 0x80070057
call fcn.140001920
int3
mov ecx, 0x80070057
call fcn.140001920
nop
mov rcx, qword [rbp + 0x8100]
xor rcx, rsp
call fcn.1400ce2d0
mov rbx, qword [rsp + 0x8260]
add rsp, 0x8210
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret