Function at 0x4088c4
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 0x4089a9
cmp dword [ebp - 0xc], ebx
jbe 0x4089a9
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 0x40899a
cmp dword [ebp - 0x1c], 1
jne 0x40899a
lea eax, [ebp - 0x12c]
lea ecx, [ebp - 8]
push eax
call fcn.00401de9
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.0040cd26
pop ecx
test eax, eax
pop ecx
je 0x408a5e
lea ecx, [ebp - 8]
call fcn.00401dbd
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jb 0x408908
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 0x408b2e
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 0x408a88
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.004088c4
test eax, eax
je 0x408a9e
cmp dword [ebp - 4], ebx
je 0x408a2d
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 0x408a41
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 0x4089cb
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x18]
cmp dword [ecx], eax
jb 0x408a7b
mov dword [ecx], eax
lea eax, [ebp - 0x230]
push eax
push dword [ebp + 0x18]
call fcn.0040c770
pop ecx
pop ecx
lea ecx, [ebp - 8]
call fcn.00401dbd
jmp 0x408b2c
cmp dword [ebp - 4], ebx
je 0x408a96
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
jmp 0x408b2e
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.0040c620
mov esi, dword [ebp + 0x10]
mov edi, eax
push esi
call fcn.0040c620
add edi, eax
pop ecx
cmp edi, 0x103
pop ecx
jae 0x408b1e
push dword [ebp + 0xc]
lea eax, [ebp - 0x12c]
push eax
call fcn.0040c780
lea eax, [ebp - 0x12c]
push 0x416058
push eax
call fcn.0040c780
lea eax, [ebp - 0x12c]
push esi
push eax
call fcn.0040c780
push esi
call fcn.0040c620
push eax
push ebx
push esi
call fcn.0040c0f0
lea eax, [ebp - 0x12c]
push eax
push esi
call fcn.0040c770
add esp, 0x30
cmp dword [ebp - 4], ebx
je 0x408b2c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x18