Function at 0x402462
Capabilities:
Get common file path

Disassembly:
mov eax, 0x416e0f
call fcn.0040c000
sub esp, 0x84
push ebx
push esi
mov dword [ebp - 0x2c], ecx
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], esp
call sub.MFC42.DLL_CString::CString_3
xor ebx, ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_3
push ebx
mov edi, 0x104
push 0x1a
push edi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::GetBuffer
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0x41a5b4
lea eax, [ebp - 0x1c]
push dword [ebp - 0x28]
push str._s_sTemp
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [ebp - 0x2c]
add esp, 0x10
push dword [ebp - 0x1c]
call fcn.004021b6
test eax, eax
jne 0x4024f6
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
call fcn.00402246
push str.pagedata.ini
lea eax, [ebp - 0x18]
push dword [ebp - 0x1c]
push str._s_s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString_3
push ebx
push ebx
push ebx
push ebx
push 1
push ebx
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 5
call fcn.0040bd76
push ebx
push ebx
xor esi, esi
push ebx
push str.kankan.dl.meitu.com
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x4c], esi
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CInternetSession::GetHttpConnection
mov ecx, eax
cmp ecx, ebx
mov dword [ebp - 0x48], ecx
je 0x40263e
push 0x20000000
push ebx
push ebx
push 1
push ebx
push str._LiveUpdate_data1.ini
push 1
call sub.MFC42.DLL_CHttpConnection::OpenRequest
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x4c], esi
je 0x40263e
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call sub.MFC42.DLL_CHttpFile::SendRequest
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x38]
cmp eax, ebx
mov dword [ebp - 0x44], eax
jbe 0x40263e
lea eax, [ebp - 0x30]
push ebx
push eax
push 5
mov ecx, esi
mov dword [ebp - 0x30], ebx
call sub.MFC42.DLL_CHttpFile::QueryInfo
cmp eax, ebx
je 0x40263e
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x44]
jne 0x40263e
inc eax
push eax
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x30]
inc ecx
push ecx
push ebx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [esi]
add esp, 0xc
mov ecx, esi
push dword [ebp - 0x30]
push dword [ebp - 0x44]
call dword [eax + 0x3c]
push 0x1001
lea ecx, [ebp - 0x5c]
push dword [ebp - 0x18]
call sub.MFC42.DLL_CFile::CFile_1
push dword [ebp - 0x44]
mov byte [ebp - 4], 8
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea ecx, [ebp - 0x5c]
push dword [ebp - 0x44]
call sub.MFC42.DLL_CFile::Write
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CFile::Close
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CFile::CFile
jmp 0x40263e
cmp esi, ebx
mov dword [ebp - 4], 6
je 0x402659
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x54]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0x48]
cmp ecx, ebx
je 0x40266f
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [ebp - 0x48]
push 1
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString_3
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0xd
call fcn.00402327
test eax, eax
je 0x40295e
push ebx
push ebx
push str.DATA
lea ecx, [ebp - 0x90]
push dword [ebp - 0x18]
call fcn.004011c9
mov esi, 0x422a40
push edi
lea eax, [ebp - 0x24]
push esi
push eax
push 0x422248
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0xe
call fcn.004013b7
push edi
lea eax, [ebp - 0x14]
push esi
push eax
push 0x422244
lea ecx, [ebp - 0x90]
call fcn.004013b7
push edi
lea eax, [ebp - 0x20]
push esi
push eax
push 0x422240
lea ecx, [ebp - 0x90]
call fcn.004013b7
mov eax, dword [ebp - 0x24]
cmp dword [eax - 8], ebx
je 0x40294f
mov eax, dword [ebp - 0x14]
cmp dword [eax - 8], ebx
je 0x40294f
mov eax, dword [ebp - 0x20]
cmp dword [eax - 8], ebx
je 0x40294f
mov ecx, dword [ebp - 0x2c]
push str.channel
mov esi, 0x80000001
push str.SoftwareMeiTuKanKan
lea eax, [ebp - 0x4c]
push esi
push eax
call fcn.00401d74
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xf
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xe
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x34]
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jl 0x40294f
mov ecx, dword [ebp - 0x2c]
mov edi, str.SoftwareMicrosoftInternet_ExplorerMain
push str.Start_Page
push edi
lea eax, [ebp - 0x30]
push esi
push eax
call fcn.00401d74
push dword [ebp - 0x30]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x10
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jl 0x4027ad
xor esi, esi
jmp 0x4027c6
push dword [ebp - 0x14]
push dword [ebp - 0x30]
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
test eax, eax
pop ecx
jne 0x40286b
push 1
pop esi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0xd
call fcn.00401290
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CInternetSession::CInternetSession
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString
mov eax, esi
jmp 0x4029e3
push str.about:blank
push dword [ebp - 0x30]
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
test eax, eax
pop ecx
je 0x402943
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
push str.Start_Page
push edi
push esi
call fcn.00401e47
test eax, eax
je 0x402943
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0xd
call fcn.00401290
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CInternetSession::CInternetSession
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString
push 1
pop eax
jmp 0x4029e3
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0xd
call fcn.00401290
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CInternetSession::CInternetSession
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret