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

Disassembly:
push 0x3cc
mov eax, 0x538af0
call fcn.00509264
mov esi, ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x3d8], ebx
call fcn.004c8c10
call fcn.0049bcf6
push eax
lea ecx, [ebp - 0x94]
call fcn.0049805f
and dword [ebp - 4], 0
call fcn.0049bd02
mov ecx, eax
call fcn.0049892f
test al, al
je 0x4c88fa
push ebx
lea ecx, [ebp - 0x94]
call fcn.004982e9
xor ebx, ebx
lea ecx, [ebp - 0x94]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
call fcn.0049877e
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3d0], eax
push ebx
cmp eax, 0xffffffff
jne 0x4c8856
push 0x541984
jmp 0x4c8989
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x4c886e
push ebx
push str.File_is_empty
jmp 0x4c8989
cmp edi, 0x400000
jbe 0x4c8881
push ebx
push 0x5419c8
jmp 0x4c8989
push edi
mov dword [ebp - 0x3d4], ebx
call fcn.004ed091
pop ecx
mov ebx, eax
lea eax, [ebp - 0x3d4]
push 0
push eax
push edi
push ebx
push dword [ebp - 0x3d0]
mov dword [ebp - 0x3d8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x3d0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3d4], edi
je 0x4c88db
push ebx
call fcn.00504d2f
pop ecx
mov ecx, esi
call fcn.004c8c10
push 0
push str.Could_not_read_file
jmp 0x4c8989
push dword [ebp + 0xc]
mov ecx, esi
push edi
push ebx
call fcn.004c8ac3
push dword [ebp - 0x3d8]
mov bl, al
call fcn.00504d2f
pop ecx
jmp 0x4c8aaa
call fcn.0049bd02
push eax
lea ecx, [ebp - 0x94]
call fcn.004982cc
call fcn.0049bf6a
test al, al
je 0x4c891d
call fcn.0049bd08
mov edi, eax
jmp 0x4c897f
call fcn.0049bd0e
push eax
lea ecx, [ebp - 0x19c]
call fcn.0049805f
push 0
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 1
call fcn.0049877e
push eax
call fcn.004b623e
pop ecx
pop ecx
mov ebx, eax
lea ecx, [ebp - 0x94]
push ebx
call fcn.0049877e
push eax
call fcn.004cb443
mov edi, eax
pop ecx
pop ecx
test ebx, ebx
je 0x4c896a
push ebx
call fcn.00504d2f
pop ecx
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 0
call fcn.00498187
mov ebx, dword [ebp - 0x3d8]
test edi, edi
jne 0x4c8997
push edi
push str.Error_opening_zip_file
mov ecx, esi
call fcn.004c8c3b
mov bl, al
jmp 0x4c8aaa
and dword [ebp - 0x3d4], 0
lea ecx, [ebp - 0x118]
push 0xffffffffffffffff
push ebx
call fcn.00498084
push 0x53cde4
push 0x53cde8
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.00498af9
lea eax, [ebp - 0x3cc]
push eax
lea eax, [ebp - 0x3d4]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.0049877e
push eax
push edi
call fcn.004cae1a
add esp, 0x14
test eax, eax
je 0x4c89f7
push 0
push str.Could_not_find_ziped_file
jmp 0x4c8a65
mov ebx, dword [ebp - 0x1a0]
test ebx, ebx
jne 0x4c8a09
push ebx
push str.File_is_empty
jmp 0x4c8a65
cmp ebx, 0x400000
jbe 0x4c8a1a
push 0
push 0x5419c8
jmp 0x4c8a65
push ebx
call fcn.004ed091
push ebx
push eax
push dword [ebp - 0x3d4]
mov dword [ebp - 0x3d0], eax
push edi
call fcn.004cb87a
add esp, 0x14
test eax, eax
je 0x4c8a70
cmp eax, 0x600
je 0x4c8a70
push dword [ebp - 0x3d0]
call fcn.00504d2f
pop ecx
call fcn.0049bf6a
test al, al
jne 0x4c8a5e
push edi
call fcn.004cac02
pop ecx
push 0
push str.Could_not_unzip_file
mov ecx, esi
call fcn.004c8c3b
mov bl, al
jmp 0x4c8a9b
call fcn.0049bf6a
test al, al
jne 0x4c8a80
push edi
call fcn.004cac02
pop ecx
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x3d0]
mov ecx, esi
push ebx
push edi
call fcn.004c8ac3
push edi
mov bl, al
call fcn.00504d2f
pop ecx
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0
call fcn.00498187
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00498187
mov al, bl
call fcn.00509213
ret 8