Function at 0x140018e87
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
xor eax, eax
mov rbx, qword [sym.imp.msvcrt.dll_fread]
lea rsi, str.isolinux.cfg
mov r12, qword [rsp + 0xb0]
mov dword [r12], eax
mov dword [r12 + 3], eax
lea rax, [0x14008f76c]
test r8, r8
mov rdi, rcx
mov rbp, rdx
mov r13, r8
cmovne rax, r8
mov qword [rsp + 0xa8], r9
setne byte [rsp + 0x3f]
xor r15d, r15d
mov r14, rax
mov rdx, qword [rsi + r15*8]
test rdx, rdx
jne 0x140018ef2
lea rdx, [0x14008f76c]
mov rcx, r14
call rbx
test eax, eax
je 0x140018f06
inc r15
cmp r15, 5
jne 0x140018ee2
jmp 0x140018f79
cmp dword [0x140100a58], 0
mov byte [r12], 1
mov byte [r12 + 2], 1
je 0x140018f3a
cmp r15, 2
ja 0x140018f3a
mov rdx, qword [rsp + 0xa8]
mov r8d, 1
lea rcx, [0x140100a40]
call fcn.140036cf3
cmp dword [0x140100a58], 0
je 0x140018efb
cmp r15, 1
jne 0x140018efb
mov rdx, qword [str._efi_boot]
test rdx, rdx
jne 0x140018f5c
lea rdx, [0x14008f76c]
mov rcx, rdi
call rbx
test eax, eax
je 0x140018f70
mov r15d, 2
jmp 0x140018ee2
mov byte [0x140100782], 1
jmp 0x140018f65
lea rdx, str._loader_entries
mov rcx, rdi
call rbx
mov esi, eax
test eax, eax
jne 0x140018fbc
test r13, r13
je 0x140018fb7
mov rcx, r13
call fcn.1400797e8
cmp rax, 4
jbe 0x140018fb7
lea rcx, [r13 + rax - 5]
lea rdx, str..conf
xor esi, esi
call sub.msvcrt.dll_fputs
test eax, eax
sete sil
mov byte [r12 + 1], sil
mov rdx, qword [str.menu.c32]
test rdx, rdx
jne 0x140018fcf
lea rdx, [0x14008f76c]
test r13, r13
lea rsi, [0x14008f76c]
cmovne rsi, r13
mov rcx, rsi
call rbx
cmp rbp, 0xd0fc
jg 0x140018ff5
test eax, eax
jne 0x140018ff5
mov byte [r12 + 5], 1
mov rdx, qword [str.vesamenu.c32]
test rdx, rdx
jne 0x140019008
lea rdx, [0x14008f76c]
mov rcx, rsi
call rbx
cmp rbp, 0x24220
jg 0x140019020
test eax, eax
jne 0x140019020
mov byte [r12 + 6], 1
mov r14d, dword [0x140100a58]
test r14d, r14d
je 0x14001907d
lea rdx, str._boot_grub_i386_pc
mov rcx, rdi
call rbx
test eax, eax
jne 0x140019043
mov byte [0x140100784], 1
lea rdx, str._boot_grub2_i386_pc
mov rcx, rdi
call rbx
test eax, eax
jne 0x14001905a
mov byte [0x140100784], 2
lea rdx, str.ldlinux.c32
mov rcx, rsi
call rbx
test eax, eax
jne 0x14001911a
mov dword [0x140100200], 1
jmp 0x14001911a
test r13, r13
je 0x1400190e9
mov rcx, r13
call fcn.1400797e8
cmp rax, 3
jbe 0x1400190e9
lea rcx, [r13 + rax - 4]
lea rdx, [0x14008f7bc]
call rbx
test eax, eax
jne 0x1400190e9
mov byte [r12], 1
lea rdx, str.grub.cfg
mov rcx, r13
call rbx
test eax, eax
jne 0x1400190bd
mov byte [r12 + 3], 1
lea rdx, str.loopback.cfg
mov rcx, r13
call rbx
test eax, eax
jne 0x1400190d3
mov byte [r12 + 3], 1
lea rdx, str.menu.cfg
mov rcx, r13
call rbx
test eax, eax
jne 0x1400190e9
mov byte [r12 + 4], 1
cmp byte [rdi], 0
jne 0x14001965f
lea rdx, str.ldlinux.sys
mov rcx, rsi
call rbx
test eax, eax
jne 0x14001965f
mov rdx, r13
lea rcx, str.Skipping__s_file_from_ISO_image
call fcn.140038472
jmp 0x140019659
mov r14, qword [sym.imp.msvcrt.dll_freopen]
mov r8d, 7
lea rdx, str._casper
mov rcx, rdi
call r14
test eax, eax
jne 0x14001915a
lea rdx, str.pop_os
mov rcx, rdi
mov byte [0x14010078a], 1
call fcn.140079820
test rax, rax
je 0x14001915a
mov byte [0x140100770], 1
lea rdx, str._proxmox
mov rcx, rdi
call rbx
test eax, eax
jne 0x140019171
mov byte [0x140100770], 1
cmp byte [rdi], 0
jne 0x14001929f
lea rdx, str.bootmgr
mov rcx, rsi
call rbx
test eax, eax
jne 0x140019191
mov byte [0x14010077c], 1
mov rdx, qword [str.bootmgr.efi]
test rdx, rdx
jne 0x1400191a4
lea rdx, [0x14008f76c]
mov rcx, rsi
call rbx
test eax, eax
jne 0x140019214
lea rax, [0x140100220]
xor r15d, r15d
cmp byte [rax + 0x380], 0
jne 0x1400191f8
mov rcx, qword [rsp + 0xa8]
call fcn.1400797e8
imul rdx, r15, 0x1e
lea r8, [0x140100220]
lea r9, [rax + 1]
lea rcx, [r8 + rdx + 0x380]
mov r8, qword [rsp + 0xa8]
mov edx, 0x1e
call fcn.140018e4e
jmp 0x140019205
inc r15
add rax, 0x1e
cmp r15, 0xa
jne 0x1400191b7
or word [0x140100774], 1
mov byte [0x14010077d], 1
lea rdx, [0x14008f82e]
mov rcx, rsi
call rbx
test eax, eax
jne 0x14001922b
mov byte [0x140100783], 1
lea rdx, str.kolibri.img
mov rcx, rsi
call rbx
test eax, eax
jne 0x140019242
mov byte [0x140100787], 1
lea rdx, str..miso
mov rcx, rsi
call rbx
test eax, eax
jne 0x140019259
mov byte [0x140100770], 1
mov rdx, qword [0x1400827a0]
test rdx, rdx
jne 0x14001926c
lea rdx, [0x14008f76c]
mov rcx, rsi
call rbx
test eax, eax
jne 0x14001927c
mov byte [0x140100776], 1
mov rdx, qword [str.MD5SUMS]
test rdx, rdx
jne 0x14001928f
lea rdx, [0x14008f76c]
mov rcx, rsi
call rbx
test eax, eax
jne 0x14001929f
mov byte [0x140100776], 2
cmp byte [0x140100420], 0
jne 0x1400192e2
lea rdx, str.setupldr.sys
mov rcx, rsi
call rbx
test eax, eax
jne 0x1400192e2
mov rcx, qword [rsp + 0xa8]
call fcn.1400797e8
mov r8, qword [rsp + 0xa8]
mov edx, pe_nt_image_headers64
lea rcx, [0x140100420]
lea r9, [rax + 1]
call fcn.140018e4e
cmp byte [0x1401006cc], 0
jne 0x14001935b
cmp byte [rsp + 0x3f], 0
je 0x14001935b
mov rcx, r13
call fcn.1400797e8
cmp rax, 6
jbe 0x14001935b
mov r8d, 3
lea rdx, [0x14008f853]
mov rcx, r13
call r14
test eax, eax
jne 0x14001935b
mov rcx, r13
call fcn.1400797e8
lea rdx, str..img
lea rcx, [r13 + rax - 4]
call rbx
test eax, eax
jne 0x14001935b
mov rcx, qword [rsp + 0xa8]
call fcn.1400797e8
mov r8, qword [rsp + 0xa8]
mov edx, pe_nt_image_headers64
lea rcx, [0x1401006cc]
lea r9, [rax + 1]
call fcn.140018e4e
mov rdx, qword [str._efi_boot]
test rdx, rdx
jne 0x14001936e
lea rdx, [0x14008f76c]
mov rcx, rdi
call rbx
test eax, eax
jne 0x140019462
xor r13d, r13d
lea r14, str.h_r_t_
mov rdx, qword [r14 + r13*8]
lea rax, [0x14008f76c]
mov rcx, rsi
test rdx, rdx
cmove rdx, rax
call rbx
test eax, eax
jne 0x140019409
mov eax, 2
mov ecx, r13d
xor r15d, r15d
shl eax, cl
or word [0x140100774], ax
lea rax, [0x140100220]
cmp byte [rax + 0x380], 0
jne 0x1400193fc
mov rcx, qword [rsp + 0xa8]
call fcn.1400797e8
imul rdx, r15, 0x1e
lea r8, [0x140100220]
lea r9, [rax + 1]
lea rcx, [r8 + rdx + 0x380]
mov r8, qword [rsp + 0xa8]
mov edx, 0x1e
call fcn.140018e4e
jmp 0x140019409
inc r15
add rax, 0x1e
cmp r15, 0xa
jne 0x1400193bb
inc r13
cmp r13, 0xa
jne 0x140019385
mov rdx, qword [str._r_t_]
test rdx, rdx
jne 0x140019429
lea rdx, [0x14008f76c]
mov rcx, rsi
call rbx
test eax, eax
jne 0x140019462
cmp rbp, 0xff
jg 0x140019462
mov r9d, 0x19
lea r8, str._BOOT__1_Boot_NoEmul.img
mov edx, pe_nt_image_headers64
or word [0x140100774], 0x4000
lea rcx, [0x1401006cc]
call fcn.140018e4e
mov rcx, rdi
call fcn.1400797e8
mov edx, 0
sub eax, 8
cmovs eax, edx
lea rdx, str._sources
cdqe
lea rcx, [rdi + rax]
call rbx
test eax, eax
je 0x1400194a1
lea rdx, str._sources__OEM_____Panther
mov rcx, rdi
call rbx
test eax, eax
jne 0x14001953a
jmp 0x140019523
xor r14d, r14d
lea r15, [0x140100220]
lea rax, str.install.wim
mov rdx, qword [rax + r14*8]
test rdx, rdx
jne 0x1400194c2
lea rdx, [0x14008f76c]
mov rcx, rsi
call rbx
test eax, eax
jne 0x140019515
movzx r13d, byte [0x140100777]
cmp r13b, 3
ja 0x140019515
add r13, 0xa
mov rax, qword [rsp + 0xa8]
lea r9, str._:_s
or r8, 0xffffffffffffffff
shl r13, 6
mov edx, 0x40
add r13, r15
mov qword [rsp + 0x20], rax
mov rcx, r13
call qword [sym.imp.msvcrt.dll_clearerr]
mov byte [r13 + 0x3f], 0
inc byte [0x140100777]
inc r14
cmp r14, 3
jne 0x1400194ab
jmp 0x140019488
lea rdx, str.unattend.xml
mov rcx, rsi
call rbx
test eax, eax
jne 0x14001953a
mov byte [0x140100786], 1
lea r14, str.h_f_t_
xor r13d, r13d
mov rdx, qword [r14]
test rdx, rdx
jne 0x140019553
lea rdx, [0x14008f76c]
mov rcx, rdi
call rbx
test eax, eax
je 0x14001956c
add r13d, 3
add r14, 8
cmp r13d, 9
jne 0x140019544
jmp 0x1400195b7
xor r15d, r15d
lea r9, str._f_t_
mov rdx, qword [r9 + r15*8]
test rdx, rdx
jne 0x140019586
lea rdx, [0x14008f76c]
mov rcx, rsi
call rbx
lea r9, str._f_t_
test eax, eax
jne 0x1400195ac
mov ecx, r15d
mov eax, 1
shl eax, cl
mov ecx, r13d
shl eax, cl
or word [0x140100772], ax
inc r15
cmp r15, 3
jne 0x140019576
jmp 0x14001955c
lea rdx, str.isolinux.bin
mov rcx, rsi
call rbx
test eax, eax
jne 0x1400195e1
mov rdx, qword [rsp + 0xa8]
mov r8d, 1
lea rcx, [0x140100a30]
call fcn.140036cf3
lea rdx, str.boot.bin
mov rcx, rsi
call rbx
test eax, eax
jne 0x14001960b
mov rdx, qword [rsp + 0xa8]
mov r8d, 1
lea rcx, [0x140100a30]
call fcn.140036cf3
cmp byte [r12 + 5], 0
je 0x14001961a
mov byte [0x14010077f], 1
cmp byte [r12 + 6], 0
je 0x140019629
mov byte [0x140100780], 1
mov eax, 0xffffffff
cmp rbp, rax
jle 0x14001963c
mov byte [0x140100779], 1
jmp 0x140019641
test rbp, rbp
je 0x140019659
lea rax, [rbp + 0x7ff]
mov ecx, 0x800
cqo
idiv rcx
add qword [0x140100a78], rax
mov r14d, 1
mov eax, r14d
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret