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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559b0f
mov eax, dword fs:[0]
push eax
sub esp, 0x528
mov eax, dword [0x5c3040]
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 [0x5d1914]
push str.WinVNCAppMain_:_WinVNCAPPMain_____Application_started_n
push 0xffffffffffffffff
push 0x5c3db0
cmp dword [eax + 0xd0c], 0
setne byte [0x5c3fc9]
call fcn.0041dde0
push 4
call fcn.00524776
mov ebx, eax
add esp, 0x10
mov dword [ebp - 0x530], ebx
mov dword [ebp - 0x530], ebx
mov dword [ebx], 0
mov dword [ebp - 4], 0
cmp byte [0x5c6482], 0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x49277a
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 0x492738
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x49277a
push 0x5d0170
push str.WinVNCAppMain_:__s____exiting_n
push 9
push 0x5c3db0
call fcn.0041dde0
mov eax, dword [0x5d1914]
add esp, 0x10
cmp dword [eax + 0xe20], 0
jne 0x492773
push 0
push 0x5adfa8
mov edx, 0x5d0170
call fcn.00425f30
add esp, 8
xor edi, edi
jmp 0x492a0b
lea ecx, [ebp - 0x52c]
call fcn.00488dc0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x480]
test eax, eax
je 0x4927a6
push eax
call fcn.0052a52b
add esp, 4
mov dword [ebp - 0x480], 0
push 0x5adfa8
call fcn.00535058
push str.WinVNCAppMain_:_server_created_ok_n
push 0
push 0x5c3db0
mov dword [ebp - 0x480], eax
call fcn.0041dde0
add esp, 0x10
push str.GlobalSessionEventUltra
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [0x5f2078], eax
test eax, eax
je 0x4927f1
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [0x5f2078]
cmp byte [0x5c64d5], 0
jne 0x49285d
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x534]
push eax
push 0
lea eax, [ebp - 0x52c]
push eax
push 0x492240
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x492835
push 0xffffffffffffffff
push esi
call edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x49283b
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.WinVNCAppMain_:__Closing_Imp_Thread_n
push 0
push 0x5c3db0
call fcn.0041dde0
add esp, 0xc
cmp byte [0x5c64d5], 0
je 0x492800
mov eax, dword [0x5f2078]
mov byte [0x5c64d5], 1
test eax, eax
je 0x49286b
push eax
call esi
push str.WinVNCAppMain_:__SHUTING_DOWN_SERVER__n
push 0
push 0x5c3db0
call fcn.0041dde0
mov eax, dword [0x5d0810]
add esp, 0xc
test eax, eax
je 0x49289b
push eax
call fcn.00524771
add esp, 4
mov dword [0x5d0810], 0
mov eax, dword [0x5cf18c]
test eax, eax
jne 0x4928ce
push 0x20
call fcn.00524776
add esp, 4
mov dword [ebp - 0x534], eax
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00484690
mov byte [ebp - 4], 1
mov edx, eax
mov dword [0x5cf18c], eax
mov ecx, eax
jmp 0x4928d2
mov edx, eax
mov ecx, edx
test eax, eax
je 0x492907
test edx, edx
jne 0x4928fd
push 0x20
call fcn.00524776
add esp, 4
mov dword [ebp - 0x534], eax
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00484690
mov ecx, eax
mov dword [0x5cf18c], ecx
test ecx, ecx
je 0x492907
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.00489320
mov ecx, dword [ebp - 0x248]
mov eax, dword [ecx + 4]
mov dword [eax], 0
mov eax, dword [ecx]
test eax, eax
je 0x492948
mov esi, dword [eax]
push 0xc
push eax
call fcn.005247a6
add esp, 8
mov eax, esi
test esi, esi
jne 0x492935
push 0xc
push dword [ebp - 0x248]
call fcn.005247a6
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 0x492993
nop dword [eax]
mov esi, dword [eax]
push 0xc
push eax
call fcn.005247a6
add esp, 8
mov eax, esi
test esi, esi
jne 0x492980
push 0xc
push dword [ebp - 0x470]
call fcn.005247a6
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 0x4929cb
mov esi, dword [eax]
push 0xc
push eax
call fcn.005247a6
add esp, 8
mov eax, esi
test esi, esi
jne 0x4929b8
push 0xc
push dword [ebp - 0x478]
call fcn.005247a6
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 0x492a1c
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebx]
call esi
push 4
push ebx
call fcn.005247a6
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.00524763
mov esp, ebp
pop ebp
ret