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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54abaf
mov eax, dword fs:[0]
push eax
sub esp, 0x52c
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x5bdff0]
push dword [eax + 0xb04]
call fcn.00474e00
mov eax, dword [0x5bdff0]
add eax, 0xb08
push eax
call fcn.00475370
mov ecx, dword [0x5bdff0]
push str.WinVNCAppMain_:_WinVNCAPPMain_____Application_started_n
push 0xffffffffffffffff
push 0x5b0d48
mov eax, dword [ecx + 0xd08]
mov dword [0x5b0d58], eax
cmp dword [ecx + 0xd0c], 0
setne byte [0x5b0f61]
call fcn.0041ccb0
push 4
call fcn.005187ac
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x534], edi
mov dword [ebp - 0x538], edi
mov dword [edi], 0
mov dword [ebp - 4], 0
cmp byte [0x5b2c32], 0
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x486c46
push str.WinVNC_Win32_Instance_Mutex
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [edi], eax
test eax, eax
je 0x486c04
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x486c46
push 0x5bc640
push str.WinVNCAppMain_:__s____exiting_n
push 9
push 0x5b0d48
call fcn.0041ccb0
mov eax, dword [0x5bdff0]
add esp, 0x10
cmp dword [eax + 0xe20], 0
jne 0x486c3f
push 0
push 0x59d4e0
mov edx, 0x5bc640
call fcn.00424f50
add esp, 8
xor esi, esi
jmp 0x486ed3
lea ecx, [ebp - 0x52c]
call fcn.0047e290
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x480]
test eax, eax
je 0x486c72
push eax
call fcn.0051cad9
add esp, 4
mov dword [ebp - 0x480], 0
push 0x59d4e0
call fcn.0052bf02
push str.WinVNCAppMain_:_server_created_ok_n
push 0
push 0x5b0d48
mov dword [ebp - 0x480], eax
call fcn.0041ccb0
add esp, 0x10
push str.GlobalSessionEventUltra
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [0x5de538], eax
test eax, eax
je 0x486cbd
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [0x5de538]
cmp byte [0x5b31af], 0
jne 0x486d2d
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x530]
push eax
push 0
lea eax, [ebp - 0x52c]
push eax
push 0x4866e0
push 0
push 0
call ebx
mov esi, eax
test esi, esi
je 0x486cff
push 0xffffffffffffffff
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.WinVNCAppMain_:__Closing_Imp_Thread_n
push 0
push 0x5b0d48
call fcn.0041ccb0
add esp, 0xc
cmp byte [0x5b31af], 0
je 0x486cd2
mov eax, dword [0x5de538]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x534]
mov byte [0x5b31af], 1
test eax, eax
je 0x486d3b
push eax
call ebx
push str.WinVNCAppMain_:__SHUTING_DOWN_SERVER__n
push 0
push 0x5b0d48
call fcn.0041ccb0
mov eax, dword [0x5bbac8]
add esp, 0xc
test eax, eax
je 0x486d6b
push eax
call fcn.005187a7
add esp, 4
mov dword [0x5bbac8], 0
mov eax, dword [0x5bb8f8]
test eax, eax
jne 0x486d98
push 0x20
call fcn.005187ac
add esp, 4
mov dword [ebp - 0x530], eax
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0047a120
mov byte [ebp - 4], 1
mov dword [0x5bb8f8], eax
mov ecx, eax
test eax, eax
je 0x486dcf
test ecx, ecx
jne 0x486dc9
push 0x20
call fcn.005187ac
add esp, 4
mov dword [ebp - 0x530], eax
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0047a120
mov ecx, eax
mov dword [0x5bb8f8], ecx
test ecx, ecx
je 0x486dcf
mov eax, dword [ecx]
push 1
call dword [eax]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x52c]
mov dword [ebp - method.vncServer.virtual_0], vtable.vncServer.0
call fcn.0047e7f0
mov ecx, dword [ebp - 0x248]
mov eax, dword [ecx + 4]
mov dword [eax], 0
mov eax, dword [ecx]
test eax, eax
je 0x486e13
nop dword [eax]
mov esi, dword [eax]
push 0xc
push eax
call fcn.005187dc
add esp, 8
mov eax, esi
test esi, esi
jne 0x486e00
push 0xc
push dword [ebp - 0x248]
call fcn.005187dc
add esp, 8
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [ebp - 0x470]
mov eax, dword [ecx + 4]
mov dword [eax], 0
mov eax, dword [ecx]
test eax, eax
je 0x486e58
mov esi, dword [eax]
push 0xc
push eax
call fcn.005187dc
add esp, 8
mov eax, esi
test esi, esi
jne 0x486e45
push 0xc
push dword [ebp - 0x470]
call fcn.005187dc
mov ecx, dword [ebp - 0x478]
add esp, 8
mov eax, dword [ecx + 4]
mov dword [eax], 0
mov eax, dword [ecx]
test eax, eax
je 0x486e93
nop dword [eax]
mov esi, dword [eax]
push 0xc
push eax
call fcn.005187dc
add esp, 8
mov eax, esi
test esi, esi
jne 0x486e80
push 0xc
push dword [ebp - 0x478]
call fcn.005187dc
mov esi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea eax, [ebp - 0x4e0]
add esp, 8
mov dword [ebp - method.rfb::UpdateTracker.virtual_0], vtable.rfb::UpdateTracker.0
push eax
call esi
lea eax, [ebp - 0x4f8]
push eax
call esi
lea eax, [ebp - 0x510]
push eax
call esi
mov esi, 1
mov eax, dword [edi]
test eax, eax
je 0x486ee4
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [edi]
call ebx
push 4
push edi
call fcn.005187dc
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret