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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b85f
mov eax, dword fs:[0]
push eax
sub esp, 0x534
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 [0x5be08c]
push dword [eax + 0xb04]
call fcn.004747b0
mov eax, dword [0x5be08c]
add eax, 0xb08
push eax
call fcn.00474d10
mov ecx, dword [0x5be08c]
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.0041cc90
add esp, 0xc
push 4
call fcn.0051946c
mov edi, eax
add esp, 4
mov dword [ebp - 0x538], edi
mov dword [ebp - 0x53c], edi
mov dword [edi], 0
mov dword [ebp - 4], 0
cmp byte [0x5b2c32], 0
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x487909
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 0x4878c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x487909
push 0x5bc6c8
push str.WinVNCAppMain_:__s____exiting_n
push 9
push 0x5b0d48
call fcn.0041cc90
mov eax, dword [0x5be08c]
add esp, 0x10
cmp dword [eax + 0xe20], 0
jne 0x487902
push 0
push 0x59d508
mov edx, 0x5bc6c8
call fcn.00425040
add esp, 8
xor esi, esi
jmp 0x487ba3
lea ecx, [ebp - 0x530]
call fcn.0047df80
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x484]
test eax, eax
je 0x487935
push eax
call fcn.0051d799
add esp, 4
mov dword [ebp - 0x484], 0
push 0x59d508
call fcn.0052cbc2
add esp, 4
mov dword [ebp - 0x484], eax
push str.WinVNCAppMain_:_server_created_ok_n
push 0
push 0x5b0d48
call fcn.0041cc90
add esp, 0xc
push str.GlobalSessionEventUltra
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [0x5de5d4], eax
test eax, eax
je 0x487983
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [0x5de5d4]
cmp byte [0x5b31af], 0
jne 0x4879fb
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [eax + eax]
lea eax, [ebp - 0x534]
push eax
push 0
lea eax, [ebp - 0x530]
push eax
push 0x4872d0
push 0
push 0
call ebx
mov esi, eax
test esi, esi
je 0x4879cd
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.0041cc90
add esp, 0xc
cmp byte [0x5b31af], 0
je 0x4879a0
mov eax, dword [0x5de5d4]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x538]
mov byte [0x5b31af], 1
test eax, eax
je 0x487a09
push eax
call ebx
push str.WinVNCAppMain_:__SHUTING_DOWN_SERVER__n
push 0
push 0x5b0d48
call fcn.0041cc90
mov eax, dword [0x5bbad4]
add esp, 0xc
test eax, eax
je 0x487a39
push eax
call fcn.00519467
add esp, 4
mov dword [0x5bbad4], 0
mov eax, dword [0x5bb8f8]
test eax, eax
jne 0x487a66
push 0x20
call fcn.0051946c
add esp, 4
mov dword [ebp - 0x534], eax
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00479de0
mov byte [ebp - 4], 1
mov dword [0x5bb8f8], eax
mov ecx, eax
test eax, eax
je 0x487a9d
test ecx, ecx
jne 0x487a97
push 0x20
call fcn.0051946c
add esp, 4
mov dword [ebp - 0x534], eax
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00479de0
mov ecx, eax
mov dword [0x5bb8f8], ecx
test ecx, ecx
je 0x487a9d
mov eax, dword [ecx]
push 1
call dword [eax]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x530]
mov dword [ebp - method.vncServer.virtual_0], vtable.vncServer.0
call fcn.0047e510
mov ecx, dword [ebp - 0x24c]
mov eax, dword [ecx + 4]
mov dword [eax], 0
mov eax, dword [ecx]
test eax, eax
je 0x487ae3
nop dword [eax + eax]
mov esi, dword [eax]
push 0xc
push eax
call fcn.0051949c
add esp, 8
mov eax, esi
test esi, esi
jne 0x487ad0
push 0xc
push dword [ebp - 0x24c]
call fcn.0051949c
add esp, 8
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [ebp - 0x474]
mov eax, dword [ecx + 4]
mov dword [eax], 0
mov eax, dword [ecx]
test eax, eax
je 0x487b28
mov esi, dword [eax]
push 0xc
push eax
call fcn.0051949c
add esp, 8
mov eax, esi
test esi, esi
jne 0x487b15
push 0xc
push dword [ebp - 0x474]
call fcn.0051949c
mov ecx, dword [ebp - 0x47c]
add esp, 8
mov eax, dword [ecx + 4]
mov dword [eax], 0
mov eax, dword [ecx]
test eax, eax
je 0x487b63
nop dword [eax]
mov esi, dword [eax]
push 0xc
push eax
call fcn.0051949c
add esp, 8
mov eax, esi
test esi, esi
jne 0x487b50
push 0xc
push dword [ebp - 0x47c]
call fcn.0051949c
mov esi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea eax, [ebp - 0x4e4]
add esp, 8
mov dword [ebp - method.rfb::UpdateTracker.virtual_0], vtable.rfb::UpdateTracker.0
push eax
call esi
lea eax, [ebp - 0x4fc]
push eax
call esi
lea eax, [ebp - 0x514]
push eax
call esi
mov esi, 1
mov eax, dword [edi]
test eax, eax
je 0x487bb4
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [edi]
call ebx
push 4
push edi
call fcn.0051949c
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.00519459
mov esp, ebp
pop ebp
ret