Function at 0x4656a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x550ba0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x868
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x465701
mov byte [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.0040b670
mov al, byte [ebp - 0x10]
jmp 0x4658e7
push 0
push 0
push 0
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x34]
push edx
push 0
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x24]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp - 0x24], 0
jbe 0x4658a5
mov dword [ebp - 0x1c], 0
jmp 0x465745
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x24]
jae 0x4658a3
mov dword [ebp - 0x2c], 0x104
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x25c]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x46587c
xor eax, eax
mov word [ebp - 0x874], ax
push 0x616
push 0
lea ecx, [ebp - 0x872]
push ecx
call fcn.0050c840
add esp, 0xc
lea edx, [ebp - 0x25c]
push edx
mov eax, dword [ebp + 0xc]
push eax
push str._s_s
lea ecx, [ebp - 0x874]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
lea ecx, [ebp - 0x874]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x465870
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x874]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
lea edx, [ebp - 0x54]
push edx
call fcn.004655e0
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.0040aef0
movzx eax, al
test eax, eax
jne 0x465864
lea ecx, [ebp + 0x14]
call fcn.00407600
push eax
push 0
lea ecx, [ebp + 0x14]
call fcn.0040dab0
push eax
lea ecx, [ebp - 0x54]
call fcn.00453730
cmp eax, 0xffffffff
je 0x465864
mov byte [ebp - 0xf], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.0040b670
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.0040b670
mov al, byte [ebp - 0xf]
jmp 0x4658e7
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.0040b670
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x46589e
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x11], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.0040b670
mov al, byte [ebp - 0x11]
jmp 0x4658e7
jmp 0x46573c
jmp 0x4658c7
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.0040b670
mov al, byte [ebp - 0xd]
jmp 0x4658e7
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0xe], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.0040b670
mov al, byte [ebp - 0xe]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret