Function at 0x100041f20
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x4b0
mov rax, qword [0x10004a110]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
lea rax, [rsp + 0x50]
mov rbp, rcx
xor ecx, ecx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
lea rax, [rsp + 0x58]
mov rdi, rdx
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov dword [rsp + 0x58], 4
mov dword [rsp + 0x70], ecx
mov esi, ecx
mov qword [rsp + 0x60], rcx
lea ebx, [rcx + 1]
mov dword [rsp + 0x54], 0x104
xor edx, edx
jmp 0x1000421fb
mov ecx, dword [rsp + 0x50]
cmp ecx, edx
je 0x1000421d9
mov eax, dword [rsp + 0x58]
cmp eax, edx
jbe 0x1000421cf
cmp eax, 2
jbe 0x100042137
cmp eax, 3
je 0x100042095
jbe 0x1000421cf
cmp eax, 5
jbe 0x100042036
cmp eax, 7
jne 0x1000421cf
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
xor edx, edx
mov qword [rsp + 0x60], rax
cmp rax, rdx
je 0x1000421cf
lea rcx, [rsp + 0x50]
lea r9, [rsp + 0x54]
lea r8, [rsp + 0x80]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
mov edx, esi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
xor edx, edx
cmp eax, edx
jne 0x100042118
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x60]
jmp 0x1000420f3
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x54]
lea r8, [rsp + 0x80]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x70]
mov rcx, rbp
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
xor edx, edx
cmp eax, edx
jne 0x1000421d1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x70]
jmp 0x1000421ab
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
xor edx, edx
mov qword [rsp + 0x60], rax
cmp rax, rdx
je 0x1000421cf
lea rcx, [rsp + 0x50]
lea r9, [rsp + 0x54]
lea r8, [rsp + 0x80]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
mov edx, esi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
xor edx, edx
cmp eax, edx
jne 0x100042118
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x60]
mov r9d, dword [rsp + 0x58]
lea rdx, [rsp + 0x80]
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor edx, edx
cmp eax, edx
cmovne ebx, edx
mov rcx, qword [rsp + 0x60]
cmp rcx, rdx
je 0x1000421d1
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
xor edx, edx
mov qword [rsp + 0x60], rdx
jmp 0x1000421d1
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x54]
lea r8, [rsp + 0x80]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x290]
mov rcx, rbp
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov dword [rsp + 0x50], 0x208
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
xor edx, edx
cmp eax, edx
jne 0x1000421d1
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x290]
repne scasw ax, word [rdi]
mov rdi, qword [rsp + 0x68]
not rcx
lea eax, [rcx + rcx]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x290]
mov r9d, dword [rsp + 0x58]
lea rdx, [rsp + 0x80]
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor edx, edx
cmp eax, edx
je 0x1000421d1
mov ebx, edx
mov dword [rsp + 0x54], 0x104
lea rax, [rsp + 0x50]
inc esi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
mov edx, esi
lea r9, [rsp + 0x54]
lea r8, [rsp + 0x80]
mov rcx, rbp
mov dword [rsp + 0x50], 0x208
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
xor edx, edx
mov dword [rsp + 0x54], 0x104
cmp eax, edx
je 0x100041f91
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rdx
lea r9, [rsp + 0x54]
lea r8, [rsp + 0x80]
mov rcx, rbp
mov edi, edx
mov qword [rsp + 0x20], rdx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
xor ecx, ecx
cmp eax, ecx
jne 0x10004234c
mov rsi, qword [rsp + 0x68]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ecx, ecx
cmp eax, ecx
jne 0x10004230a
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x78]
lea rdx, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ecx
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor ecx, ecx
cmp eax, ecx
jne 0x1000422f9
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x68]
call fcn.100041f20
neg eax
sbb ecx, ecx
and ebx, ecx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1000422fb
mov ebx, ecx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
jmp 0x10004230c
mov ebx, ecx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
inc edi
lea r9, [rsp + 0x54]
lea r8, [rsp + 0x80]
mov rcx, rbp
mov edx, edi
mov dword [rsp + 0x54], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
xor ecx, ecx
cmp eax, ecx
je 0x100042266
mov eax, ebx
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.1000475f0
mov rbx, qword [rsp + 0x4e0]
add rsp, 0x4b0
pop rdi
pop rsi
pop rbp
ret