Function at 0x4c4de0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ff013
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x564610]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push esi
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x290], eax
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_wchar_t__]
push esi
mov esi, dword [sym.imp.Common.dll_class_CTXStringW___cdecl_FS::CombineQNC_wchar_t_const___wchar_t_const__]
lea ecx, [ebp - 0x228]
push 0x518dd0
xor ebx, ebx
push ecx
mov dword [ebp - 4], ebx
call esi
push 0x518dd0
mov byte [ebp - 4], 1
call dword [sym.imp.Common.dll_int___cdecl_FS::IsFileSystemExist_wchar_t_const__]
add esp, 0x10
test eax, eax
jne 0x4c4e73
push 1
push ebx
push ebx
push 0x518dd0
push 0x523240
push 1
call dword [sym.imp.Common.dll_long_int___cdecl_FS::AddFileSystem_enum_FILESYSTEM_TYPE__wchar_t_const___wchar_t_const___int__int__int_]
add esp, 0x18
lea ecx, [ebp - 0x228]
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::GetString_void_const]
push eax
call dword [sym.imp.Common.dll_int___cdecl_FS::IsFileExist_wchar_t_const__]
add esp, 4
test eax, eax
jne 0x4c4f57
mov dword [ebp - 0x21c], str.Generate_Customize_Skin::File_is_not_exist
mov dword [ebp - 0x24c], str.file
mov dword [ebp - 0x248], str.func
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x278], 0x248
mov dword [ebp - 0x274], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x27c], 3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edx, [ebp - 0x260]
push edx
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x268], ebx
call dword [sym.imp.MSVCR80.dll__time64]
lea eax, [ebp - 0x21c]
push eax
push 0x5233fc
lea ecx, [ebp - 0x280]
push str.NewSkinMgr
push ecx
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x254], ebx
call dword [sym.imp.Common.dll_void___cdecl_TXLog_DoTXLogVW_struct_tagLogObj___wchar_t_const___wchar_t_const___char__]
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
add esp, 0x14
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], bl
call esi
lea ecx, [ebp - 0x22c]
mov dword [ebp - 4], 0xffffffff
call esi
mov eax, 0x80004005
jmp 0x4c5745
lea ecx, [ebp - 0x224]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_void_]
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_void_]
push edi
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 3
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_wchar_t__]
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 4
call dword [sym.imp.Common.dll_public:_bool___thiscall_CTXStringW::IsEmpty_void_const]
test al, al
je 0x4c5067
mov dword [ebp - 0x21c], str.Generate_Customize_Skin::Make_FileHash_Error
mov dword [ebp - 0x24c], str.file
mov dword [ebp - 0x248], str.func
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x278], 0x253
mov dword [ebp - 0x274], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x27c], 3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edx, [ebp - 0x260]
push edx
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x268], ebx
call dword [sym.imp.MSVCR80.dll__time64]
lea eax, [ebp - 0x21c]
push eax
push 0x5233fc
lea ecx, [ebp - 0x280]
push str.NewSkinMgr
push ecx
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x254], ebx
call dword [sym.imp.Common.dll_void___cdecl_TXLog_DoTXLogVW_struct_tagLogObj___wchar_t_const___wchar_t_const___char__]
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
add esp, 0x14
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 3
call esi
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call esi
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 1
call esi
jmp 0x4c4f33
push 0x206
lea edx, [ebp - 0x216]
push ebx
push edx
mov word [ebp - 0x218], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x230]
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::GetString_void_const]
push eax
push str.TencentQQPCMgrSkinscustomize_
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x224]
push str._s_s_s
push edx
call dword [sym.imp.Common.dll_public:_void___cdecl_CTXStringW::Format_wchar_t_const__]
mov edi, dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
add esp, 0x14
lea ecx, [ebp - 0x224]
call edi
push eax
lea eax, [ebp - 0x21c]
push 0x518dd0
push eax
call esi
add esp, 0xc
push eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 5
call dword [0x509140]
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 4
call esi
lea ecx, [ebp - 0x220]
call edi
push eax
call dword [sym.imp.Common.dll_int___cdecl_FS::DeleteDirectory_wchar_t_const__]
add esp, 4
lea ecx, [ebp - 0x220]
call edi
push eax
call dword [sym.imp.Common.dll_int___cdecl_FS::CreateDirectoryW_wchar_t_const__]
add esp, 4
test eax, eax
jne 0x4c51f7
mov dword [ebp - 0x21c], str.Generate_Customize_Skin::CreateDirectory_Error
mov dword [ebp - 0x24c], str.file
mov dword [ebp - 0x248], str.func
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x278], 0x263
mov dword [ebp - 0x274], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x27c], 3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebp - 0x260]
push ecx
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x268], ebx
call dword [sym.imp.MSVCR80.dll__time64]
lea edx, [ebp - 0x21c]
push edx
push 0x5233fc
lea eax, [ebp - 0x280]
push str.NewSkinMgr
push eax
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x254], ebx
call dword [sym.imp.Common.dll_void___cdecl_TXLog_DoTXLogVW_struct_tagLogObj___wchar_t_const___wchar_t_const___char__]
add esp, 0x14
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 3
call esi
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call esi
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 1
call esi
jmp 0x4c4f33
push 0x5231c0
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x238]
push edx
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__]
lea eax, [ebp - 0x21c]
push 0x518d70
push eax
mov byte [ebp - 4], 6
call fcn.0041b7b0
add esp, 0x14
mov ecx, eax
mov byte [ebp - 4], 7
call dword [sym.imp.Common.dll_public:_wchar_t____thiscall_CTXBSTR::operator_wchar_t__void_const]
push eax
lea ecx, [ebp - 0x238]
call dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t_const__]
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 6
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::destructor_void_]
lea ecx, [ebp - 0x2b0]
call fcn.004ae0b0
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 8
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::GetString_void_const]
push eax
lea ecx, [ebp - 0x2b0]
call fcn.004ae680
lea ecx, [ebp - 0x2b0]
call fcn.004ae0a0
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x288], eax
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::GetString_void_const]
push eax
lea ecx, [ebp - 0x21c]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_wchar_t_const__]
mov edx, dword [ebp - 0x288]
lea ecx, [ebp - 0x21c]
push ecx
push edx
mov byte [ebp - 4], 9
call fcn.004c7ad0
add esp, 8
test eax, eax
lea ecx, [ebp - 0x21c]
sete byte [ebp - 0x231]
mov byte [ebp - 4], 8
call esi
cmp byte [ebp - 0x231], bl
je 0x4c53ab
lea ecx, [ebp - 0x220]
call edi
push eax
call dword [sym.imp.Common.dll_int___cdecl_FS::DeleteDirectory_wchar_t_const__]
add esp, 4
mov dword [ebp - 0x21c], str.Generate_Customize_Skin::Save_Main_Texture_Error
mov dword [ebp - 0x24c], str.file
mov dword [ebp - 0x248], str.func
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x278], 0x273
mov dword [ebp - 0x274], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x27c], 3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x26c], eax
lea eax, [ebp - 0x260]
push eax
mov dword [ebp - 0x268], ebx
call dword [sym.imp.MSVCR80.dll__time64]
lea ecx, [ebp - 0x21c]
push ecx
push 0x5233fc
lea edx, [ebp - 0x280]
push str.NewSkinMgr
push edx
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x254], ebx
call dword [sym.imp.Common.dll_void___cdecl_TXLog_DoTXLogVW_struct_tagLogObj___wchar_t_const___wchar_t_const___char__]
add esp, 0x14
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], 6
call fcn.004ae090
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 4
call esi
jmp 0x4c51ce
push 0x5231c0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x23c]
push ecx
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__]
lea edx, [ebp - 0x21c]
push 0x518d30
push edx
mov byte [ebp - 4], 0xa
call fcn.0041b7b0
add esp, 0x14
mov ecx, eax
mov byte [ebp - 4], 0xb
call dword [sym.imp.Common.dll_public:_wchar_t____thiscall_CTXBSTR::operator_wchar_t__void_const]
push eax
lea ecx, [ebp - 0x23c]
call dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t_const__]
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 0xa
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::destructor_void_]
push 0x5231c0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x284]
push ecx
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__]
lea edx, [ebp - 0x21c]
push 0x518d48
push edx
mov byte [ebp - 4], 0xc
call fcn.0041b7b0
add esp, 0x14
mov ecx, eax
mov byte [ebp - 4], 0xd
call dword [sym.imp.Common.dll_public:_wchar_t____thiscall_CTXBSTR::operator_wchar_t__void_const]
push eax
lea ecx, [ebp - 0x284]
call dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t_const__]
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 0xc
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::destructor_void_]
mov ecx, 0x2b
push ecx
mov eax, 0x44
push eax
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x228]
push ecx
call fcn.004c8d80
add esp, 0x10
test eax, eax
jne 0x4c5554
lea ecx, [ebp - 0x220]
call edi
push eax
call dword [sym.imp.Common.dll_int___cdecl_FS::DeleteDirectory_wchar_t_const__]
add esp, 4
mov dword [ebp - 0x21c], str.Generate_Customize_Skin::Save_Preview_Image_Error
mov dword [ebp - 0x24c], str.file
mov dword [ebp - 0x248], str.func
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x278], 0x286
mov dword [ebp - 0x274], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x27c], 3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edx, [ebp - 0x260]
push edx
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x268], ebx
call dword [sym.imp.MSVCR80.dll__time64]
lea eax, [ebp - 0x21c]
push eax
push 0x5233fc
lea ecx, [ebp - 0x280]
push str.NewSkinMgr
push ecx
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x254], ebx
call dword [sym.imp.Common.dll_void___cdecl_TXLog_DoTXLogVW_struct_tagLogObj___wchar_t_const___wchar_t_const___char__]
add esp, 0x14
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 0xa
call esi
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 8
call esi
jmp 0x4c538b
lea ecx, [ebp - 0x240]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_void_]
mov eax, dword [ebp - 0x288]
lea edx, [ebp - 0x2c4]
push edx
push eax
mov byte [ebp - 4], 0xe
call dword [sym.imp.xGraphic32.dll_GetTextureMode]
add esp, 8
cmp dword [ebp - 0x2c4], 2
lea ecx, [ebp - 0x240]
jne 0x4c5591
push 0x518d84
jmp 0x4c5596
push str.stretch
call dword [0x509114]
lea ecx, [ebp - 0x240]
push ecx
lea edx, [ebp - 0x230]
push edx
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x22c]
push ecx
call fcn.004c8330
add esp, 0x10
test eax, eax
jne 0x4c5687
lea ecx, [ebp - 0x220]
call edi
push eax
call dword [sym.imp.Common.dll_int___cdecl_FS::DeleteDirectory_wchar_t_const__]
add esp, 4
mov dword [ebp - 0x21c], str.Generate_Customize_Skin::Generate_themeconfig.xml_Error
mov dword [ebp - 0x24c], str.file
mov dword [ebp - 0x248], str.func
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x278], 0x29c
mov dword [ebp - 0x274], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x27c], 3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edx, [ebp - 0x260]
push edx
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x268], ebx
call dword [sym.imp.MSVCR80.dll__time64]
lea eax, [ebp - 0x21c]
push eax
push 0x5233fc
lea ecx, [ebp - 0x280]
push str.NewSkinMgr
push ecx
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x254], ebx
call dword [sym.imp.Common.dll_void___cdecl_TXLog_DoTXLogVW_struct_tagLogObj___wchar_t_const___wchar_t_const___char__]
add esp, 0x14
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 0xc
call esi
jmp 0x4c5537
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x28c]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::constructor_class_CTXStringW_const__]
mov ecx, eax
call dword [sym.imp.Common.dll_public:_wchar_t____thiscall_CTXBSTR::Copy_void_const]
mov ecx, dword [ebp - 0x290]
mov dword [ecx], eax
lea ecx, [ebp - 0x28c]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::destructor_void_]
mov edx, dword [ebp - 0x288]
push edx
call dword [sym.imp.xGraphic32.dll_DeleteTexture]
add esp, 4
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 0xc
call esi
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 0xa
call esi
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 8
call esi
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], 6
call fcn.004ae090
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 4
call esi
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 3
call esi
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call esi
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 1
call esi
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], bl
call esi
lea ecx, [ebp - 0x22c]
mov dword [ebp - 4], 0xffffffff
call esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f019a
mov esp, ebp
pop ebp
ret 0xc