Function at 0x40b474
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbbc
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x440], ebx
mov dword [ebp - 0x444], ebx
mov dword [ebp - 0x43c], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40b6a0
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 9
mov eax, dword [ebp - 4]
call fcn.004052e4
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0x3e8
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x435]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x40b517
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x40b675
mov esi, dword [ebp - 0x2c]
dec esi
test esi, esi
jl 0x40b66c
inc esi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], 0x3e8
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x435]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40b662
lea edx, [ebp - 0x435]
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0x28]
call fcn.004035f0
push dword [ebp - 4]
push 0x40b6b8
push dword [ebp - 0x10]
lea eax, [ebp - 0x43c]
mov edx, 3
call fcn.00403744
mov eax, dword [ebp - 0x43c]
call fcn.00405314
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40b662
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00405320
push ebx
call sub.advapi32.dll_RegCloseKey_1
cmp byte [ebp - 9], 0
je 0x40b5dd
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x10]
call fcn.00403598
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x14]
call fcn.00403598
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x18]
call fcn.00403598
lea ecx, [ebp - 0x444]
mov edx, 2
mov eax, dword [ebp - 0x14]
call fcn.00405040
mov eax, dword [ebp - 0x444]
lea edx, [ebp - 0x440]
call fcn.00405bcc
mov edx, dword [ebp - 0x440]
lea eax, [ebp - 0x14]
call fcn.00403598
cmp dword [ebp - 0x14], 0
je 0x40b662
cmp dword [ebp - 0x10], 0
je 0x40b662
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x14]
mov eax, dword [0x40e68c]
mov ebx, dword [eax]
call dword [ebx + 0x20]
test al, al
jne 0x40b662
mov dl, 1
mov eax, dword [0x406ef0]
call fcn.00402b2c
mov ebx, eax
lea eax, [ebx + 4]
mov edx, dword [ebp - 0x10]
call fcn.00403554
lea eax, [ebx + 8]
mov edx, dword [ebp - 0x14]
call fcn.00403554
mov ecx, ebx
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x40e68c]
call fcn.004055f0
inc dword [ebp - 0x20]
dec esi
jne 0x40b52b
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b6a7
lea eax, [ebp - 0x444]
mov edx, 3
call fcn.00403524
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00403524
ret