Function at 0x10000558c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
xor r15d, r15d
lea r8, [0x100002350]
lea rdx, [0x100002790]
xor ecx, ecx
mov r12b, r15b
mov r14, r15
call fcn.1000074e8
lea rdx, [rsp + 0xa8]
lea esi, [r15 + 1]
mov qword [rsp + 0x20], rdx
lea rdx, [0x100002270]
mov r9d, esi
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp eax, r15d
je 0x100005614
lea r9, [0x100002270]
lea r8, [0x100002350]
lea rdx, [0x1000027d0]
mov ecx, esi
mov dword [rsp + 0x20], eax
call fcn.1000074e8
mov eax, edi
jmp 0x100005a41
lea r8, [0x10000b610]
mov ebp, r15d
mov edi, 1
mov rsi, r8
mov rdx, qword [rsi - 0x10]
mov rcx, qword [rsp + 0xa8]
mov dword [rsp + 0x90], r15d
cmp rdx, r15
je 0x10000566b
lea rax, [rsp + 0xa0]
mov r9d, edi
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0xa0]
mov ebx, eax
lea r8, [0x10000b610]
jmp 0x100005676
mov ebx, r15d
mov qword [rsp + 0xa0], rcx
lea r13, [0x10000b608]
cmp ebx, r15d
jne 0x100005771
lea rdx, [rsp + 0x90]
mov eax, ebp
lea r9, [rsp + 0x98]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rsi - 8]
shl rax, 5
add rax, r8
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp eax, 0xea
jne 0x100005726
mov ecx, dword [rsp + 0x90]
add rcx, 2
call qword [sym.imp.msvcrt.dll_malloc]
mov qword [rsi], rax
cmp rax, r15
je 0x1000058a2
mov r8d, dword [rsp + 0x90]
xor edx, edx
mov rcx, rax
add r8, 2
call sub.msvcrt.dll_memset
mov rax, qword [rsi]
mov rcx, qword [rsp + 0xa0]
lea rdx, [rsp + 0x90]
lea r9, [rsp + 0x98]
xor r8d, r8d
mov qword [rsp + 0x28], rdx
mov rdx, qword [rsi - 8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp qword [rsi - 0x10], r15
je 0x10000573a
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, r15d
jne 0x100005771
cmp ebp, 7
je 0x100005771
cmp ebp, 2
je 0x100005771
cmp qword [rsi], r15
je 0x100005771
mov rdi, qword [rsi]
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
lea edi, [rax + 1]
not rcx
cmp rcx, rdi
jne 0x100005771
mov rcx, qword [rsi]
call qword [sym.imp.msvcrt.dll_free]
mov qword [rsi], r15
movzx eax, byte [0x100013f42]
cmp qword [0x10000b610], r15
cmovne eax, edi
mov byte [0x100013f42], al
cmp qword [0x10000b650], r15
jne 0x1000057af
mov rcx, qword [0x10000b630]
cmp rcx, r15
je 0x1000057e5
lea rdx, [0x100002828]
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, r15d
jne 0x1000057b6
mov byte [0x100013f41], dil
cmp qword [0x10000b650], r15
je 0x1000057e5
mov rcx, qword [0x10000b630]
cmp rcx, r15
je 0x1000058ac
lea rdx, [0x100002828]
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, r15d
jne 0x1000058ac
cmp byte [0x100013f41], r15b
je 0x100005815
cmp qword [0x10000b6b0], r15
jne 0x1000058d6
cmp qword [0x10000b6d0], r15
jne 0x1000058d6
cmp qword [0x10000b6f0], r15
jne 0x1000058d6
cmp byte [rsi + 8], r15b
jne 0x100005887
mov rdx, qword [rsi - 8]
mov rcx, qword [0x10000b6c8]
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, r15d
jne 0x100005855
cmp qword [0x10000b690], r15
je 0x100005843
cmp qword [0x10000b670], r15
je 0x100005887
cmp byte [0x100013f41], r15b
jne 0x100005887
cmp byte [0x100013f42], r15b
jne 0x100005887
cmp ebx, 2
je 0x10000592e
cmp ebx, r15d
jne 0x100005887
mov rdi, qword [rsi]
cmp rdi, r15
je 0x100005924
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
lea edi, [rax + 1]
not rcx
cmp rcx, rdi
je 0x100005929
add ebp, edi
add rsi, 0x20
cmp ebp, 0xb
jae 0x100005948
lea r8, [0x10000b610]
jmp 0x100005626
mov ebx, 8
jmp 0x10000592e
mov rax, qword [0x10000b628]
mov r9, qword [0x10000b648]
lea r8, [0x100002350]
lea rdx, [0x100002840]
mov ecx, edi
mov qword [rsp + 0x20], rax
call fcn.1000074e8
jmp 0x100005929
mov rax, qword [0x10000b6e8]
mov r9, qword [0x10000b648]
lea r8, [0x100002350]
mov qword [rsp + 0x38], rax
mov rax, qword [0x10000b6c8]
lea rdx, [0x1000028a0]
mov qword [rsp + 0x30], rax
mov rax, qword [0x10000b6a8]
mov ecx, edi
mov qword [rsp + 0x28], rax
mov rax, qword [0x10000b628]
mov qword [rsp + 0x20], rax
call fcn.1000074e8
jmp 0x100005929
mov edi, 1
mov ebx, 0x57
mov ecx, 0xa
mov eax, ebp
mov r12b, dil
cmp ebp, ecx
cmova rax, rcx
shl rax, 5
mov r14, qword [rax + r13]
jmp 0x10000594f
cmp ebx, 2
cmove ebx, r15d
mov edi, r15d
mov esi, 1
lea rbp, [0x100002350]
mov rcx, qword [r13 + 8]
cmp edi, 7
je 0x10000596c
cmp edi, 2
jne 0x100005973
lea rcx, [0x100002928]
mov r9, qword [r13]
cmp rcx, r15
lea rax, [0x100002950]
cmovne rax, rcx
lea rdx, [0x100002960]
mov r8, rbp
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.1000074e8
add edi, esi
add r13, 0x20
cmp edi, 0xb
jb 0x10000595e
cmp ebx, r15d
jne 0x100005a09
cmp byte [0x100013f42], r15b
jne 0x100005a09
mov rdi, qword [0x10000b690]
cmp rdi, r15
je 0x1000059d1
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasw ax, word [rdi]
not rcx
cmp rcx, rsi
jne 0x100005a09
mov rdi, qword [0x10000b670]
cmp rdi, r15
je 0x1000059ee
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasw ax, word [rdi]
not rcx
cmp rcx, rsi
jne 0x100005a09
mov eax, 0x57
lea rdx, [0x100002980]
mov r8, rbp
mov r9d, eax
mov ecx, esi
mov ebx, eax
call fcn.1000074e8
cmp r12b, r15b
je 0x100005a31
cmp r14, r15
lea r9, [0x100002a10]
lea rdx, [0x100002a20]
mov r8, rbp
mov ecx, esi
cmovne r9, r14
mov dword [rsp + 0x20], ebx
call fcn.1000074e8
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret