Function at 0x4500c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov eax, 0x102c
push edi
push esi
push ebx
call fcn.004a1a70
mov esi, 0x1000
sub esp, eax
mov ebx, dword [esp + 0x1040]
mov eax, dword [ebx + 8]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__filelengthi64]
xor ecx, ecx
mov dword [esp + 0xc], 0
cmp esi, eax
mov edi, ecx
sbb edi, edx
cmovge ecx, edx
cmovge esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], esi
sub eax, dword [esp + 0x10]
sbb edx, dword [esp + 0x14]
mov dword [esp + 4], eax
mov esi, eax
mov dword [esp + 8], edx
mov eax, dword [ebx + 8]
mov edi, edx
mov dword [esp], eax
call sub.msvcrt.dll__lseeki64
xor eax, esi
xor edx, edi
or edx, eax
je 0x4501b8
mov ebx, dword [0x678a20]
test ebx, ebx
jne 0x4501a0
mov dword [esp], 0x40000
call sub.msvcrt.dll_malloc
mov ebx, eax
test eax, eax
je 0x45033b
mov dword [esp], 0x40000
call sub.msvcrt.dll_malloc
mov esi, eax
test eax, eax
je 0x45033b
mov dword [esp + 4], str.ERROR:_file_seek_operation_failed
mov dword [esp], ebx
call fcn.004c1a60
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.00432f50
mov dword [esp + 4], esi
mov dword [esp], 0x5a8fcc
call fcn.004c19d0
mov dword [esp], 2
call sub.msvcrt.dll_exit
nop
mov dword [esp + 4], 1
mov dword [esp], 0x6789e0
call dword [sym.imp.msvcrt.dll_longjmp]
lea esi, [esi]
mov eax, dword [esp + 0x10]
lea ebp, [esp + 0x20]
mov dword [esp + 4], ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 8], eax
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sub.msvcrt.dll__read
test eax, eax
js 0x4502b8
mov ebx, eax
mov edx, dword [esp + 0x14]
xor eax, dword [esp + 0x10]
sar ebx, 0x1f
xor edx, ebx
or edx, eax
je 0x450270
mov edx, dword [0x678a20]
test edx, edx
jne 0x4501a0
mov dword [esp], 0x40000
call sub.msvcrt.dll_malloc
mov esi, eax
test eax, eax
je 0x45033b
mov dword [esp], 0x40000
call sub.msvcrt.dll_malloc
mov ebx, eax
test eax, eax
je 0x45033b
mov eax, dword [esp + 0x10]
mov dword [esp + 4], str.ERROR:_cant_read__lu_bytes
mov dword [esp], esi
mov dword [esp + 8], eax
call fcn.004c1a60
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00432f50
mov dword [esp + 4], ebx
mov dword [esp], 0x5a8fcc
call fcn.004c19d0
mov dword [esp], 2
call sub.msvcrt.dll_exit
lea esi, [esi]
nop
mov eax, dword [esp + 0x1c]
lea eax, [ebp + eax - 4]
cmp dword [eax], 0x1437241
je 0x45029f
cmp eax, ebp
ja 0x450294
jmp 0x450300
cmp eax, ebp
je 0x450300
sub eax, 1
cmp dword [eax], 0x1437241
jne 0x450290
sub eax, ebp
cdq
add eax, esi
adc edx, edi
add esp, 0x102c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [0x678a20]
test ecx, ecx
jne 0x4501a0
mov dword [esp], 0x40000
call sub.msvcrt.dll_malloc
mov esi, eax
test eax, eax
je 0x45033b
mov dword [esp], 0x40000
call sub.msvcrt.dll_malloc
mov ebx, eax
test eax, eax
je 0x45033b
mov dword [esp + 4], str.ERROR:_file_read_operation_failed
mov dword [esp], esi
call fcn.004c1a60
jmp 0x450240
mov eax, dword [0x678a20]
test eax, eax
jne 0x4501a0
mov dword [esp], 0x40000
call sub.msvcrt.dll_malloc
mov esi, eax
test eax, eax
je 0x45033b
mov dword [esp], 0x40000
call sub.msvcrt.dll_malloc
mov ebx, eax
test eax, eax
je 0x45033b
mov dword [esp + 4], str.ERROR:_this_is_not_FreeArc_archive_or_this_archive_is_corrupt
jmp 0x4502f2
cmp dword [0x678a20], 0
jne 0x4501a0
mov eax, 0x40000
call fcn.0044f640
mov esi, eax
mov eax, 0x40000
call fcn.0044f640
mov dword [esp + 8], 0x40000
mov dword [esp + 4], str.ERROR:_cant_alloc__lu_memory_bytes
mov ebx, eax
mov dword [esp], esi
call fcn.004c1a60
jmp 0x450240