Function at 0x4068df
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xb0
mov eax, 0x434429
call fcn.004118f8
mov ebx, ecx
mov dword [ebp - 0x78], ebx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov edi, dword [ebp + 0xc]
xor esi, esi
push esi
push 0x104
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x88], esi
call fcn.0040904f
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00403110
mov dword [ebp - 0xa4], eax
mov eax, dword [eax]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x90]
push eax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.00403560
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x80], eax
test eax, eax
jne 0x406b51
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x71], al
call fcn.00403560
mov ecx, eax
call fcn.00404e6d
lea ecx, [ebp - 0x28]
call fcn.00403560
push eax
lea ecx, [ebp - 0x58]
call fcn.004029e0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x58]
push eax
lea edi, [ebx + 0x38]
lea eax, [ebp - 0x98]
mov dword [ebp - 0x9c], edi
push eax
mov ecx, edi
call fcn.004092c5
mov ebx, dword [ebp - 0x98]
cmp ebx, dword [edi]
je 0x4069d7
lea eax, [ebx + 0x10]
push eax
lea ecx, [ebp - 0x58]
call fcn.0040a129
test eax, eax
jns 0x4069d9
mov ebx, dword [edi]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00403720
cmp ebx, dword [edi]
je 0x406a0c
mov ebx, dword [ebx + 0x28]
mov eax, dword [ebp - 0x8c]
cmp eax, dword [ebx + 4]
ja 0x406a55
jb 0x406b45
mov eax, dword [ebp - 0x90]
cmp eax, dword [ebx]
ja 0x406a55
jmp 0x406b45
push 0x20
call fcn.00411410
mov ebx, eax
pop ecx
mov dword [ebp - 0xa8], ebx
mov byte [ebp - 4], 3
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
mov byte [ebp - 4], 1
mov edi, ebx
mov esi, dword [ebp + 0x10]
push 8
pop ecx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x88]
mov edi, dword [ebp - 0x9c]
mov byte [ebp - 0x71], 1
push dword [ebp - 0xa0]
lea ecx, [ebp - 0x40]
call fcn.004029e0
mov byte [ebp - 4], 4
push 0x44382c
call fcn.00402d80
pop ecx
push eax
push 0x44382c
lea ecx, [ebp - 0x40]
call fcn.00404c72
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.00404db3
lea eax, [ebp - 0x7c]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x40]
call fcn.00403560
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406b29
mov ecx, dword [ebp - 0x78]
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x7c]
call fcn.00406825
mov eax, dword [ebp - 0x90]
lea ecx, [ebp - 0x28]
mov dword [ebx], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebx + 4], eax
call fcn.00403560
mov ecx, eax
call fcn.00404e6d
lea ecx, [ebp - 0x28]
call fcn.00403560
push eax
lea ecx, [ebp - 0x70]
call fcn.004029e0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0xb0]
mov ecx, edi
push eax
call fcn.0040a297
mov eax, dword [ebp - 0xb0]
mov dword [eax + 0x28], ebx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
call fcn.00403720
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x406b39
cmp byte [ebp - 0x71], 0
je 0x406b39
push 0x20
push ebx
call fcn.004113da
pop ecx
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00403720
mov edi, dword [ebp - 0x84]
mov ebx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x80]
inc esi
test eax, eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x88], esi
je 0x406944
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403720
call fcn.004118a2
ret 0xc