Function at 0x14011eea0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0xf0
mov qword [rsp + 0x88], 0xfffffffffffffffe
lea rdx, [0x140239b34]
mov rcx, qword [rsp + 0x110]
call fcn.1400ab5cc
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14011ef78
lea rdx, str.Open_file_failed:
lea rcx, [rsp + 0x48]
call fcn.14000d990
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x98], rax
mov r8, qword [rsp + 0x110]
mov rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0x50]
call fcn.1400010b0
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xa8]
call fcn.140050200
xor r8d, r8d
xor edx, edx
mov rcx, rax
call fcn.1400f0bf0
nop
lea rcx, [rsp + 0x50]
call fcn.140007060
nop
lea rcx, [rsp + 0x48]
call fcn.140007060
jmp 0x14011f216
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x20]
call fcn.1400af6d0
mov rcx, qword [rsp + 0x20]
call fcn.1400af944
mov dword [rsp + 0x30], eax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x20]
call fcn.1400af6d0
mov eax, dword [rsp + 0x30]
cdq
sub eax, edx
sar eax, 1
movsxd rcx, eax
mov eax, 2
mul rcx
mov rcx, rax
mov rax, 0xffffffffffffffff
cmovo rcx, rax
call fcn.140073290
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x30]
cdq
sub eax, edx
sar eax, 1
sub eax, 1
movsxd rdx, eax
xor ecx, ecx
mov rax, qword [rsp + 0x28]
mov word [rax + rdx*2], cx
mov r9, qword [rsp + 0x20]
mov r8d, 1
mov edx, 2
lea rcx, [rsp + 0x40]
call fcn.1400ae1e4
mov eax, dword [rsp + 0x30]
sub eax, 2
movsxd rdx, eax
mov r9, qword [rsp + 0x20]
mov r8d, 1
mov rcx, qword [rsp + 0x28]
call fcn.1400ae1e4
mov rcx, qword [rsp + 0x20]
call fcn.1400ab86c
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x38]
call fcn.140002050
nop
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140073288
mov rdx, qword [rsp + 0x108]
lea rcx, [rsp + 0x68]
call fcn.140002d40
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
mov rdx, qword [rsp + 0x100]
lea rcx, [rsp + 0x70]
call fcn.140002d40
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0xc8], rax
mov rcx, qword [rsp + 0xb8]
call fcn.14000f5d0
mov rbx, rax
mov rcx, qword [rsp + 0xc8]
call fcn.14000f5d0
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140006380
nop
lea rcx, [rsp + 0x70]
call fcn.140002dd0
nop
lea rcx, [rsp + 0x68]
call fcn.140002dd0
lea rdx, [0x140239b54]
mov rcx, qword [rsp + 0x110]
call fcn.1400ab5cc
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14011f1b8
mov rdx, qword [rsp + 0x110]
lea rcx, [rsp + 0x78]
call fcn.140002050
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xd8], rax
mov r8, qword [rsp + 0xd8]
lea rdx, str.Write_reg_file_failed:
lea rcx, [rsp + 0x80]
call fcn.140006d10
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0xe8], rax
mov rcx, qword [rsp + 0xe8]
call fcn.140050200
xor r8d, r8d
xor edx, edx
mov rcx, rax
call fcn.1400f0bf0
nop
lea rcx, [rsp + 0x80]
call fcn.140007060
nop
lea rcx, [rsp + 0x78]
call fcn.140007060
nop
lea rcx, [rsp + 0x38]
call fcn.140007060
jmp 0x14011f216
mov r9, qword [rsp + 0x20]
mov r8d, 1
mov edx, 2
lea rcx, [rsp + 0x40]
call fcn.1400ade24
lea rcx, [rsp + 0x38]
call fcn.1400019a0
shl eax, 1
movsxd rbx, eax
lea rcx, [rsp + 0x38]
call fcn.140050200
mov r9, qword [rsp + 0x20]
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call fcn.1400ade24
mov rcx, qword [rsp + 0x20]
call fcn.1400ab86c
nop
lea rcx, [rsp + 0x38]
call fcn.140007060
add rsp, 0xf0
pop rbx
ret