Function at 0x40a770
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e9f97
mov eax, dword fs:[0]
push eax
sub esp, 0x884
mov eax, dword [0x53f1e4]
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.00404960
push ebx
push esi
or eax, 0xffffffff
lea esi, [ebp - 0x82c]
mov byte [ebp - 4], 1
call fcn.00403e00
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 0x40a81f
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 0x40a889
push str.RegReadList
call fcn.00408b10
add esp, 4
cmp dword [ebp - 0x818], esi
jb 0x40a85c
mov eax, dword [ebp - 0x82c]
push eax
call fcn.004b1676
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 0x40a882
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x40aaea
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 0x40a8c1
dec eax
je 0x40a8b8
dec eax
jne 0x40a8d2
push 0xe
push str.UnsetupCmdList
jmp 0x40a8c7
push 0xc
push 0x50706c
jmp 0x40a8c7
push edi
push 0x50705c
lea ecx, [ebp - 0x848]
call fcn.00404960
push 0x7ff
lea eax, [ebp - 0x80f]
push ebx
push eax
mov byte [ebp - 0x810], bl
call fcn.004b96b0
mov eax, dword [ebp - 0x848]
add esp, 0xc
mov dword [ebp - 0x890], 0x800
mov dword [ebp - 0x888], ebx
cmp dword [ebp - 0x834], esi
jae 0x40a911
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 0x40a9ad
cmp dword [ebp - 0x834], esi
jb 0x40a950
mov eax, dword [ebp - 0x848]
push eax
call fcn.004b1676
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 0x40a97c
mov edx, dword [ebp - 0x82c]
push edx
call fcn.004b1676
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 0x40a882
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x40aaea
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 0x40a9d0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40a9d0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x810]
push edx
lea ecx, [ebp - 0x864]
call fcn.00404960
mov byte [ebp - 4], 3
push 1
xor eax, eax
push 0x506a80
lea ecx, [ebp - 0x880]
mov dword [ebp - 0x86c], edi
mov dword [ebp - 0x870], ebx
mov word [ebp - 0x880], ax
call fcn.00404960
mov edx, dword [ebp - 0x88c]
lea ecx, [ebp - 0x880]
push ecx
lea ecx, [ebp - 0x864]
mov byte [ebp - 4], 4
call fcn.0040b7a0
add esp, 4
cmp dword [ebp - 0x86c], esi
jb 0x40aa53
mov edx, dword [ebp - 0x880]
push edx
call fcn.004b1676
add esp, 4
cmp dword [ebp - 0x850], esi
jb 0x40aa6a
mov eax, dword [ebp - 0x864]
push eax
call fcn.004b1676
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 0x40aa96
mov edx, dword [ebp - 0x848]
push edx
call fcn.004b1676
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 0x40aac2
mov ecx, dword [ebp - 0x82c]
push ecx
call fcn.004b1676
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 0x40aae8
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.004b1681
mov esp, ebp
pop ebp
ret