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

Disassembly:
push 0xffffffffffffffff
push 0x4bbbb1
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4ce028]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ce028]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x8c]
mov esi, ebp
call fcn.004136c0
mov eax, dword [ebp + 0x60]
mov ecx, dword [ebp + 0x38]
and eax, 0x90
cmp al, 0x90
sete bl
or ecx, dword [ebp + 0x3c]
mov byte [esp + 0x17], bl
je 0x412e85
inc dword [ebp + 0x40]
xor eax, eax
cmp dword [ebp + 0x40], 0xfffffffe
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x3c], eax
jb 0x412e85
push 0xd1
push ebp
call fcn.00412770
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], 0
test bl, bl
je 0x412eae
lea edx, [ebp + 0x68]
push edx
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 0x412ede
push 0
lea esi, [esp + 0x60]
mov eax, ebp
call fcn.00411f70
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 eax, dword [ecx]
mov edx, dword [eax + 0x34]
call edx
test al, al
jne 0x412f48
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp + 0x60]
and eax, 0x70
cmp al, 0x70
jne 0x412f3e
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.0040fed0
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
sar eax, 3
test eax, eax
jne 0x412f3a
push 0xe2
xor ecx, ecx
call fcn.0040a140
mov bl, byte [esp + 0x17]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
cmp dword [ebp + 0x64], 0
je 0x4130e5
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.00413160
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 0x412fc5
lea ecx, [esp + 0x44]
push 1
lea esi, [esp + 0x28]
call fcn.00418020
add esp, 4
cmp dword [eax + 0x18], edi
jb 0x412fdd
mov eax, dword [eax + 4]
jmp 0x412fe0
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 0x413015
test bl, 0x10
mov eax, 0
sete al
lea eax, [eax + eax - 1]
test eax, eax
je 0x413015
mov edi, 2
jmp 0x412f57
mov bl, byte [esp + 0x17]
test bl, bl
je 0x413098
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.0040d310
mov ecx, dword [esp + 0x6c]
add esp, 0xc
cmp dword [esp + 0x74], edi
jae 0x413054
lea ecx, [esp + 0x60]
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x58], edi
jae 0x413062
lea eax, [esp + 0x44]
push eax
mov edi, ecx
call fcn.00411390
add esp, 4
mov byte [esp + 0x84], 0
lea ecx, [esp + 0x5c]
test al, al
jne 0x41308d
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 0x412f57
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 0x4130a6
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 0x4130c5
mov edi, 4
jmp 0x412f57
test bl, bl
je 0x4130d7
push ebp
call fcn.00413220
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x24], edx
jmp 0x413123
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x24], edx
jmp 0x413123
test bl, bl
je 0x4130f4
push 0xd7
push ebp
call fcn.00412770
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 0x41310f
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.0042bebe
add esp, 0x74
ret 0xc