Function at 0x53e320
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x56f9bb
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x5d7050]
xor eax, esp
mov dword [esp + 0x9c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0xb4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xc4]
xor eax, eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x78]
mov dword [esp + 0x20], ebp
mov edi, edx
mov dword [esp + 0x1c], eax
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_void_]
lea ecx, [esp + 0x40]
mov dword [esp + 0xbc], 1
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_void_]
lea ecx, [esp + 0x94]
mov byte [esp + 0xbc], 2
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_void_]
lea edx, [esp + 0x94]
push edx
lea ebx, [esp + 0x44]
lea esi, [esp + 0x7c]
mov byte [esp + 0xc0], 3
call fcn.0040d370
add esp, 4
mov ecx, ebp
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_void_]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x1c], 1
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_void_]
mov bl, 4
mov byte [esp + 0xbc], bl
xor edi, edi
test edi, edi
mov eax, dword [esp + 0x44]
jne 0x53e421
cmp dword [esp + 0x58], 8
jae 0x53e405
lea eax, [esp + 0x44]
push eax
push str._s_thumb.jpg
lea esi, [esp + 0x2c]
call fcn.0040cb80
add esp, 8
mov byte [esp + 0xbc], 5
jmp 0x53e447
cmp dword [esp + 0x58], 8
jae 0x53e42c
lea eax, [esp + 0x44]
push edi
push eax
push str._s_thumb__d_.jpg
lea esi, [esp + 0x30]
call fcn.0040cb80
add esp, 0xc
mov byte [esp + 0xbc], 6
push eax
lea ecx, [esp + 0x60]
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__]
lea ecx, [esp + 0x24]
mov byte [esp + 0xbc], bl
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 [esp + 0x60]
mov eax, 8
cmp dword [esp + 0x74], eax
jae 0x53e476
lea ecx, [esp + 0x60]
cmp dword [esp + 0x90], eax
mov eax, dword [esp + 0x7c]
jae 0x53e487
lea eax, [esp + 0x7c]
push ecx
push eax
push str._s_s
lea esi, [esp + 0x30]
call fcn.0040cb80
add esp, 0xc
push eax
mov ecx, ebp
mov byte [esp + 0xc0], 7
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__]
mov ecx, esi
mov byte [esp + 0xbc], bl
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_]
cmp dword [ebp + 0x18], 8
jb 0x53e4c5
mov eax, dword [ebp + 4]
jmp 0x53e4c8
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x53e4dc
add edi, 1
jmp 0x53e3f2
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x53e4ef
lea eax, [esp + 0x5c]
push eax
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__]
lea ecx, [esp + 0x5c]
mov byte [esp + 0xbc], 3
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_]
lea ecx, [esp + 0x94]
mov byte [esp + 0xbc], 2
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_]
lea ecx, [esp + 0x40]
mov byte [esp + 0xbc], 1
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_]
lea ecx, [esp + 0x78]
mov byte [esp + 0xbc], 0
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 eax, ebp
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.00569ed6
add esp, 0xac
ret