Function at 0x415650
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b78f2
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x4fa008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
call fcn.00415a50
lea esi, [ebx + 0x34]
push str.Starting_control_server
push esi
call fcn.004054c0
mov dword [ebp - 4], 0
add esp, 8
mov dword [ebp - 0x38], vtable.StringStorage.0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 1
push eax
push 1
mov ecx, eax
call fcn.00403ad0
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cd35c
push ecx
call fcn.0049af00
add esp, 0xc
mov byte [ebp - 4], 2
cmp byte [ebx + 0x19c], 0
je 0x415702
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x38]
push str.TightVNC_Service_Control
call dword [eax + 4]
jmp 0x415720
mov ecx, esi
call fcn.0041e650
push eax
push str.TightVNC_Application_Control
lea eax, [ebp - 0x38]
push 0x4cd7f4
push eax
call fcn.004038a0
add esp, 0x10
push 0x2c
call fcn.00497cd4
mov esi, eax
add esp, 4
push 1
lea eax, [esi + 0x18]
mov dword [esi], vtable.SecurityAttributes.0
mov byte [esi + 0x10], 1
push eax
mov dword [esi + 0x14], vtable.SecurityDescriptor.0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
mov dword [esi + 8], 0
mov ecx, esi
mov dword [esi + 4], 0xc
mov byte [esi + 0x10], 0
mov dword [esi + 0xc], 1
call fcn.0041e570
push 0x2c
call fcn.00497cd4
add esp, 4
mov dword [ebp - 0x18], eax
push 0xffffffffffffffff
push esi
push 0x10000
mov byte [ebp - 4], 3
mov ecx, eax
push dword [ebp - 0x34]
call fcn.0041df90
push 0xc0
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
call fcn.00497cd4
mov edi, eax
add esp, 4
mov dword [ebp - 0x20], edi
mov eax, dword [ebx + 0x1a8]
mov dword [ebp - 0x18], eax
lea eax, [edi + 8]
push eax
push 4
push edi
push 0x46f030
push 0
mov dword [edi], vtable.Thread.0
mov byte [edi + 0xc], 0
push 0
mov byte [edi + 0xd], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 4], eax
lea eax, [edi + 0x10]
mov dword [edi], vtable.ControlServer.0
mov dword [ebp - 0x24], eax
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [eax], vtable.AuthTracker.0
mov dword [eax + 8], 0x7530
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 3
mov dword [eax + 0x20], vtable.LocalMutex.0
add eax, 0x24
push eax
call esi
lea eax, [edi + 0x54]
mov dword [edi + 0x10], vtable.ControlAppAuthenticator.0
push eax
mov dword [edi + 0x50], vtable.LocalMutex.0
call esi
push ecx
lea ecx, [edi + 0x6c]
mov byte [ebp - 4], 7
call fcn.0041de80
mov byte [edi + 0x74], 0
mov byte [ebp - 4], 8
lea ecx, [edi + 0x78]
call fcn.0046f3d0
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 9
mov dword [edi + 0xb4], eax
mov eax, dword [ebp - 0x18]
push 0x4cf2b8
mov dword [edi + 0xb8], eax
lea eax, [ebx + 0x34]
push 0x4cde84
push eax
mov dword [edi + 0xbc], eax
call fcn.004054c0
add esp, 0xc
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
lea ecx, [ebp - 0x34]
setne al
mov byte [edi + 0xc], al
mov dword [ebx + 0x1ac], edi
mov dword [ebp - 0x38], vtable.StringStorage.0
call fcn.004039a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret