Function at 0x140055480
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 [0x14022f038]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov ecx, 0x130
call fcn.14014c3b0
mov r14, rax
test rdi, rdi
je 0x1400554cf
lock inc dword [rdi + 8]
lea r15, [rsp + 0x30]
mov rcx, r15
mov rdx, rbx
call fcn.1400491c0
mov rcx, r14
mov rdx, r12
mov r8d, ebp
xor r9d, r9d
call fcn.140048f50
lea rax, [0x1402090a8]
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.140100410
mov rcx, r12
mov rdx, r13
call fcn.1400ac370
lea rax, [0x14020a8b0]
mov qword [r14], rax
lea rax, [0x140209098]
mov qword [r14 + 0x38], rax
lea rax, [0x140209120]
mov qword [r14 + 0x40], rax
mov al, byte [r15 + 1]
mov byte [r14 + 0x68], al
mov qword [r14 + 0x70], r14
test r14, r14
je 0x140055561
lock inc dword [r14 + 8]
mov qword [r14 + 0x78], 0
mov byte [r14 + 0x80], 0
mov qword [r14 + 0x88], rdi
test rdi, rdi
je 0x140055581
lock inc dword [rdi + 8]
lea rcx, [r14 + 0x90]
call fcn.1400ac360
lea rcx, [r14 + 0xb0]
call fcn.1400ac360
mov word [r14 + 0xd0], 0
lea rcx, [r14 + 0xd8]
call fcn.1400f1200
lea rcx, [r14 + 0xe0]
call fcn.1400ac360
xorps xmm0, xmm0
movups xmmword [r14 + 0x100], xmm0
movups xmmword [r14 + 0x110], xmm0
mov r15, qword [0x140242280]
test r15, r15
jne 0x140055767
xor r12d, r12d
mov rax, qword [0x1402329e0]
and rax, r12
cmp rax, qword [0x1402329c8]
je 0x140055798
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 0x1400557a5
lea rdx, [rsp + 0x38]
lea r12, [rsp + 0x58]
mov rcx, r12
call fcn.1400b92e0
lea r13, [rsp + 0x70]
mov rcx, r13
mov rdx, r12
call fcn.140116380
mov dword [r13], 0
mov r12, qword [r13 + 8]
mov qword [r13 + 8], 0
test r12, r12
je 0x14005586c
cmp r12, 0xffffffffffffffff
je 0x140055874
call fcn.140100430
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.140100430
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r13, [r12 + 1]
cmp r13, 2
jb 0x140055693
call fcn.140100430
cmp qword [r15], r12
je 0x1400556c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [r15]
inc rax
cmp rax, 2
jae 0x14005574e
cmp r13, 2
jb 0x1400556be
mov qword [r15], r12
call fcn.140100430
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsp + 0x70]
call fcn.1401164a0
lea rcx, [rsp + 0x58]
call fcn.1400b9320
mov rax, qword [r15]
inc rax
cmp rax, 1
jbe 0x140055884
lea rcx, [rsp + 0x30]
call fcn.140049200
test rdi, rdi
je 0x140055703
lock dec dword [rdi + 8]
je 0x140055887
mov qword [rsi], r14
test r14, r14
je 0x140055710
lock inc dword [r14 + 8]
mov rcx, rbx
call fcn.140049200
test rdi, rdi
je 0x140055727
lock dec dword [rdi + 8]
je 0x140055894
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14014ced0
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.140100430
mov rcx, qword [r15]
call fcn.140112e70
mov qword [r15], 0
jmp 0x1400556b0
mov eax, dword [0x140240218]
mov ecx, dword [0x14023ece4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400558a1
mov r12, qword [0x140240210]
jmp 0x1400555e1
mov rcx, r12
call fcn.1401023b0
jmp 0x1400555f8
lea rdx, [rsp + 0x48]
lea r12, [rsp + 0x58]
mov rcx, r12
call fcn.1400b92e0
lea r13, [rsp + 0x70]
mov rcx, r13
mov rdx, r12
call fcn.140116380
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 0x1400557ee
call fcn.140100430
lea r13, [rsp + 0x68]
mov rcx, r13
mov rdx, r12
call fcn.1400ef060
mov r12, qword [r13]
mov qword [r13], 0
lea rax, [r12 + 1]
cmp rax, 2
jb 0x14005581a
call fcn.140100430
mov rcx, r15
mov rdx, r12
call fcn.1400ef060
mov rax, qword [rsp + 0x68]
inc rax
cmp rax, 2
jb 0x14005584b
call fcn.140100430
mov rcx, qword [rsp + 0x68]
call fcn.140112e70
mov qword [rsp + 0x68], 0
lea rcx, [rsp + 0x70]
call fcn.1401164a0
lea rcx, [rsp + 0x58]
call fcn.1400b9320
mov byte [r14 + 0x80], 1
jmp 0x1400556da
xor r12d, r12d
jmp 0x140055683
xor r12d, r12d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x14005567b
int3
mov rcx, rdi
call fcn.14010c8b0
jmp 0x140055703
mov rcx, rdi
call fcn.14010c8b0
jmp 0x140055727
lea rcx, [0x140240218]
call fcn.14014c510
cmp dword [0x140240218], 0xffffffff
jne 0x14005578c
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.1401ab190
mov qword [0x140240210], rax
lea rcx, [0x140240218]
call fcn.14014c5a8
jmp 0x14005578c