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

Disassembly:
push 0x3d8
mov eax, 0x538fdf
call fcn.00500c07
mov edi, ecx
mov dword [ebp - 0x3e4], edi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x98]
push 0x58ab80
mov dword [ebp - 0x3dc], esi
call fcn.0047ce33
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [0x58ac18]
cmp word [eax], bx
jne 0x4c0660
test esi, esi
je 0x4c059d
push esi
lea ecx, [ebp - 0x98]
call fcn.0047ce68
push ebx
push pe_nt_image_headers32
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4c05c7
mov eax, 0x562850
jmp 0x4c0630
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x4c05dc
mov eax, str.File_is_empty
jmp 0x4c0630
cmp esi, 0x400000
jbe 0x4c05eb
mov eax, str.File_too_large
jmp 0x4c0630
push esi
mov dword [ebp - 0x3dc], ebx
call fcn.005008e0
pop ecx
push ebx
lea ecx, [ebp - 0x3dc]
mov dword [ebp - 0x3e0], eax
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [0x53e34c]
cmp dword [ebp - 0x3dc], esi
je 0x4c063f
mov esi, dword [ebp - 0x3e0]
push esi
call fcn.005005bb
pop ecx
mov eax, str.Could_not_read_file
mov ecx, dword [ebp - 0x3e4]
push eax
add ecx, 8
jmp 0x4c06e0
mov ecx, dword [ebp - 0x3e4]
push esi
mov esi, dword [ebp - 0x3e0]
push esi
call fcn.004c04ce
push esi
mov bl, al
call fcn.005005bb
pop ecx
jmp 0x4c07fc
push eax
lea ecx, [ebp - 0x98]
call fcn.0047ce68
cmp byte [0x58aad9], bl
je 0x4c067c
mov esi, dword [0x58ee64]
jmp 0x4c06d4
push 0x58acb0
lea ecx, [ebp - 0x1a8]
call fcn.0047ce33
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1a8]
call fcn.00485466
mov ecx, dword [ebp - 0x98]
xor edx, edx
push eax
push 2
mov dword [ebp - 0x3e0], eax
call fcn.004bd47d
mov esi, eax
mov eax, dword [ebp - 0x3e0]
pop ecx
pop ecx
test eax, eax
je 0x4c06c6
push eax
call fcn.005005bb
pop ecx
lea ecx, [ebp - 0x1a8]
mov byte [ebp - 4], bl
call fcn.0047ce58
test esi, esi
jne 0x4c06ea
push 0x5628e0
lea ecx, [edi + 8]
call fcn.0047cff3
jmp 0x4c07fc
push 0xffffffffffffffff
push dword [ebp - 0x3dc]
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x3e0], ebx
call fcn.0047ce0f
push 0x557934
push 0x557034
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 2
call fcn.0047d279
mov edx, dword [ebp - 0x120]
lea eax, [ebp - 0x3d8]
push eax
lea eax, [ebp - 0x3e0]
push eax
push ecx
mov ecx, esi
call fcn.004bd4f7
add esp, 0xc
test eax, eax
je 0x4c0746
mov eax, str.Could_not_find_ziped_file
jmp 0x4c07b4
mov edi, dword [ebp - 0x1ac]
test edi, edi
jne 0x4c0757
mov eax, str.File_is_empty
jmp 0x4c07b4
cmp edi, 0x400000
jbe 0x4c0766
mov eax, str.File_too_large
jmp 0x4c07b4
push edi
call fcn.005008e0
mov edx, dword [ebp - 0x3e0]
pop ecx
push 3
push edi
push eax
mov ecx, esi
mov dword [ebp - 0x3dc], eax
call fcn.004bd52a
add esp, 0xc
test eax, eax
je 0x4c07c5
cmp eax, 0x600
je 0x4c07c5
mov edi, dword [ebp - 0x3dc]
push edi
call fcn.005005bb
cmp byte [0x58aad9], 0
pop ecx
jne 0x4c07af
mov ecx, esi
call fcn.004bd55d
mov eax, str.Could_not_unzip_file
mov ecx, dword [ebp - 0x3e4]
push eax
add ecx, 8
call fcn.0047cff3
jmp 0x4c07f1
cmp byte [0x58aad9], 0
jne 0x4c07d5
mov ecx, esi
call fcn.004bd55d
mov ecx, dword [ebp - 0x3e4]
push edi
mov edi, dword [ebp - 0x3dc]
push edi
call fcn.004c04ce
push edi
mov bl, al
call fcn.005005bb
pop ecx
lea ecx, [ebp - 0x120]
call fcn.0047ce58
lea ecx, [ebp - 0x98]
call fcn.0047ce58
mov al, bl
call fcn.00500bc5
ret 4