Function at 0x533c90
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f7abb
mov eax, dword fs:[0]
push eax
mov eax, 0x107c
call fcn.0044eaf0
mov eax, dword [0x6a1564]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1064], ecx
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1050], eax
cmp dword [esi + 0x14], 8
jb 0x533ce0
mov eax, dword [esi]
jmp 0x533ce2
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x1068], eax
cmp eax, 0xffffffff
jne 0x533cfb
xor eax, eax
jmp 0x533f83
and eax, 0x10
mov dword [ebp - 0x106c], eax
shl eax, 0x15
cmp dword [esi + 0x14], 8
jb 0x533d0f
mov esi, dword [esi]
push 0
push eax
push 3
push 0
push 1
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x533cf4
push esi
push dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x1088]
push eax
call fcn.00533870
add esp, 0xc
lea eax, [ebp - 0x1074]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea eax, [ebp - 0x107c]
push eax
lea eax, [ebp - 0x1074]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [ebp - 0x1058]
push eax
lea eax, [ebp - 0x1054]
push eax
lea eax, [ebp - 0x107c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
movzx ecx, word [ebp - 0x1054]
xorps xmm0, xmm0
movzx eax, word [ebp - 0x1058]
xor edx, edx
or edx, dword [ebp - 0x1068]
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 0x102c], edx
cmp byte [ebp + 0x14], 0
lea eax, [ebp - 0x1028]
movups xmmword [ebp - 0x103c], xmm0
mov dword [ebp - 0x1034], ecx
mov ecx, dword [ebp - 0x1064]
movups xmmword [ebp - 0x104c], xmm0
je 0x533e29
push 0xfde9
push dword [ebp - 0x1050]
push eax
call fcn.00533b70
push 0x800
push 0
push 0
push 0
cmp dword [ebp - 0x1014], 0x10
lea ecx, [ebp - 0x104c]
push 0
push 8
push 0xfffffffffffffff1
push 0
push 9
push 8
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1028]
cmovae eax, dword [ebp - 0x1028]
push ecx
push eax
push edi
call fcn.005377c0
jmp 0x533e67
push 0
push dword [ebp - 0x1050]
push eax
call fcn.00533b70
cmp dword [ebp - 0x1014], 0x10
lea ecx, [ebp - 0x104c]
push 9
push 8
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1028]
cmovae eax, dword [ebp - 0x1028]
push ecx
push eax
push edi
call fcn.00537e20
lea ecx, [ebp - 0x1028]
test eax, eax
je 0x533e7d
call fcn.00402313
xor esi, esi
jmp 0x533f72
call fcn.00402313
push edi
lea eax, [ebp - 0x101c]
push 0x536dc0
push eax
call fcn.00533870
add esp, 0xc
cmp dword [ebp - 0x106c], 0
jne 0x533f5e
lea eax, [ebp - 0x1060]
xorps xmm0, xmm0
push eax
push esi
movq qword [ebp - 0x1060], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x533fa0
mov ecx, dword [ebp - 0x105c]
test ecx, ecx
jl 0x533f5e
mov eax, dword [ebp - 0x1060]
jg 0x533eed
test eax, eax
je 0x533f5e
nop
test ecx, ecx
jl 0x533ef2
jg 0x533eed
cmp eax, 0x1000
jbe 0x533ef2
mov eax, 0x1000
push 0
lea ecx, [ebp - 0x1050]
mov dword [ebp - 0x1050], 0
push ecx
push eax
lea eax, [ebp - 0x1010]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x533fa0
push dword [ebp - 0x1050]
lea eax, [ebp - 0x1010]
push eax
push edi
call fcn.00537e60
test eax, eax
js 0x533fa0
mov eax, dword [ebp - 0x1060]
sub eax, dword [ebp - 0x1050]
mov ecx, dword [ebp - 0x105c]
sbb ecx, 0
mov dword [ebp - 0x1060], eax
mov dword [ebp - 0x105c], ecx
test ecx, ecx
jg 0x533eed
jl 0x533f5e
test eax, eax
jne 0x533ee0
mov esi, 1
lea eax, [ebp - 0x101c]
push eax
call fcn.005338d0
add esp, 4
lea eax, [ebp - 0x1088]
push eax
call fcn.005338d0
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044e9c4
mov esp, ebp
pop ebp
ret 0x10
xor esi, esi
jmp 0x533f63