Function at 0x4c4960
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4feeac
mov eax, dword fs:[0]
push eax
sub esp, 0x68c
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 ebx, dword [ebp + 8]
xor edi, edi
cmp eax, edi
mov esi, ecx
je 0x4c49a5
cmp eax, 1
jne 0x4c4c2e
lea eax, [esi + 0x118]
cmp ebx, eax
jne 0x4c4b0d
push 0x208
lea ecx, [ebp - 0x25e]
push edi
push ecx
mov word [ebp - 0x260], di
call sub.MSVCR80.dll_memset
push 0x208
lea edx, [ebp - 0x676]
push edi
push edx
mov word [ebp - 0x678], di
call sub.MSVCR80.dll_memset
lea eax, [ebp - 0x260]
push 0x104
push eax
call fcn.004f6270
add esp, 0x20
lea ecx, [ebp - 0x678]
push ecx
push edi
push str.skin
lea edx, [ebp - 0x260]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x678]
lea edi, [esi + 0x84]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push str..xml
mov ecx, edi
call dword [0x509758]
push 0
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::data_void_const]
push eax
mov ecx, ebx
call dword [sym.imp.Common.dll_public:_int___thiscall_CTXHttpDownload::MoveDownloadFile_wchar_t_const___int_]
push 0x40
lea ecx, [ebp - 0x52]
push 0
push ecx
mov word [ebp - 0x54], 0
call sub.MSVCR80.dll_memset
mov ecx, dword [0x56ebd8]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
add esp, 0xc
push 0
push 0x40
lea eax, [ebp - 0x54]
push eax
push str.LastRecommendSkinMd5
call edx
push edi
mov ecx, esi
call fcn.004c3a80
test eax, eax
je 0x4c4af9
lea ecx, [ebp - 0x54]
lea eax, [esi + 0x68]
push ecx
push eax
call dword [sym.imp.MSVCP80.dll_bool___cdecl_std::operator__wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_const__]
add esp, 8
test al, al
je 0x4c4af9
mov ebx, dword [0x56f564]
mov edx, dword [ebx]
lea ecx, [esi + 0x68]
mov dword [ebp - 0x698], edx
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::data_void_const]
push eax
mov eax, dword [ebp - 0x698]
mov edx, dword [eax + 0x30]
mov ecx, ebx
call edx
test eax, eax
jne 0x4c4af9
mov ecx, esi
call fcn.004c47b0
test eax, eax
je 0x4c4c2e
mov eax, dword [esi + 0xc]
mov ebx, dword [eax]
push 1
lea ecx, [esi + 0x30]
mov dword [ebp - 0x698], eax
add ebx, 0x2dc
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::data_void_const]
mov ecx, dword [ebx]
push eax
mov eax, dword [ebp - 0x698]
push eax
call ecx
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::data_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4c4c2e
lea edx, [esi + 0x1f4]
cmp ebx, edx
jne 0x4c4c2e
push 0x208
lea eax, [ebp - 0x46a]
push edi
push eax
mov word [ebp - 0x46c], di
call sub.MSVCR80.dll_memset
lea ecx, [ebp - 0x46c]
push 0x104
push ecx
call fcn.004f6270
add esp, 0x14
lea edx, [ebp - 0x46c]
push edx
lea ecx, [ebp - 0x694]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push 0x5231c0
lea ecx, [ebp - 0x694]
mov dword [ebp - 4], edi
call dword [0x509758]
lea edi, [esi + 0x68]
push edi
lea ecx, [ebp - 0x694]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
push 0x5153bc
lea ecx, [ebp - 0x694]
call dword [0x509758]
push 0
lea ecx, [ebp - 0x694]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::data_void_const]
push eax
mov ecx, ebx
call dword [sym.imp.Common.dll_public:_int___thiscall_CTXHttpDownload::MoveDownloadFile_wchar_t_const___int_]
mov ebx, dword [0x56f564]
mov eax, dword [ebx]
mov ecx, edi
mov dword [ebp - 0x698], eax
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::data_void_const]
mov edx, dword [ebp - 0x698]
push eax
mov eax, dword [edx + 0x30]
mov ecx, ebx
call eax
test eax, eax
jne 0x4c4c08
mov ebx, dword [0x56f564]
mov edi, dword [ebx]
lea ecx, [ebp - 0x694]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::data_void_const]
mov edx, dword [edi + 0x34]
push eax
mov ecx, ebx
call edx
mov ecx, dword [esi + 0x14]
test ecx, ecx
mov dword [esi + 0x2d0], 1
je 0x4c4c08
mov edx, dword [esi + 0x18]
push edx
push eax
push 1
call ecx
add esp, 0xc
lea ecx, [ebp - 0x694]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::data_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x694]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
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 8