Function at 0x140044870
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov r13, r8
mov r14, rdx
mov qword [rbp + 0x1f], r8
xor r12b, r12b
xor r15d, r15d
mov esi, r15d
mov qword [rbp - 0x19], r15
mov dword [rbp - 0x11], r15d
mov qword [rbp - 9], r15
xorps xmm0, xmm0
movdqu xmmword [rbp - 1], xmm0
mov qword [rbp + 0xf], r15
mov edx, 0x400
lea rcx, [rbp - 1]
call fcn.140034660
mov dword [rbp + 0x17], r15d
mov dword [rbp + 0x1b], r15d
mov rax, qword [rbp + 7]
mov rbx, qword [rbp - 1]
sub rax, rbx
sar rax, 1
lea r8, [rax + rax]
xor edx, edx
mov rcx, rbx
call fcn.140254b70
mov qword [rbp - 0x31], r15
lea rax, [rbp - 0x31]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [r13]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea r15, [rsi - 1]
test eax, eax
jne 0x140044a88
mov rdi, qword [rbp - 0x31]
mov rsi, rdi
mov qword [rbp - 0x19], rdi
xor r14d, r14d
mov dword [rbp - 0x11], r14d
mov dword [rbp - 0x39], 0x7fe
lea rax, [rbp - 0x39]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x29]
xor r8d, r8d
lea rdx, [0x1402d071c]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140044a6f
mov eax, dword [rbp - 0x29]
dec eax
cmp eax, 1
ja 0x140044a6f
mov r14d, dword [rbp - 0x39]
test rbx, rbx
je 0x140044996
test r14d, r14d
je 0x1400449d4
test r14b, 1
jne 0x140044a6c
mov eax, r14d
shr rax, 1
cmp word [rbx + rax*2 - 2], 0
jne 0x140044a6c
xor edi, edi
shr r14d, 1
call fcn.140010070
mov rcx, rax
test rax, rax
je 0x140044b16
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x21], rax
lea rax, [rbx - 1]
cmp rax, 0xfffe
ja 0x1400449db
movzx edx, bx
lea rcx, [rbp - 0x21]
call fcn.1400108d0
jmp 0x140044a08
xor edi, edi
mov word [rbx], di
jmp 0x140044998
test rbx, rbx
jne 0x1400449e5
mov r8d, edi
jmp 0x1400449fb
mov r8, r15
nop dword [rax + rax]
inc r8
cmp word [rbx + r8*2], 0
jne 0x1400449f0
mov rdx, rbx
lea rcx, [rbp - 0x21]
call fcn.140002b6c
nop
mov rdi, qword [rbp - 0x21]
test r14d, r14d
je 0x140044a46
cmp dword [rdi - 0x10], 0
jl 0x140044a35
lea rdx, str.0.0.0.0
mov rcx, rdi
call fcn.1402250e8
test rax, rax
je 0x140044a35
sub rax, rdi
sar rax, 1
test eax, eax
jns 0x140044a46
movzx r12d, r12b
mov eax, 1
cmp dword [rdi - 0x10], 0
cmovne r12d, eax
lea rdx, [rdi - 0x18]
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140044a60
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdi, qword [rbp - 0x31]
mov rbx, qword [rbp - 1]
mov rsi, qword [rbp - 0x19]
xor r14d, r14d
test rdi, rdi
je 0x140044a84
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, r14
mov qword [rbp - 0x19], r14
mov dword [rbp - 0x11], r14d
test rbx, rbx
je 0x140044ac5
mov rax, qword [rbp + 0xf]
sub rax, rbx
sar rax, 1
lea rdx, [rax + rax]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140044abc
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140044b10
mov rcx, rbx
call fcn.140003e94
nop
test rsi, rsi
je 0x140044ad4
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [r13]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], r15d
sub r15d, 1
jg 0x140044af1
mov rcx, qword [rdx]
mov rdi, qword [rcx]
call qword [rdi + reloc.OLEAUT32.dll_VariantClear]
movzx eax, r12b
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14022a650
nop
mov ecx, 0x80004005
call fcn.140002e3c
int3