Function at 0x4c6840
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ff3b6
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
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 eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [ebp + 0x10]
push 0x518dd0
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x298], eax
mov dword [ebp - 0x220], ecx
call dword [sym.imp.Common.dll_int___cdecl_FS::IsFileSystemExist_wchar_t_const__]
add esp, 4
xor ebx, ebx
test eax, eax
jne 0x4c68b8
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
push edi
lea ecx, [ebp - 0x230]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_wchar_t__]
push edi
lea edx, [ebp - 0x228]
push 0x518dd0
push edx
mov dword [ebp - 4], ebx
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_FS::CombineQNC_wchar_t_const___wchar_t_const__]
add esp, 0xc
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 1
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 0x4c69c6
mov dword [ebp - 0x220], str.Generate_Customize_Skin::File_is_not_exist
mov dword [ebp - 0x25c], str.file
mov dword [ebp - 0x258], str.func
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x288], 0x2b6
mov dword [ebp - 0x284], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x28c], 3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x27c], eax
lea eax, [ebp - 0x270]
push eax
mov dword [ebp - 0x278], ebx
call dword [sym.imp.MSVCR80.dll__time64]
lea ecx, [ebp - 0x220]
push ecx
push 0x5233fc
lea edx, [ebp - 0x290]
push str.NewSkinMgr
push edx
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0x264], 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 - 0x230]
mov dword [ebp - 4], 0xffffffff
call esi
mov eax, 0x80004005
jmp 0x4c728e
mov eax, dword [ebp - 0x220]
push eax
lea ecx, [ebp - 0x234]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_wchar_t__]
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 2
call dword [sym.imp.Common.dll_public:_bool___thiscall_CTXStringW::IsEmpty_void_const]
test al, al
je 0x4c6aa4
mov dword [ebp - 0x220], str.Generate_Customize_Skin::Make_FileHash_Error
mov dword [ebp - 0x25c], str.file
mov dword [ebp - 0x258], str.func
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x288], 0x2bf
mov dword [ebp - 0x284], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x28c], 3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebp - 0x270]
push ecx
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x278], ebx
call dword [sym.imp.MSVCR80.dll__time64]
lea edx, [ebp - 0x220]
push edx
push 0x5233fc
lea eax, [ebp - 0x290]
push str.NewSkinMgr
push eax
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0x264], 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 - 0x234]
mov byte [ebp - 4], 1
call esi
jmp 0x4c69a2
push 0x206
lea ecx, [ebp - 0x216]
push ebx
push ecx
mov word [ebp - 0x218], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 1
push 0x1a
lea edx, [ebp - 0x218]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x2a8]
push eax
mov ecx, esi
call fcn.004c4c50
mov esi, eax
push str.TencentQQPCMgrSkinscustomize_
lea ecx, [ebp - 0x2a4]
mov byte [ebp - 4], 3
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_wchar_t_const__]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x2a0]
push edx
mov byte [ebp - 4], 4
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_wchar_t_const___class_CTXStringW_const__]
push esi
push eax
lea eax, [ebp - 0x22c]
push eax
mov byte [ebp - 4], 5
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___class_CTXStringW_const__]
add esp, 0x18
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x2a0]
mov byte [ebp - 4], 7
call esi
lea ecx, [ebp - 0x2a4]
mov byte [ebp - 4], 8
call esi
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 9
call esi
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x21c]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__]
mov edi, dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 0xa
call edi
push eax
call dword [sym.imp.Common.dll_int___cdecl_FS::DeleteDirectory_wchar_t_const__]
add esp, 4
lea ecx, [ebp - 0x21c]
call edi
push eax
call dword [sym.imp.Common.dll_int___cdecl_FS::CreateDirectoryW_wchar_t_const__]
add esp, 4
test eax, eax
jne 0x4c6c5e
mov dword [ebp - 0x220], str.Generate_Customize_Skin::CreateDirectory_Error
mov dword [ebp - 0x25c], str.file
mov dword [ebp - 0x258], str.func
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x288], 0x2cf
mov dword [ebp - 0x284], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x28c], 3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edx, [ebp - 0x270]
push edx
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x278], ebx
call dword [sym.imp.MSVCR80.dll__time64]
lea eax, [ebp - 0x220]
push eax
push 0x5233fc
lea ecx, [ebp - 0x290]
push str.NewSkinMgr
push ecx
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0x264], 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 - 0x21c]
mov byte [ebp - 4], 9
call esi
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 2
call esi
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 1
call esi
jmp 0x4c69a2
push 0x5231c0
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__]
lea ecx, [ebp - 0x220]
push 0x518d70
push ecx
mov byte [ebp - 4], 0xb
call fcn.0041b7b0
add esp, 0x14
mov ecx, eax
mov byte [ebp - 4], 0xc
call dword [sym.imp.Common.dll_public:_wchar_t____thiscall_CTXBSTR::operator_wchar_t__void_const]
push eax
lea ecx, [ebp - 0x244]
call dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t_const__]
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::destructor_void_]
lea ecx, [ebp - 0x220]
call edi
mov dword [ebp - 0x238], ebx
lea edx, [ebp - 0x238]
push edx
push 0x5272c8
push 0x5272c8
mov byte [ebp - 4], 0xd
call fcn.004029a0
mov eax, dword [ebp - 0x238]
mov edx, dword [ebp - 0x224]
mov ecx, dword [eax]
add esp, 0xc
push edx
push eax
mov eax, dword [ecx + 0xb4]
call eax
mov eax, dword [ebp - 0x238]
lea edx, [ebp - 0x240]
mov dword [ebp - 0x240], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xdc]
call eax
mov dword [ebp - 0x248], ebx
lea ecx, [ebp - 0x248]
push ecx
push 0x5147c0
mov byte [ebp - 4], 0xe
call fcn.004aed70
mov eax, dword [ebp - 0x240]
lea edx, [ebp - 0x2bc]
push edx
push eax
mov dword [ebp - 0x2bc], 4
call dword [sym.imp.xGraphic32.dll_SetTextureMode]
add esp, 0x10
lea ecx, [ebp - 0x244]
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::GetString_void_const]
push eax
lea ecx, [ebp - 0x220]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_wchar_t_const__]
mov edx, dword [ebp - 0x240]
lea ecx, [ebp - 0x220]
push ecx
push edx
mov byte [ebp - 4], 0xf
call fcn.004c7ad0
add esp, 8
test eax, eax
lea ecx, [ebp - 0x220]
sete byte [ebp - 0x239]
mov byte [ebp - 4], 0xe
call esi
cmp byte [ebp - 0x239], bl
je 0x4c6e8e
lea ecx, [ebp - 0x21c]
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
call dword [sym.imp.Common.dll_int___cdecl_FS::DeleteDirectory_wchar_t_const__]
add esp, 4
mov dword [ebp - 0x224], str.Generate_Customize_Skin::Save_Main_Texture_Error
mov dword [ebp - 0x25c], str.file
mov dword [ebp - 0x258], str.func
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x288], 0x2ef
mov dword [ebp - 0x284], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x28c], 3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x27c], eax
lea eax, [ebp - 0x270]
push eax
mov dword [ebp - 0x278], ebx
call dword [sym.imp.MSVCR80.dll__time64]
lea ecx, [ebp - 0x224]
push ecx
push 0x5233fc
lea edx, [ebp - 0x290]
push str.NewSkinMgr
push edx
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0x264], ebx
call dword [sym.imp.Common.dll_void___cdecl_TXLog_DoTXLogVW_struct_tagLogObj___wchar_t_const___wchar_t_const___char__]
add esp, 0x14
mov eax, dword [ebp - 0x248]
cmp eax, ebx
mov byte [ebp - 4], 0xd
je 0x4c6e67
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x238]
cmp eax, ebx
mov byte [ebp - 4], 0xb
je 0x4c6e7d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 0xa
call esi
jmp 0x4c6c35
push 0x5231c0
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x24c]
push ecx
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__]
lea edx, [ebp - 0x224]
push 0x518d30
push edx
mov byte [ebp - 4], 0x10
call fcn.0041b7b0
add esp, 0x14
mov ecx, eax
mov byte [ebp - 4], 0x11
call dword [sym.imp.Common.dll_public:_wchar_t____thiscall_CTXBSTR::operator_wchar_t__void_const]
push eax
lea ecx, [ebp - 0x24c]
call dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t_const__]
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0x10
call edi
push 0x5231c0
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x294]
push ecx
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__]
lea edx, [ebp - 0x224]
push 0x518d48
push edx
mov byte [ebp - 4], 0x12
call fcn.0041b7b0
add esp, 0x14
mov ecx, eax
mov byte [ebp - 4], 0x13
call dword [sym.imp.Common.dll_public:_wchar_t____thiscall_CTXBSTR::operator_wchar_t__void_const]
push eax
lea ecx, [ebp - 0x294]
call dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t_const__]
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0x12
call edi
mov ecx, 0x2b
push ecx
mov eax, 0x44
push eax
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x228]
push ecx
call fcn.004c8d80
add esp, 0x10
test eax, eax
jne 0x4c704d
lea ecx, [ebp - 0x21c]
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
call dword [sym.imp.Common.dll_int___cdecl_FS::DeleteDirectory_wchar_t_const__]
add esp, 4
mov dword [ebp - 0x224], str.Generate_Customize_Skin::Save_Preview_Image_Error
mov dword [ebp - 0x25c], str.file
mov dword [ebp - 0x258], str.func
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x288], 0x302
mov dword [ebp - 0x284], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x28c], 3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edx, [ebp - 0x270]
push edx
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x278], ebx
call dword [sym.imp.MSVCR80.dll__time64]
lea eax, [ebp - 0x224]
push eax
push 0x5233fc
lea ecx, [ebp - 0x290]
push str.NewSkinMgr
push ecx
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0x264], 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 - 0x294]
mov byte [ebp - 4], 0x10
call esi
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 0xe
call esi
mov eax, dword [ebp - 0x248]
cmp eax, ebx
mov byte [ebp - 4], 0xd
je 0x4c6e67
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x4c6e67
lea ecx, [ebp - 0x250]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_void_]
mov ecx, dword [ebp - 0x240]
lea eax, [ebp - 0x2d0]
push eax
push ecx
mov byte [ebp - 4], 0x14
call dword [sym.imp.xGraphic32.dll_GetTextureMode]
add esp, 8
cmp dword [ebp - 0x2d0], 2
lea ecx, [ebp - 0x250]
jne 0x4c708a
push 0x518d84
jmp 0x4c708f
push str.stretch
call dword [0x509114]
mov eax, dword [ebp - 0x248]
mov edx, dword [eax]
mov edx, dword [edx + 0x54]
lea ecx, [ebp - 0x230]
push ecx
push eax
call edx
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x230]
push eax
call fcn.004c8330
add esp, 0x10
test eax, eax
jne 0x4c71b1
lea ecx, [ebp - 0x21c]
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
call dword [sym.imp.Common.dll_int___cdecl_FS::DeleteDirectory_wchar_t_const__]
add esp, 4
mov dword [ebp - 0x224], str.Generate_Customize_Skin::Generate_themeconfig.xml_Error
mov dword [ebp - 0x25c], str.file
mov dword [ebp - 0x258], str.func
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x288], 0x31a
mov dword [ebp - 0x284], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x28c], 3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebp - 0x270]
push ecx
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x278], ebx
call dword [sym.imp.MSVCR80.dll__time64]
lea edx, [ebp - 0x224]
push edx
push 0x5233fc
lea eax, [ebp - 0x290]
push str.NewSkinMgr
push eax
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0x264], 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 - 0x250]
mov byte [ebp - 4], 0x12
call esi
lea ecx, [ebp - 0x294]
mov byte [ebp - 4], 0x10
call esi
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 0xe
call esi
jmp 0x4c6e51
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x29c]
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 - 0x298]
mov dword [ecx], eax
lea ecx, [ebp - 0x29c]
call edi
mov edx, dword [ebp - 0x240]
push edx
call dword [sym.imp.xGraphic32.dll_DeleteTexture]
add esp, 4
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x240], ebx
mov byte [ebp - 4], 0x12
call esi
lea ecx, [ebp - 0x294]
mov byte [ebp - 4], 0x10
call esi
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 0xe
call esi
mov eax, dword [ebp - 0x248]
cmp eax, ebx
mov byte [ebp - 4], 0xd
je 0x4c722c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x238]
cmp eax, ebx
mov byte [ebp - 4], 0xb
je 0x4c7242
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 0xa
call esi
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 9
call esi
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 2
call esi
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 1
call esi
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], bl
call esi
lea ecx, [ebp - 0x230]
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