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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1078
call fcn.00517a10
mov eax, dword [0x58f860]
xor eax, ebp
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x14], 0x800
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x424aef
xor eax, eax
jmp 0x424cf4
mov ecx, dword [ebp - 0x24]
and ecx, 0x10
neg ecx
sbb ecx, ecx
and ecx, 0x2000000
mov dword [ebp - 0x18], ecx
push 0
mov edx, dword [ebp - 0x18]
push edx
push 3
push 0
push 1
push SysReAllocString
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x424b2d
xor eax, eax
jmp 0x424cf4
lea ecx, [ebp - 0x1068]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1068]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea edx, [ebp - 0x1060]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
push 0x24
push 0
lea edx, [ebp - 0x58]
push edx
call fcn.00512af0
add esp, 0xc
movzx eax, word [ebp - 8]
shl eax, 0x10
movzx ecx, word [ebp - 0x1060]
or eax, ecx
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x38]
or edx, dword [ebp - 0x24]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
call fcn.0047d8e0
push 9
push 8
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 4]
call fcn.0041c870
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.004065a0
add esp, 0x28
test eax, eax
je 0x424bd0
jmp 0x424cc7
mov eax, dword [ebp - 0x24]
and eax, 0x10
je 0x424bdd
jmp 0x424cc7
mov dword [ebp - 0x105c], 0x1000
mov dword [ebp - 0x30], 0
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x424c0a
jmp 0x424cc7
cmp dword [ebp - 0x2c], 0
jl 0x424cc0
jg 0x424c20
cmp dword [ebp - 0x30], 0
jbe 0x424cc0
cmp dword [ebp - 0x2c], 0
jl 0x424c3d
jg 0x424c31
cmp dword [ebp - 0x30], 0x1000
jbe 0x424c3d
mov dword [ebp - 0x1078], 0x1000
jmp 0x424c46
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x1078], ecx
mov edx, dword [ebp - 0x1078]
mov dword [ebp - 0x106c], edx
mov dword [ebp - 0x1070], 0
push 0
lea eax, [ebp - 0x1070]
push eax
mov ecx, dword [ebp - 0x106c]
push ecx
lea edx, [ebp - 0x1058]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x424c83
jmp 0x424cc7
mov ecx, dword [ebp - 0x1070]
push ecx
lea edx, [ebp - 0x1058]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00406700
add esp, 0xc
test eax, eax
jge 0x424ca3
jmp 0x424cc7
mov ecx, dword [ebp - 0x1070]
xor edx, edx
mov eax, dword [ebp - 0x30]
sub eax, ecx
mov ecx, dword [ebp - 0x2c]
sbb ecx, edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
jmp 0x424c0a
mov dword [ebp - 0x20], 1
mov edx, dword [ebp + 8]
push edx
call fcn.00407030
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x1074], ecx
lea ecx, [ebp - 4]
call fcn.0041c850
mov eax, dword [ebp - 0x1074]
mov ecx, dword [ebp - 0x34]
xor ecx, ebp
call fcn.00512610
mov esp, ebp
pop ebp
ret