Function at 0x40cb00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557ba6
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x5adf10]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 0x224], ebx
call fcn.0043c63a
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40cb53
push 0x80004005
call fcn.004063a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x220], eax
push 0x207
lea ecx, [ebp - 0x21b]
push ebx
mov dword [ebp - 4], ebx
push ecx
mov byte [ebp - 0x21c], bl
call fcn.005344b0
add esp, 0xc
push 0x5e
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall37B9F70D_8F66_4238_BB9B_A19B35E6FE5F_is1
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x22c], 0x208
mov dword [ebp - 0x238], ebx
call fcn.00406280
push str.IsWow64Process
mov byte [ebp - 4], 1
push str.kernel32
mov dword [ebp - 0x228], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x40cbdc
lea edx, [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov esi, dword [ebp - 0x228]
mov edi, dword [ebp - 0x220]
mov ecx, dword [edi - 8]
neg esi
sbb esi, esi
mov eax, 1
sub eax, dword [edi - 4]
and esi, 0xffffff00
add esi, 0x200
or ecx, eax
jge 0x40cc19
push ebx
lea ecx, [ebp - 0x220]
call fcn.004061b0
mov edi, dword [ebp - 0x220]
lea eax, [ebp - 0x224]
push eax
or esi, 0x20019
push esi
push ebx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x40cc4f
push 0x5a0810
lea ecx, [ebp - 0x234]
push ecx
mov dword [ebp - 0x234], eax
call fcn.00534862
push 0x208
lea edx, [ebp - 0x21c]
push ebx
push edx
call fcn.005344b0
add esp, 0xc
lea eax, [ebp - 0x22c]
push eax
mov eax, dword [ebp - 0x224]
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x238]
push edx
push ebx
push str.UninstallString
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x40cca7
push 0x5a0810
lea ecx, [ebp - 0x230]
push ecx
mov dword [ebp - 0x230], eax
call fcn.00534862
lea eax, [ebp - 0x21c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40ccb0
sub eax, edx
cmp eax, ebx
jbe 0x40cd09
push ecx
mov ecx, esp
mov dword [ebp - 0x228], esp
push str._SP____VERYSILENT__norestart
call fcn.00405fd0
push ecx
lea edx, [ebp - 0x21c]
mov ecx, esp
mov dword [ebp - 0x23c], esp
push edx
mov byte [ebp - 4], 2
call fcn.00405fd0
mov eax, dword [ebp + 8]
push eax
mov byte [ebp - 4], 1
call fcn.0040da70
add esp, 0xc
jmp 0x40cd09
mov eax, dword [ebp - 0x224]
cmp eax, ebx
je 0x40cd1a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x64
mov dword [ebp - 0x224], ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cd4b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0052d75c
mov esp, ebp
pop ebp
ret