Function at 0x47001d
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
mov eax, 0x4b2343
call fcn.0049f0d0
sub esp, 0xab8
mov eax, dword [0x4f0dd0]
push edi
mov edi, dword [ebp + 8]
xor eax, ebp
test edi, edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xaac], ecx
mov dword [ebp - 0xabc], edi
je 0x470061
push edi
call fcn.00481274
test al, al
pop ecx
jne 0x470068
push str.is_not_skin_package_type_
call fcn.0044f0cd
pop ecx
xor al, al
jmp 0x47031c
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0xab0], ebx
jne 0x47008e
push str.filename_is_null_
call fcn.0044f0cd
pop ecx
xor al, al
jmp 0x47031b
push esi
lea ecx, [ebp - 0x644]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov esi, dword [sym.imp.MSVCR71.dll_wcslen]
and dword [ebp - 4], 0
lea eax, [ebp - 0x644]
push eax
push ebx
call esi
pop ecx
push eax
push ebx
call fcn.0043c3a1
mov ecx, dword [ebp - 0xaac]
add esp, 0xc
push ebx
call fcn.0046c8cd
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47028d
and dword [ebp - 0x64c], 0
and dword [ebp - 0x648], 0
mov word [ebp - 0x650], 0x5c
push edi
lea ecx, [ebp - 0xaa8]
mov byte [ebp - 4], 1
call fcn.0046cb90
lea ecx, [ebp - 0xaa8]
call fcn.0046c71e
lea ecx, [ebp - 0xaa8]
mov edi, eax
mov dword [ebp - 0xac0], edx
call fcn.0046c75c
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xaa8]
call fcn.0046cb90
lea ecx, [ebp - 0xaa8]
call fcn.0046c71e
lea ecx, [ebp - 0xaa8]
mov dword [ebp - 0xab8], eax
mov dword [ebp - 0xab4], edx
call fcn.0046c75c
cmp edi, dword [ebp - 0xab8]
jne 0x4701d6
mov eax, dword [ebp - 0xab4]
cmp dword [ebp - 0xac0], eax
jne 0x4701d6
lea ecx, [ebp - 0x644]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
mov ecx, dword [ebp - 0xaac]
push eax
call fcn.0046d829
test eax, eax
jne 0x4701ac
lea ecx, [ebp - 0x644]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
mov ecx, dword [ebp - 0xaac]
push eax
call fcn.0046ef43
lea ecx, [ebp - 0x644]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
mov ecx, dword [ebp - 0xaac]
push eax
call fcn.0046ff4c
lea ecx, [ebp - 0xaa8]
mov bl, al
call fcn.0046c75c
jmp 0x470308
push ebx
call esi
mov ebx, 0x4c5590
push ebx
mov edi, eax
call esi
sub edi, eax
push edi
push dword [ebp - 0xab0]
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.MSVCR71.dll_wcsncpy]
and word [ebp + edi*2 - 0x628], 0
xor edi, edi
add esp, 0x14
inc edi
push ebx
push edi
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push str._s__d__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x420]
push eax
call esi
pop ecx
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.0043c3a1
mov ecx, dword [ebp - 0xaac]
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
call fcn.0046c8cd
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
push eax
inc edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x470208
lea ecx, [ebp - 0xaa8]
mov byte [ebp - 4], al
call fcn.0046c75c
mov edi, dword [ebp - 0xabc]
push 0
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4702b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.copy_file_failed_err_d
call fcn.0044f0cd
pop ecx
pop ecx
xor bl, bl
jmp 0x470308
lea ecx, [ebp - 0x644]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
mov ecx, dword [ebp - 0xaac]
push eax
call fcn.0046ef43
test al, al
jne 0x4702ee
push str.load_package_failed___now_delete_dest_package_file
call fcn.0044f0cd
pop ecx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4702b4
lea ecx, [ebp - 0x644]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
mov ecx, dword [ebp - 0xaac]
push eax
call fcn.0046ff4c
mov bl, al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x644]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, bl
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
pop edi
call fcn.0049f127
leave
ret 4