Function at 0x140060f70
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x80
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rdi, rcx
cmp byte [rcx + 0x78], 0
je 0x140060fa4
call fcn.1400612a0
test al, al
je 0x14006127f
lea rsi, [rdi + 0xb0]
mov rax, qword [rsi + 8]
xor r14d, r14d
cmp qword [rsi], rax
jne 0x140061092
mov ecx, dword [0x1401c4d60]
imul ecx, ecx
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, 0xb
jne 0x14006100a
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
lea rax, [rdi + 0xd0]
mov qword [rsp + 0xa8], rax
lea rbx, [rax + 8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
cmp qword [rdi + 0x120], 0
jne 0x14006103f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x14006127f
lea rcx, [rdi + 0x100]
lea rdx, [rsp + 0x60]
call fcn.140036a80
mov rdx, rax
mov rax, qword [rax]
test rax, rax
jne 0x140061060
mov rax, r14
jmp 0x140061063
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.140031b60
mov qword [rdi + 0xc8], r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [rsp + 0xa0], r14d
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 + 0xa0]
mov rcx, qword [rdi + 0xa8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140061161
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x14006112c
cmp eax, 0x3e5
je 0x140061126
lea rax, str.Channel_write_failure
mov qword [rsp + 0xa8], rax
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x60]
call fcn.1400d1758
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x60], rax
lea rdx, [0x140187488]
lea rcx, [rsp + 0x60]
call fcn.1400d61a8
int3
mov byte [rdi + 0x78], 1
jmp 0x140061161
lea rcx, [rsp + 0x48]
call fcn.1400d17d0
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x48], rax
lea rax, vtable.CRSimpleIPCExceptionDisconnected.0
mov qword [rsp + 0x48], rax
lea rdx, [0x140187440]
lea rcx, [rsp + 0x48]
call fcn.1400d61a8
int3
cmp byte [rdi + 0x78], 0
jne 0x140061249
mov eax, dword [rsp + 0xa0]
add qword [rdi + 0xc8], rax
mov r8d, dword [0x1401c4d60]
mov ecx, r8d
imul ecx, r8d
mov eax, 0x30c30c31
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x15
sub ecx, edx
cmp ecx, 0x13
jne 0x1400611ac
inc r8d
mov dword [0x1401c4d60], r8d
mov bpl, 1
lea ecx, [r8 + 1]
imul ecx, r8d
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, 0xd
jne 0x1400611da
inc dword [0x1401c66c0]
mov rax, qword [rsi + 8]
sub rax, qword [rsi]
cmp qword [rdi + 0xc8], rax
jne 0x140061236
lea rax, [rdi + 0xd0]
mov qword [rsp + 0xa8], rax
lea rbx, [rax + 8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea rcx, [rdi + 0x100]
call fcn.1400615d0
mov rax, qword [rsi]
mov qword [rsi + 8], rax
mov qword [rdi + 0xc8], r14
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 0x140061281
mov r9d, dword [0x1401c4d60]
lea r8d, [r9 + 1]
mov ecx, r8d
imul ecx, r9d
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xd
sub ecx, edx
cmp ecx, 9
cmove r9d, r8d
mov dword [0x1401c4d60], r9d
xor al, al
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret