Function at 0x406030
Capabilities:
Query or enumerate registry key

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x128
mov qword [rsp + 0x120], rbx
mov qword [rsp + 0x118], rbp
mov rbp, rcx
xor ecx, ecx
mov rbx, r8
mov qword [rsp + 0x110], rsi
mov dword [rsp + 0x60], ecx
mov dword [rsp + 0x64], ecx
mov qword [rsp + 0x108], rdi
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
mov r8d, r9d
mov rsi, rdx
not rcx
dec rcx
cmp r8, rcx
jae 0x4060b1
lea rcx, [r8 + rbx]
lea rdx, [0x0040d878]
call qword [sym.imp.msvcrt.dll__mbsstr]
test rax, rax
mov rdi, rax
jne 0x4060ee
mov rdx, rsi
mov r9, qword [rsp + 0x158]
mov r8, rbx
mov rcx, rbp
call qword [rsp + 0x150]
mov rdi, qword [rsp + 0x108]
mov rsi, qword [rsp + 0x110]
mov rbp, qword [rsp + 0x118]
mov rbx, qword [rsp + 0x120]
add rsp, 0x128
ret
lea rcx, [rax + 3]
lea rdx, [0x0040d874]
mov qword [rsp + 0x78], rcx
call qword [sym.imp.msvcrt.dll__mbsstr]
test rax, rax
mov rsi, rax
jne 0x406116
mov rdx, qword [rsp + 0x138]
jmp 0x4060b1
mov byte [rax], 0
inc rsi
mov byte [rdi], 0
cmp byte [rsi], 0x5c
jne 0x406127
inc rsi
mov rcx, qword [rsp + 0x138]
lea rax, [rsp + 0x70]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
jne 0x40615c
xor eax, eax
jmp 0x4060c6
test eax, eax
jne 0x406325
xor edi, edi
lea rax, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x40631a
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x40631a
nop
nop
mov rcx, qword [rsp + 0x70]
add eax, 0xffffffff
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x80]
mov edx, eax
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x68], 0x80
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov rax, qword [rsp + 0x78]
cmp byte [rax], 0
je 0x406223
lea rdx, [rsp + 0x80]
mov r8, rax
mov rcx, rbp
call fcn.004011c0
test rax, rax
je 0x40630e
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasb al, byte [rdi]
mov rdi, rbx
not rcx
dec rcx
mov rdx, rcx
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
lea rdi, [rsp + 0x80]
not rcx
dec rcx
add rdx, rcx
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
lea rcx, [rdx + rcx + 2]
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
cmp byte [rsi], 0
lea r9, [rsp + 0x80]
mov rbp, rax
mov rcx, rax
mov r8, rbx
je 0x406297
lea rdx, str._s_s_s
mov qword [rsp + 0x20], rsi
call qword [sym.imp.msvcrt.dll_sprintf]
jmp 0x4062a4
lea rdx, str._s_s
call qword [sym.imp.msvcrt.dll_sprintf]
mov rdx, qword [rsp + 0x138]
xor eax, eax
lea rdi, [rsp + 0x80]
mov rcx, 0xffffffffffffffff
mov r8, rbp
repne scasb al, byte [rdi]
mov eax, dword [rsp + 0x148]
not rcx
lea r9d, [rcx + rax + 1]
mov rax, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x130]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0x20], rax
call fcn.00406030
mov rcx, rbp
add dword [rsp + 0x64], eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rbp, qword [rsp + 0x130]
xor edi, edi
mov eax, dword [rsp + 0x60]
test eax, eax
jne 0x4061c0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x64]
jmp 0x4060c6