Function at 0x40f05a
Capabilities:
Check if file exists
Copy file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
push edi
mov esi, ecx
push 0x16
push ecx
mov ecx, esp
push str.ExtTuan.dll
call fcn.00407334
push ecx
mov ecx, esp
push str.ExtTuan
call fcn.00407334
mov ecx, esi
call fcn.0040f89d
push 0xa
push ecx
mov ecx, esp
push str.ExtAddons.dll
call fcn.00407334
push ecx
mov ecx, esp
push str.ExtAddons
call fcn.00407334
mov ecx, esi
call fcn.0040f89d
push 0x13
push ecx
mov ecx, esp
push str.ExtProxy.dll
call fcn.00407334
push ecx
mov ecx, esp
push str.ExtProxy
call fcn.00407334
mov ecx, esi
call fcn.0040f89d
push 0xc
push ecx
mov ecx, esp
push str.ExtBank.dll
call fcn.00407334
push ecx
mov edi, str.ExtBank
mov ecx, esp
push edi
call fcn.00407334
mov ecx, esi
call fcn.0040f89d
push 0xd
push ecx
mov ecx, esp
push str.BankHelper.exe
call fcn.00407334
push ecx
mov ecx, esp
push edi
call fcn.00407334
mov ecx, esi
call fcn.0040f89d
mov ecx, dword [esi + 4]
push 0x30
push dword [ebp + 8]
call fcn.00412181
push 0x14
push ecx
mov ecx, esp
push str.ExtSafeAddress.dll
call fcn.00407334
push ecx
mov ecx, esp
push str.ExtSafeAddress
call fcn.00407334
mov ecx, esi
call fcn.0040f89d
push 0x22
push ecx
mov ecx, esp
push str.SnapPlugin.dll
call fcn.00407334
push ecx
mov edi, str.SnapPlugin
mov ecx, esp
push edi
call fcn.00407334
mov ecx, esi
call fcn.0040f89d
push 0x23
push ecx
mov ecx, esp
push str.screener.exe
call fcn.00407334
push ecx
mov ecx, esp
push edi
call fcn.00407334
mov ecx, esi
call fcn.0040f89d
push 0x24
push ecx
mov ecx, esp
push str.TranslatorPlugin.dll
call fcn.00407334
push ecx
mov ecx, esp
push str.TranslatorPlugin
call fcn.00407334
mov ecx, esi
call fcn.0040f89d
lea eax, [esi + 0x10]
push str.extensionsTranslatorPlugin_
push eax
lea eax, [ebp - 8]
push eax
call fcn.00411c85
lea eax, [ebp - 8]
push str.translate.ini
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00411c85
push dword [ebp - 0xc]
mov ebx, str.firstInstall
mov edi, str.main
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 1
je 0x40f210
push dword [ebp - 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40f200
push dword [ebp - 8]
call fcn.00415a35
pop ecx
push dword [ebp - 0xc]
push 0x428ec8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [esi + 0x10]
push str.data_
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00411c85
lea eax, [ebp - 0x1c]
push str.switch.ini
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00411c85
push dword [ebp - 0x10]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call edi
test eax, eax
jne 0x40f26b
lea eax, [esi + 0x1c]
push str.data_switch.ini
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00411c85
mov eax, dword [eax]
push 0
push dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0x24]
call fcn.00403e55
mov ecx, dword [esi + 4]
push 0x33
push dword [ebp + 8]
call fcn.00412181
push 0x10
push ecx
mov ecx, esp
push str.ExtIeMode.dll
call fcn.00407334
push ecx
mov ecx, esp
push str.ExtIeMode
call fcn.00407334
mov ecx, esi
call fcn.0040f89d
push 0xb
push ecx
mov ecx, esp
push str.ExtAdfilter.dll
call fcn.00407334
push ecx
mov ecx, esp
push str.ExtAdfilter
call fcn.00407334
mov ecx, esi
call fcn.0040f89d
push 0x11
push ecx
mov ecx, esp
push str.ExtPages.dll
call fcn.00407334
push ecx
mov ebx, str.ExtPages
mov ecx, esp
push ebx
call fcn.00407334
mov ecx, esi
call fcn.0040f89d
push 0x12
push ecx
mov ecx, esp
push str.ScreenHelper.exe
call fcn.00407334
push ecx
mov ecx, esp
push ebx
call fcn.00407334
mov ecx, esi
call fcn.0040f89d
push 0xe
push ecx
mov ecx, esp
push str.ExtDoctor.dll
call fcn.00407334
push ecx
mov ecx, esp
push str.ExtDoctor
call fcn.00407334
mov ecx, esi
call fcn.0040f89d
mov ecx, dword [esi + 4]
push 0x36
push dword [ebp + 8]
call fcn.00412181
push 0x18
push ecx
mov ecx, esp
push str.ExtWebMail.dll
call fcn.00407334
push ecx
mov ecx, esp
push str.ExtWebMail
call fcn.00407334
mov ecx, esi
call fcn.0040f89d
lea eax, [esi + 0x10]
push str.extensionsExtDoctor_
push eax
lea eax, [ebp - 4]
push eax
call fcn.00411c85
lea eax, [ebp - 4]
push str.ExtDoctor.ini
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00411c85
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x40f3ab
push dword [ebp - 4]
call edi
test eax, eax
jne 0x40f393
push dword [ebp - 4]
call fcn.00415a35
pop ecx
push dword [ebp - 0x14]
push 0x428ec8
push str.TXUserActionState
push str.QQZoneSpeed
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 6
push ecx
mov ecx, esp
push str.titleopt.dll
call fcn.00407334
mov ecx, esi
call fcn.0040f5ec
lea ebx, [esi + 0x1c]
push str.extensionsLoginEnrolLoginEnrol.dll
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.00411c85
push str.extensionsFavoritesFavorites.dll
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.00411c85
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x40f3fe
push dword [ebp - 0x20]
call edi
test eax, eax
je 0x40f3fe
push dword [ebp + 8]
mov ecx, esi
call fcn.0040ecd4
mov ecx, dword [esi + 4]
push 0x39
push dword [ebp + 8]
call fcn.00412181
push 0x15
push ecx
mov ecx, esp
push str.ExtSuggest.dll
call fcn.00407334
push ecx
mov ecx, esp
push str.ExtSuggest
call fcn.00407334
mov ecx, esi
call fcn.0040f89d
push 0xf
push ecx
mov ecx, esp
push str.ExtDownload.dll
call fcn.00407334
push ecx
mov ecx, esp
push str.ExtDownload
call fcn.00407334
mov ecx, esi
call fcn.0040f89d
push 0x1c
push ecx
mov ecx, esp
push str.pluginbar.dll
call fcn.00407334
push ecx
mov ecx, esp
push str.pluginbar
call fcn.00407334
mov ecx, esi
call fcn.0040f89d
push 0x19
push ecx
mov ecx, esp
push str.ExtYouxi.dll
call fcn.00407334
push ecx
mov ecx, esp
push str.ExtYouxi
call fcn.00407334
mov ecx, esi
call fcn.0040f89d
push 0x17
push ecx
mov ecx, esp
push str.ExtUrlQuery.dll
call fcn.00407334
push ecx
mov ecx, esp
push str.ExtUrlQuery
call fcn.00407334
mov ecx, esi
call fcn.0040f89d
mov ecx, dword [esi + 4]
push 0x3c
push dword [ebp + 8]
call fcn.00412181
mov eax, dword [esi + 4]
cmp dword [eax + 8], 0
je 0x40f527
and word [ebp - 0x22c], 0
push dword [esi + 0x50]
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x22a]
push 0x429384
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x22c]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x22c]
push dword [esi + 0xc]
push eax
push str.State
push str.InstallState
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, esi
call fcn.0040d5a6
lea ecx, [ebp - 0x20]
call fcn.00403e55
lea ecx, [ebp - 0x18]
call fcn.00403e55
lea ecx, [ebp - 0x14]
call fcn.00403e55
lea ecx, [ebp - 4]
call fcn.00403e55
lea ecx, [ebp - 0x10]
call fcn.00403e55
lea ecx, [ebp - 0x1c]
call fcn.00403e55
lea ecx, [ebp - 0xc]
call fcn.00403e55
lea ecx, [ebp - 8]
call fcn.00403e55
pop edi
pop esi
pop ebx
leave
ret 4