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

Disassembly:
push 0x3cc
mov eax, 0x55388d
call fcn.00518bb5
mov esi, ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x3d8], ebx
call fcn.004d034f
call fcn.004b78af
push eax
lea ecx, [ebp - 0x94]
call fcn.004bdb46
and dword [ebp - 4], 0
call fcn.004b78bb
mov ecx, eax
call fcn.004be332
test al, al
je 0x4d0039
push ebx
lea ecx, [ebp - 0x94]
call fcn.004bdda5
xor ebx, ebx
lea ecx, [ebp - 0x94]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
call fcn.004be17d
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3d0], eax
push ebx
cmp eax, 0xffffffff
jne 0x4cff95
push str.Error_opening_file
jmp 0x4d00c8
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x4cffad
push ebx
push str.File_is_empty
jmp 0x4d00c8
cmp edi, 0x400000
jbe 0x4cffc0
push ebx
push 0x567a14
jmp 0x4d00c8
push edi
mov dword [ebp - 0x3d4], ebx
call fcn.005071d2
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 0x4d001a
push ebx
call fcn.0050bf8c
pop ecx
mov ecx, esi
call fcn.004d034f
push 0
push str.Could_not_read_file
jmp 0x4d00c8
push dword [ebp + 0xc]
mov ecx, esi
push edi
push ebx
call fcn.004d0202
push dword [ebp - 0x3d8]
mov bl, al
call fcn.0050bf8c
pop ecx
jmp 0x4d01e9
call fcn.004b78bb
push eax
lea ecx, [ebp - 0x94]
call fcn.004bdd88
call fcn.004b7b52
test al, al
je 0x4d005c
call fcn.004b78c1
mov edi, eax
jmp 0x4d00be
call fcn.004b78c7
push eax
lea ecx, [ebp - 0x19c]
call fcn.004bdb46
push 0
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 1
call fcn.004be17d
push eax
call fcn.004d0b09
pop ecx
pop ecx
mov ebx, eax
lea ecx, [ebp - 0x94]
push ebx
call fcn.004be17d
push eax
call sym.XFPDFEditor.exe_struct_HZIP______cdecl_OpenZip_wchar_t_const___char_const__
mov edi, eax
pop ecx
pop ecx
test ebx, ebx
je 0x4d00a9
push ebx
call fcn.0050bf8c
pop ecx
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 0
call fcn.004bdc6e
mov ebx, dword [ebp - 0x3d8]
test edi, edi
jne 0x4d00d6
push edi
push str.Error_opening_zip_file
mov ecx, esi
call fcn.004d037a
mov bl, al
jmp 0x4d01e9
and dword [ebp - 0x3d4], 0
lea ecx, [ebp - 0x118]
push 0xffffffffffffffff
push ebx
call fcn.004bdb6b
push 0x5642a4
push 0x5642a8
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.004be4fc
lea eax, [ebp - 0x3cc]
push eax
lea eax, [ebp - 0x3d4]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.004be17d
push eax
push edi
call sym.XFPDFEditor.exe_unsigned_long_int___cdecl_FindZipItem_struct_HZIP_____wchar_t_const___bool__int___struct_ZIPENTRY__
add esp, 0x14
test eax, eax
je 0x4d0136
push 0
push str.Could_not_find_ziped_file
jmp 0x4d01a4
mov ebx, dword [ebp - 0x1a0]
test ebx, ebx
jne 0x4d0148
push ebx
push str.File_is_empty
jmp 0x4d01a4
cmp ebx, 0x400000
jbe 0x4d0159
push 0
push 0x567a14
jmp 0x4d01a4
push ebx
call fcn.005071d2
push ebx
push eax
push dword [ebp - 0x3d4]
mov dword [ebp - 0x3d0], eax
push edi
call sym.XFPDFEditor.exe_unsigned_long_int___cdecl_UnzipItem_struct_HZIP_____int__void___unsigned_int_
add esp, 0x14
test eax, eax
je 0x4d01af
cmp eax, 0x600
je 0x4d01af
push dword [ebp - 0x3d0]
call fcn.0050bf8c
pop ecx
call fcn.004b7b52
test al, al
jne 0x4d019d
push edi
call sym.XFPDFEditor.exe_unsigned_long_int___cdecl_CloseZipU_struct_HZIP____
pop ecx
push 0
push str.Could_not_unzip_file
mov ecx, esi
call fcn.004d037a
mov bl, al
jmp 0x4d01da
call fcn.004b7b52
test al, al
jne 0x4d01bf
push edi
call sym.XFPDFEditor.exe_unsigned_long_int___cdecl_CloseZipU_struct_HZIP____
pop ecx
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x3d0]
mov ecx, esi
push ebx
push edi
call fcn.004d0202
push edi
mov bl, al
call fcn.0050bf8c
pop ecx
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0
call fcn.004bdc6e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004bdc6e
mov al, bl
call fcn.00518b64
ret 8