Function at 0x14004eab8
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r13
push r14
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rbx, rcx
cmp byte [rcx + 0x78], 0
je 0x14004eaeb
call fcn.14004edc8
test al, al
je 0x14004edb1
lea rsi, [rbx + 0xb0]
mov rax, qword [rsi + 8]
mov edi, 1
or r13, 0xffffffffffffffff
cmp qword [rsi], rax
jne 0x14004ec3f
mov r8d, dword [0x1401a3d80]
lea ecx, [r8 + 2]
lea eax, [r8 + 1]
imul ecx, eax
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, edi
jne 0x14004eb77
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x64
sub r8d, edx
add r8d, 0x2f4
movsxd rcx, r8d
lea eax, [rdi + 3]
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.1400ba748
mov rcx, rax
call fcn.1400bc20c
lea rax, [rbx + 0xd0]
mov qword [rbp + 0x38], rax
lea r14, [rax + 8]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
cmp qword [rbx + 0x120], 0
jne 0x14004eba8
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x14004edb1
lea rcx, [rbx + 0x100]
lea rdx, [rbp - 0x20]
call fcn.14002d908
mov rcx, qword [rax]
test rcx, rcx
je 0x14004ebc3
mov rcx, qword [rcx]
mov rdx, qword [rcx + 0x10]
sub rdx, rdi
and rdx, qword [rax + 0x10]
mov rcx, qword [rcx + 8]
mov rdx, qword [rcx + rdx*8]
add rdx, 8
mov rcx, rsi
call fcn.14002a30c
mov ecx, dword [0x1401a3d80]
lea r8d, [rcx + 1]
imul r8d, ecx
mov eax, 0x66666667
imul r8d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
shl eax, 2
sub r8d, eax
cmp r8d, 0x13
jne 0x14004ec2e
mov r8d, edi
mov eax, edi
mov edx, 0xc4
lea ecx, [rax + r8]
lea r8d, [rax]
mov eax, ecx
sub edx, edi
jns 0x14004ec1b
mov dword [0x1401a3d80], ecx
and qword [rbx + 0xc8], 0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
and dword [rbp + 0x30], 0
mov rdx, qword [rsi]
mov r8, qword [rsi + 8]
sub r8, rdx
lea rcx, [rbx + 0x80]
add rdx, qword [rbx + 0xc8]
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x30]
mov rcx, qword [rbx + 0xa8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14004ecf3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x14004ecc2
cmp eax, 0x3e5
je 0x14004ecbc
lea rax, str.Channel_write_failure
mov qword [rbp + 0x38], rax
lea rdx, [rbp + 0x38]
lea rcx, [rbp - 0x20]
call fcn.1400be558
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rbp - 0x20], rax
lea rdx, [0x140166630]
lea rcx, [rbp - 0x20]
call fcn.1400c2fa8
int3
mov byte [rbx + 0x78], dil
jmp 0x14004ecf3
lea rcx, [rbp - 0x38]
call fcn.1400be5d0
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rbp - 0x38], rax
lea rax, vtable.CRSimpleIPCExceptionDisconnected.0
mov qword [rbp - 0x38], rax
lea rdx, [0x1401665e8]
lea rcx, [rbp - 0x38]
call fcn.1400c2fa8
int3
cmp byte [rbx + 0x78], 0
jne 0x14004edb1
mov eax, dword [rbp + 0x30]
add qword [rbx + 0xc8], rax
mov rax, qword [rsi + 8]
sub rax, qword [rsi]
cmp qword [rbx + 0xc8], rax
jne 0x14004ed9f
lea rax, [rbx + 0xd0]
mov qword [rbp + 0x38], rax
lea r14, [rax + 8]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
cmp qword [rbx + 0x120], 0
je 0x14004ed7b
mov rcx, qword [rbx + 0x110]
sub rcx, rdi
and rcx, qword [rbx + 0x118]
mov rax, qword [rbx + 0x108]
mov rcx, qword [rax + rcx*8]
mov rax, qword [rcx]
xor edx, edx
call qword [rax]
add qword [rbx + 0x120], r13
jne 0x14004ed74
and qword [rbx + 0x118], 0
jmp 0x14004ed7b
add qword [rbx + 0x118], rdi
mov rax, qword [rsi]
mov qword [rsi + 8], rax
and qword [rbx + 0xc8], 0
cmp qword [rbx + 0x120], 0
setne dil
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbx + 0xa0]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov al, dil
jmp 0x14004edb3
xor al, al
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret