Function at 0x4098c0
Capabilities:
Delete registry key
Get installed programs

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433c20
mov eax, dword fs:[0]
push eax
sub esp, 0x494
mov eax, dword [0x455070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x5c], 1
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x58], 0
xor eax, eax
mov word [ebp - 0x4a0], ax
push 0x40e
push 0
lea ecx, [ebp - 0x49e]
push ecx
call sub.MSVCR110.dll_memset
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 0x43a4d8
lea eax, [ebp - 0x28]
push eax
call fcn.0040c860
add esp, 0xc
mov dword [ebp - 4], 0
call dword [sym.imp.iImportLib.dll_bool___cdecl_elex::os::IsX64System_void_]
movzx ecx, al
test ecx, ecx
je 0x409987
mov edx, dword [ebp + 8]
push edx
push 0x43a570
lea eax, [ebp - 0x78]
push eax
call fcn.0040c860
add esp, 0xc
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004032c0
lea ecx, [ebp - 0x78]
call fcn.00405b70
mov edx, dword [ebp - 0x48]
or edx, 0x200
mov dword [ebp - 0x48], edx
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x48]
or ecx, 0xf003f
push ecx
push 0
lea ecx, [ebp - 0x28]
call fcn.004059f0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4099c3
lea ecx, [ebp - 0x28]
call fcn.004059f0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor edx, edx
jne 0x409987
cmp dword [ebp - 0x44], 0
je 0x4099d7
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x60], 0
mov ecx, dword [ebp + 8]
add ecx, 0xa8
push ecx
push 0x43a4c4
lea edx, [ebp - 0x40]
push edx
call fcn.0040c860
add esp, 0xc
mov byte [ebp - 4], 1
call dword [sym.imp.iImportLib.dll_bool___cdecl_elex::os::IsX64System_void_]
movzx eax, al
test eax, eax
je 0x409a55
mov ecx, dword [ebp + 8]
add ecx, 0xa8
push ecx
push 0x43a544
lea edx, [ebp - 0x90]
push edx
call fcn.0040c860
add esp, 0xc
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
push eax
lea ecx, [ebp - 0x28]
call fcn.004032c0
lea ecx, [ebp - 0x90]
call fcn.00405b70
mov ecx, dword [ebp - 0x4c]
or ecx, 0x200
mov dword [ebp - 0x4c], ecx
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x48]
or eax, 0xf003f
push eax
push 0
lea ecx, [ebp - 0x40]
call fcn.004059f0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409a9e
lea ecx, [ebp - 0x40]
call fcn.004059f0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push str.::helper_delete_viviewsvc_succeed
call dword [sym.imp.iImportLib.dll_ISAFE_WriteProgramLogNoMask]
add esp, 4
xor ecx, ecx
jne 0x409a55
cmp dword [ebp - 0x44], 0
je 0x409ab2
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00405b70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405b70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004314a6
mov esp, ebp
pop ebp
ret