Function at 0x140027fd0
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, [0x14015f8c8]
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 0x1400285e1
test rdx, rdx
je 0x1400285e1
test rbx, rbx
je 0x1400285e1
test r9, r9
je 0x1400285e1
cmp byte [rcx], al
je 0x1400285e1
cmp byte [rdx], al
je 0x1400285e1
cmp byte [r8], al
je 0x1400285e1
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 0x1400280d5
inc rax
test ecx, ecx
jne 0x1400280c0
test r8d, r8d
je 0x1400285e1
mov rcx, rsi
call fcn.140025a90
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x140028104
mov rdx, rsi
lea rcx, str.Could_not_convert__s_to_UTF_16
call fcn.14004f2f0
jmp 0x1400285ae
mov rcx, rdi
call fcn.140025a90
mov r13, rax
test rax, rax
jne 0x140028128
mov rdx, rdi
lea rcx, str.Could_not_convert__s_to_UTF_16
call fcn.14004f2f0
jmp 0x1400285ae
mov rcx, rbx
call fcn.140025a90
mov r14, rax
test rax, rax
jne 0x14002814c
mov rdx, rbx
lea rcx, str.Could_not_convert__s_to_UTF_16
call fcn.14004f2f0
jmp 0x1400285ae
mov rbx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140025a90
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140028138
mov rbx, qword [rsp + 0x48]
lea rdx, str.r__ccsUNICODE
mov rcx, rbx
call fcn.1400e9094
mov qword [rsp + 0x60], rax
mov rsi, rax
test rax, rax
jne 0x14002819a
mov rdx, qword [rsp + 0x38]
lea rcx, str.Could_not_open_file__s_n
call fcn.14004f2f0
jmp 0x1400285ae
mov r9, rsi
lea rcx, [rsp + 0x24]
mov edx, 2
mov r8d, 1
call fcn.14010a6f0
cmp rax, 1
je 0x1400281e2
mov rcx, rsi
call fcn.14010a230
test eax, eax
jne 0x1400281d5
mov rdx, qword [rsp + 0x38]
lea rcx, str.Could_not_read_file__s_n
call fcn.14004f2f0
mov rcx, rsi
call fcn.1400e9320
jmp 0x1400285ae
movzx eax, word [rsp + 0x24]
cmp eax, 0xbbef
je 0x1400281fe
cmp eax, 0xfeff
mov edi, 2
cmovne edi, r15d
jmp 0x140028203
mov edi, 1
xor r8d, r8d
mov dword [rsp + 0x30], edi
xor edx, edx
mov rcx, rsi
call fcn.140109418
mov rcx, 0xffffffffffffffff
nop dword [rax + rax]
inc rcx
cmp word [rbx + rcx*2], r12w
jne 0x140028220
add rcx, 2
mov edx, 2
call fcn.1400c4f6c
mov qword [rsp + 0x40], rax
mov r12, rax
test rax, rax
jne 0x14002825e
lea rcx, str.Could_not_allocate_space_for_temporary_output_name_n
call fcn.14004f2f0
mov rcx, rsi
call fcn.1400e9320
jmp 0x1400285ae
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 0x140028270
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [r12 + rax*2 + 2], r15w
lea rax, [rax + 1]
jne 0x140028290
mov edx, edi
mov rcx, r12
mov word [r12 + rax*2], 0x7e
mov rdx, qword [rsp + rdx*8 + 0x68]
call fcn.1400e9094
mov r12, rax
test rax, rax
jne 0x1400282dd
mov rdx, qword [rsp + 0x38]
lea rcx, str.Could_not_open_temporary_output_file__s_n
call fcn.14004f2f0
mov rcx, rsi
call fcn.1400e9320
mov r12, qword [rsp + 0x40]
jmp 0x1400285a6
mov r8, rsi
lea rcx, [rbp - 0x30]
mov edx, 0x400
call fcn.140109800
test rax, rax
je 0x14002847c
nop word [rax + rax]
lea rdx, [0x1401524a8]
lea rcx, [rbp - 0x30]
call fcn.140109d34
mov rbx, rax
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [r13 + r8*2], r15w
jne 0x140028320
lea rcx, [rbp - 0x30]
mov rdx, r13
lea rcx, [rcx + rax*2]
call fcn.14010a2d4
test eax, eax
je 0x140028355
mov rdx, r12
lea rcx, [rbp - 0x30]
call fcn.140108ea4
mov rdi, qword [rsp + 0x28]
jmp 0x140028460
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [r13 + rax*2], r15w
jne 0x140028360
add rbx, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1401524a8]
lea rcx, [rcx + rbx*2]
call fcn.140109d34
test rax, rax
je 0x14002833f
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.1400b3fa8
mov qword [rbp + rdi - 0x58], rax
mov rcx, rax
test rax, rax
je 0x1400283ee
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [r14 + rbx*2], r15w
jne 0x1400283c4
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 0x1400283a0
cmp qword [rbp - 0x58], r15
je 0x14002833f
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, [0x14015fad0]
mov rcx, r12
lea r8, [r8 + rax*2]
call fcn.140017390
lea rbx, [rbx + 1]
lea rax, [rbx*8]
cmp qword [rbp + rax - 0x58], r15
jne 0x140028403
mov rax, qword [rbp + rax - 0x80]
lea r8, [rbp - 0x30]
lea rdx, [0x14015fadc]
mov rcx, r12
lea r8, [r8 + rax*2]
call fcn.140017390
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.140109800
test rax, rax
jne 0x140028300
jmp 0x140028483
mov dword [rsp + 0x30], edi
mov rdi, r15
mov rbx, qword [rsp + 0x40]
mov rcx, rsi
call fcn.1400e9320
mov rcx, r12
mov qword [rsp + 0x28], rdi
mov rsi, rbx
call fcn.1400e9320
mov r12, rbx
test rdi, rdi
je 0x1400285a1
lea rdx, [0x14015f364]
mov rcx, rbx
call fcn.1400e9094
mov rcx, qword [rsp + 0x48]
lea rdx, [0x14015f9b4]
mov rdi, rax
call fcn.1400e9094
mov rbx, rax
test rdi, rdi
je 0x14002856f
test rax, rax
je 0x14002856f
cmp dword [rsp + 0x30], 2
lea rcx, [rsp + 0x20]
mov r9, rdi
mov r8d, 1
sete r15b
inc r15
mov rdx, r15
call fcn.14010a6f0
cmp rax, 1
jne 0x14002855d
mov rax, qword [rsp + 0x28]
mov esi, dword [rbp + 0x850]
mov qword [rsp + 0x28], rax
nop dword [rax]
test esi, esi
je 0x14002852b
cmp byte [rsp + 0x20], 0xd
je 0x140028541
mov r9, rbx
lea rcx, [rsp + 0x20]
mov r8d, 1
mov rdx, r15
call fcn.140109c90
mov r9, rdi
lea rcx, [rsp + 0x20]
mov r8d, 1
mov rdx, r15
call fcn.14010a6f0
cmp rax, 1
je 0x140028520
mov rcx, rdi
call fcn.1400e9320
mov rcx, rbx
call fcn.1400e9320
jmp 0x1400285a6
mov rdx, qword [rsp + 0x38]
lea rcx, str.Could_not_write__s___original_file_has_been_left_unmodified._n
call fcn.14004f2f0
mov qword [rsp + 0x28], r15
test rdi, rdi
je 0x140028592
mov rcx, rdi
call fcn.1400e9320
test rbx, rbx
je 0x1400285a6
mov rcx, rbx
call fcn.1400e9320
jmp 0x1400285a6
mov qword [rsp + 0x28], rdi
mov rcx, r12
call fcn.14010a868
mov rcx, qword [rsp + 0x48]
call fcn.1400e8c70
mov rcx, r12
call fcn.1400e8c70
mov rcx, r13
call fcn.1400e8c70
mov rcx, r14
call fcn.1400e8c70
mov rcx, qword [rsp + 0x50]
call fcn.1400e8c70
mov rax, qword [rsp + 0x28]
jmp 0x1400285e3
xor eax, eax
mov rcx, qword [rbp + 0x7d0]
xor rcx, rsp
call fcn.1400b2a30
add rsp, 0x8e8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret