Function at 0x408f80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eead7
mov eax, dword fs:[0]
push eax
sub esp, 0x884
mov eax, dword [0x5441b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x88c], eax
mov dword [ebp - 0x884], ebx
mov dword [ebp - 4], ebx
xor ecx, ecx
push 0x34
mov word [ebp - 0x82c], cx
mov edi, 7
push 0x50bae0
lea ecx, [ebp - 0x82c]
mov dword [ebp - 0x818], edi
mov dword [ebp - 0x81c], ebx
call fcn.004073c0
push ebx
push esi
or eax, 0xffffffff
lea esi, [ebp - 0x82c]
mov byte [ebp - 4], 1
call fcn.004064e0
movzx eax, byte [ebp + 0x10]
mov ecx, dword [ebp - 0x82c]
neg eax
sbb eax, eax
and eax, 0x100
mov esi, 8
add eax, 0x20019
cmp dword [ebp - 0x818], esi
jae 0x40902f
lea ecx, [ebp - 0x82c]
lea edx, [ebp - 0x884]
push edx
push eax
push ebx
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x409099
push str.RegReadList
call fcn.00407570
add esp, 4
cmp dword [ebp - 0x818], esi
jb 0x40906c
mov eax, dword [ebp - 0x82c]
push eax
call fcn.004b6106
add esp, 4
mov eax, dword [ebp - 0x884]
xor ecx, ecx
mov dword [ebp - 0x818], edi
mov dword [ebp - 0x81c], ebx
mov word [ebp - 0x82c], cx
cmp eax, ebx
je 0x409092
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x4092fa
xor edx, edx
mov dword [ebp - 0x834], edi
mov dword [ebp - 0x838], ebx
mov word [ebp - 0x848], dx
mov eax, dword [ebp + 0xc]
sub eax, ebx
mov byte [ebp - 4], 2
je 0x4090d1
dec eax
je 0x4090c8
dec eax
jne 0x4090e2
push 0xe
push str.UnsetupCmdList
jmp 0x4090d7
push 0xc
push 0x50bf14
jmp 0x4090d7
push edi
push 0x50bf04
lea ecx, [ebp - 0x848]
call fcn.004073c0
push 0x7ff
lea eax, [ebp - 0x80f]
push ebx
push eax
mov byte [ebp - 0x810], bl
call fcn.004be120
mov eax, dword [ebp - 0x848]
add esp, 0xc
mov dword [ebp - 0x890], 0x800
mov dword [ebp - 0x888], ebx
cmp dword [ebp - 0x834], esi
jae 0x409121
lea eax, [ebp - 0x848]
lea ecx, [ebp - 0x890]
push ecx
lea edx, [ebp - 0x810]
push edx
mov edx, dword [ebp - 0x884]
lea ecx, [ebp - 0x888]
push ecx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4091bd
cmp dword [ebp - 0x834], esi
jb 0x409160
mov eax, dword [ebp - 0x848]
push eax
call fcn.004b6106
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x834], edi
mov dword [ebp - 0x838], ebx
mov word [ebp - 0x848], cx
cmp dword [ebp - 0x818], esi
jb 0x40918c
mov edx, dword [ebp - 0x82c]
push edx
call fcn.004b6106
add esp, 4
xor eax, eax
mov word [ebp - 0x82c], ax
mov eax, dword [ebp - 0x884]
mov dword [ebp - 0x818], edi
mov dword [ebp - 0x81c], ebx
cmp eax, ebx
je 0x409092
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x4092fa
xor ecx, ecx
lea eax, [ebp - 0x810]
mov dword [ebp - 0x850], edi
mov dword [ebp - 0x854], ebx
mov word [ebp - 0x864], cx
lea edx, [eax + 2]
jmp 0x4091e0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4091e0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x810]
push edx
lea ecx, [ebp - 0x864]
call fcn.004073c0
mov byte [ebp - 4], 3
push 1
xor eax, eax
push 0x50b498
lea ecx, [ebp - 0x880]
mov dword [ebp - 0x86c], edi
mov dword [ebp - 0x870], ebx
mov word [ebp - 0x880], ax
call fcn.004073c0
mov edx, dword [ebp - 0x88c]
lea ecx, [ebp - 0x880]
push ecx
lea ecx, [ebp - 0x864]
mov byte [ebp - 4], 4
call fcn.0040a0a0
add esp, 4
cmp dword [ebp - 0x86c], esi
jb 0x409263
mov edx, dword [ebp - 0x880]
push edx
call fcn.004b6106
add esp, 4
cmp dword [ebp - 0x850], esi
jb 0x40927a
mov eax, dword [ebp - 0x864]
push eax
call fcn.004b6106
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x850], edi
mov dword [ebp - 0x854], ebx
mov word [ebp - 0x864], cx
cmp dword [ebp - 0x834], esi
jb 0x4092a6
mov edx, dword [ebp - 0x848]
push edx
call fcn.004b6106
add esp, 4
xor eax, eax
mov dword [ebp - 0x834], edi
mov dword [ebp - 0x838], ebx
mov word [ebp - 0x848], ax
cmp dword [ebp - 0x818], esi
jb 0x4092d2
mov ecx, dword [ebp - 0x82c]
push ecx
call fcn.004b6106
add esp, 4
mov eax, dword [ebp - 0x884]
xor edx, edx
mov dword [ebp - 0x818], edi
mov dword [ebp - 0x81c], ebx
mov word [ebp - 0x82c], dx
cmp eax, ebx
je 0x4092f8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b6111
mov esp, ebp
pop ebp
ret