Function at 0x14008be40
Capabilities:
Check mutex on windows
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x820
mov rax, qword [0x1401ef010]
xor rax, rsp
mov qword [rsp + 0x810], rax
mov rax, qword [0x1401fdf80]
mov edx, dword [rax + 0xb04]
call fcn.140076cd0
mov rdx, qword [0x1401fdf80]
add rdx, 0xb08
call fcn.140077160
mov rcx, qword [0x1401fdf80]
mov eax, dword [rcx + 0xd08]
mov dword [0x1401eff10], eax
cmp dword [rcx + 0xd0c], 0
setne byte [0x1401f0121]
lea r8, str.WinVNCAppMain_:_WinVNCAPPMain_____Application_started_n
mov edx, 0xffffffff
lea rcx, vtable.VNCLog.0
call fcn.140018c00
mov ecx, 8
call fcn.140132648
mov rsi, rax
mov qword [rsp + 0x30], rax
xor edi, edi
mov qword [rax], rdi
mov qword [rsp + 0x38], rax
cmp byte [0x1401f2922], dil
jne 0x14008bf5e
lea r8, str.WinVNC_Win32_Instance_Mutex
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rsi], rax
test rax, rax
je 0x14008bf0d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14008bf5e
lea r9, [0x1401fc550]
lea r8, str.WinVNCAppMain_:__s____exiting_n
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140018c00
mov rax, qword [0x1401fdf80]
cmp dword [rax + 0xe20], 0
jne 0x14008c185
xor r9d, r9d
lea r8, [0x1401c9b4c]
lea rdx, [0x1401fc550]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x14008c185
lea rcx, [rsp + 0x40]
call fcn.1400819b0
nop
mov rcx, qword [rsp + 0x150]
test rcx, rcx
je 0x14008bf83
call fcn.140139270
mov qword [rsp + 0x150], rdi
lea rcx, [0x1401c9b4c]
call fcn.140145b50
mov qword [rsp + 0x150], rax
lea r8, str.WinVNCAppMain_:_server_created_ok_n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140018c00
lea r8, str.GlobalSessionEventUltra
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenEventA]
mov qword [0x14023e520], rax
test rax, rax
je 0x14008bfdc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rax, qword [0x14023e520]
cmp byte [0x1401f32e3], 0
jne 0x14008c058
nop word [rax + rax]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
lea r9, [rsp + 0x40]
lea r8, [0x14008b980]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
je 0x14008c033
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, str.WinVNCAppMain_:__Closing_Imp_Thread_n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140018c00
cmp byte [0x1401f32e3], 0
je 0x14008bff0
mov rax, qword [0x14023e520]
mov byte [0x1401f32e3], 1
test rax, rax
je 0x14008c06d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, str.WinVNCAppMain_:__SHUTING_DOWN_SERVER__n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140018c00
mov rcx, qword [0x1401fbb28]
test rcx, rcx
je 0x14008c09a
call fcn.140132640
mov qword [0x1401fbb28], rdi
mov rax, qword [0x1401fb448]
test rax, rax
jne 0x14008c0c3
lea ecx, [rax + 0x30]
call fcn.140132648
mov qword [rsp + 0x30], rax
mov rcx, rax
call fcn.14007c970
nop
mov qword [0x1401fb448], rax
mov rcx, rax
test rax, rax
je 0x14008c0fe
test rax, rax
jne 0x14008c0f4
lea ecx, [rax + 0x30]
call fcn.140132648
mov qword [rsp + 0x30], rax
mov rcx, rax
call fcn.14007c970
mov rcx, rax
mov qword [0x1401fb448], rax
test rax, rax
je 0x14008c0fe
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov edi, 1
lea rax, vtable.vncServer.0
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x40]
call fcn.1400822b0
lea rcx, [rsp + 0x5b8]
call fcn.140086a60
lea rcx, [rsp + 0x588]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [rsp + 0x170]
call fcn.140086ac0
lea rcx, [rsp + 0x160]
call fcn.140086ac0
lea rax, vtable.rfb::UpdateTracker.0
mov qword [rsp + 0x120], rax
lea rcx, [rsp + 0xb8]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
nop
mov rcx, qword [rsi]
test rcx, rcx
je 0x14008c19c
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 8
mov rcx, rsi
call fcn.140132684
mov eax, edi
mov rcx, qword [rsp + 0x810]
xor rcx, rsp
call fcn.140132620
lea r11, [rsp + 0x820]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret