Function at 0x14000e7f0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rdi
push r12
push r13
sub rsp, 0x90
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r13, r9
mov r12, r8
mov rbp, rdx
call fcn.14000df30
mov rbx, rax
test rax, rax
jne 0x14000e839
lea rcx, str.ERROR:_Invalid_archive_n
call fcn.1400023a0
lea rax, [rbx - 1]
jmp 0x14000eb47
mov rcx, qword [rax]
mov rdx, rbp
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x78], r15
test rcx, rcx
je 0x14000e96c
xor r8d, r8d
call qword [sym.imp.zip.dll_zip_name_locate]
mov rsi, rax
mov rdi, 0xffffffffffffffff
test eax, eax
jns 0x14000e888
mov rdx, rbp
lea rcx, str.NOTE:_zip_name_locate:__s_not_found_in_archive._n
call fcn.140002440
jmp 0x14000eabc
lea rcx, [rsp + 0x20]
call qword [sym.imp.zip.dll_zip_stat_init]
mov rcx, qword [rbx]
lea r9, [rsp + 0x20]
movsxd rsi, esi
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.zip.dll_zip_stat_index]
test eax, eax
je 0x14000e8c2
mov rdx, rbp
lea rcx, str.ERROR:_zip_stat_index:__s_n
call fcn.1400023a0
jmp 0x14000eabc
mov rcx, qword [rbx]
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.zip.dll_zip_fopen_index]
mov r15, rax
test rax, rax
jne 0x14000e8ed
mov rdx, rbp
lea rcx, str.ERROR:_zip_fopen_index:__s_n
call fcn.1400023a0
jmp 0x14000eabc
mov rsi, qword [rsp + 0x38]
mov rcx, rsi
add rcx, 1
cmovb rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
jne 0x14000e925
lea rcx, str.ERROR:_Out_of_memory_n
call fcn.1400023a0
mov rcx, r15
call qword [sym.imp.zip.dll_zip_fclose]
jmp 0x14000eabc
mov r8, rsi
mov rdx, r14
mov rcx, r15
call qword [sym.imp.zip.dll_zip_fread]
cmp rax, rsi
je 0x14000e959
mov rdx, rbp
lea rcx, str.ERROR:_zip_fread:__s_n
call fcn.1400023a0
mov rcx, r15
call qword [sym.imp.zip.dll_zip_fclose]
mov rcx, r14
jmp 0x14000eab6
mov rcx, r15
mov byte [r14 + rsi], 0
call qword [sym.imp.zip.dll_zip_fclose]
jmp 0x14000eafe
mov rcx, qword [rax + 8]
call fcn.14000de70
lea rdx, [0x14001dbf4]
mov rcx, rax
mov rbp, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov r15, rax
test rax, rax
jne 0x14000e9f4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov r8, rbp
lea rdx, str.ipsw_extract_to_memory
mov r9, rax
lea rcx, str.ERROR:__s:_fopen_failed_for__s:__s_n
call fcn.1400023a0
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000e9e1
call qword [sym.imp.zip.dll_zip_unchange_all]
mov rcx, qword [rbx]
call qword [sym.imp.zip.dll_zip_close]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 0xfffffffe
jmp 0x14000eb32
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov ecx, eax
lea rdx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__fstat64i32]
mov rdi, 0xffffffffffffffff
test eax, eax
je 0x14000ea35
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
lea rcx, str.ERROR:__s:_fstat_failed_for__s:__s_n
jmp 0x14000eaa1
movsxd rsi, dword [rsp + 0x34]
mov rcx, rsi
add rcx, 1
cmovb rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
jne 0x14000ea6a
lea rcx, str.ERROR:_Out_of_memory_n
call fcn.1400023a0
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x14000eab3
mov r9, r15
mov r8, rsi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, r15
cmp rax, rsi
je 0x14000eaea
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
lea rcx, str.ERROR:__s:_fread_failed_for__s:__s_n
mov r9, rax
lea rdx, str.ipsw_extract_to_memory
mov r8, rbp
call fcn.1400023a0
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000eadd
call qword [sym.imp.zip.dll_zip_unchange_all]
mov rcx, qword [rbx]
call qword [sym.imp.zip.dll_zip_close]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, edi
jmp 0x14000eb32
mov byte [r14 + rsi], 0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000eb1f
call qword [sym.imp.zip.dll_zip_unchange_all]
mov rcx, qword [rbx]
call qword [sym.imp.zip.dll_zip_close]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [r12], r14
xor eax, eax
mov dword [r13], esi
mov r14, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x88]
mov r15, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14001bfa0
add rsp, 0x90
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret