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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541c0f
mov eax, dword fs:[0]
push eax
sub esp, 0x52c
mov eax, dword [0x5a6008]
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 [0x5b6e6c]
add eax, 0xb08
push eax
call fcn.0046ff60
mov ecx, dword [0x5b6e6c]
push str.WinVNCAppMain_:_WinVNCAPPMain_____Application_started_n
push 0xffffffffffffffff
push 0x5a6c48
mov eax, dword [ecx + 0xd08]
mov dword [0x5a6c58], eax
cmp dword [ecx + 0xd0c], 0
setne byte [0x5a6e61]
call fcn.0041d720
push 4
call fcn.0051134c
mov ebx, eax
add esp, 0x10
mov dword [ebp - 0x534], ebx
mov dword [ebp - 0x538], ebx
mov dword [ebx], 0
mov dword [ebp - 4], 0
cmp byte [0x5a8a52], 0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x47f806
push str.WinVNC_Win32_Instance_Mutex
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebx], eax
test eax, eax
je 0x47f7c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x47f806
push 0x5b5538
push str.WinVNCAppMain_:__s____exiting_n
push 9
push 0x5a6c48
call fcn.0041d720
mov eax, dword [0x5b6e6c]
add esp, 0x10
cmp dword [eax + 0xe20], 0
jne 0x47f7ff
push 0
push 0x593d78
mov edx, 0x5b5538
call fcn.004257b0
add esp, 8
xor edi, edi
jmp 0x47fa93
lea ecx, [ebp - 0x52c]
call fcn.00478670
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x480]
test eax, eax
je 0x47f832
push eax
call fcn.00515679
add esp, 4
mov dword [ebp - 0x480], 0
push 0x593d78
call fcn.00523296
push str.WinVNCAppMain_:_server_created_ok_n
push 0
push 0x5a6c48
mov dword [ebp - 0x480], eax
call fcn.0041d720
add esp, 0x10
push str.GlobalSessionEventUltra
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [0x5d73b8], eax
test eax, eax
je 0x47f87d
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [0x5d73b8]
cmp byte [0x5ab8a3], 0
jne 0x47f8f1
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 0x47f2b0
push 0
push 0
call ebx
mov esi, eax
test esi, esi
je 0x47f8c3
push 0xffffffffffffffff
push esi
call edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x47f8c9
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.WinVNCAppMain_:__Closing_Imp_Thread_n
push 0
push 0x5a6c48
call fcn.0041d720
add esp, 0xc
cmp byte [0x5ab8a3], 0
je 0x47f892
mov eax, dword [0x5d73b8]
mov ebx, dword [ebp - 0x534]
mov byte [0x5ab8a3], 1
test eax, eax
je 0x47f8ff
push eax
call esi
push str.WinVNCAppMain_:__SHUTING_DOWN_SERVER__n
push 0
push 0x5a6c48
call fcn.0041d720
mov eax, dword [0x5b4980]
add esp, 0xc
test eax, eax
je 0x47f92f
push eax
call fcn.00511347
add esp, 4
mov dword [0x5b4980], 0
mov eax, dword [0x5b4770]
test eax, eax
jne 0x47f95c
push 0x20
call fcn.0051134c
add esp, 4
mov dword [ebp - 0x530], eax
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00474710
mov byte [ebp - 4], 1
mov dword [0x5b4770], eax
mov ecx, eax
test eax, eax
je 0x47f993
test ecx, ecx
jne 0x47f98d
push 0x20
call fcn.0051134c
add esp, 4
mov dword [ebp - 0x530], eax
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00474710
mov ecx, eax
mov dword [0x5b4770], ecx
test ecx, ecx
je 0x47f993
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.00478cf0
mov ecx, dword [ebp - 0x248]
mov eax, dword [ecx + 4]
mov dword [eax], 0
mov eax, dword [ecx]
test eax, eax
je 0x47f9d4
mov esi, dword [eax]
push 0xc
push eax
call fcn.0051137c
add esp, 8
mov eax, esi
test esi, esi
jne 0x47f9c1
push 0xc
push dword [ebp - 0x248]
call fcn.0051137c
mov edi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea eax, [ebp - 0x264]
add esp, 8
push eax
call edi
mov ecx, dword [ebp - 0x470]
mov eax, dword [ecx + 4]
mov dword [eax], 0
mov eax, dword [ecx]
test eax, eax
je 0x47fa1b
mov esi, dword [eax]
push 0xc
push eax
call fcn.0051137c
add esp, 8
mov eax, esi
test esi, esi
jne 0x47fa08
push 0xc
push dword [ebp - 0x470]
call fcn.0051137c
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 0x47fa53
mov esi, dword [eax]
push 0xc
push eax
call fcn.0051137c
add esp, 8
mov eax, esi
test esi, esi
jne 0x47fa40
push 0xc
push dword [ebp - 0x478]
call fcn.0051137c
add esp, 8
mov dword [ebp - method.rfb::UpdateTracker.virtual_0], vtable.rfb::UpdateTracker.0
lea eax, [ebp - 0x4e0]
push eax
call edi
lea eax, [ebp - 0x4f8]
push eax
call edi
lea eax, [ebp - 0x510]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 1
mov eax, dword [ebx]
test eax, eax
je 0x47faa4
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebx]
call esi
push 4
push ebx
call fcn.0051137c
add esp, 8
mov eax, edi
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.00511339
mov esp, ebp
pop ebp
ret