Function at 0x140055610
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov rsi, rcx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp qword [rcx], 0
je 0x1400556ff
cmp dword [rsi + 8], 0
js 0x1400556ff
lea r12, [rsi + 0x10]
cmp byte [rsi + 0x27], 0
jns 0x140055721
mov ebp, dword [rsi + 0x20]
dec ebp
lea rdi, [rsp + 0x7c]
mov dword [rdi], ebp
lea r15, [rsi + 0x28]
mov eax, dword [rsi + 0x30]
mov rbx, qword [rsi + 0x28]
sub eax, ebx
add eax, 0xfffffffe
and eax, 0xfffffffe
lea r14, [rsi + 0x40]
mov dword [rsi + 0x40], eax
lea r13, [rsi + 0x44]
mov edx, ebp
mov rcx, r12
call fcn.14004ef90
mov edx, dword [rsi + 8]
mov rcx, qword [rsi]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], 0
mov r8, rax
mov r9, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0xea
je 0x14005572b
test eax, eax
jne 0x1400556ff
mov eax, dword [r14]
inc rax
and rax, 0xfffffffffffffffe
mov rcx, qword [r15]
mov word [rcx + rax], 0
mov dil, 1
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401013e0
mov eax, edi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, [rsi + 0x10]
cmp byte [rsi + 0x27], 0
jns 0x14005570c
mov rax, qword [rax]
xor edi, edi
mov word [rax], di
mov rax, qword [rsi + 0x28]
mov word [rax], di
mov dword [rsi + 0x40], 0
jmp 0x1400556d9
mov ebp, 0xa
jmp 0x14005565f
mov edi, dword [rsi + 0x40]
inc rdi
shr rdi, 1
mov rax, qword [rsi + 0x28]
mov rcx, qword [rsi + 0x30]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x68], rax
sub rcx, rax
mov qword [rsp + 0x60], rcx
mov rax, rcx
sar rax, 1
mov rcx, rdi
sub rcx, rax
jb 0x1400558c8
mov word [rsp + 0x4e], 0
mov rbx, rcx
inc rbx
mov rdx, qword [r15 + 8]
mov rax, qword [r15 + 0x10]
mov rcx, rax
mov r9, rdx
sub rcx, rdx
sar rcx, 1
mov rdx, rbx
mov qword [rsp + 0x50], rbx
cmp rcx, rbx
jae 0x140055937
mov rcx, qword [r15]
mov rdx, r9
sub rdx, rcx
sar rdx, 1
mov rbx, rdx
add rdx, qword [rsp + 0x50]
js 0x140055923
sub rax, rcx
mov rcx, rax
sar rcx, 1
cmp rax, rdx
cmovb rax, rdx
movabs rdx, 0x3fffffffffffffff
cmp rcx, rdx
movabs rcx, 0x7fffffffffffffff
cmovb rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rcx
test rcx, rcx
je 0x14005592b
js 0x140055932
mov rax, qword [rsp + 0x58]
lea rcx, [rax + rax]
call fcn.140100528
lea rbx, [rax + rbx*2]
mov rcx, qword [rsp + 0x58]
lea rax, [rax + rcx*2]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x50]
lea rax, [rbx + rax*2]
mov qword [rsp + 0x50], rax
add rdi, rdi
mov rdx, qword [rsp + 0x60]
test rdx, rdx
mov rax, 0xffffffffffffffff
cmovns rax, rdx
test rax, rax
mov ecx, 1
cmovle rcx, rax
mov rax, qword [rsp + 0x68]
sub rax, qword [rsp + 0x70]
cmp rax, rdx
cmovle rax, rdx
shr rax, 1
imul rax, rcx
add rax, rax
sub rdi, rax
add rdi, 2
xor eax, eax
movzx ecx, word [rsp + 0x4e]
mov word [rbx + rax], cx
add rax, 2
cmp rdi, rax
jne 0x140055862
mov rdx, qword [r15]
mov r8, qword [r15 + 8]
sub r8, rdx
sub rbx, r8
test r8, r8
jle 0x140055891
mov rcx, rbx
call fcn.140103960
mov rdx, qword [r15]
mov qword [r15], rbx
mov rax, qword [rsp + 0x50]
mov qword [r15 + 8], rax
mov rax, qword [rsp + 0x58]
mov qword [r15 + 0x10], rax
test rdx, rdx
je 0x1400558b3
mov rcx, rdx
call fcn.140100564
mov rax, qword [rsi + 0x28]
mov rcx, qword [rsi + 0x30]
mov qword [rsp + 0x68], rax
sub rcx, rax
mov qword [rsp + 0x60], rcx
mov rax, qword [rsp + 0x60]
add eax, 0xfffffffe
and eax, 0xfffffffe
mov dword [rsi + 0x40], eax
lea rdi, [rsp + 0x7c]
cmp dword [rdi], ebp
mov edx, 0x4000
cmovne edx, ebp
mov dword [rdi], edx
mov rcx, r12
call fcn.14004ef90
mov edx, dword [rsi + 8]
mov rcx, qword [rsi]
mov qword [rsp + 0x38], r14
mov rbp, qword [rsp + 0x68]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], 0
mov r8, rax
mov r9, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
jmp 0x1400556bf
mov rcx, r15
call fcn.140131070
xor eax, eax
jmp 0x1400557fc
call fcn.1401143a0
cmp qword [rsp + 0x50], 0
je 0x1400559a4
mov rax, qword [rsp + 0x50]
lea r8, [r9 + rax*2]
add rdi, rdi
mov rax, qword [rsp + 0x60]
test rax, rax
mov rcx, 0xffffffffffffffff
cmovns rcx, rax
test rcx, rcx
mov edx, 1
cmovle rdx, rcx
mov rcx, qword [rsp + 0x68]
sub rcx, qword [rsp + 0x70]
cmp rcx, rax
cmovle rcx, rax
shr rcx, 1
imul rcx, rdx
add rcx, rcx
sub rdi, rcx
add rdi, 2
xor ecx, ecx
movzx edx, word [rsp + 0x4e]
mov word [r9 + rcx], dx
add rcx, 2
cmp rdi, rcx
jne 0x14005598e
mov r9, r8
mov qword [r15 + 8], r9
jmp 0x1400558b3