Function at 0x1000573fc
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
xor r14d, r14d
lea rax, [r11 - 0x54]
mov r15, r8
mov qword [r11 - 0x60], r14
mov qword [r11 - 0x68], r14
mov qword [r11 - 0x70], rax
lea rax, [r11 - 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [r11 - 0x78], rax
lea rax, [r11 + 0x20]
xor edx, edx
mov qword [r11 - 0x80], rax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
mov rdi, rcx
mov dword [r11 + 0x20], r14d
mov dword [r11 - 0x58], r14d
mov dword [r11 - 0x54], r14d
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, r14d
jne 0x1000574d8
lea rsi, [0x10002a598]
cmp rsi, r14
je 0x1000574d8
cmp r15, r14
je 0x1000574d8
or r12, 0xffffffffffffffff
mov rbx, r14
mov ebp, r14d
cmp dword [rsp + 0xd8], r14d
jbe 0x100057692
mov ecx, dword [rsp + 0x60]
lea eax, [r14 + 2]
inc ecx
mul rcx
cmovo rax, r12
mov rcx, rax
call fcn.10007fa96
mov rbx, rax
cmp rax, r14
je 0x1000574d8
mov ecx, dword [rsp + 0x64]
add rcx, 2
call qword [sym.imp.msvcrt.dll_malloc]
mov rsi, rax
cmp rax, r14
jne 0x1000574f5
mov rcx, rbx
call fcn.10007faa2
xor eax, eax
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, dword [rsp + 0xd8]
inc ecx
shl rcx, 2
call qword [sym.imp.msvcrt.dll_malloc]
mov r12, rax
cmp rax, r14
jne 0x100057523
mov rcx, rbx
call fcn.10007faa2
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
jmp 0x1000574d8
movsxd r13, dword [rsp + 0xd8]
mov edx, 0xff
mov rcx, rax
lea r8d, [r13 + 1]
shl r8, 2
call sub.msvcrt.dll_memset
cmp r13d, r14d
jbe 0x10005763e
lea r14, [r12 + r13*4]
mov eax, dword [rsp + 0x60]
lea edx, [r13 - 1]
lea r9, [rsp + 0x70]
inc eax
mov r8, rbx
mov rcx, rdi
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x64]
add eax, 2
mov dword [rsp + 0x6c], eax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x10005763b
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x10002a598]
repne scasw ax, word [rdi]
lea rdx, [0x10002a598]
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x10005760a
cmp dword [rsp + 0x68], 1
je 0x1000575d7
cmp dword [rsp + 0x68], 2
jne 0x1000575e7
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x100057621
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x10002a598]
repne scasw ax, word [rdi]
not rcx
lea rcx, [rbx + rcx*2 - 2]
call qword [sym.imp.msvcrt.dll__wtoi]
mov ebp, eax
mov dword [r14], eax
sub r14, 4
add r13d, 0xffffffff
je 0x10005763b
mov rdi, qword [rsp + 0xc0]
jmp 0x10005754d
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov rcx, r12
call qword [sym.imp.msvcrt.dll_free]
mov rax, rbx
jmp 0x1000574da
xor r14d, r14d
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov edx, dword [rsp + 0xd8]
mov eax, 1
cmp edx, eax
jb 0x100057672
lea rcx, [r12 + 4]
cmp dword [rcx], ebp
je 0x10005766a
inc eax
add rcx, 4
cmp eax, edx
jbe 0x10005765c
cmp eax, edx
ja 0x100057672
inc ebp
jmp 0x10005764e
mov rcx, r12
call qword [sym.imp.msvcrt.dll_free]
cmp ebp, 0x1869f
jg 0x1000574d0
lea rsi, [0x10002a598]
or r12, 0xffffffffffffffff
xor eax, eax
mov rcx, r12
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
dec rcx
add ecx, ecx
mov dword [rsp + 0xd8], ecx
lea edx, [rcx + 6]
cmp dword [rsp + 0x60], edx
jae 0x1000576f5
cmp rbx, r14
je 0x1000576c9
mov rcx, rbx
call fcn.10007faa2
mov ecx, dword [rsp + 0xd8]
lea edx, [rcx + 6]
mov eax, 2
mul rdx
cmovo rax, r12
mov rcx, rax
call fcn.10007fa96
mov rbx, rax
cmp rax, r14
je 0x1000574d8
mov ecx, dword [rsp + 0xd8]
jmp 0x1000576fe
cmp rbx, r14
je 0x100057633
mov r8d, ecx
mov rdx, rsi
mov rcx, rbx
call sub.msvcrt.dll_memcpy
mov edx, dword [rsp + 0xd8]
mov r8d, 0xa
shr rdx, 1
mov ecx, ebp
lea rdx, [rbx + rdx*2]
call qword [sym.imp.msvcrt.dll__itow]
jmp 0x100057633