Function at 0x40a400
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f47f7
mov eax, dword fs:[0]
push eax
sub esp, 0x884
mov eax, dword [0x54c1b4]
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 0x512188
lea ecx, [ebp - 0x82c]
mov dword [ebp - 0x818], edi
mov dword [ebp - 0x81c], ebx
call fcn.00408810
push ebx
push esi
or eax, 0xffffffff
lea esi, [ebp - 0x82c]
mov byte [ebp - 4], 1
call fcn.00407720
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 0x40a4af
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 0x40a519
push str.RegReadList
call fcn.004089c0
add esp, 4
cmp dword [ebp - 0x818], esi
jb 0x40a4ec
mov eax, dword [ebp - 0x82c]
push eax
call fcn.004bb4d8
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 0x40a512
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x40a77a
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 0x40a551
dec eax
je 0x40a548
dec eax
jne 0x40a562
push 0xe
push str.UnsetupCmdList
jmp 0x40a557
push 0xc
push 0x5125dc
jmp 0x40a557
push edi
push 0x5125cc
lea ecx, [ebp - 0x848]
call fcn.00408810
push 0x7ff
lea eax, [ebp - 0x80f]
push ebx
push eax
mov byte [ebp - 0x810], bl
call fcn.004c3610
mov eax, dword [ebp - 0x848]
add esp, 0xc
mov dword [ebp - 0x890], 0x800
mov dword [ebp - 0x888], ebx
cmp dword [ebp - 0x834], esi
jae 0x40a5a1
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 0x40a63d
cmp dword [ebp - 0x834], esi
jb 0x40a5e0
mov eax, dword [ebp - 0x848]
push eax
call fcn.004bb4d8
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 0x40a60c
mov edx, dword [ebp - 0x82c]
push edx
call fcn.004bb4d8
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 0x40a512
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x40a77a
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 0x40a660
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40a660
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x810]
push edx
lea ecx, [ebp - 0x864]
call fcn.00408810
mov byte [ebp - 4], 3
push 1
xor eax, eax
push 0x5114f8
lea ecx, [ebp - 0x880]
mov dword [ebp - 0x86c], edi
mov dword [ebp - 0x870], ebx
mov word [ebp - 0x880], ax
call fcn.00408810
mov edx, dword [ebp - 0x88c]
lea ecx, [ebp - 0x880]
push ecx
lea ecx, [ebp - 0x864]
mov byte [ebp - 4], 4
call fcn.0040b6c0
add esp, 4
cmp dword [ebp - 0x86c], esi
jb 0x40a6e3
mov edx, dword [ebp - 0x880]
push edx
call fcn.004bb4d8
add esp, 4
cmp dword [ebp - 0x850], esi
jb 0x40a6fa
mov eax, dword [ebp - 0x864]
push eax
call fcn.004bb4d8
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 0x40a726
mov edx, dword [ebp - 0x848]
push edx
call fcn.004bb4d8
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 0x40a752
mov ecx, dword [ebp - 0x82c]
push ecx
call fcn.004bb4d8
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 0x40a778
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.004bb4e3
mov esp, ebp
pop ebp
ret