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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a008
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x5ca3a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xf4], ecx
mov dword [ebp - 0xf0], 0
mov dword [ebp - 4], 1
push 0x574078
lea ecx, [ebp - 0xa4]
call fcn.00401610
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x84]
call fcn.00425720
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp + 0xc]
call fcn.00401800
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4589f1
push 0
push 0x80
push 4
push 0
push 1
push SysReAllocStringLen
lea ecx, [ebp + 0xc]
call fcn.00401800
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc4], eax
cmp dword [ebp - 0xc4], 0xffffffff
jne 0x458878
push 0x57407c
mov ecx, dword [ebp + 8]
call fcn.00401610
mov eax, dword [ebp - 0xf0]
or eax, 1
mov dword [ebp - 0xf0], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa4]
call fcn.00401650
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00401650
mov eax, dword [ebp + 8]
jmp 0x458a2d
push 0
mov ecx, dword [ebp - 0xc4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x88], eax
mov edx, dword [ebp - 0x88]
add edx, 1
push edx
call fcn.0045d45b
add esp, 4
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4588f3
push 0x574080
mov ecx, dword [ebp + 8]
call fcn.00401610
mov ecx, dword [ebp - 0xf0]
or ecx, 1
mov dword [ebp - 0xf0], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa4]
call fcn.00401650
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00401650
mov eax, dword [ebp + 8]
jmp 0x458a2d
mov edx, dword [ebp - 0x88]
add edx, 1
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call fcn.0047d440
add esp, 0xc
push 0
lea ecx, [ebp - 0xc8]
push ecx
mov edx, dword [ebp - 0x88]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0xc4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0xc4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x88]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x84]
call fcn.00425850
cmp dword [ebp - 0x14], 0
je 0x458974
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0xd0], edx
mov eax, dword [ebp - 0xd0]
push eax
call fcn.0045d460
add esp, 4
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0xec]
push ecx
lea ecx, [ebp - 0x84]
call fcn.00426bb0
mov dword [ebp - 0xf8], eax
mov edx, dword [ebp - 0xf8]
mov dword [ebp - 0xfc], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xfc]
push eax
lea ecx, [ebp - 0xc0]
push ecx
call fcn.0041a210
add esp, 8
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xec]
call fcn.004015d0
lea ecx, [ebp - 0xc0]
call fcn.00401600
test eax, eax
jbe 0x4589e2
lea edx, [ebp - 0xc0]
push edx
lea ecx, [ebp - 0xa4]
call fcn.00403640
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc0]
call fcn.00401650
lea eax, [ebp - 0xa4]
push eax
mov ecx, dword [ebp + 8]
call fcn.00403610
mov ecx, dword [ebp - 0xf0]
or ecx, 1
mov dword [ebp - 0xf0], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa4]
call fcn.00401650
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00401650
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047da50
mov esp, ebp
pop ebp
ret 0x20