Function at 0x40a030
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3657
mov eax, dword fs:[0]
push eax
sub esp, 0x884
mov eax, dword [0x54b1b4]
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 str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [ebp - 0x82c]
mov dword [ebp - 0x818], edi
mov dword [ebp - 0x81c], ebx
call fcn.00408440
push ebx
push esi
or eax, 0xffffffff
lea esi, [ebp - 0x82c]
mov byte [ebp - 4], 1
call fcn.00407350
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 0x40a0df
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 0x40a149
push str.RegReadList
call fcn.004085f0
add esp, 4
cmp dword [ebp - 0x818], esi
jb 0x40a11c
mov eax, dword [ebp - 0x82c]
push eax
call fcn.004ba3a4
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 0x40a142
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x40a3aa
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 0x40a181
dec eax
je 0x40a178
dec eax
jne 0x40a192
push 0xe
push str.UnsetupCmdList
jmp 0x40a187
push 0xc
push 0x5113b4
jmp 0x40a187
push edi
push 0x5113a4
lea ecx, [ebp - 0x848]
call fcn.00408440
push 0x7ff
lea eax, [ebp - 0x80f]
push ebx
push eax
mov byte [ebp - 0x810], bl
call fcn.004c24e0
mov eax, dword [ebp - 0x848]
add esp, 0xc
mov dword [ebp - 0x890], 0x800
mov dword [ebp - 0x888], ebx
cmp dword [ebp - 0x834], esi
jae 0x40a1d1
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 0x40a26d
cmp dword [ebp - 0x834], esi
jb 0x40a210
mov eax, dword [ebp - 0x848]
push eax
call fcn.004ba3a4
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 0x40a23c
mov edx, dword [ebp - 0x82c]
push edx
call fcn.004ba3a4
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 0x40a142
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x40a3aa
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 0x40a290
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40a290
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x810]
push edx
lea ecx, [ebp - 0x864]
call fcn.00408440
mov byte [ebp - 4], 3
push 1
xor eax, eax
push 0x5104e8
lea ecx, [ebp - 0x880]
mov dword [ebp - 0x86c], edi
mov dword [ebp - 0x870], ebx
mov word [ebp - 0x880], ax
call fcn.00408440
mov edx, dword [ebp - 0x88c]
lea ecx, [ebp - 0x880]
push ecx
lea ecx, [ebp - 0x864]
mov byte [ebp - 4], 4
call fcn.0040b2f0
add esp, 4
cmp dword [ebp - 0x86c], esi
jb 0x40a313
mov edx, dword [ebp - 0x880]
push edx
call fcn.004ba3a4
add esp, 4
cmp dword [ebp - 0x850], esi
jb 0x40a32a
mov eax, dword [ebp - 0x864]
push eax
call fcn.004ba3a4
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 0x40a356
mov edx, dword [ebp - 0x848]
push edx
call fcn.004ba3a4
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 0x40a382
mov ecx, dword [ebp - 0x82c]
push ecx
call fcn.004ba3a4
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 0x40a3a8
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.004ba3af
mov esp, ebp
pop ebp
ret