Function at 0x100005c70
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x70
mov r13d, 1
cmp dword [0x100009e64], r13d
jne 0x100005ca2
lea rdx, [0x1000023f8]
lea rcx, [0x100002328]
call qword [sym.imp.msvcrt.dll_printf]
xor r12d, r12d
lea rax, [rsp + 0x60]
lea rdx, [0x100001b30]
mov r9d, r13d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x60], r12
mov dword [rsp + 0xb0], r12d
mov dword [rsp + 0xc0], r12d
mov dword [rsp + 0xb8], r12d
mov dword [rsp + 0xc8], r12d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, r12d
mov ebx, eax
je 0x100005d0d
cmp dword [0x100009e64], r13d
jne 0x100006066
mov r9d, 0x209
jmp 0x100005f47
mov rcx, qword [rsp + 0x60]
mov eax, 4
lea r9, [rsp + 0xc0]
mov dword [rsp + 0xb0], eax
mov dword [rsp + 0xc0], eax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xb8]
lea rdx, [0x100001a70]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, r12d
mov ebx, eax
je 0x100005d76
cmp dword [0x100009e64], r13d
jne 0x100006066
mov r9d, 0x211
jmp 0x100005f47
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov rdi, 0xffffffff80000050
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp eax, r12d
mov ebx, eax
je 0x100005ddd
cmp dword [0x100009e64], r13d
jne 0x100006066
mov r9d, 0x217
jmp 0x100005f47
mov ecx, dword [rsp + 0xb8]
shl rcx, 3
call qword [sym.imp.msvcrt.dll_malloc]
cmp rax, r12
mov qword [0x100009e40], rax
jne 0x100005e1a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x100009e64], r13d
mov ebx, eax
jne 0x100006066
mov r9d, 0x21d
jmp 0x100005f47
mov ecx, dword [rsp + 0xb8]
cmp ecx, r12d
jbe 0x100005e37
mov r8, rcx
xor edx, edx
mov rcx, rax
shl r8, 3
call sub.msvcrt.dll_memset
mov eax, dword [rsp + 0xc8]
add eax, eax
mov ecx, eax
mov dword [rsp + 0xb0], eax
call qword [sym.imp.msvcrt.dll_malloc]
cmp rax, r12
mov rsi, rax
jne 0x100005e77
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x100009e64], r13d
mov ebx, eax
jne 0x100006066
mov r9d, 0x229
jmp 0x100005f47
lea rax, [rsp + 0xb0]
lea r9, [rsp + 0xc0]
lea rdx, [0x100001b20]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, r12d
mov ebx, eax
je 0x100005ec3
cmp dword [0x100009e64], r13d
jne 0x100006066
mov r9d, 0x22f
jmp 0x100005f47
mov eax, dword [rsp + 0xc8]
add eax, eax
mov ecx, eax
mov dword [rsp + 0xb0], eax
call qword [sym.imp.msvcrt.dll_malloc]
cmp rax, r12
mov rbp, rax
jne 0x100005f00
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x100009e64], r13d
mov ebx, eax
jne 0x100006066
mov r9d, 0x236
jmp 0x100005f47
lea rax, [rsp + 0xb0]
lea r9, [rsp + 0xc0]
lea rdx, [0x100001b10]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, r12d
mov ebx, eax
je 0x100005f62
cmp dword [0x100009e64], r13d
jne 0x100006066
mov r9d, 0x23c
lea r8, [0x100002370]
lea rcx, [0x1000023b8]
mov edx, eax
call qword [sym.imp.msvcrt.dll_printf]
jmp 0x100006049
or r14, 0xffffffffffffffff
jmp 0x100005fab
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__wtoi]
mov rdi, rsi
mov rcx, r14
mov r11d, eax
xor eax, eax
repne scasw ax, word [rdi]
mov rax, qword [0x100009e40]
not rcx
sub rcx, r13
lea rdx, [rsi + rcx*2 + 2]
mov rcx, r14
mov qword [rax + r11*8], rdx
xor eax, eax
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, r13
lea rsi, [rdx + rcx*2 + 2]
cmp word [rsi], r12w
jne 0x100005f68
jmp 0x100005ff6
mov rcx, rbp
call qword [sym.imp.msvcrt.dll__wtoi]
mov rdi, rbp
mov rcx, r14
mov r11d, eax
xor eax, eax
repne scasw ax, word [rdi]
mov rax, qword [0x100009e40]
not rcx
sub rcx, r13
lea rdx, [rbp + rcx*2 + 2]
mov rcx, r14
mov qword [rax + r11*8], rdx
xor eax, eax
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, r13
lea rbp, [rdx + rcx*2 + 2]
cmp word [rbp], r12w
jne 0x100005fb3
cmp dword [0x100009e64], r13d
jne 0x100006066
mov ecx, dword [rsp + 0xb8]
mov edi, r12d
cmp ecx, r12d
jbe 0x100006052
mov rsi, r12
mov rax, qword [0x100009e40]
mov r8, qword [rsi + rax]
cmp r8, r12
je 0x10000603e
lea rcx, [0x100002410]
mov edx, edi
call qword [sym.imp.msvcrt.dll_wprintf]
mov ecx, dword [rsp + 0xb8]
add edi, r13d
add rsi, 8
cmp edi, ecx
jb 0x100006018
cmp dword [0x100009e64], r13d
jne 0x100006066
lea rdx, [0x1000023f8]
lea rcx, [0x1000023d0]
call qword [sym.imp.msvcrt.dll_printf]
mov eax, ebx
add rsp, 0x70
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret