Function at 0x140044810
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7a0]
sub rsp, 0x8a0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x8f0], rbx
mov rax, qword [0x1401a1e90]
xor rax, rsp
mov qword [rbp + 0x790], rax
mov r13, rdx
xor esi, esi
mov qword [rsp + 0x48], rsi
mov dword [rsp + 0x50], esi
mov qword [rsp + 0x58], rsi
xor r8d, r8d
mov rdx, rcx
lea rcx, [rsp + 0x70]
call fcn.140042670
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 [0x1401a4d48]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
test eax, eax
jne 0x1400448af
mov dword [rsp + 0x50], esi
mov ecx, esi
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x48], rax
test ecx, ecx
setne bl
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
or r14, 0xffffffffffffffff
lock add dword [rdx + 0x10], r14d
jg 0x1400448d1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
mov rbx, qword [rsp + 0x48]
je 0x1400448e2
xor dil, dil
jmp 0x140044b9c
mov r12d, esi
nop word [rax + rax]
mov word [rbp - 0x70], si
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x6e]
call fcn.1400c8db0
mov dword [rsp + 0x60], 0x400
lea rax, [rbp - 0x80]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x60]
lea r8, [rbp - 0x70]
mov edx, r12d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov r15d, eax
inc r12d
test eax, eax
jne 0x140044ab1
lea rcx, [0x1401a19a8]
mov rdx, qword [0x1401a19a8]
call qword [rdx + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
lea rcx, [rbp - 0x70]
lea rax, [rbp - 0x70]
test rax, 0xffffffffffff0000
jne 0x14004499a
movzx ebx, cx
mov ecx, ebx
call fcn.1400019f0
test rax, rax
je 0x140044a80
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140002530
jmp 0x140044a80
lea rax, [rbp - 0x70]
mov rdi, r14
inc rdi
cmp word [rax + rdi*2], 0
jne 0x1400449a1
test edi, edi
jne 0x140044a04
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x140044a80
cmp dword [rdx + 0x10], 0
jge 0x1400449db
cmp dword [rbx - 0xc], 0
jl 0x140044b2c
mov dword [rbx - 0x10], esi
mov word [rbx], si
jmp 0x140044a80
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x1400449f0
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 0x140044a80
mov r14d, dword [rbx - 0x10]
lea rsi, [rbp - 0x70]
sub rsi, rbx
sar rsi, 1
test edi, edi
js 0x140044b42
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140044a3c
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.140002330
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 0x140044a60
lea r8, [rbx + rsi*2]
call fcn.1400c419c
jmp 0x140044a69
lea r8, [rbp - 0x70]
call fcn.1400c4298
cmp edi, dword [rbx - 0xc]
jg 0x140044b37
mov dword [rbx - 0x10], edi
xor esi, esi
mov word [r14 + rbx], si
or r14, 0xffffffffffffffff
lea rdx, [rsp + 0x40]
mov rcx, r13
call fcn.140024b00
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x140044aac
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x48]
mov r8d, dword [0x1401a9d80]
mov ecx, r8d
imul ecx, r8d
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 3
sub ecx, eax
cmp ecx, 6
jne 0x140044b22
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x64
sub r8d, edx
add r8d, 0x2f4
movsxd rcx, r8d
mov eax, 4
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.1400c2fb8
mov rcx, rax
call fcn.1400c4098
mov r8d, dword [0x1401a9d80]
test r15d, r15d
jne 0x140044b4d
jmp 0x1400448f0
mov ecx, 0x80070057
call fcn.140001930
int3
mov ecx, 0x80070057
call fcn.140001930
int3
mov ecx, 0x80070057
call fcn.140001930
nop
test rbx, rbx
je 0x140044b6a
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rsi
mov qword [rsp + 0x48], rbx
mov r8d, dword [0x1401a9d80]
mov dword [rsp + 0x50], esi
lea ecx, [r8 + 1]
lea eax, [r8 + 2]
imul eax, ecx
imul eax, r8d
and eax, 0x8000000f
jge 0x140044b8b
dec eax
or eax, 0xfffffff0
inc eax
cmp eax, 0xb
cmove r8d, ecx
mov dword [0x1401a9d80], r8d
mov dil, 1
test rbx, rbx
je 0x140044baf
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rsi
mov dword [rsp + 0x50], esi
movzx eax, dil
mov rcx, qword [rbp + 0x790]
xor rcx, rsp
call fcn.1400c3970
mov rbx, qword [rsp + 0x8f0]
add rsp, 0x8a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret