Function at 0x140124a20
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0x88
mov rax, qword [0x1403ceac0]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov edi, r9d
mov r14, r8
mov rsi, rdx
xor r15d, r15d
mov ebx, r15d
mov qword [rbp - 0x19], rbx
mov dword [rbp - 0x11], r15d
mov qword [rbp - 9], r15
cmp qword [rcx + 0x18], 8
jb 0x140124a68
mov rcx, qword [rcx]
mov qword [rbp - 0x21], r15
lea rax, [rbp - 0x21]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rcx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140124aa0
mov eax, r15d
mov rbx, qword [rbp - 0x21]
mov qword [rbp - 0x19], rbx
and edi, 0x300
mov dword [rbp - 0x11], edi
test eax, eax
je 0x140124aac
xor dil, dil
jmp 0x140124bc6
mov qword [rbp - 1], r15
mov qword [rbp + 0xf], r15
mov qword [rbp + 0x17], 7
mov word [rbp - 1], r15w
mov edx, 0x108
lea rcx, [rbp - 1]
call fcn.14002bf30
mov rdx, rax
mov qword [rbp + 0xf], 0x104
mov qword [rbp + 0x17], 0x107
movzx eax, r15w
mov rdi, rdx
mov ecx, 0x104
rep stosw word [rdi], ax
mov word [rdx + 0x208], r15w
mov qword [rbp - 1], rdx
lea rdi, [rbp - 1]
cmp qword [rbp + 0x17], 8
cmovae rdi, rdx
cmp qword [rsi + 0x18], 8
jb 0x140124b14
mov rsi, qword [rsi]
mov eax, dword [rbp + 0xf]
add eax, eax
mov dword [rbp - 0x29], eax
lea rax, [rbp - 0x29]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x21]
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140124b72
mov eax, dword [rbp - 0x21]
dec eax
cmp eax, 1
ja 0x140124b72
test rdi, rdi
je 0x140124bf8
mov eax, dword [rbp - 0x29]
test eax, eax
je 0x140124bf4
test al, 1
jne 0x140124b72
shr rax, 1
cmp word [rdi + rax*2 - 2], 0
je 0x140124bf8
xor dil, dil
mov rdx, qword [rbp + 0x17]
cmp rdx, 8
jb 0x140124bb5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140124bb0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140124c97
call fcn.140296f94
mov qword [rbp + 0xf], r15
mov qword [rbp + 0x17], 7
mov word [rbp - 1], r15w
test rbx, rbx
je 0x140124bd4
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, dil
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140296f70
add rsp, 0x88
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov word [rdi], r15w
lea rdi, [rbp - 1]
mov r9, qword [rbp - 1]
mov r10, qword [rbp + 0x17]
cmp r10, 8
cmovae rdi, r9
mov r8, qword [rbp + 0xf]
test r8, r8
je 0x140124c45
mov rax, r8
mov rcx, rdi
mov rdx, r15
cmp word [rdi], dx
je 0x140124c35
cmp rax, 1
je 0x140124c38
dec rax
add rcx, 2
cmp word [rcx], dx
jne 0x140124c23
mov rdx, rcx
test rdx, rdx
je 0x140124c45
sub rdx, rdi
sar rdx, 1
jmp 0x140124c4c
mov rdx, 0xffffffffffffffff
cmp r8, rdx
jb 0x140124c91
lea rax, [rbp - 1]
cmp r10, 8
cmovae rax, r9
mov qword [rbp + 0xf], rdx
mov word [rax + rdx*2], r15w
lea rax, [rbp - 1]
cmp r14, rax
je 0x140124c89
lea rdx, [rbp - 1]
cmp qword [rbp + 0x17], 8
cmovae rdx, qword [rbp - 1]
mov r8, qword [rbp + 0xf]
mov rcx, r14
call fcn.14002b640
mov dil, 1
jmp 0x140124b75
call fcn.140041a10
nop
call fcn.1402ba3ec
int3