Function at 0x40d6cc
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffab0
mov eax, 0x48f544
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
call fcn.004696b8
lea edx, [ebp - 0x3c]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040b594
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x40d73b
mov word [ebp - 0x28], 8
mov edx, 0x48c341
lea eax, [ebp - 4]
call fcn.00474b48
inc dword [ebp - 0x1c]
mov edx, dword [eax]
mov eax, edi
call fcn.004578d8
dec dword [ebp - 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00474d44
or eax, 0xffffffff
mov edx, dword [ebp - 0x38]
mov dword fs:[0], edx
jmp 0x40da16
mov dword [ebp - 0x44], 0x20019
test ebx, ebx
je 0x40d87b
push 0x48c359
push ebx
call fcn.0040b39c
add esp, 8
mov esi, eax
test esi, esi
jne 0x40d765
mov dword [ebp - 0x44], 0x2001f
lea eax, [ebp - 0x40]
push eax
mov edx, dword [ebp - 0x44]
push edx
push 0
push ebx
mov ecx, dword [ebp - 0x3c]
push ecx
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x40d822
mov eax, dword [ebp - 0x3c]
cmp eax, 0x80000002
je 0x40d7ca
mov edx, dword [ebp - 0x3c]
cmp edx, 0x80000003
je 0x40d7ca
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0x80000000
je 0x40d7ca
mov eax, dword [ebp - 0x3c]
cmp eax, 0x80000001
je 0x40d7ca
mov edx, dword [ebp - 0x3c]
cmp edx, 0x80000005
je 0x40d7ca
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0x80000006
je 0x40d7ca
mov eax, dword [ebp - 0x3c]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
push ebx
push 0x48c35b
lea edx, [ebp - 0x448]
push edx
call sub.USER32.DLL_wsprintfA
mov word [ebp - 0x28], 0x14
add esp, 0xc
lea edx, [ebp - 0x448]
lea eax, [ebp - 8]
call fcn.00474b48
inc dword [ebp - 0x1c]
mov edx, dword [eax]
mov eax, edi
call fcn.004578d8
dec dword [ebp - 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00474d44
mov eax, 1
mov edx, dword [ebp - 0x38]
mov dword fs:[0], edx
jmp 0x40da16
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0x80000002
je 0x40d86b
mov eax, dword [ebp - 0x3c]
cmp eax, 0x80000003
je 0x40d86b
mov edx, dword [ebp - 0x3c]
cmp edx, 0x80000000
je 0x40d86b
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0x80000001
je 0x40d86b
mov eax, dword [ebp - 0x3c]
cmp eax, 0x80000005
je 0x40d86b
mov edx, dword [ebp - 0x3c]
cmp edx, 0x80000006
je 0x40d86b
mov ecx, dword [ebp - 0x3c]
push ecx
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x3c], eax
mov ebx, esi
test ebx, ebx
jne 0x40d74a
mov word [ebp - 0x28], 0x20
xor ebx, ebx
mov edx, 0x48c371
lea eax, [ebp - 0xc]
call fcn.00474b48
inc dword [ebp - 0x1c]
mov edx, dword [eax]
mov eax, edi
call fcn.004578d8
dec dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00474d44
jmp 0x40d95f
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x550]
push ecx
push eax
mov edx, dword [ebp - 0x3c]
push edx
call sub.ADVAPI32.DLL_RegOpenKeyA
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x48]
push ecx
push 0
push 0
push 0
mov eax, dword [ebp - 0x40]
push eax
call sub.ADVAPI32.DLL_RegQueryInfoKeyA
mov edx, dword [ebp - 0x48]
test edx, edx
jbe 0x40d90a
lea ecx, [ebp - 0x550]
lea eax, [ebp - 0x448]
push ecx
push str.___s_
push eax
call sub.USER32.DLL_wsprintfA
add esp, 0xc
jmp 0x40d925
lea edx, [ebp - 0x550]
lea ecx, [ebp - 0x448]
push edx
push str.___s
push ecx
call sub.USER32.DLL_wsprintfA
add esp, 0xc
mov eax, dword [ebp - 0x40]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
mov word [ebp - 0x28], 0x2c
lea edx, [ebp - 0x448]
lea eax, [ebp - 0x10]
call fcn.00474b48
inc dword [ebp - 0x1c]
mov edx, dword [eax]
mov eax, edi
call fcn.004578d8
dec dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00474d44
inc ebx
push 0x104
lea ecx, [ebp - 0x550]
push ecx
push ebx
mov eax, dword [ebp - 0x3c]
push eax
call sub.ADVAPI32.DLL_RegEnumKeyA
test eax, eax
je 0x40d8b1
push ebx
push 0x48c383
lea edx, [ebp - 0x448]
push edx
call sub.USER32.DLL_wsprintfA
mov word [ebp - 0x28], 0x38
add esp, 0xc
lea edx, [ebp - 0x448]
lea eax, [ebp - 0x14]
call fcn.00474b48
inc dword [ebp - 0x1c]
mov edx, dword [eax]
mov eax, edi
call fcn.004578d8
dec dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00474d44
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0x80000002
je 0x40da0b
mov eax, dword [ebp - 0x3c]
cmp eax, 0x80000003
je 0x40da0b
mov edx, dword [ebp - 0x3c]
cmp edx, 0x80000000
je 0x40da0b
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0x80000001
je 0x40da0b
mov eax, dword [ebp - 0x3c]
cmp eax, 0x80000005
je 0x40da0b
mov edx, dword [ebp - 0x3c]
cmp edx, 0x80000006
je 0x40da0b
mov ecx, dword [ebp - 0x3c]
push ecx
call sub.ADVAPI32.DLL_RegCloseKey
xor eax, eax
mov edx, dword [ebp - 0x38]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret