Function at 0x100042378
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], r8
mov qword [r11 + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
xor r15d, r15d
mov rax, rcx
lea rcx, [r11 - 0x54]
mov qword [r11 - 0x60], r15
mov qword [r11 - 0x68], r15
mov qword [r11 - 0x70], rcx
lea rcx, [r11 - 0x58]
mov rdi, r8
mov r14, rdx
mov qword [r11 - 0x78], rcx
lea rcx, [r11 + 0x20]
xor r9d, r9d
mov qword [r11 - 0x80], rcx
mov qword [rsp + 0x30], r15
xor r8d, r8d
mov rcx, rax
xor edx, edx
mov qword [rsp + 0x28], r15
mov dword [r11 + 0x20], r15d
mov dword [r11 - 0x58], r15d
mov dword [r11 - 0x54], r15d
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, r15d
jne 0x100042456
cmp r14, r15
je 0x100042456
cmp rdi, r15
je 0x100042456
or rdi, 0xffffffffffffffff
mov rbx, r15
mov ebp, r15d
cmp dword [rsp + 0xd8], r15d
jbe 0x100042607
mov ecx, dword [rsp + 0x60]
lea eax, [rdi + 3]
inc ecx
mul rcx
cmovo rax, rdi
mov rcx, rax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
mov rbx, rax
cmp rax, r15
je 0x100042456
mov ecx, dword [rsp + 0x64]
add rcx, 2
call qword [sym.imp.msvcrt.dll_malloc]
mov rsi, rax
cmp rax, r15
jne 0x100042473
mov rcx, rbx
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
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, r15
jne 0x1000424a1
mov rcx, rbx
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
jmp 0x100042456
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, r15d
jbe 0x1000425be
lea r15, [r12 + r13*4]
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0xc0]
lea edx, [r13 - 1]
inc eax
lea r9, [rsp + 0x70]
mov r8, rbx
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 0x1000425bb
mov rcx, rdi
xor eax, eax
mov rdi, r14
repne scasw ax, word [rdi]
mov rdx, r14
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x100042585
cmp dword [rsp + 0x68], 1
je 0x100042551
cmp dword [rsp + 0x68], 2
jne 0x100042566
mov rdx, qword [rsp + 0xd0]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x100042598
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r14
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 [r15], eax
sub r15, 4
add r13d, 0xffffffff
je 0x1000425b2
or rdi, 0xffffffffffffffff
jmp 0x1000424cb
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov rcx, r12
call qword [sym.imp.msvcrt.dll_free]
mov rax, rbx
jmp 0x100042458
xor r15d, r15d
or rdi, 0xffffffffffffffff
jmp 0x1000425be
xor r15d, r15d
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov edx, dword [rsp + 0xd8]
mov eax, 1
cmp edx, eax
jb 0x1000425f2
lea rcx, [r12 + 4]
cmp dword [rcx], ebp
je 0x1000425ea
inc eax
add rcx, 4
cmp eax, edx
jbe 0x1000425dc
cmp eax, edx
ja 0x1000425f2
inc ebp
jmp 0x1000425ce
mov rcx, r12
call qword [sym.imp.msvcrt.dll_free]
cmp ebp, 0x1869f
jg 0x10004244e
mov rcx, rdi
xor eax, eax
mov rdi, r14
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 0x100042671
cmp rbx, r15
je 0x10004263e
mov rcx, rbx
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov ecx, dword [rsp + 0xd8]
lea edx, [rcx + 6]
mov rcx, 0xffffffffffffffff
mov eax, 2
mul rdx
cmovo rax, rcx
mov rcx, rax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
mov rbx, rax
cmp rax, r15
je 0x100042456
mov ecx, dword [rsp + 0xd8]
jmp 0x10004267a
cmp rbx, r15
je 0x1000425aa
mov r8d, ecx
mov rdx, r14
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 0x1000425aa