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

Disassembly:
push 0xffffffffffffffff
push 0x429b81
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x435028]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x435028]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x8c]
mov eax, dword [ebp + 0x18]
xor edi, edi
cmp eax, edi
je 0x40e418
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x2c]
mov esi, dword [ecx]
push eax
mov eax, dword [esi + 0x30]
push edx
call eax
mov ecx, dword [ebp + 0x60]
shr ecx, 4
test cl, 1
je 0x40e415
mov edx, dword [ebp + 0x18]
add dword [ebp + 0x38], edx
adc dword [ebp + 0x3c], edi
mov dword [ebp + 0x18], edi
mov eax, dword [ebp + 0x60]
and eax, 0x90
cmp al, 0x90
jne 0x40e430
push ebp
call fcn.0040e800
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x24], edx
mov ecx, dword [ebp + 0x60]
mov edx, dword [ebp + 0x38]
and ecx, 0x90
cmp cl, 0x90
sete bl
or edx, dword [ebp + 0x3c]
mov byte [esp + 0x17], bl
je 0x40e465
inc dword [ebp + 0x40]
cmp dword [ebp + 0x40], 0xfffffffe
mov dword [ebp + 0x38], edi
mov dword [ebp + 0x3c], edi
jb 0x40e465
push 0xd1
push ebp
call fcn.0040dcf0
lea ecx, [esp + 0x40]
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_]
mov dword [esp + 0x84], edi
test bl, bl
je 0x40e48a
lea eax, [ebp + 0x68]
push eax
lea ecx, [esp + 0x44]
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__]
jmp 0x40e4b9
push edi
lea esi, [esp + 0x60]
mov eax, ebp
call fcn.0040d480
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x88], 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__]
mov ecx, esi
mov byte [esp + 0x84], 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_]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x34]
call eax
test al, al
jne 0x40e526
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp + 0x60]
and ecx, 0x70
cmp cl, 0x70
jne 0x40e51c
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
mov edi, dword [ebp + 0xac]
lea ebx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
call fcn.0040b420
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
sar eax, 3
test eax, eax
jne 0x40e516
push 0xe2
xor ecx, ecx
call fcn.00405910
mov bl, byte [esp + 0x17]
xor edi, edi
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
cmp dword [ebp + 0x64], edi
je 0x40e6c2
mov edi, 1
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x34], esp
mov ecx, esi
mov dword [esp + 0x34], esi
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 ecx, [esp + 0x5c]
push ecx
mov ecx, esi
mov byte [esp + 0xa4], 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__::assign_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov edx, dword [esp + 0xb0]
mov eax, dword [esp + 0xac]
push edi
push edx
push eax
mov esi, ebp
mov byte [esp + 0xac], 0
call fcn.0040e740
mov eax, dword [ebp + 0x64]
add eax, 4
push eax
lea ecx, [esp + 0x44]
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__]
mov ecx, dword [esp + 0x44]
mov edi, 8
cmp dword [esp + 0x58], edi
jae 0x40e5a2
lea ecx, [esp + 0x44]
push 1
lea esi, [esp + 0x28]
call fcn.00413ad0
add esp, 4
cmp dword [eax + 0x18], edi
jb 0x40e5ba
mov eax, dword [eax + 4]
jmp 0x40e5bd
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [esp + 0x24]
mov ebx, eax
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_]
cmp ebx, 0xffffffff
je 0x40e5f2
test bl, 0x10
mov eax, 0
sete al
lea eax, [eax + eax - 1]
test eax, eax
je 0x40e5f2
mov edi, 2
jmp 0x40e534
mov bl, byte [esp + 0x17]
test bl, bl
je 0x40e675
lea ecx, [esp + 0x5c]
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_]
mov byte [esp + 0x84], 3
mov ecx, dword [ebp + 0x40]
inc ecx
push ecx
lea edx, [esp + 0x60]
push str.pkback__.3d
push edx
call fcn.00408920
mov ecx, dword [esp + 0x6c]
add esp, 0xc
cmp dword [esp + 0x74], edi
jae 0x40e631
lea ecx, [esp + 0x60]
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x58], edi
jae 0x40e63f
lea eax, [esp + 0x44]
push eax
mov edi, ecx
call fcn.0040c870
add esp, 4
mov byte [esp + 0x84], 0
lea ecx, [esp + 0x5c]
test al, al
jne 0x40e66a
mov edi, 3
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_]
jmp 0x40e534
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 edi, 8
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x58], edi
jae 0x40e683
lea eax, [esp + 0x44]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push 0
push 0x1022
push eax
mov eax, dword [edx]
call eax
test al, al
jne 0x40e6a2
mov edi, 4
jmp 0x40e534
test bl, bl
je 0x40e6b4
push ebp
call fcn.0040e800
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x24], edx
jmp 0x40e700
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x24], edx
jmp 0x40e700
test bl, bl
je 0x40e6d1
push 0xd7
push ebp
call fcn.0040dcf0
cmp dword [esp + 0x58], 8
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov eax, dword [esp + 0x44]
mov dword [ebp + 0x20], ecx
mov dword [ebp + 0x24], edx
jae 0x40e6ec
lea eax, [esp + 0x44]
mov ebp, dword [ebp + 8]
mov edx, dword [ebp]
push 1
push 0x1022
push eax
mov eax, dword [edx]
mov ecx, ebp
call eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x84], 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 ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00427762
add esp, 0x74
ret 0xc