Function at 0x4571d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fcccd
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x53e200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x34]
call fcn.004573f0
lea eax, [ebp - 0x28]
push eax
call fcn.0041c1e0
add esp, 4
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x457232
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x28]
call fcn.004506d0
jmp 0x45723e
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.00406350
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x28]
call fcn.004064a0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x457291
push 0
push 0x523618
mov ecx, dword [ebp - 0x34]
call fcn.00458070
mov byte [ebp - 0x29], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406380
mov al, byte [ebp - 0x29]
jmp 0x4573c8
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x4572cf
push 0
push str.File_is_empty
mov ecx, dword [ebp - 0x34]
call fcn.00458070
mov byte [ebp - 0x2a], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406380
mov al, byte [ebp - 0x2a]
jmp 0x4573c8
cmp dword [ebp - 0x38], 0x400000
jbe 0x457301
push 0
push str.File_too_large
mov ecx, dword [ebp - 0x34]
call fcn.00458070
mov byte [ebp - 0x2b], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406380
mov al, byte [ebp - 0x2b]
jmp 0x4573c8
mov dword [ebp - 0x44], 0
mov edx, dword [ebp - 0x38]
push edx
call fcn.004c635a
add esp, 4
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x40], eax
push 0
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x38]
je 0x457387
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
push edx
call fcn.004c62a9
add esp, 4
mov ecx, dword [ebp - 0x34]
call fcn.004573f0
push 0
push str.Could_not_read_file
mov ecx, dword [ebp - 0x34]
call fcn.00458070
mov byte [ebp - 0x2c], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406380
mov al, byte [ebp - 0x2c]
jmp 0x4573c8
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x40]
push edx
mov ecx, dword [ebp - 0x34]
call fcn.00456f30
mov byte [ebp - 0x2d], al
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.004c62a9
add esp, 4
mov dl, byte [ebp - 0x2d]
mov byte [ebp - 0x2e], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406380
mov al, byte [ebp - 0x2e]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c626c
mov esp, ebp
pop ebp
ret 8