Function at 0x431a90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x20
mov edi, dword [ebp + 8]
push 2
push 0
mov edx, dword [edi]
push edx
call sub.msvcrt.dll_fseek
pop eax
mov eax, dword [edi]
push eax
call sub.msvcrt.dll_ftell
mov ebx, eax
pop eax
mov eax, dword [edi]
push eax
call sub.msvcrt.dll_rewind
add esp, 0x10
cmp ebx, 0x15
jle 0x431c17
sub esp, 0xc
push 0x10015
call fcn.004a39a0
add esp, 0x10
mov dword [ebp - 0x24], eax
test eax, eax
je 0x431bf4
cmp ebx, 0x10015
jg 0x431b35
mov esi, ebx
xor ebx, ebx
push eax
push 0
push ebx
mov eax, dword [edi]
push eax
call sub.msvcrt.dll_fseek
add esp, 0x10
test eax, eax
je 0x431b42
push ebx
push str.Failure_seeking_to_end_of_zip_at__ld
push 0x4b3720
push 3
mov ebx, 0x80000000
call fcn.0044c320
add esp, 0x10
sub esp, 0xc
mov eax, dword [ebp - 0x24]
push eax
call fcn.004a3970
add esp, 0x10
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
sub ebx, 0x10015
mov esi, 0x10015
jmp 0x431aef
mov ecx, dword [edi]
mov edx, dword [ebp - 0x24]
push ecx
push esi
push 1
push edx
call sub.msvcrt.dll_fread
add esp, 0x10
cmp esi, eax
je 0x431b60
push esi
push str.short_file__wanted__ld_n
jmp 0x431b08
lea ebx, [esi - 4]
mov ecx, dword [ebp - 0x24]
add ecx, ebx
jmp 0x431b77
dec ebx
dec ecx
cmp ebx, 0xffffffff
je 0x431bd5
cmp byte [ecx], 0x50
jne 0x431b70
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 0x431b70
sub esi, ebx
push eax
lea eax, [edi + 4]
push esi
push ecx
push eax
call fcn.00430900
add esp, 0x10
mov ebx, eax
test eax, eax
jne 0x431c36
mov eax, dword [edi + 8]
test eax, eax
jne 0x431bcd
mov eax, dword [edi + 0xc]
cmp ax, word [edi + 0xe]
je 0x431c50
push eax
push str.Archive_spanning_not_supported_n
jmp 0x431bdb
push eax
push str.EOCD_not_found__not_Zip_n
push 0x4b3720
push 3
call fcn.0044c320
mov ebx, 0xffffffd8
add esp, 0x10
jmp 0x431b1c
push 0x10015
push str.Failure_allocating__d_bytes_for_EOCD_search
push 0x4b3720
push 3
call fcn.0044c320
mov ebx, 0xfffffff4
add esp, 0x10
jmp 0x431b2b
push ebx
push str.Length_is__ld____too_small_n
push 0x4b3720
push 3
call fcn.0044c320
mov ebx, 0xffffffd8
add esp, 0x10
jmp 0x431b2b
push esi
push str.Failure_reading__ld_bytes_of_EOCD_values
push 0x4b3720
push 3
call fcn.0044c320
add esp, 0x10
jmp 0x431b1c
push eax
push 0
mov eax, dword [edi + 0x14]
push eax
mov esi, dword [edi]
push esi
call sub.msvcrt.dll_fseek
add esp, 0x10
test eax, eax
jne 0x431e6c
cmp word [edi + 0xe], 0
je 0x431e49
lea eax, [edi + 0x24]
xor esi, esi
mov dword [ebp - 0x28], eax
jmp 0x431ca3
push eax
push eax
lea eax, [ebp - 0x10]
inc esi
push eax
mov eax, dword [ebp - 0x28]
push eax
call fcn.00444a20
mov ax, word [edi + 0xe]
add esp, 0x10
and eax, 0xffff
cmp eax, esi
jle 0x431e49
sub esp, 0xc
push 0x68
call fcn.004a3a30
mov byte [eax], 0
mov byte [eax + 1], 0
mov dword [eax + 4], vtable.cxx20recursive_init_errorE.0
mov word [eax + 8], 0
mov word [eax + 0xa], 0
mov word [eax + 0xc], 0
mov word [eax + 0xe], 0
mov word [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov word [eax + 0x20], 0
mov word [eax + 0x22], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], vtable.d8ZipEntry15LocalFileHeaderE.0
mov word [eax + 0x30], 0
mov word [eax + 0x32], 0
mov word [eax + 0x34], 0
mov word [eax + 0x36], 0
mov word [eax + 0x38], 0
mov word [eax + 0x3a], 0
mov dword [eax + 0x3c], 0
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
mov word [eax + 0x48], 0
mov word [eax + 0x4a], 0
mov word [eax + 0x4c], 0
mov word [eax + 0x4e], 0
mov word [eax + 0x50], 0
mov dword [eax + 0x54], 0
mov dword [eax + 0x58], 0
mov dword [eax + 0x5c], 0
mov dword [eax + 0x60], 0
mov dword [eax + 0x64], 0
mov dword [ebp - 0x10], eax
pop ecx
pop edx
mov edx, dword [edi]
push edx
push eax
call fcn.004302b0
add esp, 0x10
mov dword [ebp - 0x20], eax
test eax, eax
je 0x431c7f
push eax
push str.initFromCDE_failed_n
push 0x4b3720
push 3
call fcn.0044c320
mov esi, dword [ebp - 0x10]
add esp, 0x10
mov ebx, dword [ebp - 0x20]
test esi, esi
je 0x431b1c
mov eax, dword [esi + 0x5c]
mov dword [esi + 0x2c], vtable.d8ZipEntry15LocalFileHeaderE.0
test eax, eax
je 0x431de2
sub esp, 0xc
push eax
call fcn.004a3970
add esp, 0x10
mov eax, dword [esi + 0x60]
test eax, eax
je 0x431df5
sub esp, 0xc
push eax
call fcn.004a3970
add esp, 0x10
mov eax, dword [esi + 0x64]
test eax, eax
je 0x431e08
sub esp, 0xc
push eax
call fcn.004a3970
add esp, 0x10
mov eax, dword [esi + 0x24]
mov dword [esi + 4], vtable.cxx20recursive_init_errorE.0
test eax, eax
je 0x431e22
sub esp, 0xc
push eax
call fcn.004a3970
add esp, 0x10
mov eax, dword [esi + 0x28]
test eax, eax
je 0x431e35
sub esp, 0xc
push eax
call fcn.004a3970
add esp, 0x10
sub esp, 0xc
push esi
call fcn.004a3980
mov ebx, dword [ebp - 0x20]
add esp, 0x10
jmp 0x431b1c
mov esi, dword [edi]
lea eax, [ebp - 0x14]
push esi
push 4
push 1
push eax
call sub.msvcrt.dll_fread
add esp, 0x10
cmp eax, 4
je 0x431e7a
push ecx
push str.EOCD_check_read_failed_n
jmp 0x431bdb
mov ecx, dword [edi + 0x14]
push ecx
push str.Failure_seeking_to_central_dir_offset__ld_n
jmp 0x431b08
xor edx, edx
xor eax, eax
mov dl, byte [ebp - 0x13]
mov al, byte [ebp - 0x12]
shl eax, 0x10
shl edx, 8
or edx, eax
xor eax, eax
mov al, byte [ebp - 0x14]
or edx, eax
xor eax, eax
mov al, byte [ebp - 0x11]
shl eax, 0x18
or edx, eax
cmp edx, 0x6054b50
je 0x431b1c
push edx
push str.EOCD_read_check_failed_n
jmp 0x431b08