Function at 0x4065b3
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
push ebx
push esi
push edi
push 0xc0c
push 8
push dword [0x423538]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
xor esi, esi
cmp edi, esi
mov dword [ebp - 0xc], edi
je 0x40683c
lea eax, [ebp - 0xd4]
push eax
mov edx, 0x4020b8
call fcn.0040779f
lea eax, [ebp - 0x118]
push eax
mov edx, 0x402078
call fcn.0040779f
pop ecx
pop ecx
lea eax, [ebp - 0xd4]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x118]
push 8
mov dword [ebp - 0x28], eax
push esi
lea eax, [ebp - 0x1c]
push eax
call fcn.0040d086
lea eax, [ebp - 0x74]
push eax
mov edx, 0x402064
call fcn.0040779f
lea eax, [ebp - 0x60]
push eax
mov edx, 0x402240
call fcn.0040779f
lea eax, [ebp - 0x38]
push eax
mov edx, 0x402304
call fcn.0040779f
lea eax, [ebp - 0x4c]
push eax
mov edx, 0x40222c
call fcn.0040779f
lea eax, [edi + 0x1fe]
add esp, 0x10
add eax, 0x3fc
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], esi
mov ebx, 0xff
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x10]
push 8
push esi
push dword [ebp + eax*4 - 0x2c]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40680e
push esi
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x320]
push eax
mov dword [ebp - 0x14], esi
push esi
jmp 0x4067ed
mov edi, dword [ebp - 0xc]
inc dword [ebp - 0x14]
push ebx
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x320]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a654
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4067db
cmp eax, esi
jbe 0x4067db
push ebx
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x320]
push eax
mov eax, dword [ebp - 4]
add edi, 0x1fe
call fcn.0040a654
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x406707
cmp eax, esi
ja 0x406732
push ebx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x320]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a654
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4067db
cmp eax, esi
jbe 0x4067db
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x20]
push ecx
push 1
push esi
lea ecx, [ebp - 0x320]
push ecx
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40676d
push ebx
lea eax, [edi + 0x1fe]
push eax
push esi
lea eax, [ebp - 0x4c]
push eax
lea esi, [ebp - 0x20]
call fcn.0040a622
add esp, 0x10
xor esi, esi
jmp 0x406770
or eax, 0xffffffff
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4067db
cmp eax, esi
jbe 0x4067db
mov eax, dword [ebp - 0xc]
add eax, 0x1fe
lea edi, [eax + 0x1fe]
call fcn.00406558
test eax, eax
jle 0x4067db
lea eax, [ebp - 0x94]
push eax
mov edx, 0x4023c8
call fcn.0040779f
mov eax, dword [ebp - 0xc]
push eax
push edi
mov edi, dword [ebp - 0x24]
add eax, 0x1fe
push eax
lea eax, [ebp - 0x94]
push eax
mov edx, 0x307
call fcn.0040d5e2
add esp, 0x14
cmp eax, esi
jle 0x4067db
push edi
lea ecx, [ebp - 0x1c]
call fcn.0040d1f4
test al, al
pop ecx
je 0x4067db
inc dword [ebp - 0x18]
push esi
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x320]
push eax
push dword [ebp - 0x14]
push dword [ebp - 4]
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4066ad
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 2
jb 0x406674
push dword [ebp - 0xc]
call fcn.0040d023
cmp dword [ebp - 0x18], esi
pop ecx
jbe 0x406833
mov esi, dword [ebp - 0x1c]
call fcn.00405767
jmp 0x40683c
push dword [ebp - 0x1c]
call fcn.0040d023
pop ecx
pop edi
pop esi
pop ebx
leave
ret