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

Disassembly:
mov eax, 0x4ecca8
call fcn.00471450
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 0x54d614
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 0x4af700
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 0x4f427c
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
jmp 0x4af73f
cmp byte [ebp + 8], 1
je 0x4af716
cmp byte [ebp + 8], 2
je 0x4af716
mov esi, 0x80070057
jmp 0x4afccb
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 0x553534
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 0x4af756
test al, 0x10
jne 0x4af76e
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4af76e
mov esi, 0x80004005
jmp 0x4afccb
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 0x4f5078
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 0x4f54f8
mov eax, dword [eax + 0xd4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
jne 0x4afb0e
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 0x4afae0
push dword [ebp + 8]
lea eax, [ebp - 0x124]
lea ecx, [ebp + 0xc]
push eax
call fcn.0047113c
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 0x4afb3a
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 0x4afb3a
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 0x4afcbf
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