Function at 0x1400540e0
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 [0x14022a038]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov ecx, 0x130
call fcn.140148440
mov r14, rax
test rdi, rdi
je 0x14005412f
lock inc dword [rdi + 8]
lea r15, [rsp + 0x30]
mov rcx, r15
mov rdx, rbx
call fcn.140047e20
mov rcx, r14
mov rdx, r12
mov r8d, ebp
xor r9d, r9d
call fcn.140047bb0
lea rax, [0x140203fc8]
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.1400fc5d0
mov rcx, r12
mov rdx, r13
call fcn.1400a84d0
lea rax, [0x1402057d0]
mov qword [r14], rax
lea rax, [0x140203fb8]
mov qword [r14 + 0x38], rax
lea rax, [0x140204040]
mov qword [r14 + 0x40], rax
mov al, byte [r15 + 1]
mov byte [r14 + 0x68], al
mov qword [r14 + 0x70], r14
test r14, r14
je 0x1400541c1
lock inc dword [r14 + 8]
mov qword [r14 + 0x78], 0
mov byte [r14 + 0x80], 0
mov qword [r14 + 0x88], rdi
test rdi, rdi
je 0x1400541e1
lock inc dword [rdi + 8]
lea rcx, [r14 + 0x90]
call fcn.1400a84c0
lea rcx, [r14 + 0xb0]
call fcn.1400a84c0
mov word [r14 + 0xd0], 0
lea rcx, [r14 + 0xd8]
call fcn.1400ed3c0
lea rcx, [r14 + 0xe0]
call fcn.1400a84c0
xorps xmm0, xmm0
movups xmmword [r14 + 0x100], xmm0
movups xmmword [r14 + 0x110], xmm0
mov r15, qword [0x14023d040]
test r15, r15
jne 0x1400543c7
xor r12d, r12d
mov rax, qword [0x14022d7e0]
and rax, r12
cmp rax, qword [0x14022d7c8]
je 0x1400543f8
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 0x140054405
lea rdx, [rsp + 0x38]
lea r12, [rsp + 0x58]
mov rcx, r12
call fcn.1400b5440
lea r13, [rsp + 0x70]
mov rcx, r13
mov rdx, r12
call fcn.140112410
mov dword [r13], 0
mov r12, qword [r13 + 8]
mov qword [r13 + 8], 0
test r12, r12
je 0x1400544cc
cmp r12, 0xffffffffffffffff
je 0x1400544d4
call fcn.1400fc5f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.1400fc5f0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r13, [r12 + 1]
cmp r13, 2
jb 0x1400542f3
call fcn.1400fc5f0
cmp qword [r15], r12
je 0x140054326
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [r15]
inc rax
cmp rax, 2
jae 0x1400543ae
cmp r13, 2
jb 0x14005431e
mov qword [r15], r12
call fcn.1400fc5f0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsp + 0x70]
call fcn.140112530
lea rcx, [rsp + 0x58]
call fcn.1400b5480
mov rax, qword [r15]
inc rax
cmp rax, 1
jbe 0x1400544e4
lea rcx, [rsp + 0x30]
call fcn.140047e60
test rdi, rdi
je 0x140054363
lock dec dword [rdi + 8]
je 0x1400544e7
mov qword [rsi], r14
test r14, r14
je 0x140054370
lock inc dword [r14 + 8]
mov rcx, rbx
call fcn.140047e60
test rdi, rdi
je 0x140054387
lock dec dword [rdi + 8]
je 0x1400544f4
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140148f60
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.1400fc5f0
mov rcx, qword [r15]
call fcn.14010ef00
mov qword [r15], 0
jmp 0x140054310
mov eax, dword [0x14023b018]
mov ecx, dword [0x140239ae4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140054501
mov r12, qword [0x14023b010]
jmp 0x140054241
mov rcx, r12
call fcn.1400fe570
jmp 0x140054258
lea rdx, [rsp + 0x48]
lea r12, [rsp + 0x58]
mov rcx, r12
call fcn.1400b5440
lea r13, [rsp + 0x70]
mov rcx, r13
mov rdx, r12
call fcn.140112410
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 0x14005444e
call fcn.1400fc5f0
lea r13, [rsp + 0x68]
mov rcx, r13
mov rdx, r12
call fcn.1400eb220
mov r12, qword [r13]
mov qword [r13], 0
lea rax, [r12 + 1]
cmp rax, 2
jb 0x14005447a
call fcn.1400fc5f0
mov rcx, r15
mov rdx, r12
call fcn.1400eb220
mov rax, qword [rsp + 0x68]
inc rax
cmp rax, 2
jb 0x1400544ab
call fcn.1400fc5f0
mov rcx, qword [rsp + 0x68]
call fcn.14010ef00
mov qword [rsp + 0x68], 0
lea rcx, [rsp + 0x70]
call fcn.140112530
lea rcx, [rsp + 0x58]
call fcn.1400b5480
mov byte [r14 + 0x80], 1
jmp 0x14005433a
xor r12d, r12d
jmp 0x1400542e3
xor r12d, r12d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x1400542db
int3
mov rcx, rdi
call fcn.140108960
jmp 0x140054363
mov rcx, rdi
call fcn.140108960
jmp 0x140054387
lea rcx, [0x14023b018]
call fcn.1401485a0
cmp dword [0x14023b018], 0xffffffff
jne 0x1400543ec
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.1401a71c0
mov qword [0x14023b010], rax
lea rcx, [0x14023b018]
call fcn.140148638
jmp 0x1400543ec