Function at 0x4c6020
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ff2ae
mov eax, dword fs:[0]
push eax
sub esp, 0x244
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 + 0x10]
mov ecx, dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x248], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x224], ecx
xor ebx, ebx
push eax
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x24c], edi
mov dword [ebp - 0x250], esi
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x238], ebx
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_wchar_t__]
test esi, esi
mov dword [ebp - 4], ebx
je 0x4c60d2
lea ecx, [ebp - 0x22c]
call dword [sym.imp.Common.dll_public:_bool___thiscall_CTXStringW::IsEmpty_void_const]
test al, al
jne 0x4c60d2
mov edx, dword [ebp - 0x248]
push edx
lea ecx, [ebp - 0x244]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::constructor_wchar_t_const__]
mov ecx, eax
mov ebx, 1
call dword [sym.imp.Common.dll_public:_int___thiscall_CTXBSTR::IsEmpty_void_]
test eax, eax
mov byte [ebp - 0x219], 0
je 0x4c60d9
mov byte [ebp - 0x219], 1
test bl, 1
je 0x4c60ea
lea ecx, [ebp - 0x244]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::destructor_void_]
cmp byte [ebp - 0x219], 0
je 0x4c610b
lea ecx, [ebp - 0x22c]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
jmp 0x4c6803
cmp dword [ebp + 0xc], 3
jne 0x4c6143
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x248]
push eax
push esi
push ecx
mov ecx, edi
call fcn.004c4de0
lea ecx, [ebp - 0x22c]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
mov eax, esi
jmp 0x4c6808
mov eax, dword [ebp - 0x224]
cmp dword [edi + 0xc], eax
lea ebx, [edi + 0xc]
je 0x4c6159
push eax
push ebx
call dword [sym.imp.ATL80.DLL_Ordinal_30]
mov dword [ebp - 0x228], 0
mov edx, dword [edi]
mov ecx, dword [edx]
lea eax, [ebp - 0x228]
push eax
push 0x523030
push edi
mov byte [ebp - 4], 1
call ecx
push 0x518dd0
call dword [sym.imp.Common.dll_int___cdecl_FS::IsFileSystemExist_wchar_t_const__]
add esp, 4
test eax, eax
jne 0x4c61a5
push 1
push eax
push eax
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 0x206
lea edx, [ebp - 0x216]
push 0
push edx
mov word [ebp - 0x218], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [ebx]
test esi, esi
je 0x4c622f
push str.SetupSkin
call fcn.00408c00
add esp, 4
push eax
lea ecx, [ebp - 0x224]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::constructor_wchar_t_const__]
mov ecx, dword [ebp - 0x228]
mov edi, dword [esi]
push ecx
push 6
push 1
push 1
mov ecx, eax
mov byte [ebp - 4], 2
call dword [sym.imp.Common.dll_public:_wchar_t____thiscall_CTXBSTR::operator_wchar_t__void_const]
mov edx, dword [edi + 0xc]
push eax
push esi
call edx
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 1
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::destructor_void_]
mov edi, dword [ebp - 0x24c]
mov eax, dword [ebx]
test eax, eax
je 0x4c624c
mov edx, dword [ebp - 0x228]
mov ecx, dword [eax]
push edx
push 6
push 2
push 0
push 0
push eax
mov eax, dword [ecx + 0xc]
call eax
lea ecx, [ebp - 0x220]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_void_]
mov eax, dword [ebp + 0xc]
cmp eax, 1
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
mov byte [ebp - 4], 3
jne 0x4c62f4
lea ecx, [ebp - 0x248]
push ecx
mov ecx, edi
call fcn.004c4c50
mov edi, eax
push str.TencentQQSkinslocal_
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 4
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_wchar_t_const__]
push eax
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x230]
push eax
mov byte [ebp - 4], 5
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_wchar_t_const___class_CTXStringW_const__]
push edi
push eax
lea ecx, [ebp - 0x224]
push ecx
mov byte [ebp - 4], 6
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___class_CTXStringW_const__]
add esp, 0x18
push eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 7
call dword [0x509140]
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 6
call esi
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 5
call esi
mov byte [ebp - 4], 4
jmp 0x4c637d
test eax, eax
jne 0x4c6391
lea edx, [ebp - 0x248]
push edx
mov ecx, edi
call fcn.004c4c50
mov edi, eax
push str.TencentQQSkins_system_
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 8
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_wchar_t_const__]
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
push ecx
mov byte [ebp - 4], 9
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_wchar_t_const___class_CTXStringW_const__]
push edi
push eax
lea edx, [ebp - 0x224]
mov bl, 0xa
push edx
mov byte [ebp - 4], bl
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___class_CTXStringW_const__]
add esp, 0x18
push eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0xb
call dword [0x509140]
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], bl
call esi
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 9
call esi
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x244]
call esi
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 3
call esi
mov edi, dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
lea ecx, [ebp - 0x220]
call edi
push eax
lea eax, [ebp - 0x224]
push 0x518dd0
push eax
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_FS::CombineQNC_wchar_t_const___wchar_t_const__]
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 0xc
call edi
mov ebx, dword [sym.imp.Common.dll_int___cdecl_FS::DeleteDirectory_wchar_t_const__]
push eax
call ebx
add esp, 4
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 3
call esi
push str._themeconfig.xml
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x23c]
push edx
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__]
add esp, 0xc
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 0xd
call edi
push eax
lea eax, [ebp - 0x240]
push 0x518dd0
push eax
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_FS::CombineQNC_wchar_t_const___wchar_t_const__]
add esp, 0xc
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 0xe
call edi
push eax
call dword [sym.imp.Common.dll_int___cdecl_FS::IsFileExist_wchar_t_const__]
add esp, 4
test eax, eax
jne 0x4c64a8
lea ecx, [ebp - 0x220]
call edi
push eax
lea ecx, [ebp - 0x224]
push 0x518dd0
push ecx
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_FS::CombineQNC_wchar_t_const___wchar_t_const__]
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 0xf
call edi
push eax
call ebx
add esp, 4
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0xe
call esi
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 0xd
call esi
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 3
call esi
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
call esi
mov eax, dword [ebp - 0x228]
test eax, eax
mov byte [ebp - 4], 0
je 0x4c67f4
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x4c67f4
mov eax, dword [ebp - 0x24c]
add eax, 0xc
mov eax, dword [eax]
test eax, eax
je 0x4c64ce
mov edx, dword [ebp - 0x228]
mov ecx, dword [eax]
push edx
push 6
push 3
push 0
push 0
push eax
mov eax, dword [ecx + 0xc]
call eax
mov dword [ebp - 0x234], 0
lea ecx, [ebp - 0x234]
push ecx
mov byte [ebp - 4], 0x10
call dword [sym.imp.Common.dll_int___cdecl_Util::Data::CreateTXData_struct_ITXData___]
add esp, 4
lea ecx, [ebp - 0x238]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::constructor_void_]
lea edx, [ebp - 0x240]
push edx
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x11
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::constructor_class_CTXStringW_const__]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x234]
push 0
push eax
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 0x12
call dword [sym.imp.Common.dll_public:_wchar_t_____thiscall_CTXBSTR::operator_void_]
mov ecx, dword [ebp - 0x224]
push eax
call dword [sym.imp.Common.dll_public:_wchar_t____thiscall_CTXBSTR::operator_wchar_t__void_const]
push eax
call dword [sym.imp.Common.dll_int___cdecl_Util::Convert::ConvertXMLToTXData_wchar_t___wchar_t____struct_ITXData___wchar_t__]
add esp, 0x10
test eax, eax
lea ecx, [ebp - 0x230]
sete byte [ebp - 0x219]
mov byte [ebp - 4], 0x11
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::destructor_void_]
cmp byte [ebp - 0x219], 0
jne 0x4c678a
push 0x518da0
lea ecx, [ebp - 0x238]
call dword [sym.imp.Common.dll_public:_bool___thiscall_CTXBSTR::operator__wchar_t_const__const]
test al, al
jne 0x4c678a
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x4c678a
push eax
call fcn.004c7cd0
add esp, 4
test eax, eax
jne 0x4c6626
lea ecx, [ebp - 0x220]
call edi
push eax
call ebx
add esp, 4
lea ecx, [ebp - 0x238]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::destructor_void_]
mov eax, dword [ebp - 0x234]
test eax, eax
mov byte [ebp - 4], 0xe
je 0x4c65d3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 0xd
call esi
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 3
call esi
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
call esi
mov eax, dword [ebp - 0x228]
test eax, eax
mov byte [ebp - 4], 0
je 0x4c660d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [ebp - 0x22c]
mov dword [ebp - 4], 0xffffffff
call esi
mov eax, 1
jmp 0x4c6808
mov ebx, dword [ebp - 0x24c]
mov eax, dword [ebx + 0xc]
add ebx, 0xc
test eax, eax
je 0x4c664d
mov edx, dword [ebp - 0x228]
mov ecx, dword [eax]
push edx
push 6
push 4
push 0
push 0
push eax
mov eax, dword [ecx + 0xc]
call eax
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__]
push ecx
lea edx, [ebp - 0x22c]
mov ecx, esp
mov dword [ebp - 0x224], esp
push edx
call edi
push ecx
lea eax, [ebp - 0x23c]
mov ecx, esp
mov dword [ebp - 0x230], esp
push eax
mov byte [ebp - 4], 0x13
call edi
mov ecx, dword [ebp - 0x24c]
mov byte [ebp - 4], 0x11
call fcn.004c59d0
mov eax, dword [ebx]
test eax, eax
je 0x4c66a7
mov edx, dword [ebp - 0x228]
mov ecx, dword [eax]
push edx
push 6
push 5
push 0
push 0
push eax
mov eax, dword [ecx + 0xc]
call eax
mov ecx, dword [ebp - 0x234]
push ecx
push ecx
lea edx, [ebp - 0x220]
mov ecx, esp
mov dword [ebp - 0x224], esp
push edx
call edi
mov ecx, dword [ebp - 0x24c]
call fcn.004c5780
mov eax, dword [ebx]
test eax, eax
je 0x4c66e8
mov edx, dword [ebp - 0x228]
mov ecx, dword [eax]
push edx
push 6
push 6
push 0
push 0
push eax
mov eax, dword [ecx + 0xc]
call eax
mov edi, dword [ebp - 0x250]
test edi, edi
je 0x4c671b
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x244]
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::Detach_void_]
lea ecx, [ebp - 0x244]
mov dword [edi], eax
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::destructor_void_]
lea ecx, [ebp - 0x238]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::destructor_void_]
mov eax, dword [ebp - 0x234]
test eax, eax
mov byte [ebp - 4], 0xe
je 0x4c673d
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 0xd
call esi
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 3
call esi
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
call esi
mov eax, dword [ebp - 0x228]
test eax, eax
mov byte [ebp - 4], 0
je 0x4c6777
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [ebp - 0x22c]
mov dword [ebp - 4], 0xffffffff
call esi
xor eax, eax
jmp 0x4c6808
lea ecx, [ebp - 0x220]
call edi
push eax
call ebx
add esp, 4
lea ecx, [ebp - 0x238]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::destructor_void_]
mov eax, dword [ebp - 0x234]
test eax, eax
mov byte [ebp - 4], 0xe
je 0x4c67ba
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 0xd
call esi
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 3
call esi
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
call esi
mov eax, dword [ebp - 0x228]
test eax, eax
mov byte [ebp - 4], 0
je 0x4c67f4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [ebp - 0x22c]
mov dword [ebp - 4], 0xffffffff
call esi
mov eax, 0x80004005
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 0x18