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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568f9f
mov eax, dword fs:[0]
push eax
sub esp, 0x52c
mov eax, dword [0x5d60c4]
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 [0x5e44e8]
push dword [eax + 0xb04]
call fcn.00475e40
mov eax, dword [0x5e44e8]
add eax, 0xb08
push eax
call fcn.00476390
mov ecx, dword [0x5e44e8]
push str.WinVNCAppMain_:_WinVNCAPPMain_____Application_started_n
push 0xffffffffffffffff
push 0x5d6df8
mov eax, dword [ecx + 0xd08]
mov dword [0x5d6e08], eax
cmp dword [ecx + 0xd0c], 0
setne byte [0x5d7011]
call fcn.0041d510
push 4
call fcn.0052b79c
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 [0x5d9092], 0
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x48ae76
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 0x48ae34
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x48ae76
push 0x5e3258
push str.WinVNCAppMain_:__s____exiting_n
push 9
push 0x5d6df8
call fcn.0041d510
mov eax, dword [0x5e44e8]
add esp, 0x10
cmp dword [eax + 0xe20], 0
jne 0x48ae6f
push 0
push str.WinVNC
mov edx, 0x5e3258
call fcn.00425890
add esp, 8
xor esi, esi
jmp 0x48b103
lea ecx, [ebp - 0x52c]
call fcn.00480360
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x480]
test eax, eax
je 0x48aea2
push eax
call fcn.0052fd09
add esp, 4
mov dword [ebp - 0x480], 0
push str.WinVNC
call fcn.0053a752
push str.WinVNCAppMain_:_server_created_ok_n
push 0
push 0x5d6df8
mov dword [ebp - 0x480], eax
call fcn.0041d510
add esp, 0x10
push str.GlobalSessionEventUltra
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [0x604a30], eax
test eax, eax
je 0x48aeed
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [0x604a30]
cmp byte [0x5d960f], 0
jne 0x48af5d
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 0x48a7c0
push 0
push 0
call ebx
mov esi, eax
test esi, esi
je 0x48af2f
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 0x5d6df8
call fcn.0041d510
add esp, 0xc
cmp byte [0x5d960f], 0
je 0x48af02
mov eax, dword [0x604a30]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x534]
mov byte [0x5d960f], 1
test eax, eax
je 0x48af6b
push eax
call ebx
push str.WinVNCAppMain_:__SHUTING_DOWN_SERVER__n
push 0
push 0x5d6df8
call fcn.0041d510
mov eax, dword [0x5e26e0]
add esp, 0xc
test eax, eax
je 0x48af9b
push eax
call fcn.0052b797
add esp, 4
mov dword [0x5e26e0], 0
mov eax, dword [0x5e1d58]
test eax, eax
jne 0x48afc8
push 0x20
call fcn.0052b79c
add esp, 4
mov dword [ebp - 0x530], eax
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0047bdb0
mov byte [ebp - 4], 1
mov dword [0x5e1d58], eax
mov ecx, eax
test eax, eax
je 0x48afff
test ecx, ecx
jne 0x48aff9
push 0x20
call fcn.0052b79c
add esp, 4
mov dword [ebp - 0x530], eax
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0047bdb0
mov ecx, eax
mov dword [0x5e1d58], ecx
test ecx, ecx
je 0x48afff
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.004808c0
mov ecx, dword [ebp - 0x248]
mov eax, dword [ecx + 4]
mov dword [eax], 0
mov eax, dword [ecx]
test eax, eax
je 0x48b043
nop dword [eax]
mov esi, dword [eax]
push 0xc
push eax
call fcn.0052b7cc
add esp, 8
mov eax, esi
test esi, esi
jne 0x48b030
push 0xc
push dword [ebp - 0x248]
call fcn.0052b7cc
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 0x48b088
mov esi, dword [eax]
push 0xc
push eax
call fcn.0052b7cc
add esp, 8
mov eax, esi
test esi, esi
jne 0x48b075
push 0xc
push dword [ebp - 0x470]
call fcn.0052b7cc
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 0x48b0c3
nop dword [eax]
mov esi, dword [eax]
push 0xc
push eax
call fcn.0052b7cc
add esp, 8
mov eax, esi
test esi, esi
jne 0x48b0b0
push 0xc
push dword [ebp - 0x478]
call fcn.0052b7cc
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 0x48b114
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [edi]
call ebx
push 4
push edi
call fcn.0052b7cc
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.0052b789
mov esp, ebp
pop ebp
ret