Function at 0x40885b
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push ebx
push ebx
lea eax, [ebp - 0xc]
push ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
mov esi, 0x104
jne 0x408940
cmp dword [ebp - 0xc], ebx
jbe 0x408940
mov dword [ebp - 4], ebx
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x12b]
mov byte [ebp - 0x12c], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
mov byte [ebp - 0x230], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], esi
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x18], esi
push eax
mov dword [ebp - 0x1c], ebx
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x408931
cmp dword [ebp - 0x1c], 1
jne 0x408931
lea eax, [ebp - 0x12c]
lea ecx, [ebp - 8]
push eax
call fcn.00401de9
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.0040cba6
pop ecx
test eax, eax
pop ecx
je 0x4089f5
lea ecx, [ebp - 8]
call fcn.00401dbd
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jb 0x40889f
lea eax, [ebp - 0x28]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push ebx
push ebx
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x334]
mov dword [ebp - 0x10], esi
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call edi
cmp eax, ebx
jne 0x408ac5
lea eax, [ebp - 0x334]
push 0x2001f
push eax
lea ecx, [ebp - 4]
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.00401c2d
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x408a1f
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x20]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.0040885b
test eax, eax
je 0x408a35
cmp dword [ebp - 4], ebx
je 0x4089c4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], ebx
inc dword [ebp - 8]
cmp dword [ebp - 4], ebx
mov dword [ebp - 0x10], esi
je 0x4089d8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x334]
push eax
push dword [ebp - 8]
push dword [ebp + 8]
jmp 0x408962
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x18]
cmp dword [ecx], eax
jb 0x408a12
mov dword [ecx], eax
lea eax, [ebp - 0x230]
push eax
push dword [ebp + 0x18]
call fcn.0040c5f0
pop ecx
pop ecx
lea ecx, [ebp - 8]
call fcn.00401dbd
jmp 0x408ac3
cmp dword [ebp - 4], ebx
je 0x408a2d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
jmp 0x408ac5
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x12b]
mov byte [ebp - 0x12c], bl
push dword [ebp + 0xc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.0040c4a0
mov esi, dword [ebp + 0x10]
mov edi, eax
push esi
call fcn.0040c4a0
add edi, eax
pop ecx
cmp edi, 0x103
pop ecx
jae 0x408ab5
push dword [ebp + 0xc]
lea eax, [ebp - 0x12c]
push eax
call fcn.0040c600
lea eax, [ebp - 0x12c]
push 0x416058
push eax
call fcn.0040c600
lea eax, [ebp - 0x12c]
push esi
push eax
call fcn.0040c600
push esi
call fcn.0040c4a0
push eax
push ebx
push esi
call fcn.0040bf70
lea eax, [ebp - 0x12c]
push eax
push esi
call fcn.0040c5f0
add esp, 0x30
cmp dword [ebp - 4], ebx
je 0x408ac3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x18