Function at 0x40cba0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x4a4d3b
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4d8b40]
xor eax, ebp
mov dword [ebp + 0x208], 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
push 0x207
lea eax, [ebp + 1]
mov dword [ebp - 4], ebx
push ebx
push eax
mov dword [ebp - 0x18], ebx
mov byte [ebp], bl
call fcn.00465b60
add esp, 0xc
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x20], 0x208
mov dword [ebp - 0x2c], ebx
call fcn.00402670
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x218]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.00407720
push str.IsWow64Process
mov byte [ebp - 4], 2
push str.kernel32
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x40cc58
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx - 8]
neg esi
sbb esi, esi
mov eax, 1
sub eax, dword [edx - 4]
and esi, 0xffffff00
add esi, 0x200
or ecx, eax
jge 0x40cc89
push ebx
lea ecx, [ebp - 0x14]
call fcn.00402850
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
or esi, 0x20019
push esi
push ebx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x40ccb6
push 0x4cf13c
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x28], eax
call fcn.004679cb
push 0x208
lea edx, [ebp]
push ebx
push edx
call fcn.00465b60
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp]
push ecx
lea edx, [ebp - 0x2c]
push edx
push ebx
push str.UninstallString
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x40ccf9
push 0x4cf13c
lea ecx, [ebp - 0x24]
push ecx
mov dword [ebp - 0x24], eax
call fcn.004679cb
lea eax, [ebp]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40cd00
sub eax, edx
je 0x40cd41
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str._SP____VERYSILENT__norestart
call fcn.00402670
push ecx
lea edx, [ebp]
mov ecx, esp
mov dword [ebp - 0x30], esp
push edx
mov byte [ebp - 4], 3
call fcn.00402670
mov eax, dword [ebp + 0x214]
push eax
mov byte [ebp - 4], 2
call fcn.0040e150
add esp, 0xc
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x40cd56
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x64
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cd83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x218]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cdac
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 + 0x208]
xor ecx, ebp
call fcn.0045f97b
add ebp, 0x20c
mov esp, ebp
pop ebp
ret