Function at 0x14001a89a
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x468
mov rdi, qword [0x140100a88]
mov esi, 1
lea rax, [rsp + 0x36f]
mov qword [rsp + 0x4b0], rcx
mov rcx, rdi
and rax, 0xffffffffffffffc0
mov qword [rsp + 0x4b8], rdx
mov qword [rsp + 0x70], rax
call fcn.1400797e8
mov ecx, 0x10000
mov rbx, rax
call fcn.140079730
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14001b4da
or r8, 0xffffffffffffffff
mov qword [rsp + 0x20], rdi
mov rax, qword [rsp + 0x4b8]
lea rsi, [rsp + 0x22c]
lea r9, [0x14008fdb2]
mov edx, 0x104
mov rcx, rsi
mov qword [rsp + 0x28], rax
call qword [sym.imp.msvcrt.dll_clearerr]
test eax, eax
jns 0x14001a948
xor r8d, r8d
xor ebp, ebp
mov esi, 1
mov qword [rsp + 0x50], r8
jmp 0x14001b4af
cdqe
mov rdx, qword [rsp + 0x4b8]
mov rcx, qword [rsp + 0x4b0]
mov qword [rsp + 0x88], rax
add rax, rsi
mov qword [rsp + 0x68], rax
call fcn.140071ede
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x14001a98f
mov rdx, qword [rsp + 0x4b8]
lea rcx, str.Could_not_access_directory__s
call fcn.140038472
jmp 0x14001a934
mov rax, qword [rsp + 0x4b8]
cmp byte [rax], 0
jne 0x14001a9b5
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov edx, 1
mov dword [rsp + 0x20], ecx
or ecx, 0xffffffff
call fcn.140045210
mov rcx, qword [rsp + 0x50]
lea rax, [rsi + rbx]
mov esi, 1
mov qword [rsp + 0x80], rax
call fcn.14007458a
xor edx, edx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x40], rdx
cmp qword [rsp + 0x60], 0
je 0x14001b492
mov rax, qword [0x1400b5de0]
mov r15d, dword [rax]
test r15d, r15d
jne 0x14001b48e
mov rcx, qword [rsp + 0x60]
call fcn.140074760
cmp dword [0x140100a58], 0
mov rbx, rax
je 0x14001aa55
cmp dword [rax], 1
jne 0x14001aa55
cmp dword [0x1400827b8], 0
je 0x14001aa55
test byte [rax + 0xaf], 2
je 0x14001aa55
cmp byte [0x14010077b], 0
jne 0x14001aa3d
lea rcx, str.__Note:_The_selected_ISO_uses_Rock_Ridge_deep_directories._r_n__Because_of_this__it_may_take_a_very_long_time_to_scan_or_extract...
call fcn.140038472
inc qword [0x140100a78]
xor ebp, ebp
or esi, 0xffffffff
mov byte [0x14010077b], 1
jmp 0x14001b496
lea rax, [rbx + 0xfd]
lea rdx, [0x14008fe5a]
mov rcx, rax
mov qword [rsp + 0x48], rax
call fcn.1400797d0
test eax, eax
je 0x14001b47a
mov rcx, qword [rsp + 0x48]
lea rdx, [0x14008fe5c]
call fcn.1400797d0
test eax, eax
je 0x14001b47a
cmp dword [rbx], 1
jne 0x14001aafe
cmp dword [0x1400827b8], 0
je 0x14001aafe
mov rcx, qword [rsp + 0x48]
call fcn.1400797e8
mov rcx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x48]
mov edx, 0x103
mov rdi, qword [rsp + 0x88]
lea r9, [rax + 1]
sub rdx, rdi
call fcn.140018e4e
mov rcx, qword [rsp + 0x48]
call fcn.1400797e8
cmp rax, 0x40
jbe 0x14001aae3
mov byte [0x14010077a], 1
cmp qword [rbx + 0x1d], 0
jne 0x14001aaef
xor r13d, r13d
jmp 0x14001ab17
mov byte [0x140100778], 1
mov r13d, 1
jmp 0x14001ab17
movzx r8d, byte [0x140100a84]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
call fcn.14006f401
jmp 0x14001aaea
cmp dword [rbx + 0xf8], 2
jne 0x14001abb0
cmp dword [0x140100a58], 0
jne 0x14001ab86
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x22c]
call fcn.140019673
mov rcx, rax
mov rsi, rax
call fcn.14001a18c
mov rax, qword [0x1400b69b0]
cmp dword [rax], 0
je 0x14001ab7e
lea rcx, [rbx + 0xb4]
call sub.msvcrt.dll__wfopen
mov rcx, rax
call fcn.140018e00
mov rcx, rsi
mov rdx, rax
mov r9, rax
mov r8, rax
call fcn.14001a0f7
mov rcx, rsi
call fcn.1400796c8
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x4b0]
call fcn.14001a89a
mov esi, eax
test eax, eax
jg 0x14001b48e
je 0x14001b47a
jmp 0x14001b492
lea rax, [rsp + 0xa5]
mov rdi, qword [rbx + 0xe0]
mov r8, qword [rsp + 0x68]
lea rbp, [rsp + 0x22c]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x4b8]
mov r9, rbp
mov rdx, rdi
call fcn.140018e87
mov r12d, eax
test eax, eax
je 0x14001acd3
test rdi, rdi
jne 0x14001b47a
test r13d, r13d
je 0x14001b47a
mov rcx, qword [rsp + 0x4b8]
lea rdx, str._firmware
call fcn.1400797d0
test eax, eax
jne 0x14001ac96
mov rax, qword [rbx + 0x1d]
lea rdi, [rsp + 0x12c]
lea r9, [0x14008fe69]
or r8, 0xffffffffffffffff
mov edx, 0x100
mov rcx, rdi
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x4b8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.msvcrt.dll_clearerr]
mov rcx, qword [rsp + 0x4b0]
mov rdx, rdi
mov byte [rsp + 0x22b], 0
call fcn.140071d49
mov rcx, rax
test rax, rax
je 0x14001b47a
mov rax, qword [rax + 0xe0]
add rax, 0x7ff
shr rax, 0xb
add qword [0x140100a70], rax
call fcn.140070390
jmp 0x14001b47a
mov rcx, qword [rsp + 0x48]
lea rdx, str.live
call fcn.1400797d0
test eax, eax
jne 0x14001b47a
mov rcx, qword [rbx + 0x1d]
lea rdx, str.casper
call fcn.1400797d0
test eax, eax
jne 0x14001b47a
mov byte [0x140100789], 1
jmp 0x14001b47a
test r13d, r13d
jne 0x14001ace3
mov rdx, rdi
mov rcx, rbp
call fcn.140019d6d
xor ebp, ebp
lea r14, [rsp + 0xaa]
cmp byte [r14 + rbp], 0
je 0x14001adb8
mov rax, qword [0x1400b6ba0]
cmp dword [rax + rbp*4], 0
je 0x14001adb8
or r8, 0xffffffffffffffff
lea rax, [rsp + 0xac]
mov edx, pe_nt_image_headers64
mov qword [rsp + 0x78], rax
lea rax, str.menu.c32
mov rcx, qword [rsp + 0x78]
lea r9, str._s_syslinux__s__s
mov rax, qword [rax + rbp*8]
mov qword [rsp + 0x30], rax
mov rax, qword [0x1400b6450]
mov qword [rsp + 0x28], rax
lea rax, [0x14008fbf7]
mov qword [rsp + 0x20], rax
call qword [sym.imp.msvcrt.dll_clearerr]
mov rcx, qword [rsp + 0x78]
lea rdx, [rsp + 0x22c]
mov byte [rsp + 0x12b], 0
call fcn.14001a022
test eax, eax
je 0x14001ada4
mov rcx, qword [rsp + 0x78]
call fcn.1400181c3
lea rdx, [0x14008fba9]
test eax, eax
je 0x14001ad93
lea rdx, [0x14008fba5]
lea rcx, str.__Replaced_with_local_version__s
call fcn.140038472
jmp 0x14001b47a
call fcn.14003893c
lea rcx, str.__Could_not_replace_file:__s
mov rdx, rax
call fcn.140038472
lea rax, [rbp + 1]
mov ebp, 1
cmp rax, 2
jne 0x14001aced
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x22c]
call fcn.140019673
cmp dword [rsp + 0xa0], 0
mov rbp, rax
jne 0x14001adfc
mov rdx, rax
lea rcx, str.__File_name_sanitized_to__s
call fcn.140038472
test r13d, r13d
je 0x14001b0f0
mov rax, qword [0x1400b65c0]
cmp dword [rax], 2
jne 0x14001af68
mov rax, qword [rbx + 0x1d]
lea r14, [rsp + 0x12c]
lea r9, [0x14008fe69]
or r8, 0xffffffffffffffff
mov rcx, r14
mov edx, 0x100
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x4b8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.msvcrt.dll_clearerr]
mov rcx, qword [rsp + 0x4b0]
mov rdx, r14
mov byte [rsp + 0x22b], 0
call fcn.140071d49
mov r14, rax
test rax, rax
je 0x14001b0f3
lea rdi, [rsp + 0x22c]
mov r8d, 0x5c
mov edx, 0x2f
mov rcx, rdi
call fcn.1400197c3
mov rcx, qword [rbx + 0x1d]
call fcn.1400197d6
mov r9, qword [rbx + 0x1d]
cmp dword [r14 + 0xf8], 2
lea r8, [0x14008f9b3]
jne 0x14001aeb0
lea r8, [0x14008fdb0]
mov rdx, rdi
lea rcx, str.Symlinking:__s_s___s
call fcn.140038472
mov r12, qword [rbx + 0x1d]
xor r8d, r8d
mov rcx, rdi
cmp dword [r14 + 0xf8], 2
sete r8b
mov dword [rsp + 0x48], r8d
call fcn.140019f75
mov rcx, r12
mov rdi, rax
call fcn.140019f75
mov r8d, dword [rsp + 0x48]
mov rcx, rdi
mov r13, rax
mov rdx, rax
call qword [sym.imp.KERNEL32.DLL_FreeConsole]
mov r12d, eax
test r13, r13
je 0x14001af0e
mov rcx, r13
call fcn.1400796c8
test rdi, rdi
je 0x14001af1b
mov rcx, rdi
call fcn.1400796c8
test r12b, r12b
jne 0x14001af34
call fcn.14003893c
lea rcx, str.__Could_not_create_symlink:__s
mov rdx, rax
call fcn.140038472
mov rcx, qword [rbx + 0x1d]
mov r8d, 0x2f
mov edx, 0x5c
call fcn.1400197d6
mov r8d, 0x2f
mov edx, 0x5c
lea rcx, [rsp + 0x22c]
call fcn.1400197c3
mov rcx, r14
jmp 0x14001b417
test rdi, rdi
jne 0x14001b0cc
mov rcx, qword [rsp + 0x48]
lea rdx, [0x14008feb2]
call qword [sym.imp.msvcrt.dll_fread]
test eax, eax
jne 0x14001afef
mov rcx, qword [rbx + 0x1d]
test rcx, rcx
jne 0x14001af97
lea rcx, [0x14008f76c]
lea rdx, str.isolinux
call qword [sym.imp.msvcrt.dll_fread]
test eax, eax
jne 0x14001afef
lea r12, [rsp + 0x22c]
mov rcx, r12
call fcn.1400797e8
mov r8, r12
mov edx, 0x104
lea rcx, [0x140100920]
lea r9, [rax + 1]
call fcn.140018e4e
xor edx, edx
mov rcx, r12
call fcn.140019d6d
mov rdx, qword [rbx + 0x1d]
lea rcx, str.__Found_Rock_Ridge_symbolic_link_to__s
call fcn.140038472
jmp 0x14001b0f0
mov rcx, qword [rsp + 0x4b8]
lea rdx, str._firmware
call fcn.1400797d0
mov rcx, qword [rbx + 0x1d]
test eax, eax
jne 0x14001b09e
mov qword [rsp + 0x28], rcx
or r8, 0xffffffffffffffff
mov edx, 0x100
mov rax, qword [rsp + 0x4b8]
lea r12, [rsp + 0x12c]
lea r9, [0x14008fe69]
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.msvcrt.dll_clearerr]
mov rcx, qword [rsp + 0x4b0]
mov rdx, r12
mov byte [rsp + 0x22b], 0
call fcn.140071d49
mov rbx, rax
test rax, rax
je 0x14001b08d
mov rdi, qword [rax + 0xe0]
lea rcx, [rsp + 0x22c]
mov rdx, rdi
call fcn.140019d6d
mov rdx, r12
lea rcx, str.__Duplicated_from__s
mov r12d, r13d
call fcn.140038472
jmp 0x14001b0f3
lea rcx, str.Could_not_resolve_Rock_Ridge_Symlink___ABORTING_
call fcn.140038472
jmp 0x14001b496
xor edx, edx
test rcx, rcx
je 0x14001b0ad
call fcn.1400797e8
mov rdx, rax
lea rcx, [rsp + 0x22c]
call fcn.140019d6d
mov rdx, qword [rbx + 0x1d]
lea rcx, str.__Ignoring_Rock_Ridge_symbolic_link_to__s
call fcn.140038472
jmp 0x14001b0f3
mov rax, qword [0x1400b6b80]
cmp dword [rax], 0
je 0x14001b41c
mov rdx, rdi
lea rcx, str.Unexpected_symlink_length:__d
call fcn.140038472
jmp 0x14001b41c
xor r12d, r12d
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov edx, 0xc0000000
mov rcx, rbp
mov dword [rsp + 0x28], pe_nt_image_headers64
mov r8d, 1
mov dword [rsp + 0x20], 2
call fcn.1400396ee
mov qword [rsp + 0x40], rax
inc rax
jne 0x14001b179
call qword [sym.imp.KERNEL32.DLL_PeekNamedPipe]
mov edi, eax
call fcn.14003893c
sub edi, 5
lea rcx, str.__Unable_to_create_file:__s
mov rdx, rax
call fcn.140038472
cmp edi, 1
ja 0x14001b496
lea rcx, [rbp + 3]
lea rdx, str.autorun.inf
call fcn.1400797d0
test eax, eax
jne 0x14001b496
lea rcx, str.__NOTE:_This_is_usually_caused_by_a_poorly_designed_security_solution._See_https:__bit.ly_40qDtyF._r_n__This_file_will_be_skipped_for_now__but_you_should_really_look_into_using_a_SMARTER_antivirus_solution.
call fcn.140038472
jmp 0x14001b3c3
test r13d, r13d
je 0x14001b1c5
mov rsi, qword [rbx + 0x1d]
test rsi, rsi
je 0x14001b192
mov rcx, rsi
call fcn.1400797e8
mov r15d, eax
mov dword [rsp + 0x20], 4
mov rcx, qword [rsp + 0x40]
mov rdx, rsi
lea r9, [rsp + 0x9c]
mov r8d, r15d
call fcn.140039485
inc qword [0x1400827c8]
mov esi, eax
test eax, eax
jne 0x14001b3c3
jmp 0x14001b241
cmp qword [0x140100a50], 0
je 0x14001b1dd
mov rax, qword [0x1400b6770]
mov rcx, qword [rsp + 0x70]
call qword [rax]
xor r15d, r15d
jmp 0x14001b298
mov r14d, 0x10000
cmp rdi, r14
cmovle r14, rdi
cmp qword [0x140100a50], 0
je 0x14001b212
mov rax, qword [0x1400b6780]
mov rdx, qword [rsp + 0x58]
mov r8, r14
mov rcx, qword [rsp + 0x70]
call qword [rax]
mov dword [rsp + 0x20], 4
mov rdx, qword [rsp + 0x58]
mov r8d, r14d
lea r9, [rsp + 0x9c]
mov rcx, qword [rsp + 0x40]
call fcn.140039485
inc qword [0x1400827c8]
mov esi, eax
test eax, eax
jne 0x14001b24b
call fcn.14003893c
mov rdx, rax
jmp 0x14001b25c
cmp dword [rsp + 0x9c], r14d
je 0x14001b26d
lea rdx, str.Short_write_detected
lea rcx, [0x14008fd6c]
call fcn.140038472
jmp 0x14001b496
mov r8, qword [0x140100a68]
sub rdi, r14
add r8, r13
mov rax, r8
sub rax, qword [0x140100a60]
mov qword [0x140100a68], r8
cmp rax, 0x7f
ja 0x14001b31f
add r15, r13
test rdi, rdi
jle 0x14001b364
mov rax, qword [0x1400b5de0]
cmp dword [rax], 0
jne 0x14001b496
mov r8d, dword [rbx + 0xd8]
mov r13d, 0x20
add r8d, r15d
cmp rdi, 0x10000
jg 0x14001b2d5
lea r13, [rdi + 0x7ff]
sar r13, 0xb
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x4b0]
mov r9d, r13d
mov dword [rsp + 0x48], r8d
call fcn.140071126
mov rdx, r13
mov r8d, dword [rsp + 0x48]
cdqe
shl rdx, 0xb
cmp rax, rdx
je 0x14001b1e5
mov rdx, qword [rsp + 0x80]
lea rcx, str.__Error_reading_ISO9660_file__s_at_LSN__lu
call fcn.140038472
jmp 0x14001b496
mov rax, qword [0x1400b65c0]
xor r9d, r9d
cmp dword [rax], 2
je 0x14001b335
mov r9, qword [0x140100a70]
xor eax, eax
mov edx, 0xc9f
mov ecx, 7
add r9, qword [0x140100a78]
mov dword [rsp + 0x20], eax
call fcn.140045210
mov rax, qword [0x140100a68]
mov qword [0x140100a60], rax
jmp 0x14001b295
cmp qword [0x140100a50], 0
je 0x14001b3c3
mov rax, qword [0x1400b6760]
mov rcx, qword [rsp + 0x70]
xor r13d, r13d
lea rdi, [0x14008fd85]
call qword [rax]
mov rax, qword [rsp + 0x70]
mov rcx, qword [0x140100a50]
mov rdx, rdi
movzx r8d, byte [rax + r13]
inc r13
call fcn.1400796a0
cmp r13, 0x10
jne 0x14001b386
mov rcx, qword [0x140100a50]
lea r8, [rsp + 0x22f]
lea rdx, str.__.__s_n
call fcn.1400796a0
mov rax, qword [0x1400b69b0]
cmp dword [rax], 0
je 0x14001b40f
lea rcx, [rbx + 0xb4]
call sub.msvcrt.dll__wfopen
mov rcx, rax
call fcn.140018e00
mov rcx, qword [rsp + 0x40]
mov rdx, rax
mov r9, rax
mov r8, rax
call qword [0x14011c728]
test eax, eax
jne 0x14001b40f
call fcn.14003893c
lea rcx, str.__Could_not_set_timestamp:__s
mov rdx, rax
call fcn.140038472
test r12d, r12d
je 0x14001b41c
mov rcx, rbx
call fcn.140070390
mov rax, qword [rsp + 0x40]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14001b43e
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.DLL_CreateDirectorCreateEventACreateFileA]
mov qword [rsp + 0x40], 0xffffffffffffffff
inc qword [0x1400827c8]
mov al, byte [rsp + 0xa5]
or al, byte [rsp + 0xa6]
je 0x14001b472
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x4b8]
lea r9, [rsp + 0xa5]
mov rcx, rbp
call fcn.1400197e5
mov rcx, rbp
call fcn.1400796c8
mov rcx, qword [rsp + 0x60]
call fcn.1400745e2
mov qword [rsp + 0x60], rax
jmp 0x14001a9dc
xor ebp, ebp
jmp 0x14001b496
xor ebp, ebp
xor esi, esi
mov rax, qword [rsp + 0x40]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14001b4af
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.DLL_CreateDirectorCreateEventACreateFileA]
inc qword [0x1400827c8]
cmp qword [rsp + 0x50], 0
je 0x14001b4c8
mov rcx, qword [rsp + 0x50]
call fcn.140072240
mov rcx, rbp
call fcn.1400796c8
mov rcx, qword [rsp + 0x58]
call fcn.1400796c8
mov eax, esi
add rsp, 0x468
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret