Function at 0x410ada
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push edi
mov eax, 0x20bc
push esi
push ebx
call fcn.0041f3f0
sub esp, eax
lea eax, [esp + 0x4c]
mov dword [esp + 0xc], 0x101
mov dword [esp + 8], 0
mov edi, dword [esp + 0x20d8]
mov dword [esp + 0x50], 0x1000
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20d4]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20d0]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegOpenKeyExA
xor edx, edx
sub esp, 0x14
test eax, eax
jne 0x410eb6
lea esi, [esp + 0x50]
mov dword [esp + 0x3c], 0
lea eax, [esp + 0x58]
lea ebx, [esp + 0x70]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegEnumValueA
sub esp, 0x20
cmp eax, 0x103
je 0x410ea7
inc dword [esp + 0x3c]
cmp dword [esp + 0x58], 0xb
ja case.0x410ba5.4
mov eax, dword [esp + 0x58]
jmp dword [eax*4 + 0x4243e4]
lea ebp, [esp + 0xb0]
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 0
mov dword [esp + 0x50], 0x1000
mov dword [esp], ebp
call fcn.004129e4
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebp
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.0x410ba5.4
mov edx, dword [esp + 0x58]
cmp edx, 7
je 0x410c3f
mov dword [esp + 0xc], ebx
lea ebx, [esp + 0x10b0]
mov dword [esp + 0x14], ebp
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.004127a8
jmp 0x410d60
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x410c0f
xor eax, eax
dec ecx
cmp eax, ecx
jae 0x410c0f
cmp byte [esp + eax + 0xb0], 0
jne 0x410c60
mov byte [esp + eax + 0xb0], 8
inc eax
jmp 0x410c4a
lea eax, [esp + 0x54]
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x50], 4
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne case.0x410ba5.4
mov eax, dword [esp + 0x54]
mov dword [esp + 0xc], ebx
lea ebx, [esp + 0x10b0]
mov dword [esp + 8], str._s_a_d_a0x_.8X___d__a
mov dword [esp + 4], 0x1000
mov dword [esp], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x10], eax
call fcn.004127a8
jmp 0x410d60
lea eax, [esp + 0x68]
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x50], 8
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne case.0x410ba5.4
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
mov dword [esp + 0xc], ebx
lea ebx, [esp + 0x10b0]
mov dword [esp + 8], str._s_a_d_a0x_.16llX___I64d__a
mov dword [esp + 4], 0x1000
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], edx
mov dword [esp], ebx
mov dword [esp + 0x10], eax
call fcn.004127a8
test eax, eax
je case.0x410ba5.4
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.00412458
jmp case.0x410ba5.4
mov eax, dword [esp + 0x4c]
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.0x410ba5.4
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov dword [esp + 0x5c], eax
je case.0x410ba5.4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4c]
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 0x410e8e
mov eax, dword [esp + 0x50]
xor ebp, ebp
mov dword [esp + 0x60], 0x4243e0
mov dword [esp + 0x64], 0
test eax, eax
je 0x410e30
mov dword [esp + 4], eax
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call fcn.00412f60
test eax, eax
mov dword [esp + 0x60], eax
setne al
mov ebp, eax
mov eax, dword [esp + 0x60]
mov dword [esp + 8], ebx
lea ebx, [esp + 0x64]
mov dword [esp + 4], str._s_a_d_a_s_a
mov dword [esp], ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0xc], eax
call fcn.00412755
test eax, eax
je 0x410e7c
mov edx, dword [esp + 0x64]
test edx, edx
je 0x410e7c
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], edi
call fcn.00412458
mov dword [esp], ebx
call fcn.00407f59
mov eax, ebp
test al, al
je 0x410e8e
lea eax, [esp + 0x60]
mov dword [esp], eax
call fcn.00407f59
lea eax, [esp + 0x5c]
mov dword [esp], eax
call fcn.00407f59
mov dword [esp + 0x50], 0x1000
jmp 0x410b44
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
push eax
mov dl, 1
add esp, 0x20bc
mov al, dl
pop ebx
pop esi
pop edi
pop ebp
ret