Function at 0x14008aa20
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 [0x1401fdf60]
mov edx, dword [rax + 0xb04]
call fcn.140076650
mov rdx, qword [0x1401fdf60]
add rdx, 0xb08
call fcn.140076ae0
mov rcx, qword [0x1401fdf60]
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.140017a50
mov ecx, 8
call fcn.140131308
mov rsi, rax
mov qword [rsp + 0x30], rax
xor edi, edi
mov qword [rax], rdi
mov qword [rsp + 0x38], rax
cmp byte [0x1401f2902], dil
jne 0x14008ab3e
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 0x14008aaed
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14008ab3e
lea r9, [0x1401fc570]
lea r8, str.WinVNCAppMain_:__s____exiting_n
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140017a50
mov rax, qword [0x1401fdf60]
cmp dword [rax + 0xe20], 0
jne 0x14008ad7b
xor r9d, r9d
lea r8, [0x1401c9afc]
lea rdx, [0x1401fc570]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x14008ad7b
lea rcx, [rsp + 0x40]
call fcn.140080f70
nop
mov rcx, qword [rsp + 0x150]
test rcx, rcx
je 0x14008ab63
call fcn.140137f30
mov qword [rsp + 0x150], rdi
lea rcx, [0x1401c9afc]
call fcn.140149d90
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 [0x14023e4f8], rax
test rax, rax
je 0x14008abbc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rax, qword [0x14023e4f8]
cmp byte [0x1401f32c3], 0
jne 0x14008ac38
nop word [rax + rax]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
lea r9, [rsp + 0x40]
lea r8, [0x14008a560]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
je 0x14008ac13
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 [0x1401f32c3], 0
je 0x14008abd0
mov rax, qword [0x14023e4f8]
mov byte [0x1401f32c3], 1
test rax, rax
je 0x14008ac4d
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 [0x1401fbb08]
test rcx, rcx
je 0x14008ac7a
call fcn.140131300
mov qword [0x1401fbb08], rdi
mov rcx, qword [0x1401fdf60]
test rcx, rcx
je 0x14008ac90
mov edx, 0x1134
call fcn.140131344
mov rax, qword [0x1401fb428]
test rax, rax
jne 0x14008acb9
lea ecx, [rax + 0x30]
call fcn.140131308
mov qword [rsp + 0x30], rax
mov rcx, rax
call fcn.14007c2e0
nop
mov qword [0x1401fb428], rax
mov rcx, rax
test rax, rax
je 0x14008acf4
test rax, rax
jne 0x14008acea
lea ecx, [rax + 0x30]
call fcn.140131308
mov qword [rsp + 0x30], rax
mov rcx, rax
call fcn.14007c2e0
mov rcx, rax
mov qword [0x1401fb428], rax
test rax, rax
je 0x14008acf4
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.140081870
lea rcx, [rsp + 0x5b8]
call fcn.140086020
lea rcx, [rsp + 0x588]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [rsp + 0x170]
call fcn.140086080
lea rcx, [rsp + 0x160]
call fcn.140086080
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 0x14008ad92
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.140131344
mov eax, edi
mov rcx, qword [rsp + 0x810]
xor rcx, rsp
call fcn.1401312e0
lea r11, [rsp + 0x820]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret