Function at 0x4ff6a0
Capabilities:
Check if file exists
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50cc0f
mov eax, dword fs:[0]
push eax
sub esp, 0x460
mov eax, dword [0x531304]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x349], 0
mov byte [ebp - 0x12c], 0
push 0x103
push 0
lea eax, [ebp - 0x12b]
push eax
call fcn.00415fc0
add esp, 0xc
mov dword [ebp - 0x348], 0
cmp dword [0x55b9f4], 0
jne 0x4ff719
push 0x520098
call fcn.004e4170
add esp, 4
mov eax, 0xfffffffc
jmp 0x4ffd99
mov ecx, dword [ebp + 8]
push ecx
call fcn.004f9c00
add esp, 4
mov dword [ebp - 0x464], eax
mov edx, dword [ebp - 0x464]
push edx
call fcn.00415e20
add esp, 4
test eax, eax
jne 0x4ff748
mov eax, 0xfffffffd
jmp 0x4ffd99
push 0x5200bc
call fcn.004f4a60
add esp, 4
test eax, eax
jle 0x4ff766
push str.QQBrowser.exe
call fcn.004349e0
add esp, 4
mov eax, dword [ebp - 0x464]
push eax
push str._DEBUGINFO__LOCK__SET_LockQQBrowser_url___s_n
call fcn.004e4170
add esp, 8
mov ecx, dword [ebp - 0x464]
push ecx
call fcn.00415e20
add esp, 4
lea edx, [eax + eax + 0x12]
mov dword [ebp - 0x344], edx
mov eax, dword [ebp - 0x344]
push eax
call fcn.00415d52
add esp, 4
mov dword [ebp - 0x460], eax
mov ecx, dword [ebp - 0x344]
push ecx
push 0
mov edx, dword [ebp - 0x460]
push edx
call fcn.00415fc0
add esp, 0xc
mov eax, dword [ebp - 0x460]
push eax
mov ecx, dword [ebp - 0x464]
push ecx
call fcn.004f8b70
add esp, 8
mov edx, dword [ebp - 0x460]
push edx
push str._DEBUGINFO__LOCK__SET_LockQQBrowser_enc___s_n
call fcn.004e4170
add esp, 8
mov dword [ebp - 0x340], 4
push 4
lea eax, [ebp - 0x340]
push eax
push 4
push str.OpenOnStartup
push 0x52014c
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov byte [ebp - 0x45c], 0
push 0x103
push 0
lea ecx, [ebp - 0x45b]
push ecx
call fcn.00415fc0
add esp, 0xc
push 0x520170
lea edx, [ebp - 0x45c]
push edx
call fcn.00415eb0
add esp, 8
mov eax, dword [ebp - 0x460]
push eax
lea ecx, [ebp - 0x45c]
push ecx
call fcn.00415ec0
add esp, 8
push 0x520174
lea edx, [ebp - 0x45c]
push edx
call fcn.00415ec0
add esp, 8
lea eax, [ebp - 0x45c]
push eax
call fcn.00415e20
add esp, 4
push eax
lea ecx, [ebp - 0x45c]
push ecx
push 3
push str.StartupUrlsForEncrypt
push 0x520190
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov dword [ebp - 0x20], 3
push 4
lea edx, [ebp - 0x20]
push edx
push 4
push str.UseOnHomepage
push 0x5201c4
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov eax, dword [ebp - 0x460]
push eax
call fcn.00415e20
add esp, 4
push eax
mov ecx, dword [ebp - 0x460]
push ecx
push 1
push str.CustomURLForEncrypt
push 0x5201fc
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov edx, dword [ebp - 0x464]
push edx
call fcn.00415e20
add esp, 4
push eax
mov eax, dword [ebp - 0x464]
push eax
push 1
push str.CustomURL
push str.SoftwareTENCENTQQBrowserCommon
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov dword [ebp - 0x350], 3
push 4
lea ecx, [ebp - 0x350]
push ecx
push 4
push str.ShowOnCreateNewTab
push 0x520264
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov edx, dword [ebp - 0x460]
push edx
call fcn.00415e20
add esp, 4
push eax
mov eax, dword [ebp - 0x460]
push eax
push 1
push str.NewTabCustomURLForEncrypt
push 0x5202a0
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov ecx, dword [ebp - 0x464]
push ecx
call fcn.00415e20
add esp, 4
push eax
mov edx, dword [ebp - 0x464]
push edx
push 1
push str.NewTabUrl
push str.SoftwareTENCENTQQBrowserTabs
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
push 0x104
push 0
lea eax, [ebp - 0x12c]
push eax
call fcn.00415fc0
add esp, 0xc
push 0
push 0x1c
lea ecx, [ebp - 0x12c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push str.TencentQQBrowserUser_DataDefaultPreferences
push 0x104
lea edx, [ebp - 0x12c]
push edx
call fcn.004189df
add esp, 0xc
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4ffa11
lea ecx, [ebp - 0x12c]
push ecx
push str._DEBUGINFO__LOCK__SET_LockQQBrowser_path___s_n
call fcn.004e4170
add esp, 8
mov byte [ebp - 0x349], 1
movzx edx, byte [ebp - 0x349]
test edx, edx
jne 0x4ffa24
or eax, 0xffffffff
jmp 0x4ffd99
mov byte [ebp - 0x234], 0
push 0x103
push 0
lea eax, [ebp - 0x233]
push eax
call fcn.00415fc0
add esp, 0xc
lea ecx, [ebp - 0x12c]
push ecx
push 0x104
lea edx, [ebp - 0x234]
push edx
call fcn.004188fa
add esp, 0xc
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea ecx, [ebp - 0x234]
push ecx
call fcn.004f4b10
add esp, 4
test eax, eax
je 0x4ffa83
xor eax, eax
jmp 0x4ffd99
mov byte [ebp - 0x33c], 0
push 0x103
push 0
lea edx, [ebp - 0x33b]
push edx
call fcn.00415fc0
add esp, 0xc
lea eax, [ebp - 0x12c]
push eax
push 0x104
lea ecx, [ebp - 0x33c]
push ecx
call fcn.004188fa
add esp, 0xc
lea edx, [ebp - 0x33c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push 0x520350
push 0x104
lea eax, [ebp - 0x33c]
push eax
call fcn.004189df
add esp, 0xc
push 1
lea ecx, [ebp - 0x33c]
push ecx
mov edx, dword [ebp - 0x464]
push edx
call fcn.004e3900
add esp, 0xc
mov dword [ebp - 0x348], eax
lea eax, [ebp - 0x33c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push 0x520360
push 0x104
lea ecx, [ebp - 0x33c]
push ecx
call fcn.004189df
add esp, 0xc
push 2
lea edx, [ebp - 0x33c]
push edx
mov eax, dword [ebp - 0x464]
push eax
call fcn.004e3900
add esp, 0xc
mov dword [ebp - 0x348], eax
mov ecx, dword [ebp - 0x464]
push ecx
mov edx, dword [ebp - 0x460]
push edx
lea eax, [ebp - 0x12c]
push eax
call fcn.004ff0b0
mov dword [ebp - 0x348], eax
lea ecx, [ebp - 0x12c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push 0x520370
push 0x104
lea edx, [ebp - 0x12c]
push edx
call fcn.004189df
add esp, 0xc
mov eax, dword [ebp - 0x464]
push eax
lea ecx, [ebp - 0x12c]
push ecx
call fcn.004fea60
add esp, 8
mov dword [ebp - 0x354], eax
lea ecx, [ebp - 0x1c]
call fcn.00413270
mov dword [ebp - 4], 0
lea edx, [ebp - 0x12c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push 0x520384
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x12c]
push ecx
call fcn.00434ca0
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.004132c0
test eax, eax
jbe 0x4ffd5a
mov dword [ebp - 0x468], 0
jmp 0x4ffc04
mov edx, dword [ebp - 0x468]
add edx, 1
mov dword [ebp - 0x468], edx
lea ecx, [ebp - 0x1c]
call fcn.004132c0
cmp dword [ebp - 0x468], eax
jae 0x4ffd5a
push 0x104
push 0
lea eax, [ebp - 0x12c]
push eax
call fcn.00415fc0
add esp, 0xc
mov ecx, dword [ebp - 0x468]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00413300
push eax
push 0x104
lea edx, [ebp - 0x12c]
push edx
call fcn.004188fa
add esp, 0xc
push str.Preferences_01
push 0x104
lea eax, [ebp - 0x12c]
push eax
call fcn.004189df
add esp, 0xc
push 1
lea ecx, [ebp - 0x12c]
push ecx
mov edx, dword [ebp - 0x464]
push edx
call fcn.004e3900
add esp, 0xc
mov dword [ebp - 0x348], eax
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push str.Preferences_02
push 0x104
lea ecx, [ebp - 0x12c]
push ecx
call fcn.004189df
add esp, 0xc
push 2
lea edx, [ebp - 0x12c]
push edx
mov eax, dword [ebp - 0x464]
push eax
call fcn.004e3900
add esp, 0xc
mov dword [ebp - 0x348], eax
lea ecx, [ebp - 0x12c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push 0x5203b0
push 0x104
lea edx, [ebp - 0x12c]
push edx
call fcn.004189df
add esp, 0xc
mov eax, dword [ebp - 0x464]
push eax
mov ecx, dword [ebp - 0x460]
push ecx
lea edx, [ebp - 0x12c]
push edx
call fcn.004ff0b0
mov dword [ebp - 0x348], eax
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push 0x5203c0
push 0x104
lea ecx, [ebp - 0x12c]
push ecx
call fcn.004189df
add esp, 0xc
mov edx, dword [ebp - 0x464]
push edx
lea eax, [ebp - 0x12c]
push eax
call fcn.004fea60
add esp, 8
mov dword [ebp - 0x354], eax
jmp 0x4ffbf5
mov ecx, dword [ebp - 0x460]
push ecx
call fcn.00415c75
add esp, 4
mov edx, dword [ebp - 0x464]
push edx
call fcn.00415c75
add esp, 4
mov eax, dword [ebp - 0x348]
mov dword [ebp - 0x46c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004132a0
mov eax, dword [ebp - 0x46c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.004158f4
mov esp, ebp
pop ebp
ret 4