Function at 0x140027ab0
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, [0x14015f818]
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 0x140027ee6
cmp byte [rcx], bpl
je 0x140027ee6
mov qword [rsp + 0x8b0], rsi
call fcn.1400259f0
mov qword [rsp + 0x30], rax
mov rsi, rax
test rax, rax
jne 0x140027b4f
mov rdx, r13
lea rcx, str.Could_not_convert__s_to_UTF_16
call fcn.14004f910
jmp 0x140027eb7
lea rcx, str._SetupData_
call fcn.1400259f0
mov r15, rax
test rax, rax
jne 0x140027b7b
lea rdx, str._SetupData_
lea rcx, str.Could_not_convert__s_to_UTF_16
call fcn.14004f910
jmp 0x140027eb7
lea rcx, str.SetupSourceDevice___deviceharddisk1partition1_
call fcn.1400259f0
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140027ba9
lea rdx, str.SetupSourceDevice___deviceharddisk1partition1_
lea rcx, str.Could_not_convert__s_to_UTF_16
call fcn.14004f910
jmp 0x140027eb7
lea rdx, str.r__ccsUNICODE
mov qword [rsp + 0x8b8], rdi
mov rcx, rsi
call fcn.1400e94a4
mov rdi, rax
test rax, rax
jne 0x140027bdc
mov rdx, r13
lea rcx, str.Could_not_open_file__s_n
call fcn.14004f910
jmp 0x140027eaf
mov edx, 2
lea rcx, [rsp + 0x20]
mov r9, rdi
lea r8d, [rdx - 1]
call fcn.14010ab00
cmp rax, 1
je 0x140027c14
mov rdx, r13
lea rcx, str.Could_not_read_file__s_n
call fcn.14004f910
mov rcx, rdi
call fcn.1400e9730
jmp 0x140027eaf
movzx eax, word [rsp + 0x20]
mov qword [rsp + 0x8a8], rbx
cmp eax, 0xbbef
je 0x140027c37
cmp eax, 0xfeff
mov ebx, 2
cmovne ebx, ebp
jmp 0x140027c3c
mov ebx, 1
xor r8d, r8d
mov dword [rsp + 0x28], ebx
xor edx, edx
mov rcx, rdi
call fcn.140109828
mov rcx, 0xffffffffffffffff
inc rcx
cmp word [rsi + rcx*2], bp
jne 0x140027c54
add rcx, 2
mov edx, 2
call fcn.1400c537c
mov r14, rax
test rax, rax
jne 0x140027c8c
lea rcx, str.Could_not_allocate_space_for_temporary_output_name_n
call fcn.14004f910
mov rcx, rdi
call fcn.1400e9730
jmp 0x140027ea7
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 0x140027ca0
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [r14 + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x140027cc0
mov edx, ebx
mov rcx, r14
mov word [r14 + rax*2], 0x7e
mov rdx, qword [rsp + rdx*8 + 0x40]
call fcn.1400e94a4
mov rbx, rax
test rax, rax
jne 0x140027d06
mov rdx, r13
lea rcx, str.Could_not_open_temporary_output_file__s_n
call fcn.14004f910
mov rcx, rdi
call fcn.1400e9730
jmp 0x140027e9f
mov r8, rdi
lea rcx, [rsp + 0x60]
mov edx, 0x400
call fcn.140109c10
test rax, rax
je 0x140027db9
mov rsi, qword [rsp + 0x38]
nop word [rax + rax]
lea rdx, [0x140152478]
lea rcx, [rsp + 0x60]
call fcn.14010a144
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [r15 + r8*2], bp
jne 0x140027d50
lea rcx, [rsp + 0x60]
mov rdx, r15
lea rcx, [rcx + rax*2]
call fcn.14010a6e4
lea rcx, [rsp + 0x60]
mov rdx, rbx
test eax, eax
je 0x140027d7e
call fcn.1401092b4
jmp 0x140027d9c
call fcn.1401092b4
mov r8, rsi
lea rdx, [0x14015f8e8]
mov rcx, rbx
call fcn.140016bd0
lea r12, str.SetupSourceDevice___deviceharddisk1partition1_
mov r8, rdi
lea rcx, [rsp + 0x60]
mov edx, 0x400
call fcn.140109c10
test rax, rax
jne 0x140027d30
jmp 0x140027dc1
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x28], eax
mov rcx, rdi
call fcn.1400e9730
mov rcx, rbx
call fcn.1400e9730
test r12, r12
je 0x140027e9a
lea rdx, [0x14015f2b4]
mov rcx, r14
call fcn.1400e94a4
mov rcx, qword [rsp + 0x30]
lea rdx, [0x14015f904]
mov rbx, rax
call fcn.1400e94a4
mov rdi, rax
test rbx, rbx
je 0x140027e6e
test rax, rax
je 0x140027e6e
cmp dword [rsp + 0x28], 2
lea rcx, [rsp + 0x24]
mov r9, rbx
mov r8d, 1
sete bpl
inc rbp
mov rdx, rbp
call fcn.14010ab00
cmp rax, 1
jne 0x140027e64
mov r9, rdi
lea rcx, [rsp + 0x24]
mov r8d, 1
mov rdx, rbp
call fcn.14010a0a0
mov r9, rbx
lea rcx, [rsp + 0x24]
mov r8d, 1
mov rdx, rbp
call fcn.14010ab00
cmp rax, 1
je 0x140027e32
mov rcx, rbx
call fcn.1400e9730
jmp 0x140027e92
mov rdx, r13
lea rcx, str.Could_not_write__s___original_file_has_been_left_unmodified_n
call fcn.14004f910
mov r12, rbp
test rbx, rbx
je 0x140027e8d
mov rcx, rbx
call fcn.1400e9730
test rdi, rdi
je 0x140027e9a
mov rcx, rdi
call fcn.1400e9730
mov rsi, qword [rsp + 0x30]
mov rcx, r14
call fcn.14010ac78
mov rbx, qword [rsp + 0x8a8]
mov rdi, qword [rsp + 0x8b8]
mov rcx, rsi
call fcn.1400e9080
mov rcx, r14
call fcn.1400e9080
mov rcx, r15
call fcn.1400e9080
mov rcx, qword [rsp + 0x38]
call fcn.1400e9080
mov rsi, qword [rsp + 0x8b0]
mov rax, r12
jmp 0x140027ee8
xor eax, eax
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.1400b1f80
add rsp, 0x870
pop r15
pop r14
pop r13
pop r12
pop rbp
ret