Function at 0x407fa0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x48d03d
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4bb028]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bb028]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x7c]
mov ebx, ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x58], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x5c], 1
call dword [sym.imp.MSVCP90.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__]
cmp dword [esp + 0x74], 0
je 0x4081b3
push 0x498ca8
lea esi, [esp + 0x64]
lea edi, [esp + 0x18]
call fcn.00431b90
add esp, 4
mov ecx, edi
call dword [sym.imp.MSVCP90.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 + 0x14]
mov eax, ebx
call fcn.00406f10
push eax
mov ecx, ebp
mov byte [esp + 0x5c], 2
call dword [sym.imp.MSVCP90.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 + 0x14]
mov byte [esp + 0x58], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, esi
push ecx
mov ecx, ebp
call dword [0x497358]
mov edi, 8
lea esi, [ebp + 4]
cmp dword [ebp + 0x18], edi
jb 0x40806a
mov eax, dword [esi]
jmp 0x40806c
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4080a2
lea ecx, [esp + 0x30]
mov byte [esp + 0x58], 0
call dword [sym.imp.MSVCP90.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 + 0x60]
mov dword [esp + 0x58], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, 1
jmp 0x4081d6
lea ecx, [esp + 0x14]
mov eax, ebx
call fcn.00406f10
push eax
mov ecx, ebp
mov byte [esp + 0x5c], 3
call dword [sym.imp.MSVCP90.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 + 0x14]
mov byte [esp + 0x58], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push str.skinsicons_
mov ecx, ebp
call dword [0x497354]
mov eax, dword [esp + 0x64]
cmp dword [esp + 0x78], edi
jae 0x4080e5
lea eax, [esp + 0x64]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call edi
push eax
mov ecx, ebp
call dword [0x497354]
cmp dword [ebp + 0x18], 8
jb 0x408101
mov eax, dword [esi]
jmp 0x408103
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x408077
lea ecx, [esp + 0x14]
mov eax, ebx
call fcn.00406f10
push eax
mov ecx, ebp
mov byte [esp + 0x5c], 4
call dword [sym.imp.MSVCP90.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 + 0x14]
mov byte [esp + 0x58], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push str.skinsdefaultimages_
mov ecx, ebp
call dword [0x497354]
mov eax, dword [esp + 0x64]
mov ebx, 8
cmp dword [esp + 0x78], ebx
jae 0x40815a
lea eax, [esp + 0x64]
push eax
call edi
push eax
mov ecx, ebp
call dword [0x497354]
cmp dword [ebp + 0x18], ebx
jb 0x40816f
mov eax, dword [esi]
jmp 0x408171
mov eax, esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
jne 0x408077
cmp dword [ebp + 0x18], ebx
jb 0x408189
mov esi, dword [esi]
push esi
call edi
lea ecx, [esp + 0x30]
mov esi, eax
mov byte [esp + 0x58], 0
call dword [sym.imp.MSVCP90.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 + 0x60]
mov dword [esp + 0x58], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
jmp 0x4081d6
lea ecx, [esp + 0x30]
mov byte [esp + 0x58], 0
call dword [sym.imp.MSVCP90.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 + 0x60]
mov dword [esp + 0x58], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor eax, eax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0048a3f6
add esp, 0x48
ret 0x20