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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dcb36
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x511d60]
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 esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1b0], ebx
mov al, byte [esi]
mov dword [ebp - 0x1b4], ecx
cmp al, 0x5c
je 0x456788
cmp al, 0x2f
je 0x456788
cmp byte [esi + 1], 0x3a
je 0x456788
push ecx
mov ecx, dword [0x519194]
push esi
call fcn.00494a60
test eax, eax
jne 0x4569a9
cmp byte [esi], 0
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
jne 0x4567ac
xor ecx, ecx
jmp 0x4567ba
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4567b1
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x12c]
call fcn.00433cc0
lea eax, [ebp - 0x12c]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.004485f0
add esp, 8
mov ecx, dword [ebx]
push eax
lea eax, [ebp - 0x144]
mov byte [ebp - 4], 1
push eax
push ebx
call dword [ecx + 0x68]
cmp dword [eax + 0x14], 8
jb 0x4567fe
mov eax, dword [eax]
push 0
push 0x10000080
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [ebp - 0x130], 8
mov edi, eax
jb 0x456830
push dword [ebp - 0x144]
call fcn.004c0d5b
add esp, 4
xor eax, eax
mov dword [ebp - 0x130], 7
cmp dword [ebp - 0x148], 8
mov dword [ebp - 0x134], 0
mov word [ebp - 0x144], ax
jb 0x456864
push dword [ebp - 0x15c]
call fcn.004c0d5b
add esp, 4
xor eax, eax
mov dword [ebp - 0x148], 7
cmp dword [ebp - 0x118], 0x10
mov dword [ebp - 0x14c], 0
mov word [ebp - 0x15c], ax
mov dword [ebp - 4], 0xffffffff
jb 0x45689f
push dword [ebp - 0x12c]
call fcn.004c0d5b
add esp, 4
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
cmp edi, 0xffffffff
jne 0x4568ea
push esi
push dword [0x50d610]
lea eax, [ebp - 0x114]
push eax
call fcn.004c2d41
add esp, 0xc
lea eax, [ebp - 0x114]
mov ecx, ebx
push eax
call fcn.00459950
xor eax, eax
jmp 0x4569a9
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 0x190], eax
call fcn.004c382b
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x45693b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push dword [0x50d610]
lea eax, [ebp - 0x114]
push eax
call fcn.004c2d41
mov ecx, dword [ebp - 0x1b0]
lea eax, [ebp - 0x114]
add esp, 0xc
push eax
call fcn.00459950
xor eax, eax
jmp 0x4569a9
push 0
lea eax, [ebp - 0x190]
push eax
push dword [ebp - 0x190]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
test eax, eax
jne 0x45698f
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.004c273d
push esi
push dword [0x50d610]
lea eax, [ebp - 0x114]
push eax
call fcn.004c2d41
mov ecx, dword [ebp - 0x1b0]
lea eax, [ebp - 0x114]
add esp, 0x10
push eax
call fcn.00459950
xor eax, eax
jmp 0x4569a9
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1b4]
test ecx, ecx
je 0x4569a7
mov eax, dword [ebp - 0x190]
mov dword [ecx], eax
mov eax, ebx
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.004c1624
mov esp, ebp
pop ebp
ret 0xc