Function at 0x40684e
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xa0
mov eax, 0x5548a0
call fcn.00534f83
mov esi, ecx
mov dword [ebp - 0x78], esi
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov ebx, dword [ebp + 0xc]
xor edi, edi
push edi
push 0x104
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x84], edi
call fcn.00408f0c
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 0xac], edx
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0xa4], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x90]
cmp dword [ebp - 0x14], 8
push ecx
push edx
push edx
push edx
mov dword [ebp - 0x98], eax
lea ecx, [ebp - 0x98]
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x80], eax
test eax, eax
jne 0x406950
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x71], al
cmovae ecx, dword [ebp - 0x28]
call fcn.0040a612
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x58]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00404880
mov byte [ebp - 4], 2
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0xa0]
lea ebx, [esi + 0x38]
push eax
mov ecx, ebx
call fcn.00409098
mov esi, dword [eax]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00404190
cmp esi, dword [ebx]
je 0x406976
mov ebx, dword [esi + 0x28]
mov eax, dword [ebp - 0x8c]
cmp eax, dword [ebx + 4]
ja 0x4069c5
jb 0x406947
mov eax, dword [ebp - 0x90]
cmp eax, dword [ebx]
ja 0x4069c5
mov esi, dword [ebp - 0x78]
mov eax, dword [ebp - 0x80]
mov ebx, dword [ebp - 0x7c]
inc edi
mov dword [ebp - 0x84], edi
push 0
pop edx
test eax, eax
je 0x4068a2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00404190
call fcn.00534f32
ret 0xc
push 0x20
call fcn.004153bf
mov ebx, eax
pop ecx
mov dword [ebp - 0x9c], ebx
mov byte [ebp - 4], 3
test ebx, ebx
je 0x4069a7
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
mov byte [ebx + 0x18], 1
jmp 0x4069a9
xor ebx, ebx
mov byte [ebp - 4], 1
test ebx, ebx
je 0x406947
mov esi, dword [ebp + 0x10]
mov edi, ebx
push 8
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x84]
mov byte [ebp - 0x71], 1
push dword [ebp - 0x94]
lea ecx, [ebp - 0x40]
call fcn.00404880
mov byte [ebp - 4], 4
mov esi, 0x59b908
push esi
call fcn.00404800
pop ecx
push eax
push esi
lea ecx, [ebp - 0x40]
call fcn.0040557a
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040566e
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x88]
push ecx
push 0x20019
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push 0
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406a9b
mov esi, dword [ebp - 0x78]
mov ecx, esi
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x88]
call fcn.00406791
mov eax, dword [ebp - 0x90]
lea ecx, [ebp - 0x28]
mov dword [ebx], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebx + 4], eax
cmp dword [ebp - 0x14], 8
cmovae ecx, dword [ebp - 0x28]
call fcn.0040a612
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x70]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00404880
mov byte [ebp - 4], 5
lea eax, [ebp - 0x70]
push eax
lea ecx, [esi + 0x38]
call fcn.00408fd2
mov dword [eax], ebx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
call fcn.00404190
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x406aab
cmp byte [ebp - 0x71], 0
je 0x406aa8
push ebx
call fcn.004153f5
pop ecx
mov esi, dword [ebp - 0x78]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00404190
jmp 0x40694a