Function at 0x1400081e0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x14005d010]
xor rax, rsp
mov qword [rbp + 0x10], rax
inc dword [0x14005e888]
mov eax, dword [0x14005ec30]
mov esi, 2
xor ebx, ebx
lea edi, [rsi - 1]
cmp eax, esi
je 0x140008292
xor eax, eax
lock cmpxchg dword [0x14005ec30], edi
je 0x140008253
cmp eax, esi
je 0x140008292
mov qword [rsp + 0x70], rbx
lea rcx, [rbp - 0x10]
mov dword [rsp + 0x78], ebx
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rbp - 0x10], xmm0
call qword [sym.imp.MSVCP140.dll__Thrd_sleep]
jmp 0x140008224
xorps xmm0, xmm0
mov qword [rbp - 0x30], rbx
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x50], xmm0
lea rax, [0x140048950]
movdqa xmmword [rbp - 0x40], xmm1
lea rcx, [rbp - 0x50]
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x20], ebx
mov dword [rbp - 0x1c], esi
mov dword [rbp - 0x18], 0xfffffffe
call fcn.140015ed8
mov eax, edi
lock cmpxchg dword [0x14005ec30], esi
mov dword [0x14005ebd0], edi
mov dword [0x14005e884], 0x14
call fcn.14000eea8
mov dword [0x14005e880], edi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
call fcn.140007d30
test eax, eax
jne 0x1400084ac
mov qword [rsp + 0x130], r14
lea ecx, [rax + 4]
lea r14, str.Microsoft_OneNote16:IEAddinServiceBrokerSharedFile
xor edx, edx
mov r8, r14
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rdi, rdi
jne 0x140008490
cmp eax, esi
je 0x14000830a
test eax, eax
jle 0x140008304
movzx eax, ax
or eax, 0x80070000
test eax, eax
je 0x14000849f
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], 4
lea r8d, [r9 + 4]
lea rcx, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test rax, rax
mov rdi, rbx
cmovne rdi, rax
mov qword [rsp + 0x68], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
xorps xmm0, xmm0
mov qword [rsp + 0x30], rbx
lea rax, vtable.MsoCF::CSmallMap_unsigned_long_int__void____ptr64_.0
mov dword [rsp + 0x38], ebx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x40], rax
movdqu xmmword [rsp + 0x58], xmm0
mov dword [rsp + 0x3c], 0x80000000
mov dword [rsp + 0x48], 0xc
mov dword [rsp + 0x4c], 7
mov dword [rsp + 0x50], 0xffffffff
mov dword [rsp + 0x54], ebx
call fcn.140005960
test rdi, rdi
je 0x1400083a7
cmp rdi, 0xffffffffffffffff
je 0x14000839f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, rbx
mov qword [rsp + 0x68], rbx
lea rax, vtable.Ofc::TMap_unsigned_long_int__void____ptr64_.0
lea rdx, [fcn.140008aa0]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x40]
call fcn.14000d608
mov rcx, qword [rsp + 0x58]
lea rax, vtable.Ofc::CMapImpl.0
mov qword [rsp + 0x40], rax
test rcx, rcx
je 0x1400083e0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400083f0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rax, [rdi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140008403
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 3
mov dword [0x14005e880], edi
call fcn.14000ef50
mov eax, dword [0x14005ec30]
test eax, eax
je 0x14000846a
nop dword [rax]
mov eax, esi
lock cmpxchg dword [0x14005ec30], edi
je 0x14000844c
test eax, eax
je 0x14000846a
mov qword [rbp - 0x80], rbx
lea rcx, [rbp]
mov dword [rbp - 0x78], ebx
movaps xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rbp], xmm0
call qword [sym.imp.MSVCP140.dll__Thrd_sleep]
jmp 0x140008420
lea rcx, [rbp - 0x70]
mov qword [rbp - 0x70], rbx
mov byte [rbp - 0x68], bl
mov qword [rbp - 0x60], rbx
call fcn.140016088
mov eax, edi
lock cmpxchg dword [0x14005ec30], ebx
sub dword [0x14005e888], 1
jne 0x14000848c
mov rcx, qword [0x14005e890]
test rcx, rcx
je 0x14000848c
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [0x14005e890], rbx
xor eax, eax
jmp 0x1400084a4
cmp rdi, 0xffffffffffffffff
je 0x14000849f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xffffffff
mov r14, qword [rsp + 0x130]
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.1400407e0
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret