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

Disassembly:
mov eax, 0x4c8140
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x12c
push esi
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString_3
lea eax, [ebp - 0x24]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.QQHelperDll.dll_class_CString___cdecl_ToolCommonPath::GetInstallFolder_void_]
push dword [ebp + 8]
mov byte [ebp - 4], 1
push dword [eax]
lea eax, [ebp - 0x1c]
push str._s_d
push eax
call sub.MFC42.DLL_CString::Format
and byte [ebp - 4], 0
add esp, 0x14
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x45c837
test al, 0x10
jne 0x45c893
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x45c893
push esi
lea eax, [ebp + 8]
push esi
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0x40
push str.Error
push dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov eax, 0x80004005
jmp 0x45cd98
push ebx
push edi
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 2
call sub.MFC42.DLL_AfxGetAppModuleState
mov eax, dword [eax + 4]
lea edx, [ebp - 0x10]
push edx
push 0x4d5d70
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_3
mov eax, dword [ebp - 0x10]
push str.CQQ_USER_DATA
push eax
mov byte [ebp - 4], 3
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.SESSION_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.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]
mov ebx, str.MQQ_SMSCENTER_SENTDATA
push ebx
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]
mov ecx, dword [eax]
mov edi, str.RC_USER_DATA
push edi
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x10]
mov esi, str.RCEX_USER_DATA
push esi
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]
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.402RCUserUserData.dat
push dword [ebp - 0x14]
push edi
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x10]
push str.402RCExUserUserData.dat
push dword [ebp - 0x14]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x10]
push str.402CQQUserData.dat
push dword [ebp - 0x14]
mov ecx, dword [eax]
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.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.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.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.402MQQConfig.dat
push dword [ebp - 0x14]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x10]
call sub.MFC42.DLL_AfxGetAppModuleState
mov eax, dword [eax + 4]
xor esi, esi
mov eax, dword [eax + 0xd4]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.0045cda5
cmp dword [ebp - 0x34], esi
je 0x45cb61
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x24], 0x104
call fcn.0045cda5
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 0x138]
mov ecx, dword [eax]
push edx
push esi
push dword [ebp + 8]
push eax
call dword [ecx + 0x74]
test eax, eax
jne 0x45cb34
push dword [ebp - 0x24]
lea eax, [ebp - 0x138]
lea ecx, [ebp - 0x18]
push eax
call sub.MFC42.DLL_CString::CString_4
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::operator
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
jmp 0x45cb8c
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.QQHelperDll.dll_class_CString___cdecl_ToolCommonPath::GetInstallFolder_void_]
push dword [ebp + 8]
mov byte [ebp - 4], 6
push dword [eax]
lea eax, [ebp - 0x14]
push str._s_ldMsgEx.db
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
jmp 0x45cb8c
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.QQHelperDll.dll_class_CString___cdecl_ToolCommonPath::GetInstallFolder_void_]
push dword [ebp + 8]
mov byte [ebp - 4], 7
push dword [eax]
lea eax, [ebp - 0x14]
push str._s_ldMsgEx.db
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
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 edi, dword [sym.imp.QQHelperDll.dll_class_CString___cdecl_ToolCommonPath::GetInstallFolder_void_]
lea eax, [ebp - 0x18]
push eax
call edi
push dword [ebp + 8]
mov byte [ebp - 4], 8
push dword [eax]
lea eax, [ebp - 0x14]
push str._s_dConfig.db
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
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 - 0x18]
push eax
call edi
push dword [ebp + 8]
mov byte [ebp - 4], 9
push dword [eax]
lea eax, [ebp - 0x14]
push str._s_dShareInfo.db
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
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 dword [ebp - 0x20], esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString_3
lea eax, [ebp + 8]
mov byte [ebp - 4], 0xc
push eax
call edi
pop ecx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xd
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString
call fcn.004028b9
push eax
lea eax, [ebp - 0x28]
push dword [ebp - 0x2c]
push str._s_dUser.db
push eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebp - 0x20]
add esp, 0x10
cmp eax, esi
pop edi
pop ebx
je 0x45cd1c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x20]
push edx
push 1
mov ecx, dword [eax]
push str.402RCExUser
push dword [ebp - 0x28]
push eax
call dword [ecx + 0x30]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 4
cmp eax, esi
je 0x45cd5c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 3
cmp eax, esi
je 0x45cd6d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x10]
and byte [ebp - 4], 0
cmp eax, esi
je 0x45cd8a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret