Function at 0x408060
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4170c6
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x424d78]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x22c], ecx
xor edi, edi
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x234], esi
lea edx, [ebp - 0x224]
push edx
push 0x20119
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408269
mov eax, 0x104
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x228]
push edx
mov edx, dword [ebp - 0x224]
push ebx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x114]
push ecx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x40825c
jmp 0x408130
lea eax, [ebp - 0x114]
inc edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408140
sub eax, edx
lea ecx, [ebp - 0x250]
je 0x408173
push eax
call fcn.00406670
mov edx, dword [ebp - 0x250]
lea eax, [ebp - 0x114]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x408167
jmp 0x408183
push 1
call fcn.00406670
mov edx, dword [ebp - 0x250]
mov byte [edx], 0
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x228]
mov dword [ebp - 0x244], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x240], ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4081a4
sub eax, edx
lea ecx, [ebp - 0x23c]
je 0x4081dc
push eax
call fcn.00406670
mov esi, dword [ebp - 0x23c]
lea eax, [ebp - 0x218]
mov edx, esi
mov ecx, eax
sub edx, ecx
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4081d0
jmp 0x4081ec
push 1
call fcn.00406670
mov esi, dword [ebp - 0x23c]
mov byte [esi], 0
mov edx, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x22c]
lea eax, [ebp - 0x250]
push eax
mov dword [ebp - 0x230], edx
call fcn.00407fc0
mov eax, 0x104
lea ecx, [ebp - 0x220]
push ecx
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x228]
push eax
mov eax, dword [ebp - 0x224]
push 0
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x114]
push edx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x408130
mov ebx, dword [ebp - 0x250]
mov ecx, dword [ebp - 0x224]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x22c]
mov edi, dword [edx]
mov dword [ebp - 4], 1
test esi, esi
je 0x408291
mov eax, dword [ebp - 0x238]
push eax
call fcn.0040d43e
push esi
call fcn.0040d43e
add esp, 8
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x4082b1
mov ecx, dword [ebp - 0x24c]
push ecx
call fcn.0040d43e
push ebx
call fcn.0040d43e
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040d820
mov esp, ebp
pop ebp
ret 8