Function at 0x140027f10
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7e8]
sub rsp, 0x8e8
mov rax, qword [0x140193440]
xor rax, rsp
mov qword [rbp + 0x7d0], rax
xor r15d, r15d
mov qword [rsp + 0x58], r9
lea rax, [0x14015f818]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x68], rax
xorps xmm0, xmm0
lea rax, str.w__ccsUTF_8
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x70], rax
xorps xmm1, xmm1
lea rax, str.w__ccsUTF_16LE
mov word [rsp + 0x24], r15w
mov qword [rsp + 0x78], rax
mov rbx, r8
xor eax, eax
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x60], rax
mov rdi, rdx
mov qword [rsp + 0x28], r15
mov rsi, rcx
mov r13d, r15d
mov r12d, r15d
mov r14d, r15d
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x80], xmm1
movups xmmword [rbp - 0x70], xmm1
test rcx, rcx
je 0x140028521
test rdx, rdx
je 0x140028521
test rbx, rbx
je 0x140028521
test r9, r9
je 0x140028521
cmp byte [rcx], al
je 0x140028521
cmp byte [rdx], al
je 0x140028521
cmp byte [r8], al
je 0x140028521
mov rax, rbx
sub r9, rbx
nop dword [rax]
nop word [rax + rax]
movzx r8d, byte [rax]
movzx ecx, byte [rax + r9]
sub r8d, ecx
jne 0x140028015
inc rax
test ecx, ecx
jne 0x140028000
test r8d, r8d
je 0x140028521
mov rcx, rsi
call fcn.1400259f0
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x140028044
mov rdx, rsi
lea rcx, str.Could_not_convert__s_to_UTF_16
call fcn.14004f910
jmp 0x1400284ee
mov rcx, rdi
call fcn.1400259f0
mov r13, rax
test rax, rax
jne 0x140028068
mov rdx, rdi
lea rcx, str.Could_not_convert__s_to_UTF_16
call fcn.14004f910
jmp 0x1400284ee
mov rcx, rbx
call fcn.1400259f0
mov r14, rax
test rax, rax
jne 0x14002808c
mov rdx, rbx
lea rcx, str.Could_not_convert__s_to_UTF_16
call fcn.14004f910
jmp 0x1400284ee
mov rbx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.1400259f0
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140028078
mov rbx, qword [rsp + 0x48]
lea rdx, str.r__ccsUNICODE
mov rcx, rbx
call fcn.1400e94a4
mov qword [rsp + 0x60], rax
mov rsi, rax
test rax, rax
jne 0x1400280da
mov rdx, qword [rsp + 0x38]
lea rcx, str.Could_not_open_file__s_n
call fcn.14004f910
jmp 0x1400284ee
mov edx, 2
lea rcx, [rsp + 0x24]
mov r9, rsi
lea r8d, [rdx - 1]
call fcn.14010ab00
cmp rax, 1
je 0x140028120
mov rcx, rsi
call fcn.14010a640
test eax, eax
jne 0x140028113
mov rdx, qword [rsp + 0x38]
lea rcx, str.Could_not_read_file__s_n
call fcn.14004f910
mov rcx, rsi
call fcn.1400e9730
jmp 0x1400284ee
movzx eax, word [rsp + 0x24]
cmp eax, 0xbbef
je 0x14002813c
cmp eax, 0xfeff
mov edi, 2
cmovne edi, r15d
jmp 0x140028141
mov edi, 1
xor r8d, r8d
mov dword [rsp + 0x30], edi
xor edx, edx
mov rcx, rsi
call fcn.140109828
mov rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp word [rbx + rcx*2], r12w
jne 0x140028160
add rcx, 2
mov edx, 2
call fcn.1400c537c
mov qword [rsp + 0x40], rax
mov r12, rax
test rax, rax
jne 0x14002819e
lea rcx, str.Could_not_allocate_space_for_temporary_output_name_n
call fcn.14004f910
mov rcx, rsi
call fcn.1400e9730
jmp 0x1400284ee
mov rdx, r12
mov rcx, rbx
sub rdx, rbx
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x1400281b0
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [r12 + rax*2 + 2], r15w
lea rax, [rax + 1]
jne 0x1400281d0
mov edx, edi
mov rcx, r12
mov word [r12 + rax*2], 0x7e
mov rdx, qword [rsp + rdx*8 + 0x68]
call fcn.1400e94a4
mov r12, rax
test rax, rax
jne 0x14002821d
mov rdx, qword [rsp + 0x38]
lea rcx, str.Could_not_open_temporary_output_file__s_n
call fcn.14004f910
mov rcx, rsi
call fcn.1400e9730
mov r12, qword [rsp + 0x40]
jmp 0x1400284e6
mov r8, rsi
lea rcx, [rbp - 0x30]
mov edx, 0x400
call fcn.140109c10
test rax, rax
je 0x1400283bc
nop word [rax + rax]
lea rdx, [0x140152478]
lea rcx, [rbp - 0x30]
call fcn.14010a144
mov rbx, rax
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [r13 + r8*2], r15w
jne 0x140028260
lea rcx, [rbp - 0x30]
mov rdx, r13
lea rcx, [rcx + rax*2]
call fcn.14010a6e4
test eax, eax
je 0x140028295
mov rdx, r12
lea rcx, [rbp - 0x30]
call fcn.1401092b4
mov rdi, qword [rsp + 0x28]
jmp 0x1400283a0
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [r13 + rax*2], r15w
jne 0x1400282a0
add rbx, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140152478]
lea rcx, [rcx + rbx*2]
call fcn.14010a144
test rax, rax
je 0x14002827f
add rbx, rax
mov qword [rbp - 0x80], r15
mov rdi, r15
nop dword [rax]
nop word [rax + rax]
lea rcx, [rbp - 0x30]
mov rdx, r14
lea rcx, [rcx + rbx*2]
call fcn.1400b33c8
mov qword [rbp + rdi - 0x58], rax
mov rcx, rax
test rax, rax
je 0x14002832e
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [r14 + rbx*2], r15w
jne 0x140028304
lea rdx, [rbp - 0x30]
mov word [rcx], r15w
sub rax, rdx
sar rax, 1
add rbx, rax
mov qword [rbp + rdi - 0x78], rbx
add rdi, 8
cmp rdi, 0x20
jb 0x1400282e0
cmp qword [rbp - 0x58], r15
je 0x14002827f
mov rsi, qword [rsp + 0x50]
mov rbx, r15
mov rax, r15
mov rax, qword [rbp + rax - 0x80]
lea r8, [rbp - 0x30]
mov r9, rsi
lea rdx, [0x14015fa20]
mov rcx, r12
lea r8, [r8 + rax*2]
call fcn.140016bd0
lea rbx, [rbx + 1]
lea rax, [rbx*8]
cmp qword [rbp + rax - 0x58], r15
jne 0x140028343
mov rax, qword [rbp + rax - 0x80]
lea r8, [rbp - 0x30]
lea rdx, [0x14015fa2c]
mov rcx, r12
lea r8, [r8 + rax*2]
call fcn.140016bd0
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x28], rdi
mov r8, rsi
lea rcx, [rbp - 0x30]
mov edx, 0x400
call fcn.140109c10
test rax, rax
jne 0x140028240
jmp 0x1400283c3
mov dword [rsp + 0x30], edi
mov rdi, r15
mov rbx, qword [rsp + 0x40]
mov rcx, rsi
call fcn.1400e9730
mov rcx, r12
mov qword [rsp + 0x28], rdi
mov rsi, rbx
call fcn.1400e9730
mov r12, rbx
test rdi, rdi
je 0x1400284e1
lea rdx, [0x14015f2b4]
mov rcx, rbx
call fcn.1400e94a4
mov rcx, qword [rsp + 0x48]
lea rdx, [0x14015f904]
mov rdi, rax
call fcn.1400e94a4
mov rbx, rax
test rdi, rdi
je 0x1400284af
test rax, rax
je 0x1400284af
cmp dword [rsp + 0x30], 2
lea rcx, [rsp + 0x20]
mov r9, rdi
mov r8d, 1
sete r15b
inc r15
mov rdx, r15
call fcn.14010ab00
cmp rax, 1
jne 0x14002849d
mov rax, qword [rsp + 0x28]
mov esi, dword [rbp + 0x850]
mov qword [rsp + 0x28], rax
nop dword [rax]
test esi, esi
je 0x14002846b
cmp byte [rsp + 0x20], 0xd
je 0x140028481
mov r9, rbx
lea rcx, [rsp + 0x20]
mov r8d, 1
mov rdx, r15
call fcn.14010a0a0
mov r9, rdi
lea rcx, [rsp + 0x20]
mov r8d, 1
mov rdx, r15
call fcn.14010ab00
cmp rax, 1
je 0x140028460
mov rcx, rdi
call fcn.1400e9730
mov rcx, rbx
call fcn.1400e9730
jmp 0x1400284e6
mov rdx, qword [rsp + 0x38]
lea rcx, str.Could_not_write__s___original_file_has_been_left_unmodified._n
call fcn.14004f910
mov qword [rsp + 0x28], r15
test rdi, rdi
je 0x1400284d2
mov rcx, rdi
call fcn.1400e9730
test rbx, rbx
je 0x1400284e6
mov rcx, rbx
call fcn.1400e9730
jmp 0x1400284e6
mov qword [rsp + 0x28], rdi
mov rcx, r12
call fcn.14010ac78
mov rcx, qword [rsp + 0x48]
call fcn.1400e9080
mov rcx, r12
call fcn.1400e9080
mov rcx, r13
call fcn.1400e9080
mov rcx, r14
call fcn.1400e9080
mov rcx, qword [rsp + 0x50]
call fcn.1400e9080
mov rax, qword [rsp + 0x28]
jmp 0x140028523
xor eax, eax
mov rcx, qword [rbp + 0x7d0]
xor rcx, rsp
call fcn.1400b1f80
add rsp, 0x8e8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret