Function at 0x489bc4
Capabilities:
Delete file
Get common file path
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0xbc8]
sub esp, 0xc48
mov eax, dword [0x4f4de0]
xor eax, ebp
mov dword [ebp + 0xbc4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp + 0x5ac], ax
xor ebx, ebx
lea eax, [ebp + 0x5ae]
push ebx
push eax
mov dword [ebp - 0x74], ecx
call fcn.00497680
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
add esp, 0xc
push 1
push 0x17
lea eax, [ebp + 0x5ac]
push eax
push ebx
call edi
xor eax, eax
push esi
mov word [ebp + 0x3a4], ax
lea eax, [ebp + 0x3a6]
push ebx
push eax
call fcn.00497680
add esp, 0xc
push 1
push 2
lea eax, [ebp + 0x3a4]
push eax
push ebx
call edi
xor eax, eax
push esi
mov word [ebp - 0x6c], ax
lea eax, [ebp - 0x6a]
push ebx
push eax
call fcn.00497680
add esp, 0xc
push 1
push 0x19
lea eax, [ebp - 0x6c]
push eax
push ebx
call edi
mov eax, dword [ebp - 0x74]
lea ecx, [ebp + 0x5ac]
add eax, 0x5c
push ecx
push dword [eax]
mov dword [ebp - 0x78], eax
call fcn.004899f3
pop ecx
pop ecx
push str.lnkpath
lea eax, [ebp - 0x70]
mov ebx, 0x4fa998
push eax
mov ecx, ebx
call fcn.00473572
push dword [eax]
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp + 0x5ac]
push eax
push eax
call edi
mov ecx, dword [ebp - 0x70]
add ecx, 0xfffffff0
call fcn.00404d30
lea eax, [ebp + 0x5ac]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x489ccc
lea eax, [ebp + 0x5ac]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
call fcn.00407740
test al, al
je 0x489d1c
push str.lnkpath
lea eax, [ebp - 0x70]
push eax
mov ecx, ebx
call fcn.00473572
push dword [eax]
lea eax, [ebp + 0x3a4]
push eax
push eax
call edi
mov ecx, dword [ebp - 0x70]
add ecx, 0xfffffff0
call fcn.00404d30
lea eax, [ebp + 0x3a4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x489d1c
lea eax, [ebp + 0x3a4]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
xor eax, eax
push esi
push eax
mov word [ebp + 0x7b4], ax
lea eax, [ebp + 0x7b6]
push eax
call fcn.00497680
mov eax, dword [ebp - 0x78]
add esp, 0xc
push str.QHSafeMain.exe
push dword [eax]
lea eax, [ebp + 0x7b4]
push eax
call edi
xor eax, eax
push esi
push eax
mov word [ebp + 0x9bc], ax
lea eax, [ebp + 0x9be]
push eax
call fcn.00497680
add esp, 0xc
push str.lnk1
lea eax, [ebp - 0x70]
push eax
mov ecx, ebx
call fcn.00473572
push dword [eax]
lea eax, [ebp + 0x5ac]
push eax
lea eax, [ebp + 0x9bc]
push eax
call edi
mov ecx, dword [ebp - 0x70]
add ecx, 0xfffffff0
call fcn.00404d30
call fcn.00407690
test al, al
lea eax, [ebp + 0x9bc]
jne 0x489db5
mov ecx, dword [ebp - 0x74]
push 0
push 0
push eax
lea eax, [ebp + 0x7b4]
push eax
call fcn.0048600e
jmp 0x489dbc
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.004885a8
lea eax, [ebp - 0x6c]
push eax
call fcn.0048984e
xor eax, eax
push esi
push eax
mov word [ebp + 0x9bc], ax
lea eax, [ebp + 0x9be]
push eax
call fcn.00497680
mov eax, dword [ebp - 0x78]
add esp, 0x10
push str.QHSafeMain.exe
push dword [eax]
lea eax, [ebp + 0x9bc]
push eax
call edi
xor eax, eax
push esi
push eax
mov word [ebp + 0x7b4], ax
lea eax, [ebp + 0x7b6]
push eax
call fcn.00497680
add esp, 0xc
push str.lnk1
lea eax, [ebp - 0x70]
push eax
mov ecx, ebx
call fcn.00473572
push dword [eax]
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x7b4]
push eax
call edi
mov ecx, dword [ebp - 0x70]
add ecx, 0xfffffff0
call fcn.00404d30
mov ecx, dword [ebp - 0x74]
push 0
push 0
lea eax, [ebp + 0x7b4]
push eax
lea eax, [ebp + 0x9bc]
push eax
call fcn.0048600e
xor eax, eax
push esi
push eax
mov word [ebp + 0x19c], ax
lea eax, [ebp + 0x19e]
push eax
call fcn.00497680
mov eax, dword [ebp - 0x78]
add esp, 0xc
push str.Uninstall.exe
push dword [eax]
lea eax, [ebp + 0x19c]
push eax
call edi
xor eax, eax
push esi
push eax
mov word [ebp + 0x9bc], ax
lea eax, [ebp + 0x9be]
push eax
call fcn.00497680
add esp, 0xc
push str.lnk2
lea eax, [ebp - 0x7c]
push eax
mov ecx, ebx
call fcn.00473572
push dword [eax]
lea eax, [ebp + 0x5ac]
push eax
lea eax, [ebp + 0x9bc]
push eax
call edi
mov ecx, dword [ebp - 0x7c]
add ecx, 0xfffffff0
call fcn.00404d30
mov ecx, dword [ebp - 0x74]
push 0
push 0
lea eax, [ebp + 0x9bc]
push eax
lea eax, [ebp + 0x19c]
push eax
call fcn.0048600e
call fcn.00407740
test al, al
je 0x489f33
push str.lnk2
lea eax, [ebp - 0x7c]
push eax
mov ecx, ebx
call fcn.00473572
push dword [eax]
lea eax, [ebp + 0x3a4]
push eax
lea eax, [ebp + 0x9bc]
push eax
call edi
mov ecx, dword [ebp - 0x7c]
add ecx, 0xfffffff0
call fcn.00404d30
mov ecx, dword [ebp - 0x74]
push 0
push 0
lea eax, [ebp + 0x9bc]
push eax
lea eax, [ebp + 0x19c]
push eax
call fcn.0048600e
mov eax, dword [0x4fa694]
neg eax
sbb eax, eax
xor ecx, ecx
push ecx
lea edx, [ebp - 0x70]
push edx
push ecx
and eax, 0x200
or eax, 0x20006
push eax
push ecx
push ecx
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall360TotalSecurity
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x70], ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x48a0d2
push esi
push eax
mov word [ebp + 0x7b4], ax
lea eax, [ebp + 0x7b6]
push eax
call fcn.00497680
mov eax, dword [ebp - 0x78]
add esp, 0xc
push str.QHSafeMain.exe
push dword [eax]
lea eax, [ebp + 0x7b4]
push eax
call edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, str.Professional
push esi
call edi
add eax, eax
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 1
push 0
push str.Edition
push dword [ebp - 0x70]
call esi
lea eax, [ebp + 0x7b4]
push eax
call edi
add eax, eax
push eax
lea eax, [ebp + 0x7b4]
push eax
push 1
push 0
push str.DisplayIcon
push dword [ebp - 0x70]
call esi
lea eax, [ebp + 0x19c]
push eax
call edi
add eax, eax
push eax
lea eax, [ebp + 0x19c]
push eax
push 1
push 0
push str.UninstallString
push dword [ebp - 0x70]
call esi
push 0x4c997c
lea eax, [ebp - 0x74]
push eax
mov ecx, ebx
call fcn.00473572
push dword [ebp - 0x74]
call edi
add eax, eax
push eax
push dword [ebp - 0x74]
push 1
push 0
push str.DisplayName
push dword [ebp - 0x70]
call esi
push dword [ebp - 0x78]
lea ecx, [ebp - 0x74]
call fcn.00404570
push dword [ebp - 0x74]
call edi
add eax, eax
push eax
push dword [ebp - 0x74]
push 1
push 0
push str.InstallLocation
push dword [ebp - 0x70]
call esi
push str.publisher
lea eax, [ebp - 0x7c]
push eax
mov ecx, ebx
call fcn.00473572
push eax
lea ecx, [ebp - 0x74]
call fcn.00404570
mov ecx, dword [ebp - 0x7c]
add ecx, 0xfffffff0
call fcn.00404d30
mov ebx, dword [ebp - 0x74]
push ebx
call edi
add eax, eax
push eax
push ebx
push 1
xor edi, edi
push edi
push str.Publisher
push dword [ebp - 0x70]
call esi
mov eax, dword [0x4fb080]
mov ecx, dword [eax - 0xc]
cmp ecx, edi
je 0x48a0a7
add ecx, ecx
push ecx
push eax
push 1
push edi
push str.DisplayVersion
push dword [ebp - 0x70]
call esi
push 4
lea eax, [ebp - 0x80]
push eax
push 4
push edi
push str.EstimatedSize
push dword [ebp - 0x70]
mov dword [ebp - 0x80], 0x19000
call esi
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebx - 0x10]
call fcn.00404d30
mov ecx, dword [ebp + 0xbc4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.00497941
add ebp, 0xbc8
leave
ret