Function at 0x410ccc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov eax, 0x20ac
mov ebp, esp
push edi
push esi
push ebx
call fcn.004128fc
sub esp, eax
lea eax, [ebp - 0x207c]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [ebp - 0x2078], 0x1000
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegOpenKeyExA
xor edx, edx
sub esp, 0x14
test eax, eax
jne 0x4110f3
mov dword [ebp - 0x208c], 0
lea esi, [ebp - 0x2078]
lea eax, [ebp - 0x2070]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x208c]
lea ebx, [ebp - 0x2058]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x207c]
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegEnumValueA
sub esp, 0x20
cmp eax, 0x103
je 0x4110e2
inc dword [ebp - 0x208c]
cmp dword [ebp - 0x2070], 0xb
ja case.0x410da0.5
mov eax, dword [ebp - 0x2070]
jmp dword [eax*4 + 0x41487c]
lea edi, [ebp - 0x2018]
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 0
mov dword [esp], edi
mov dword [ebp - 0x2078], 0x1000
call fcn.0040b1ee
mov eax, dword [ebp - 0x207c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne case.0x410da0.5
mov edx, dword [ebp - 0x2070]
cmp edx, 7
je 0x410e3e
mov dword [esp + 0xc], ebx
lea ebx, [ebp - 0x1018]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edx
mov dword [esp + 8], str._s_a_d_a_s_a
mov dword [esp + 4], 0x1000
mov dword [esp], ebx
call fcn.0040afa3
jmp 0x410f75
mov ecx, dword [ebp - 0x2078]
test ecx, ecx
je 0x410e0f
xor eax, eax
dec ecx
cmp eax, ecx
jae 0x410e0f
cmp byte [ebp + eax - 0x2018], 0
jne 0x410e61
mov byte [ebp + eax - 0x2018], 8
inc eax
jmp 0x410e4b
lea eax, [ebp - 0x2074]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x207c]
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
mov dword [ebp - 0x2078], 4
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne case.0x410da0.5
mov eax, dword [ebp - 0x2074]
mov dword [esp + 0xc], ebx
lea ebx, [ebp - 0x1018]
mov dword [esp + 8], str._s_a_d_a0x_.8X___d__a
mov dword [esp + 4], 0x1000
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x2070]
mov dword [esp], ebx
mov dword [esp + 0x10], eax
call fcn.0040afa3
jmp 0x410f75
lea eax, [ebp - 0x2060]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x207c]
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
mov dword [ebp - 0x2078], 8
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne case.0x410da0.5
mov eax, dword [ebp - 0x2060]
mov edx, dword [ebp - 0x205c]
mov dword [esp + 0xc], ebx
lea ebx, [ebp - 0x1018]
mov dword [esp + 8], str._s_a_d_a0x_.16llX___I64d__a
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x2070]
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], edx
mov dword [esp + 4], 0x1000
mov dword [esp + 0x10], eax
mov dword [esp], ebx
call fcn.0040afa3
test eax, eax
jle case.0x410da0.5
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00411fcc
jmp case.0x410da0.5
mov eax, dword [ebp - 0x207c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne case.0x410da0.5
mov eax, dword [ebp - 0x2078]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov dword [ebp - 0x206c], eax
je case.0x410da0.5
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x207c]
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x4110c5
mov eax, dword [ebp - 0x2078]
xor edi, edi
mov dword [ebp - 0x2068], 0x414878
mov dword [ebp - 0x2064], 0
test eax, eax
je 0x41105a
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x206c]
mov dword [esp], eax
call fcn.0040b756
test eax, eax
mov dword [ebp - 0x2068], eax
setne al
mov edi, eax
mov eax, dword [ebp - 0x2068]
mov dword [esp + 8], ebx
lea ebx, [ebp - 0x2064]
mov dword [esp + 4], str._s_a_d_a_s_a
mov dword [esp], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x2070]
mov dword [esp + 0xc], eax
call fcn.0040af50
test eax, eax
jle 0x4110b1
mov edx, dword [ebp - 0x2064]
test edx, edx
je 0x4110b1
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00411fcc
mov dword [esp], ebx
call fcn.00405434
mov eax, edi
test al, al
je 0x4110c5
lea eax, [ebp - 0x2068]
mov dword [esp], eax
call fcn.00405434
lea eax, [ebp - 0x206c]
mov dword [esp], eax
call fcn.00405434
mov dword [ebp - 0x2078], 0x1000
jmp 0x410d31
mov eax, dword [ebp - 0x207c]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
mov dl, 1
push esi
lea esp, [ebp - 0xc]
mov al, dl
pop ebx
pop esi
pop edi
pop ebp
ret