Function at 0x448490
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0xc]
mov edi, esi
cmp esi, 0x10014
jle 0x4484b3
mov esi, 0x10015
mov edi, 0x10015
sub esp, 0xc
push edi
call sub.msvcrt.dll_malloc
add esp, 0x10
mov ebx, eax
test eax, eax
je 0x448560
push 0
push 0
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call sub.msvcrt.dll__lseeki64
mov ecx, edx
add esp, 0x10
or ecx, eax
je 0x448520
call sub.msvcrt.dll__errno
sub esp, 0xc
mov ecx, dword [eax]
push ecx
call sub.msvcrt.dll_strerror
push eax
push str.seek_to_start_failed:__s
push str.zipro
push 5
call fcn.0044c320
add esp, 0x20
sub esp, 0xc
push ebx
call sub.msvcrt.dll_free
xor eax, eax
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
push edx
push 4
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
call sub.msvcrt.dll__read
add esp, 0x10
cmp eax, 0xffffffff
jne 0x448599
call sub.msvcrt.dll__errno
cmp dword [eax], 4
je 0x448520
call sub.msvcrt.dll__errno
sub esp, 0xc
mov eax, dword [eax]
push eax
call sub.msvcrt.dll_strerror
push eax
push str.couldnt_read_first_signature_from_zip_archive:__s
push str.zipro
push 4
jmp 0x448500
call sub.msvcrt.dll__errno
sub esp, 0xc
mov eax, dword [eax]
push eax
call sub.msvcrt.dll_strerror
push eax
push str.couldnt_allocate_scanBuf:__s
push str.zipro
push 5
call fcn.0044c320
add esp, 0x14
push 0
call sub.msvcrt.dll_free
xor eax, eax
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 4
jne 0x448541
xor edx, edx
xor eax, eax
mov dl, byte [ebx + 1]
mov al, byte [ebx + 2]
shl eax, 0x10
shl edx, 8
or edx, eax
xor eax, eax
mov al, byte [ebx]
or edx, eax
xor eax, eax
mov al, byte [ebx + 3]
shl eax, 0x18
or edx, eax
cmp edx, 0x6054b50
je 0x448698
cmp edx, 0x4034b50
jne 0x448508
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x5c], 0
sub eax, esi
mov dword [ebp - 0x60], eax
push 0
mov eax, dword [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [edx]
push eax
call sub.msvcrt.dll__lseeki64
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x48]
add esp, 0x10
xor eax, ecx
mov dword [ebp - 0x44], edx
or eax, edx
je 0x448641
call sub.msvcrt.dll__errno
sub esp, 0xc
mov eax, dword [eax]
push eax
call sub.msvcrt.dll_strerror
mov dword [esp], eax
mov eax, dword [ebp - 0x60]
push eax
push str.seek__ld_failed:__s_n
push str.zipro
push 5
call fcn.0044c320
add esp, 0x20
jmp 0x448508
push eax
push edi
push ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push eax
call sub.msvcrt.dll__read
add esp, 0x10
mov dword [ebp - 0x4c], eax
inc eax
jne 0x448662
call sub.msvcrt.dll__errno
cmp dword [eax], 4
je 0x448641
cmp esi, dword [ebp - 0x4c]
je 0x4486bc
call sub.msvcrt.dll__errno
sub esp, 0xc
mov edi, dword [eax]
push edi
call sub.msvcrt.dll_strerror
pop edx
pop ecx
push eax
push esi
mov eax, dword [ebp - 0x4c]
push eax
push str.Zip:_read__ld__expected__ld._Failed:__s_n
push str.zipro
push 5
call fcn.0044c320
add esp, 0x20
jmp 0x448508
push eax
push str.Found_Zip_archive__but_it_looks_empty_n
push str.zipro
push 4
call fcn.0044c320
mov dword [esp], ebx
call sub.msvcrt.dll_free
xor eax, eax
add esp, 0x10
jmp 0x448516
sub esi, 0x16
js 0x4487d0
lea ecx, [ebx + esi]
jmp 0x4486db
dec esi
dec ecx
cmp esi, 0xffffffff
je 0x4487d0
cmp byte [ecx], 0x50
jne 0x4486d0
xor eax, eax
xor edx, edx
mov al, byte [ecx + 1]
mov dl, byte [ecx + 2]
shl edx, 0x10
shl eax, 8
or eax, edx
xor edx, edx
mov dl, byte [ecx + 3]
or eax, 0x50
shl edx, 0x18
or eax, edx
cmp eax, 0x6054b50
jne 0x4486d0
mov dword [ebp - 0x58], esi
mov eax, dword [ebp - 0x48]
mov edx, esi
sar edx, 0x1f
add dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
mov edx, dword [ebp - 0x44]
adc dword [ebp - 0x54], edx
sub esp, 0xc
mov dl, byte [ecx + 8]
mov byte [ebp - 0x19], dl
lea edx, [ecx + 0xc]
mov al, byte [ecx + 9]
mov byte [ebp - 0x38], al
mov al, byte [edx + 1]
and eax, 0xff
mov edi, eax
xor eax, eax
shl edi, 8
mov al, byte [edx + 2]
shl eax, 0x10
or edi, eax
xor eax, eax
mov al, byte [ecx + 0xc]
or edi, eax
xor eax, eax
mov al, byte [edx + 3]
lea edx, [ecx + 0x10]
shl eax, 0x18
or edi, eax
mov al, byte [edx + 1]
and eax, 0xff
mov esi, eax
xor eax, eax
shl esi, 8
mov al, byte [edx + 2]
shl eax, 0x10
or esi, eax
xor eax, eax
mov al, byte [ecx + 0x10]
or esi, eax
xor eax, eax
mov al, byte [edx + 3]
push ebx
shl eax, 0x18
or esi, eax
call sub.msvcrt.dll_free
mov dword [ebp - 0x68], esi
mov eax, edi
xor edx, edx
add eax, dword [ebp - 0x68]
mov dword [ebp - 0x64], 0
adc edx, dword [ebp - 0x64]
add esp, 0x10
cmp dword [ebp - 0x54], edx
jg 0x4487e8
jl 0x4487ab
cmp dword [ebp - 0x58], eax
jae 0x4487e8
push eax
push eax
mov ebx, dword [ebp - 0x58]
push ebx
push edi
push esi
push str.bad_offsets__dir__ld__size__u__eocd__ld__n
push str.zipro
push 5
call fcn.0044c320
xor eax, eax
add esp, 0x20
jmp 0x448516
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
push str.Zip:_EOCD_not_found___s_is_not_zip_n
push str.zipro
push 3
jmp 0x4486a5
xor eax, eax
mov dl, byte [ebp - 0x38]
shl edx, 8
mov al, byte [ebp - 0x19]
or dx, ax
mov word [ebp - 0x3a], dx
jne 0x448818
push ecx
push str.empty_archive__n
push str.zipro
push 5
call fcn.0044c320
xor eax, eax
add esp, 0x10
jmp 0x448516
sub esp, 0xc
push 0x28
call fcn.004a3a30
mov dword [esp], eax
mov ebx, eax
call fcn.0044b580
mov edx, dword [ebp + 8]
add esp, 0x10
mov dword [edx + 0x10], ebx
test ebx, ebx
je 0x448884
push eax
push 1
push edi
mov eax, dword [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push eax
mov eax, dword [ecx + 8]
push eax
push ebx
call fcn.0044b5d0
add esp, 0x20
test al, al
je 0x4488b0
mov ax, word [ebp - 0x3a]
mov edx, dword [ebp + 8]
and eax, 0xffff
mov dword [edx + 0x14], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x64]
mov dword [ecx + 0x18], eax
mov eax, 1
mov dword [ecx + 0x1c], edx
jmp 0x448516
call sub.msvcrt.dll__errno
sub esp, 0xc
mov edx, dword [eax]
push edx
call sub.msvcrt.dll_strerror
push eax
push str.Unable_to_create_directory_map:__s
push str.zipro
push 5
call fcn.0044c320
xor eax, eax
add esp, 0x20
jmp 0x448516
call sub.msvcrt.dll__errno
sub esp, 0xc
mov eax, dword [eax]
push eax
call sub.msvcrt.dll_strerror
add esp, 0xc
push eax
lea eax, [esi + edi]
push eax
push esi
mov eax, dword [ebp + 8]
mov edi, dword [eax + 8]
push edi
push str.Unable_to_map__s___ld_to__ld_:__s_n
jmp 0x4487b8