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

Disassembly:
push 0x2d4
mov eax, 0x4c7688
call fcn.004a9047
mov dword [ebp - 0x2d4], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2d0], eax
xor ebx, ebx
xor edi, edi
xor esi, esi
call fcn.004210de
push eax
lea ecx, [ebp - 0x94]
call fcn.00426f24
mov dword [ebp - 4], ebx
call fcn.004210e4
mov ecx, eax
call fcn.00426c11
test al, al
je 0x457ce7
push dword [ebp - 0x2d0]
lea ecx, [ebp - 0x94]
call fcn.00426cb1
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
lea ecx, [ebp - 0x94]
call fcn.00426af4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2cc], eax
cmp eax, 0xffffffff
je 0x457da4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x457da4
push esi
mov dword [ebp - 0x2d8], ebx
call fcn.004a6b98
pop ecx
push ebx
mov edi, eax
lea eax, [ebp - 0x2d8]
push eax
push esi
push edi
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2d8], esi
je 0x457da4
push edi
call fcn.004a8370
xor edi, edi
jmp 0x457da3
call fcn.004210e4
push eax
lea ecx, [ebp - 0x94]
call fcn.00426c94
call fcn.004210ea
test al, al
je 0x457d08
call fcn.004210f0
jmp 0x457d1f
push 2
push ebx
lea ecx, [ebp - 0x94]
call fcn.00426af4
push eax
call fcn.00433657
add esp, 0xc
mov dword [ebp - 0x2cc], eax
cmp eax, ebx
je 0x457da4
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2e0]
push eax
push 1
push dword [ebp - 0x2d0]
push dword [ebp - 0x2cc]
call fcn.00431cac
add esp, 0x14
test eax, eax
jne 0x457da4
mov esi, dword [ebp - 0x98]
cmp esi, ebx
je 0x457da4
push esi
call fcn.004a6b98
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x2e0]
push dword [ebp - 0x2cc]
call fcn.004336b5
add esp, 0x18
cmp eax, ebx
je 0x457d8f
cmp eax, 0x600
je 0x457d8f
push edi
call fcn.004a8370
pop ecx
xor edi, edi
call fcn.004210ea
test al, al
jne 0x457da4
push dword [ebp - 0x2cc]
call fcn.004336ed
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00426ad2
mov byte [ebp - 0x2c5], bl
cmp edi, ebx
jne 0x457eaf
mov ecx, dword [ebp - 0x2d4]
call fcn.00457416
test al, al
je 0x457dfa
push dword [ebp - 0x2d0]
call fcn.00457bbe
mov ecx, eax
call fcn.004571c3
cmp eax, ebx
je 0x457dfa
mov edi, dword [eax]
mov esi, dword [eax + 4]
mov byte [ebp - 0x2c5], 1
cmp edi, ebx
jne 0x457eaf
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
push dword [ebp - 0x2d0]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2cc], eax
cmp eax, 0xffffffff
je 0x457eab
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x457eab
push esi
mov dword [ebp - 0x2dc], ebx
call fcn.004a6b98
pop ecx
push ebx
mov edi, eax
lea eax, [ebp - 0x2dc]
push eax
push esi
push edi
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2dc], esi
je 0x457e75
push edi
call fcn.004a8370
pop ecx
xor edi, edi
mov ecx, dword [ebp - 0x2d4]
call fcn.00457416
test al, al
je 0x457ea7
cmp edi, ebx
je 0x457eab
push esi
push edi
push dword [ebp - 0x2d0]
call fcn.00457bbe
mov ecx, eax
call fcn.0045768c
test al, al
je 0x457ea7
mov byte [ebp - 0x2c5], 1
cmp edi, ebx
jne 0x457eaf
xor eax, eax
jmp 0x457ecf
mov ecx, dword [ebp - 0x2d4]
push esi
push edi
call fcn.004577c5
mov esi, eax
cmp byte [ebp - 0x2c5], bl
jne 0x457ecd
push edi
call fcn.004a8370
pop ecx
mov eax, esi
call fcn.004a9091
ret 4