Function at 0x140027b70
Capabilities:
Read file on windows

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x870
mov rax, qword [0x140193440]
xor rax, rsp
mov qword [rsp + 0x860], rax
xor ebp, ebp
lea rax, [0x14015f8c8]
mov qword [rsp + 0x40], rax
lea rax, str.w__ccsUTF_8
mov qword [rsp + 0x48], rax
lea rax, str.w__ccsUTF_16LE
mov qword [rsp + 0x50], rax
mov r13, rcx
mov qword [rsp + 0x38], rbp
mov r15d, ebp
mov word [rsp + 0x20], bp
mov r14d, ebp
mov r12d, ebp
test rcx, rcx
je 0x140027fa6
cmp byte [rcx], bpl
je 0x140027fa6
mov qword [rsp + 0x8b0], rsi
call fcn.140025a90
mov qword [rsp + 0x30], rax
mov rsi, rax
test rax, rax
jne 0x140027c0f
mov rdx, r13
lea rcx, str.Could_not_convert__s_to_UTF_16
call fcn.14004f2f0
jmp 0x140027f77
lea rcx, str._SetupData_
call fcn.140025a90
mov r15, rax
test rax, rax
jne 0x140027c3b
lea rdx, str._SetupData_
lea rcx, str.Could_not_convert__s_to_UTF_16
call fcn.14004f2f0
jmp 0x140027f77
lea rcx, str.SetupSourceDevice___deviceharddisk1partition1_
call fcn.140025a90
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140027c69
lea rdx, str.SetupSourceDevice___deviceharddisk1partition1_
lea rcx, str.Could_not_convert__s_to_UTF_16
call fcn.14004f2f0
jmp 0x140027f77
lea rdx, str.r__ccsUNICODE
mov qword [rsp + 0x8b8], rdi
mov rcx, rsi
call fcn.1400e9094
mov rdi, rax
test rax, rax
jne 0x140027c9c
mov rdx, r13
lea rcx, str.Could_not_open_file__s_n
call fcn.14004f2f0
jmp 0x140027f6f
mov r9, rdi
lea rcx, [rsp + 0x20]
mov edx, 2
mov r8d, 1
call fcn.14010a6f0
cmp rax, 1
je 0x140027cd6
mov rdx, r13
lea rcx, str.Could_not_read_file__s_n
call fcn.14004f2f0
mov rcx, rdi
call fcn.1400e9320
jmp 0x140027f6f
movzx eax, word [rsp + 0x20]
mov qword [rsp + 0x8a8], rbx
cmp eax, 0xbbef
je 0x140027cf9
cmp eax, 0xfeff
mov ebx, 2
cmovne ebx, ebp
jmp 0x140027cfe
mov ebx, 1
xor r8d, r8d
mov dword [rsp + 0x28], ebx
xor edx, edx
mov rcx, rdi
call fcn.140109418
mov rcx, 0xffffffffffffffff
inc rcx
cmp word [rsi + rcx*2], bp
jne 0x140027d16
add rcx, 2
mov edx, 2
call fcn.1400c4f6c
mov r14, rax
test rax, rax
jne 0x140027d4e
lea rcx, str.Could_not_allocate_space_for_temporary_output_name_n
call fcn.14004f2f0
mov rcx, rdi
call fcn.1400e9320
jmp 0x140027f67
mov rdx, r14
mov rcx, rsi
sub rdx, rsi
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140027d60
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [r14 + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x140027d80
mov edx, ebx
mov rcx, r14
mov word [r14 + rax*2], 0x7e
mov rdx, qword [rsp + rdx*8 + 0x40]
call fcn.1400e9094
mov rbx, rax
test rax, rax
jne 0x140027dc6
mov rdx, r13
lea rcx, str.Could_not_open_temporary_output_file__s_n
call fcn.14004f2f0
mov rcx, rdi
call fcn.1400e9320
jmp 0x140027f5f
mov r8, rdi
lea rcx, [rsp + 0x60]
mov edx, 0x400
call fcn.140109800
test rax, rax
je 0x140027e79
mov rsi, qword [rsp + 0x38]
nop word [rax + rax]
lea rdx, [0x1401524a8]
lea rcx, [rsp + 0x60]
call fcn.140109d34
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [r15 + r8*2], bp
jne 0x140027e10
lea rcx, [rsp + 0x60]
mov rdx, r15
lea rcx, [rcx + rax*2]
call fcn.14010a2d4
lea rcx, [rsp + 0x60]
mov rdx, rbx
test eax, eax
je 0x140027e3e
call fcn.140108ea4
jmp 0x140027e5c
call fcn.140108ea4
mov r8, rsi
lea rdx, [0x14015f998]
mov rcx, rbx
call fcn.140017390
lea r12, str.SetupSourceDevice___deviceharddisk1partition1_
mov r8, rdi
lea rcx, [rsp + 0x60]
mov edx, 0x400
call fcn.140109800
test rax, rax
jne 0x140027df0
jmp 0x140027e81
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x28], eax
mov rcx, rdi
call fcn.1400e9320
mov rcx, rbx
call fcn.1400e9320
test r12, r12
je 0x140027f5a
lea rdx, [0x14015f364]
mov rcx, r14
call fcn.1400e9094
mov rcx, qword [rsp + 0x30]
lea rdx, [0x14015f9b4]
mov rbx, rax
call fcn.1400e9094
mov rdi, rax
test rbx, rbx
je 0x140027f2e
test rax, rax
je 0x140027f2e
cmp dword [rsp + 0x28], 2
lea rcx, [rsp + 0x24]
mov r9, rbx
mov r8d, 1
sete bpl
inc rbp
mov rdx, rbp
call fcn.14010a6f0
cmp rax, 1
jne 0x140027f24
mov r9, rdi
lea rcx, [rsp + 0x24]
mov r8d, 1
mov rdx, rbp
call fcn.140109c90
mov r9, rbx
lea rcx, [rsp + 0x24]
mov r8d, 1
mov rdx, rbp
call fcn.14010a6f0
cmp rax, 1
je 0x140027ef2
mov rcx, rbx
call fcn.1400e9320
jmp 0x140027f52
mov rdx, r13
lea rcx, str.Could_not_write__s___original_file_has_been_left_unmodified_n
call fcn.14004f2f0
mov r12, rbp
test rbx, rbx
je 0x140027f4d
mov rcx, rbx
call fcn.1400e9320
test rdi, rdi
je 0x140027f5a
mov rcx, rdi
call fcn.1400e9320
mov rsi, qword [rsp + 0x30]
mov rcx, r14
call fcn.14010a868
mov rbx, qword [rsp + 0x8a8]
mov rdi, qword [rsp + 0x8b8]
mov rcx, rsi
call fcn.1400e8c70
mov rcx, r14
call fcn.1400e8c70
mov rcx, r15
call fcn.1400e8c70
mov rcx, qword [rsp + 0x38]
call fcn.1400e8c70
mov rsi, qword [rsp + 0x8b0]
mov rax, r12
jmp 0x140027fa8
xor eax, eax
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.1400b2a30
add rsp, 0x870
pop r15
pop r14
pop r13
pop r12
pop rbp
ret