Function at 0x1400bbae0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov ebp, r9d
mov rbx, r8
mov r12, rdx
mov rsi, rcx
mov rdi, qword [rsp + 0x100]
mov rax, qword [0x140418038]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov ecx, 0x130
call fcn.140240cd8
mov r14, rax
test rdi, rdi
je 0x1400bbb2f
lock inc dword [rdi + 8]
lea r15, [rsp + 0x30]
mov rcx, r15
mov rdx, rbx
call fcn.1400af820
mov rcx, r14
mov rdx, r12
mov r8d, ebp
xor r9d, r9d
call fcn.1400af5b0
lea rax, [0x1403a5d70]
mov qword [r14 + 0x38], rax
lea r12, [r14 + 0x40]
lea rdx, str.ChannelWin
lea r8, str.....mojocorechannel_win.cc
lea r13, [rsp + 0x70]
mov rcx, r13
mov r9d, 0x5a
call fcn.1401de830
mov rcx, r12
mov rdx, r13
call fcn.1400f4a70
lea rax, [0x1403a8af8]
mov qword [r14], rax
lea rax, [0x1403a5d60]
mov qword [r14 + 0x38], rax
lea rax, [0x1403a5f20]
mov qword [r14 + 0x40], rax
mov al, byte [r15 + 1]
mov byte [r14 + 0x68], al
mov qword [r14 + 0x70], r14
test r14, r14
je 0x1400bbbc1
lock inc dword [r14 + 8]
mov qword [r14 + 0x78], 0
mov byte [r14 + 0x80], 0
mov qword [r14 + 0x88], rdi
test rdi, rdi
je 0x1400bbbe1
lock inc dword [rdi + 8]
lea rcx, [r14 + 0x90]
call fcn.1400f4a60
lea rcx, [r14 + 0xb0]
call fcn.1400f4a60
mov word [r14 + 0xd0], 0
lea rcx, [r14 + 0xd8]
call fcn.1401cef50
lea rcx, [r14 + 0xe0]
call fcn.1400f4a60
xorps xmm0, xmm0
movups xmmword [r14 + 0x100], xmm0
movups xmmword [r14 + 0x110], xmm0
mov r15, qword [0x14042cd20]
test r15, r15
jne 0x1400bbdc7
xor r12d, r12d
mov rax, qword [0x14041b9a0]
and rax, r12
cmp rax, qword [0x14041b988]
je 0x1400bbdf8
lea r15, [r14 + 0x78]
mov qword [r14 + 0x120], r12
mov dword [r14 + 0x128], 1
mov rax, qword [rsp + 0x50]
inc rax
cmp rax, 2
jae 0x1400bbe05
lea rdx, [rsp + 0x38]
lea r12, [rsp + 0x58]
mov rcx, r12
call fcn.140112300
lea r13, [rsp + 0x70]
mov rcx, r13
mov rdx, r12
call fcn.1401f59e0
mov dword [r13], 0
mov r12, qword [r13 + 8]
mov qword [r13 + 8], 0
test r12, r12
je 0x1400bbecc
cmp r12, 0xffffffffffffffff
je 0x1400bbed4
call fcn.1401de850
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.1401de850
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r13, [r12 + 1]
cmp r13, 2
jb 0x1400bbcf3
call fcn.1401de850
cmp qword [r15], r12
je 0x1400bbd26
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [r15]
inc rax
cmp rax, 2
jae 0x1400bbdae
cmp r13, 2
jb 0x1400bbd1e
mov qword [r15], r12
call fcn.1401de850
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsp + 0x70]
call fcn.1401f5b00
lea rcx, [rsp + 0x58]
call fcn.140112340
mov rax, qword [r15]
inc rax
cmp rax, 1
jbe 0x1400bbee4
lea rcx, [rsp + 0x30]
call fcn.1400af860
test rdi, rdi
je 0x1400bbd63
lock dec dword [rdi + 8]
je 0x1400bbee7
mov qword [rsi], r14
test r14, r14
je 0x1400bbd70
lock inc dword [r14 + 8]
mov rcx, rbx
call fcn.1400af860
test rdi, rdi
je 0x1400bbd87
lock dec dword [rdi + 8]
je 0x1400bbef4
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140242430
mov rax, rsi
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1401de850
mov rcx, qword [r15]
call fcn.1401f05b0
mov qword [r15], 0
jmp 0x1400bbd10
mov eax, dword [0x14042b5b8]
mov ecx, dword [0x14042a04c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400bbf01
mov r12, qword [0x14042b5b0]
jmp 0x1400bbc41
mov rcx, r12
call fcn.1401e07d0
jmp 0x1400bbc58
lea rdx, [rsp + 0x48]
lea r12, [rsp + 0x58]
mov rcx, r12
call fcn.140112300
lea r13, [rsp + 0x70]
mov rcx, r13
mov rdx, r12
call fcn.1401f59e0
mov dword [r13], 0
xor eax, eax
mov qword [rsp + 0x68], rax
mov r12, qword [r13 + 8]
mov qword [r13 + 8], rax
lea rax, [r12 + 1]
cmp rax, 2
jb 0x1400bbe4e
call fcn.1401de850
lea r13, [rsp + 0x68]
mov rcx, r13
mov rdx, r12
call fcn.1401c8060
mov r12, qword [r13]
mov qword [r13], 0
lea rax, [r12 + 1]
cmp rax, 2
jb 0x1400bbe7a
call fcn.1401de850
mov rcx, r15
mov rdx, r12
call fcn.1401c8060
mov rax, qword [rsp + 0x68]
inc rax
cmp rax, 2
jb 0x1400bbeab
call fcn.1401de850
mov rcx, qword [rsp + 0x68]
call fcn.1401f05b0
mov qword [rsp + 0x68], 0
lea rcx, [rsp + 0x70]
call fcn.1401f5b00
lea rcx, [rsp + 0x58]
call fcn.140112340
mov byte [r14 + 0x80], 1
jmp 0x1400bbd3a
xor r12d, r12d
jmp 0x1400bbce3
xor r12d, r12d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x1400bbcdb
int3
mov rcx, rdi
call fcn.1401ea5f0
jmp 0x1400bbd63
mov rcx, rdi
call fcn.1401ea5f0
jmp 0x1400bbd87
lea rcx, [0x14042b5b8]
call fcn.140240e30
cmp dword [0x14042b5b8], 0xffffffff
jne 0x1400bbdec
add r15, 0xd0
lea r9, [rsp + 0x58]
mov qword [r9], 0
lea rax, str.channel_win_total_outgoing_messages
lea rdx, [rsp + 0x70]
mov qword [rdx], rax
mov qword [rdx + 8], 0x23
mov qword [rsp + 0x20], 8
mov rcx, r15
mov r8b, 8
call fcn.1402aff30
mov qword [0x14042b5b0], rax
lea rcx, [0x14042b5b8]
call fcn.140240ec8
jmp 0x1400bbdec