Function at 0x14008a8c0
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 [0x1401f0010]
xor rax, rsp
mov qword [rsp + 0x810], rax
mov rax, qword [0x1401fef68]
mov edx, dword [rax + 0xb04]
call fcn.1400764f0
mov rdx, qword [0x1401fef68]
add rdx, 0xb08
call fcn.140076980
mov rcx, qword [0x1401fef68]
mov eax, dword [rcx + 0xd08]
mov dword [0x1401f0f10], eax
cmp dword [rcx + 0xd0c], 0
setne byte [0x1401f1121]
lea r8, str.WinVNCAppMain_:_WinVNCAPPMain_____Application_started_n
mov edx, 0xffffffff
lea rcx, vtable.VNCLog.0
call fcn.140017a50
mov ecx, 8
call fcn.140131f18
mov rsi, rax
mov qword [rsp + 0x30], rax
xor edi, edi
mov qword [rax], rdi
mov qword [rsp + 0x38], rax
cmp byte [0x1401f3902], dil
jne 0x14008a9de
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 0x14008a98d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14008a9de
lea r9, [0x1401fd570]
lea r8, str.WinVNCAppMain_:__s____exiting_n
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140017a50
mov rax, qword [0x1401fef68]
cmp dword [rax + 0xe20], 0
jne 0x14008ac1b
xor r9d, r9d
lea r8, [0x1401ca37c]
lea rdx, [0x1401fd570]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x14008ac1b
lea rcx, [rsp + 0x40]
call fcn.140080e10
nop
mov rcx, qword [rsp + 0x150]
test rcx, rcx
je 0x14008aa03
call fcn.140138b40
mov qword [rsp + 0x150], rdi
lea rcx, [0x1401ca37c]
call fcn.14014a9a0
mov qword [rsp + 0x150], rax
lea r8, str.WinVNCAppMain_:_server_created_ok_n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140017a50
lea r8, str.GlobalSessionEventUltra
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenEventA]
mov qword [0x14023f500], rax
test rax, rax
je 0x14008aa5c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rax, qword [0x14023f500]
cmp byte [0x1401f42c3], 0
jne 0x14008aad8
nop word [rax + rax]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
lea r9, [rsp + 0x40]
lea r8, [0x14008a400]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
je 0x14008aab3
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.140017a50
cmp byte [0x1401f42c3], 0
je 0x14008aa70
mov rax, qword [0x14023f500]
mov byte [0x1401f42c3], 1
test rax, rax
je 0x14008aaed
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.140017a50
mov rcx, qword [0x1401fcb08]
test rcx, rcx
je 0x14008ab1a
call fcn.140131f10
mov qword [0x1401fcb08], rdi
mov rcx, qword [0x1401fef68]
test rcx, rcx
je 0x14008ab30
mov edx, 0x1134
call fcn.140131f54
mov rax, qword [0x1401fc428]
test rax, rax
jne 0x14008ab59
lea ecx, [rax + 0x30]
call fcn.140131f18
mov qword [rsp + 0x30], rax
mov rcx, rax
call fcn.14007c180
nop
mov qword [0x1401fc428], rax
mov rcx, rax
test rax, rax
je 0x14008ab94
test rax, rax
jne 0x14008ab8a
lea ecx, [rax + 0x30]
call fcn.140131f18
mov qword [rsp + 0x30], rax
mov rcx, rax
call fcn.14007c180
mov rcx, rax
mov qword [0x1401fc428], rax
test rax, rax
je 0x14008ab94
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.140081710
lea rcx, [rsp + 0x5b8]
call fcn.140085ec0
lea rcx, [rsp + 0x588]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [rsp + 0x170]
call fcn.140085f20
lea rcx, [rsp + 0x160]
call fcn.140085f20
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 0x14008ac32
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.140131f54
mov eax, edi
mov rcx, qword [rsp + 0x810]
xor rcx, rsp
call fcn.140131ef0
lea r11, [rsp + 0x820]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret