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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff8cc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40d750
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 0x2c]
mov eax, esi
call fcn.0040d4c0
test al, al
je 0x40d73a
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00406824
lea edx, [esi + 8]
mov ecx, 4
mov eax, dword [ebp - 4]
call fcn.0040697c
lea eax, [ebp - 0x734]
xor ecx, ecx
mov edx, 0x400
call fcn.00402f54
cmp dword [esi + 0xc], 0
je 0x40d58d
mov eax, dword [esi + 0xc]
call fcn.00403f54
push eax
lea eax, [esi + 0xc]
call fcn.004041ac
lea edx, [ebp - 0x734]
pop ecx
call fcn.00402a14
lea edx, [ebp - 0x734]
mov ecx, 0x400
mov eax, dword [ebp - 4]
call fcn.0040697c
lea edx, [ebp - 0x2c]
mov ecx, 4
mov eax, dword [ebp - 4]
call fcn.0040697c
mov ecx, dword [ebp - 0x28]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00403e9c
mov ebx, dword [ebp - 0x2c]
dec ebx
test ebx, ebx
jl 0x40d62d
inc ebx
xor edi, edi
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404154
push eax
push edi
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExA
lea eax, [ebp - 0x334]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00402f54
mov eax, dword [ebp - 0xc]
call fcn.00404154
mov edx, eax
lea eax, [ebp - 0x334]
call fcn.004031b0
lea edx, [ebp - 0x334]
mov ecx, pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0040697c
inc edi
dec ebx
jne 0x40d5c9
lea edx, [ebp - 0x24]
mov ecx, 4
mov eax, dword [ebp - 4]
call fcn.0040697c
mov ecx, dword [ebp - 0x20]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00403e9c
mov eax, dword [ebp - 0x1c]
call fcn.0040286c
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0x24]
dec ebx
test ebx, ebx
jl 0x40d72b
inc ebx
xor edi, edi
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404154
push eax
push edi
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegEnumValueA
lea eax, [ebp - 0x234]
xor ecx, ecx
mov edx, 0x208
call fcn.00402f54
mov eax, dword [ebp - 0xc]
call fcn.00404154
mov edx, eax
lea eax, [ebp - 0x234]
call fcn.004031b0
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
call fcn.00402f54
push 0
lea eax, [ebp - 0x134]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.0040d858
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0x100
jle 0x40d6fc
lea edx, [ebp - 0x12c]
mov eax, dword [ebp - 0x10]
mov ecx, pe_nt_image_headers32
call fcn.00402a14
jmp 0x40d710
lea edx, [ebp - 0x12c]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x130]
call fcn.00402a14
lea edx, [ebp - 0x234]
mov ecx, 0x208
mov eax, dword [ebp - 4]
call fcn.0040697c
inc edi
dec ebx
jne 0x40d665
mov eax, dword [ebp - 0x10]
call fcn.0040289c
xor eax, eax
mov dword [ebp - 0x10], eax
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d757
lea eax, [ebp - 0xc]
call fcn.00403dac
ret