Function at 0x40da20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffaa8
mov eax, 0x48f5d8
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 0x40da8f
mov word [ebp - 0x28], 8
mov edx, 0x48c38f
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 0x40dda6
mov dword [ebp - 0x44], 0x20019
test ebx, ebx
je 0x40dbcf
push 0x48c3a7
push ebx
call fcn.0040b39c
add esp, 8
mov esi, eax
test esi, esi
jne 0x40dab9
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 0x40db76
mov eax, dword [ebp - 0x3c]
cmp eax, 0x80000002
je 0x40db1e
mov edx, dword [ebp - 0x3c]
cmp edx, 0x80000003
je 0x40db1e
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0x80000000
je 0x40db1e
mov eax, dword [ebp - 0x3c]
cmp eax, 0x80000001
je 0x40db1e
mov edx, dword [ebp - 0x3c]
cmp edx, 0x80000005
je 0x40db1e
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0x80000006
je 0x40db1e
mov eax, dword [ebp - 0x3c]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
push ebx
push 0x48c3a9
lea edx, [ebp - 0x450]
push edx
call sub.USER32.DLL_wsprintfA
mov word [ebp - 0x28], 0x14
add esp, 0xc
lea edx, [ebp - 0x450]
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 0x40dda6
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0x80000002
je 0x40dbbf
mov eax, dword [ebp - 0x3c]
cmp eax, 0x80000003
je 0x40dbbf
mov edx, dword [ebp - 0x3c]
cmp edx, 0x80000000
je 0x40dbbf
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0x80000001
je 0x40dbbf
mov eax, dword [ebp - 0x3c]
cmp eax, 0x80000005
je 0x40dbbf
mov edx, dword [ebp - 0x3c]
cmp edx, 0x80000006
je 0x40dbbf
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 0x40da9e
mov word [ebp - 0x28], 0x20
xor ebx, ebx
mov edx, 0x48c3bf
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
mov dword [ebp - 0x4c], 0x104
jmp 0x40dce5
mov ecx, dword [ebp - 0x48]
cmp ecx, 8
ja case.0x40dc14.5
jmp dword [ecx*4 + 0x40dc1b]
mov dword [ebp - 0x50], str.BINARY
jmp 0x40dc8e
mov dword [ebp - 0x50], str.DWORD
jmp 0x40dc8e
mov dword [ebp - 0x50], str.EXPAND_SZ
jmp 0x40dc8e
mov dword [ebp - 0x50], str.LINK
jmp 0x40dc8e
mov dword [ebp - 0x50], str.MULTI_SZ
jmp 0x40dc8e
mov dword [ebp - 0x50], str.RESOURCE_LIST
jmp 0x40dc8e
mov dword [ebp - 0x50], 0x48c419
jmp 0x40dc8e
mov dword [ebp - 0x50], str.NONE
jmp 0x40dc8e
mov dword [ebp - 0x50], str.UNKNOWN
lea eax, [ebp - 0x558]
lea ecx, [ebp - 0x450]
push eax
mov edx, dword [ebp - 0x50]
push edx
push str.__REG__s:__s
push ecx
call sub.USER32.DLL_wsprintfA
mov word [ebp - 0x28], 0x2c
add esp, 0x10
lea edx, [ebp - 0x450]
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
mov dword [ebp - 0x4c], 0x104
inc ebx
push 0
lea ecx, [ebp - 0x48]
push 0
push ecx
lea eax, [ebp - 0x4c]
push 0
push eax
lea edx, [ebp - 0x558]
push edx
push ebx
mov ecx, dword [ebp - 0x3c]
push ecx
call sub.ADVAPI32.DLL_RegEnumValueA
test eax, eax
je 0x40dc0c
inc ebx
lea eax, [ebp - 0x450]
push ebx
push 0x48c436
push eax
call sub.USER32.DLL_wsprintfA
mov word [ebp - 0x28], 0x38
add esp, 0xc
lea edx, [ebp - 0x450]
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 0x40dd9b
mov eax, dword [ebp - 0x3c]
cmp eax, 0x80000003
je 0x40dd9b
mov edx, dword [ebp - 0x3c]
cmp edx, 0x80000000
je 0x40dd9b
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0x80000001
je 0x40dd9b
mov eax, dword [ebp - 0x3c]
cmp eax, 0x80000005
je 0x40dd9b
mov edx, dword [ebp - 0x3c]
cmp edx, 0x80000006
je 0x40dd9b
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