Function at 0x4afe4e
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x4fae9c
call fcn.00475fe0
sub esp, 0x118
push esi
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_4
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
xor esi, esi
push 0x55205c
push eax
mov dword [ebp - 4], esi
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString_4
cmp byte [ebp + 8], 0
mov byte [ebp - 4], 1
jne 0x4afec0
lea eax, [ebp + 8]
push eax
call dword [sym.imp.BasicCtrlDll.dll_class_CString___cdecl_GetInstallFolder_void_]
pop ecx
push dword [ebp - 0x18]
mov byte [ebp - 4], 2
push dword [eax]
lea eax, [ebp - 0x1c]
push 0x5022dc
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
jmp 0x4afeff
cmp byte [ebp + 8], 1
je 0x4afed6
cmp byte [ebp + 8], 2
je 0x4afed6
mov esi, 0x80070057
jmp 0x4b048b
lea eax, [ebp + 8]
push eax
call dword [sym.imp.BasicCtrlDll.dll_class_CString___cdecl_GetInstallFolder_void_]
pop ecx
push dword [eax]
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 3
push 0x557bc4
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4aff16
test al, 0x10
jne 0x4aff2e
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4aff2e
mov esi, 0x80004005
jmp 0x4b048b
push ebx
push edi
mov dword [ebp - 0x10], esi
call sub.MFC42.DLL_AfxGetAppModuleState
mov eax, dword [eax + 4]
lea edx, [ebp - 0x10]
push edx
push 0x503128
mov eax, dword [eax + 0xd4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [ebp - 0x10]
push str.CQQ_USER_DATA
push eax
mov byte [ebp - 4], 4
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x10]
push str.GQQ_USER_DATA
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x10]
push str.HQQ_USER_DATA
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x10]
push str.BQQ_USER_DATA
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x10]
push str.SBuddy_USER_DATA
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x10]
push str.SBuddy_USER_DATA2
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x10]
push str.BUSER_DATA
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x10]
push str.MQQ_USER_DATA
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x10]
push str.MQQ_SMSCENTER_SENTDATA
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x10]
push str.M_LIST_SETTING
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x10]
push str.MsgFileName
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x10]
push str.SYS_CONFIG_DATA
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x10]
push str.CURRENT_USER_DATA
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x10]
push str.CURRENT_USER_BIND_DATA
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x10]
push str.SHARE_INFO_FILE
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x10]
push str.SHARE_CONFIG_FILE
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x10]
push str.SHARE_PASSWORD_HISTORY
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x10]
push str.SHARE_BROWSE_HISTORY
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x10]
push str.SHARE_DOWNLOAD_HISTORY
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x10]
push str.RC_USER_DATA
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x10]
push str.IM_INFO_DATA
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x10]
push str.MMS_NODOWNLOAD_DATA
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x10]
push str.SESSION_USER_DATA
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x10]
mov ebx, str.MiniPortalUserManager_USER_DATA
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x10]
mov edi, str.AlertConfig_USER_DATA
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x10]
push str.CSBUDDY_USER_DATA
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x10]
mov esi, str.LOCAL_CASHE_USER_DATA
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push str._sUser.db
push eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov ecx, dword [eax]
push str.402CQQUserData.dat
push dword [ebp - 0x14]
push str.CQQ_USER_DATA
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x10]
push str.402GQQUserData.dat
push dword [ebp - 0x14]
mov ecx, dword [eax]
push str.GQQ_USER_DATA
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x10]
push str.402HQQUserData.dat
push dword [ebp - 0x14]
mov ecx, dword [eax]
push str.HQQ_USER_DATA
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x10]
push str.402BQQUserData.dat
push dword [ebp - 0x14]
mov ecx, dword [eax]
push str.BQQ_USER_DATA
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x10]
push str.402SBuddyUserData.dat
push dword [ebp - 0x14]
mov ecx, dword [eax]
push str.SBuddy_USER_DATA
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x10]
push str.402SBuddy2UserData.dat
push dword [ebp - 0x14]
mov ecx, dword [eax]
push str.SBuddy_USER_DATA2
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x10]
push str.402BUserUserData.dat
push dword [ebp - 0x14]
mov ecx, dword [eax]
push str.BUSER_DATA
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x10]
push str.402MQQUserData.dat
push dword [ebp - 0x14]
mov ecx, dword [eax]
push str.MQQ_USER_DATA
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x10]
push str.402RCUserUserData.dat
push dword [ebp - 0x14]
mov ecx, dword [eax]
push str.RC_USER_DATA
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x10]
push str.402MQQConfig.dat
push dword [ebp - 0x14]
mov ecx, dword [eax]
push str.MQQ_SMSCENTER_SENTDATA
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x10]
push str.402MQQMListSetting.dat
push dword [ebp - 0x14]
mov ecx, dword [eax]
push str.M_LIST_SETTING
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x10]
push str.402MQQMMSNoDownloadData.dat
push dword [ebp - 0x14]
mov ecx, dword [eax]
push str.MMS_NODOWNLOAD_DATA
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x10]
push str.402ALERTUserData.dat
push dword [ebp - 0x14]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x10]
push str.402ALERTCONFIGUserData.dat
push dword [ebp - 0x14]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x10]
push str.402LOCAL_CASHE_USER_DATAUserData.dat
push dword [ebp - 0x14]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x10]
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 5
call sub.MFC42.DLL_AfxGetAppModuleState
mov eax, dword [eax + 4]
lea edx, [ebp - 0x20]
push edx
push 0x503588
mov eax, dword [eax + 0xd4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
jne 0x4b02ce
mov eax, dword [ebp - 0x20]
lea edx, [ebp + 8]
push edx
lea edx, [ebp - 0x124]
push edx
push esi
push dword [ebp + 0xc]
mov dword [ebp + 8], 0x104
mov ecx, dword [eax]
push eax
call dword [ecx + 0x74]
test eax, eax
jne 0x4b02a0
push dword [ebp + 8]
lea eax, [ebp - 0x124]
lea ecx, [ebp + 0xc]
push eax
call fcn.00475cce
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 5
lea ecx, [ebp + 0xc]
jmp 0x4b02fa
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.BasicCtrlDll.dll_class_CString___cdecl_GetInstallFolder_void_]
pop ecx
push dword [ebp - 0x18]
mov byte [ebp - 4], 7
push dword [eax]
lea eax, [ebp - 0x14]
push str._s_sMsgEx.db
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov byte [ebp - 4], 5
lea ecx, [ebp + 0xc]
jmp 0x4b02fa
lea eax, [ebp + 8]
push eax
call dword [sym.imp.BasicCtrlDll.dll_class_CString___cdecl_GetInstallFolder_void_]
pop ecx
push dword [ebp - 0x18]
mov byte [ebp - 4], 8
push dword [eax]
lea eax, [ebp - 0x14]
push str._s_sMsgEx.db
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov byte [ebp - 4], 5
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x10]
push esi
push dword [ebp - 0x14]
mov ecx, dword [eax]
push str.MsgFileName
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x10]
push str.IMInfoinfo.dat
push dword [ebp - 0x14]
mov ecx, dword [eax]
push str.IM_INFO_DATA
push eax
call dword [ecx + 0x10]
mov edi, dword [sym.imp.BasicCtrlDll.dll_class_CString___cdecl_GetInstallFolder_void_]
lea eax, [ebp + 8]
push eax
call edi
pop ecx
push dword [ebp - 0x18]
mov byte [ebp - 4], 9
push dword [eax]
lea eax, [ebp - 0x14]
push str._s_sConfig.db
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x10]
push str.ComQQSysData.dat
push dword [ebp - 0x14]
mov ecx, dword [eax]
push str.SYS_CONFIG_DATA
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x10]
push str.ComQQUserData.dat
push dword [ebp - 0x14]
mov ecx, dword [eax]
push str.CURRENT_USER_DATA
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x10]
push str.ComQQUserBindData.dat
push dword [ebp - 0x14]
mov ecx, dword [eax]
push str.CURRENT_USER_BIND_DATA
push eax
call dword [ecx + 0x10]
lea eax, [ebp + 8]
push eax
call edi
pop ecx
push dword [ebp - 0x18]
mov byte [ebp - 4], 0xa
push dword [eax]
lea eax, [ebp - 0x14]
push str._s_sShareInfo.db
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x10]
push str.ComQQShareFilesInfo.dat
push dword [ebp - 0x14]
mov ecx, dword [eax]
push str.SHARE_INFO_FILE
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x10]
push str.ComQQShareFilesConfig.dat
push dword [ebp - 0x14]
mov ecx, dword [eax]
push str.SHARE_CONFIG_FILE
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x10]
push str.ComQQShareFilesPassword.dat
push dword [ebp - 0x14]
mov ecx, dword [eax]
push str.SHARE_PASSWORD_HISTORY
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x10]
push str.ComQQShareFilesBrowse.dat
push dword [ebp - 0x14]
mov ecx, dword [eax]
push str.SHARE_BROWSE_HISTORY
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x10]
push str.ComQQShareFilesDownload.dat
push dword [ebp - 0x14]
mov ecx, dword [eax]
push str.SHARE_DOWNLOAD_HISTORY
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x10]
push str.402SESSIONUserData.dat
push dword [ebp - 0x14]
mov ecx, dword [eax]
push str.SESSION_USER_DATA
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x10]
push str.402CSBUDDY_USER_DATAUserData.dat
push dword [ebp - 0x14]
mov ecx, dword [eax]
push str.CSBUDDY_USER_DATA
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
pop edi
cmp eax, esi
mov byte [ebp - 4], 4
pop ebx
je 0x4b047f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret