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

Disassembly:
push 0x208
mov eax, 0x6314c3
call fcn.004e5a7f
mov esi, ecx
mov ebx, dword [ebp + 8]
call fcn.004aff1c
call fcn.0048f555
push eax
lea ecx, [ebp - 0x54]
call fcn.0048ca90
and dword [ebp - 4], 0
call fcn.0048f561
mov ecx, eax
call fcn.0048d240
test al, al
je 0x4afbca
push ebx
lea ecx, [ebp - 0x54]
call fcn.0048cd28
xor ebx, ebx
lea ecx, [ebp - 0x54]
push ebx
push 0x80
push 3
push ebx
push 1
push accept
call fcn.0048ccb0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x20c], eax
push ebx
cmp eax, 0xffffffff
jne 0x4afb26
push str.Error_opening_file
jmp 0x4afc36
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x4afb3e
push ebx
push str.File_is_empty
jmp 0x4afc36
cmp edi, 0x400000
jbe 0x4afb51
push ebx
push str.File_too_large
jmp 0x4afc36
push edi
mov dword [ebp - 0x210], ebx
call fcn.004e48f7
pop ecx
mov ebx, eax
lea eax, [ebp - 0x210]
push 0
push eax
push edi
push ebx
push dword [ebp - 0x20c]
mov dword [ebp - 0x214], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x20c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x210], edi
je 0x4afbab
push ebx
call fcn.004e4900
pop ecx
mov ecx, esi
call fcn.004aff1c
push 0
push str.Could_not_read_file
jmp 0x4afc36
push dword [ebp + 0xc]
mov ecx, esi
push edi
push ebx
call fcn.004afd65
push dword [ebp - 0x214]
mov bl, al
call fcn.004e4900
pop ecx
jmp 0x4afd53
call fcn.0048f561
push eax
lea ecx, [ebp - 0x54]
call fcn.0048cceb
call fcn.0048f869
test al, al
je 0x4afbea
call fcn.0048f567
mov edi, eax
jmp 0x4afc2c
call fcn.0048f56d
push eax
lea ecx, [ebp - 0xdc]
call fcn.0048ca90
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 1
call fcn.0048ccb0
push eax
lea ecx, [ebp - 0x54]
call fcn.0048ccb0
push eax
call fcn.004ac002
pop ecx
pop ecx
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 0
mov edi, eax
call fcn.0048cba9
test edi, edi
jne 0x4afc44
push edi
push str.Error_opening_zip_file
mov ecx, esi
call fcn.004aff47
mov bl, al
jmp 0x4afd53
and dword [ebp - 0x210], 0
lea ecx, [ebp - 0x98]
push 0xffffffffffffffff
push ebx
call fcn.0048cac8
push 0x6c1858
push 0x6c1854
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 2
call fcn.0048d3ed
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x210]
push eax
push 1
lea ecx, [ebp - 0x98]
call fcn.0048ccb0
push eax
push edi
call fcn.004ab9dc
add esp, 0x14
test eax, eax
je 0x4afca4
push 0
push str.Could_not_find_ziped_file
jmp 0x4afd12
mov ebx, dword [ebp - 0xe0]
test ebx, ebx
jne 0x4afcb6
push ebx
push str.File_is_empty
jmp 0x4afd12
cmp ebx, 0x400000
jbe 0x4afcc7
push 0
push str.File_too_large
jmp 0x4afd12
push ebx
call fcn.004e48f7
push ebx
push eax
push dword [ebp - 0x210]
mov dword [ebp - 0x20c], eax
push edi
call fcn.004ac407
add esp, 0x14
test eax, eax
je 0x4afd1d
cmp eax, 0x600
je 0x4afd1d
push dword [ebp - 0x20c]
call fcn.004e4900
pop ecx
call fcn.0048f869
test al, al
jne 0x4afd0b
push edi
call fcn.004ab7e6
pop ecx
push 0
push str.Could_not_unzip_file
mov ecx, esi
call fcn.004aff47
mov bl, al
jmp 0x4afd48
call fcn.0048f869
test al, al
jne 0x4afd2d
push edi
call fcn.004ab7e6
pop ecx
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x20c]
mov ecx, esi
push ebx
push edi
call fcn.004afd65
push edi
mov bl, al
call fcn.004e4900
pop ecx
lea ecx, [ebp - 0x98]
call fcn.0048cba9
lea ecx, [ebp - 0x54]
call fcn.0048cba9
mov al, bl
call fcn.004e5a3a
ret 8