Function at 0x140063d00
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x80
mov qword [rax - 0x18], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rdi, rcx
cmp byte [rcx + 0x78], 0
je 0x140063db0
call fcn.140064050
test al, al
jne 0x140063db0
mov edi, dword [0x1401cbd80]
mov ecx, edi
imul ecx, edi
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x17
sub ecx, edx
cmp ecx, 0x13
jne 0x14006402c
mov r8d, 0xf3
xor r11d, r11d
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov ebx, eax
test ebx, ebx
jle 0x140063da3
mov eax, edi
cdq
and edx, 3
add eax, edx
sar eax, 2
xor r9d, r9d
mov r10, rbx
test eax, eax
jle 0x140063d9b
mov ecx, r9d
mov edx, eax
add r8d, ecx
dec ecx
dec rdx
jne 0x140063d91
add r9d, r11d
dec r10
jne 0x140063d88
inc r11d
cmp r11d, r8d
jl 0x140063d73
jmp 0x14006402c
lea rsi, [rdi + 0xb0]
mov rax, qword [rsi + 8]
cmp qword [rsi], rax
jne 0x140063e84
lea rax, [rdi + 0xd0]
mov qword [rsp + 0x38], rax
lea rbx, [rax + 8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
cmp qword [rdi + 0x120], 0
jne 0x140063e32
mov ecx, dword [0x1401cbd80]
imul ecx, ecx
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xf
sub ecx, edx
cmp ecx, 0xb
jne 0x140063e24
mov edx, 0xf5
lea r8d, [rdx + 1]
lea rcx, str._d__d_n
call fcn.1400d1f8c
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x14006402c
lea rcx, [rdi + 0x100]
lea rdx, [rsp + 0x40]
call fcn.140039750
mov rdx, rax
mov rax, qword [rax]
test rax, rax
je 0x140063e51
mov rax, qword [rax]
mov rcx, qword [rax + 0x10]
dec rcx
and rcx, qword [rdx + 0x10]
mov rax, qword [rax + 8]
mov rdx, qword [rax + rcx*8]
add rdx, 8
mov rcx, rsi
call fcn.1400345e0
mov qword [rdi + 0xc8], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [rsp + 0x30], 0
mov rdx, qword [rsi]
mov r8, qword [rsi + 8]
sub r8, rdx
lea rcx, [rdi + 0x80]
add rdx, qword [rdi + 0xc8]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x30]
mov rcx, qword [rdi + 0xa8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140063f4a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x140063f15
cmp eax, 0x3e5
je 0x140063f0f
lea rax, str.Channel_write_failure
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x40]
call fcn.1400d4b08
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x40], rax
lea rdx, [0x14018e4e8]
lea rcx, [rsp + 0x40]
call fcn.1400d9558
int3
mov byte [rdi + 0x78], 1
jmp 0x140063f4a
lea rcx, [rsp + 0x58]
call fcn.1400d4b80
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x58], rax
lea rax, vtable.CRSimpleIPCExceptionDisconnected.0
mov qword [rsp + 0x58], rax
lea rdx, [0x14018e4a0]
lea rcx, [rsp + 0x58]
call fcn.1400d9558
int3
cmp byte [rdi + 0x78], 0
jne 0x14006402c
mov r8d, dword [0x1401cbd80]
mov ecx, r8d
imul ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
shl eax, 2
sub ecx, eax
cmp ecx, 0xf
jne 0x140063fae
mov ecx, r8d
test r8d, r8d
je 0x140063fa4
dec ecx
je 0x140063f98
inc r8d
mov dword [0x1401cbd80], r8d
jmp 0x140063fae
mov dword [0x1401cbd80], 0
jmp 0x140063fae
mov dword [0x1401cbd80], 2
mov eax, dword [rsp + 0x30]
add qword [rdi + 0xc8], rax
mov bpl, 1
mov rax, qword [rsi + 8]
sub rax, qword [rsi]
cmp qword [rdi + 0xc8], rax
jne 0x140064019
lea rax, [rdi + 0xd0]
mov qword [rsp + 0x38], rax
lea rbx, [rax + 8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea rcx, [rdi + 0x100]
call fcn.140064560
mov rax, qword [rsi]
mov qword [rsi + 8], rax
mov qword [rdi + 0xc8], 0
cmp qword [rdi + 0x120], 0
setne bpl
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rdi + 0xa0]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
movzx eax, bpl
jmp 0x14006402e
xor al, al
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret