Function at 0x4989d8
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4e511c
call fcn.004d1d50
sub esp, 0x7c
mov eax, dword [0x52e400]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, ebp
push edi
mov dword [ebp - 0x10], eax
mov esi, ecx
mov dword [ebp - 0x6c], edi
call fcn.004981af
mov ebx, eax
mov ecx, ebx
call fcn.004a6ee1
push eax
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x498a3a
push edi
push 1
mov ecx, esi
call fcn.0049a3db
jmp 0x498b70
mov eax, dword [esi + 0x3ac]
mov ecx, dword [esi + 0x3a8]
lea edx, [ebp - 0x6c]
push edx
push eax
push ecx
lea eax, [ebp - 0x68]
push eax
call fcn.004960ec
mov eax, dword [esi + 0x3ac]
add esp, 0x10
cmp dword [ebp - 0x68], eax
jne 0x498b70
push edi
lea ecx, [ebp - 0x88]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [ebp - 0x88]
push eax
lea ecx, [esi + 0x3a4]
mov byte [ebp - 4], 1
call fcn.0040d280
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push str.http:__img.skin.client.xunlei.com_skinimg_
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.004a6666
push eax
lea ecx, [ebp - 0x2c]
call dword [0x4eb700]
push str..jpg
lea ecx, [ebp - 0x2c]
call dword [0x4eb700]
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x18]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
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]
push eax
call fcn.0044fd65
push 0x20
call fcn.004d1924
mov ebx, eax
add esp, 0x10
mov dword [ebp - 0x68], ebx
test ebx, ebx
mov byte [ebp - 4], 4
je 0x498b13
mov ecx, ebx
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
and dword [ebx + 0x1c], 0
jmp 0x498b15
xor ebx, ebx
push edi
mov ecx, ebx
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push esi
lea edi, [ebx + 0x1c]
push 0x495f9c
mov ecx, edi
call fcn.00495689
mov edi, dword [edi]
push ebx
push edi
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call fcn.004abe6f
mov ecx, eax
call fcn.004ab85e
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP71.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]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.004d1da7
leave
ret 4