Function at 0x412a00
Capabilities:
Check if file exists
Get file attributes
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4bba62
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4ce028]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ce028]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov dword [esp + 0x14], 0
mov edi, ecx
mov ecx, dword [edi + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
mov ebx, edx
lea edx, [esp + 0x58]
push edx
mov dword [esp + 0x20], ebx
call eax
push 1
lea esi, [esp + 0x40]
mov eax, edi
mov dword [esp + 0x84], 1
call fcn.00411f70
mov byte [esp + 0x80], 2
cmp dword [edi + 0x64], 0
mov ebp, 8
je 0x412b34
lea ebx, [ebp - 7]
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 + 0x58]
push ecx
mov ecx, esi
mov byte [esp + 0xa0], 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__::assign_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
push ebx
push 0xffffffffffffffff
push 0xffffffffffffffff
mov esi, edi
mov byte [esp + 0xa8], 2
call fcn.00413160
mov eax, dword [edi + 0x64]
add eax, 4
push eax
lea ecx, [esp + 0x40]
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 + 0x40]
cmp dword [esp + 0x54], ebp
jae 0x412ae0
lea ecx, [esp + 0x40]
push 1
lea esi, [esp + 0x24]
call fcn.00418020
add esp, 4
cmp dword [eax + 0x18], ebp
jb 0x412af8
mov eax, dword [eax + 4]
jmp 0x412afb
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [esp + 0x20]
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 0x412b30
test bl, 0x10
mov eax, 0
sete al
lea eax, [eax + eax - 1]
test eax, eax
je 0x412b30
mov ebx, 2
jmp 0x412a83
mov ebx, dword [esp + 0x1c]
mov ecx, dword [edi + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov ecx, dword [edi + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x54], ebp
jae 0x412b56
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x5c]
call fcn.00414c60
test eax, eax
jne 0x412b71
lea ecx, [esp + 0x3c]
push ecx
push ebx
call fcn.00402e30
jmp 0x412bd6
cmp dword [edi + 0x64], 0
jne 0x412ba6
mov ecx, dword [esp + 0x40]
cmp dword [esp + 0x54], ebp
jae 0x412b85
lea ecx, [esp + 0x40]
call fcn.00411260
test eax, eax
je 0x412ba6
mov edi, dword [esp + 0x40]
cmp dword [esp + 0x54], ebp
jae 0x412b9c
lea edi, [esp + 0x40]
push 1
call fcn.00411470
add esp, 4
mov ecx, dword [esp + 0x40]
cmp dword [esp + 0x54], ebp
jae 0x412bb4
lea ecx, [esp + 0x40]
mov eax, dword [esp + 0x5c]
cmp dword [esp + 0x70], ebp
jae 0x412bc2
lea eax, [esp + 0x5c]
push eax
call fcn.004114f0
add esp, 4
lea edx, [esp + 0x3c]
push edx
push ebx
call fcn.00402e30
lea ecx, [esp + 0x3c]
mov dword [esp + 0x14], 1
mov byte [esp + 0x80], 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_]
lea ecx, [esp + 0x58]
mov byte [esp + 0x80], 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 eax, ebx
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0042bebe
add esp, 0x70
ret