Function at 0x140058200
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r14d, r14d
mov r12, rdx
and dword [rax + 0x20], r14d
mov r13, rcx
mov rcx, qword [str.___t_]
lea rdi, str.___t_
lea rsi, [0x140084690]
cmp rcx, rdi
je 0x14005825d
test byte [rcx + 0x1c], 4
je 0x14005825d
cmp byte [rcx + 0x19], 5
jb 0x14005825d
mov rcx, qword [rcx + 0x10]
lea edx, [r14 + 0xa]
mov r8, rsi
call fcn.140001010
lea rax, [rsp + 0x98]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
and qword [rsp + 0x20], r14
lea rdx, [0x1400845b8]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
je 0x1400582ca
mov rcx, qword [str.___t_]
cmp rcx, rdi
je 0x14005846b
test byte [rcx + 0x1c], 4
je 0x14005846b
cmp byte [rcx + 0x19], 2
jb 0x14005846b
mov edx, VariantTimeToDosDateTime
mov r8, rsi
mov rcx, qword [rcx + 0x10]
mov r9d, eax
call fcn.140001030
jmp 0x14005846b
cmp dword [rsp + 0x30], 3
je 0x140058304
mov rcx, qword [str.___t_]
cmp rcx, rdi
je 0x1400582fa
test byte [rcx + 0x1c], 4
je 0x1400582fa
cmp byte [rcx + 0x19], 2
jb 0x1400582fa
mov rcx, qword [rcx + 0x10]
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov r8, rsi
call fcn.140001010
mov ebx, 0x3f1
jmp 0x14005846b
mov eax, dword [rsp + 0x98]
test eax, eax
je 0x14005846b
mov ecx, eax
call fcn.1400625b0
mov r14, rax
test rax, rax
jne 0x14005835d
lea ebx, [rax + 8]
mov rcx, qword [str.___t_]
cmp rcx, rdi
je 0x14005846b
test byte [rcx + 0x1c], 4
je 0x14005846b
cmp byte [rcx + 0x19], 2
jb 0x14005846b
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0xd]
mov r8, rsi
call fcn.140001010
jmp 0x14005846b
lea rax, [rsp + 0x98]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rdx, [0x1400845b8]
mov qword [rsp + 0x20], r14
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
je 0x1400583bb
mov rcx, qword [str.___t_]
cmp rcx, rdi
je 0x14005846b
test byte [rcx + 0x1c], 4
je 0x14005846b
cmp byte [rcx + 0x19], 2
jb 0x14005846b
mov edx, 0xe
jmp 0x1400582b6
mov edi, dword [rsp + 0x98]
xor ebp, ebp
shr edi, 2
lea r15d, [rbp + 1]
test edi, edi
je 0x14005846b
mov rsi, r14
lea r8, [0x14009a3c0]
mov rax, qword [0x14009a3c0]
mov edx, dword [rsi]
test rax, rax
jne 0x140058498
xor r15d, r15d
inc ebp
add rsi, 4
cmp ebp, edi
jb 0x1400583dd
test r15d, r15d
jne 0x14005846b
mov rdx, r12
mov rcx, r13
call fcn.140058564
test eax, eax
je 0x140058446
mov rcx, qword [str.___t_]
lea rdx, str.___t_
cmp rcx, rdx
je 0x140058446
test byte [rcx + 0x1c], 4
je 0x140058446
cmp byte [rcx + 0x19], 2
jb 0x140058446
mov rcx, qword [rcx + 0x10]
lea edx, [r15 + 0x10]
mov r9d, eax
lea r8, [0x140084690]
call fcn.140001030
mov rax, qword [rsp + 0x90]
mov r9d, 0x80007d42
mov qword [rsp + 0x20], rax
mov eax, 1
mov r8d, eax
mov ecx, eax
lea edx, [rax + 1]
call fcn.1400629d0
mov rcx, r14
call fcn.14006264c
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, rax
mov rax, qword [rax]
cmp dword [rcx + 0x18], edx
je 0x14005849f
cmp rax, r8
jne 0x14005848d
xor ecx, ecx
test rcx, rcx
je 0x1400583ef
mov rcx, r13
call fcn.1400588a8
mov ebx, eax
test eax, eax
jne 0x1400584c2
lea r8, [0x14009a3c0]
jmp 0x1400583f2
mov rcx, qword [str.___t_]
lea rdx, str.___t_
cmp rcx, rdx
je 0x14005846b
test byte [rcx + 0x1c], 4
je 0x14005846b
cmp byte [rcx + 0x19], 2
jb 0x14005846b
mov edx, 0xf
lea r8, [0x140084690]
jmp 0x1400582b9