Function at 0x229152c0e
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x5b8
xor r12d, r12d
mov rbx, rcx
lea rcx, [0x22915d4b4]
call fcn.2291551d0
mov rdi, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor r8d, r8d
mov r9d, 0x108
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x88]
mov rdx, qword [rsp + 0x48]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call rdi
test eax, eax
jne 0x229153035
mov ecx, 0x40000
call fcn.229154520
mov r12, rax
test rax, rax
je 0x229153027
lea rdx, [0x22915d420]
mov rcx, rax
xor esi, esi
call sub.msvcrt.dll_strcpy
lea rcx, [0x22915d523]
call fcn.2291551d0
lea rcx, [0x22915d542]
mov qword [rsp + 0x50], rax
call fcn.2291551d0
lea rcx, [0x22915d567]
mov qword [rsp + 0x58], rax
call fcn.2291551d0
lea rcx, [0x22915d586]
mov qword [rsp + 0x60], rax
call fcn.229155150
lea rcx, [0x22915d590]
mov r13, rax
call fcn.229155150
mov qword [rsp + 0x70], rdi
mov r15, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov qword [rsp + 0x68], rax
lea r14, [rsp + 0x1a0]
mov rax, qword [rsp + 0x68]
mov edx, esi
mov dword [rsp + 0x80], 0x104
mov qword [rsp + 0x38], 0
mov r8, r14
mov rcx, qword [rsp + 0x88]
lea r9, [rsp + 0x80]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call rax
test eax, eax
jne 0x229152fed
lea rax, [rsp + 0x90]
xor r8d, r8d
mov r9d, 0x101
mov rdx, r14
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x88]
mov rax, qword [rsp + 0x70]
call rax
test eax, eax
jne 0x229152fe6
lea rax, [rsp + 0x84]
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
lea rdi, [rsp + 0x3a8]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x90]
mov dword [rsp + 0x84], 0x104
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x229152fd8
mov eax, dword [rsp + 0x84]
mov rcx, rdi
lea rbp, [rsp + 0x3a9]
mov byte [rsp + rax + 0x3a8], 0
mov eax, dword [rsp + 0x84]
mov byte [rsp + rax + 0x3a9], 0
call fcn.22915235d
mov r14, rax
test rax, rax
je 0x229152e4c
cmp byte [r12], 0
je 0x229152e11
test esi, esi
je 0x229152e11
mov rdx, r13
mov rcx, r12
call sub.msvcrt.dll_strcat
mov rcx, r14
call sub.msvcrt.dll_strlen
lea r9, [rsp + 0x9c]
mov rdx, r14
mov rcx, r9
mov r8d, eax
mov qword [rsp + 0x78], r9
call fcn.229151483
mov r9, qword [rsp + 0x78]
mov rcx, r12
mov rdx, r9
call sub.msvcrt.dll_strcat
mov rcx, r14
call fcn.229154578
lea rax, [rsp + 0x84]
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
lea r14, [rsp + 0x3a8]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x90]
mov dword [rsp + 0x84], 0x104
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x229152efc
mov eax, dword [rsp + 0x84]
mov rcx, r14
mov byte [rdi + rax], 0
mov eax, dword [rsp + 0x84]
mov byte [rax + rbp], 0
call fcn.22915235d
mov r14, rax
test rax, rax
je 0x229152f12
mov rdx, r13
mov rcx, r12
call sub.msvcrt.dll_strcat
mov rcx, r14
call sub.msvcrt.dll_strlen
lea r9, [rsp + 0x9c]
mov rdx, r14
mov r8d, eax
mov rcx, r9
mov qword [rsp + 0x78], r9
call fcn.229151483
mov r9, qword [rsp + 0x78]
mov rcx, r12
mov rdx, r9
call sub.msvcrt.dll_strcat
mov rcx, r14
call fcn.229154578
jmp 0x229152f12
mov rdx, r13
mov rcx, r12
call sub.msvcrt.dll_strcat
mov rdx, r15
mov rcx, r12
call sub.msvcrt.dll_strcat
lea rax, [rsp + 0x84]
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
lea r14, [rsp + 0x3a8]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x90]
mov dword [rsp + 0x84], 0x104
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x229152fc2
mov eax, dword [rsp + 0x84]
mov rcx, r14
mov byte [rdi + rax], 0
mov eax, dword [rsp + 0x84]
mov byte [rax + rbp], 0
call fcn.22915235d
mov r14, rax
test rax, rax
je 0x229152fd8
mov rdx, r13
mov rcx, r12
call sub.msvcrt.dll_strcat
mov rcx, r14
call sub.msvcrt.dll_strlen
lea r9, [rsp + 0x9c]
mov rdx, r14
mov r8d, eax
mov rcx, r9
mov qword [rsp + 0x78], r9
call fcn.229151483
mov r9, qword [rsp + 0x78]
mov rcx, r12
mov rdx, r9
call sub.msvcrt.dll_strcat
mov rcx, r14
call fcn.229154578
jmp 0x229152fd8
mov rdx, r13
mov rcx, r12
call sub.msvcrt.dll_strcat
mov rdx, r15
mov rcx, r12
call sub.msvcrt.dll_strcat
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
jmp 0x229152cf4
mov rcx, r12
call sub.msvcrt.dll_strlen
mov rcx, r15
inc eax
mov dword [rbx], eax
call fcn.229155252
mov rcx, r13
call fcn.229155252
mov rcx, qword [rsp + 0x60]
call fcn.229155252
mov rcx, qword [rsp + 0x58]
call fcn.229155252
mov rcx, qword [rsp + 0x50]
call fcn.229155252
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x48]
call fcn.229155252
mov rax, r12
add rsp, 0x5b8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret