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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x580ec3
mov eax, dword fs:[0]
push eax
mov eax, 0x105c
call fcn.004fc580
mov eax, dword [0x602c60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x1044], eax
mov eax, dword [ebp + 0xc]
xor esi, esi
push ebx
mov dword [ebp - 0x1038], eax
mov dword [ebp - 0x1050], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4b6c69
xor eax, eax
jmp 0x4b6e36
push esi
and eax, 0x10
mov dword [ebp - 0x1058], eax
shl eax, 0x15
push eax
push 3
push esi
push 1
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4b6c62
lea eax, [ebp - 0x1068]
push eax
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea eax, [ebp - 0x1060]
push eax
lea eax, [ebp - 0x1068]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [ebp - 0x1048]
push eax
lea eax, [ebp - 0x104c]
push eax
lea eax, [ebp - 0x1060]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
push 0x24
lea eax, [ebp - 0x1034]
push esi
push eax
call fcn.004fc1f0
movzx eax, word [ebp - 0x104c]
movzx ecx, word [ebp - 0x1048]
or dword [ebp - 0x1014], edi
add esp, 0xc
push dword [ebp - 0x1038]
shl eax, 0x10
or eax, ecx
lea ecx, [ebp - 0x1054]
mov dword [ebp - 0x101c], eax
call fcn.004b40f5
mov dword [ebp - 4], esi
push 9
push 8
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x1034]
push eax
push dword [ebp - 0x1054]
push dword [ebp - 0x1044]
call fcn.00403540
add esp, 0x28
test eax, eax
jne 0x4b6e0b
cmp dword [ebp - 0x1058], esi
jne 0x4b6e0b
mov dword [ebp - 0x1040], esi
lea edi, [ebp - 0x103c]
stosd dword es:[edi], eax
lea eax, [ebp - 0x1040]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4b6e0b
cmp dword [ebp - 0x103c], esi
jl 0x4b6e01
mov eax, dword [ebp - 0x1040]
jg 0x4b6d86
cmp eax, esi
jbe 0x4b6e01
mov edi, 0x1000
cmp dword [ebp - 0x103c], esi
jl 0x4b6d9b
jg 0x4b6d99
cmp eax, edi
jbe 0x4b6d9b
mov eax, edi
push esi
lea ecx, [ebp - 0x1038]
push ecx
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
mov dword [ebp - 0x1038], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b6e0b
push dword [ebp - 0x1038]
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x1044]
call fcn.004036a0
add esp, 0xc
test eax, eax
js 0x4b6e0b
mov eax, dword [ebp - 0x1040]
sub eax, dword [ebp - 0x1038]
sbb dword [ebp - 0x103c], esi
mov dword [ebp - 0x1040], eax
cmp dword [ebp - 0x103c], esi
jg 0x4b6d99
jl 0x4b6e01
cmp eax, esi
ja 0x4b6d8b
mov dword [ebp - 0x1050], 1
push dword [ebp - 0x1044]
call fcn.00403fc0
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1054]
add ecx, 0xfffffff0
call fcn.004310e3
mov eax, dword [ebp - 0x1050]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fb958
leave
ret