Function at 0x414820
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba5d3
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x554008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x18], edi
mov eax, dword [ebp + 8]
mov ecx, 0x5555ac
mov byte [ebp - 0x11], al
mov dword [edi], vtable.Singleton_class_TvnServer_.0
mov eax, dword [vtable.LocalMutex.0]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
call dword [eax + 4]
mov eax, dword [0x558ff0]
test eax, eax
cmove eax, edi
mov dword [0x558ff0], eax
mov dword [ebp - 4], 0
mov ecx, 0x5555ac
mov eax, dword [vtable.LocalMutex.0]
call dword [eax + 8]
mov dword [ebp - 4], 1
lea eax, [edi + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xorps xmm0, xmm0
movups xmmword [edi + 0xc], xmm0
push eax
movups xmmword [edi + 0x1c], xmm0
movq qword [edi + 0x2c], xmm0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0xc], vtable.LocalMutex.0
call esi
mov dword [edi + 0xc], vtable.SafeVector_class_TvnServerListener__.0
mov dword [edi + 4], vtable.ConfigReloadListener.0
mov dword [edi + 8], vtable.RfbClientManagerEventListener.0
push dword [ebp + 0x14]
mov byte [ebp - 4], 4
lea ecx, [edi + 0x34]
mov dword [edi], vtable.TvnServer.0
mov dword [edi + 4], vtable.TvnServer.2.0
mov dword [edi + 8], vtable.TvnServer.1.0
call fcn.00405c60
lea ecx, [edi + 0x40]
mov byte [ebp - 4], 5
call fcn.00471910
mov byte [ebp - 4], 6
lea ecx, [edi + 0x78]
push dword [ebp + 8]
call fcn.0046b290
lea eax, [edi + 0x38c]
mov dword [edi + method.LocalMutex.virtual_0], vtable.LocalMutex.0
push eax
call esi
mov eax, dword [ebp + 8]
mov byte [edi + 0x3a4], al
mov dword [edi + method.WinServiceDesktopFactory.virtual_0], vtable.WinServiceDesktopFactory.0
mov dword [edi + method.ApplicationDesktopFactory.virtual_0], vtable.ApplicationDesktopFactory.0
mov byte [ebp - 4], 0xa
mov dword [edi + 0x3b0], 0
mov dword [edi + 0x3b4], 0
mov dword [edi + 0x3b8], 0
mov dword [edi + 0x3bc], 0
add edi, 0x3c0
mov dword [ebp + 8], edi
lea esi, [edi + 4]
push 0
mov dword [ebp + 8], esi
mov dword [edi], vtable.ExtraRfbServers.0
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040cf00
mov dword [esi], eax
mov ecx, dword [ebp - 0x18]
mov word [edi + 0xc], 0
add ecx, 0x34
mov dword [edi + 0x10], vtable.PortMappingContainer.0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], ecx
mov byte [ebp - 4], 0xb
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp + 0x10]
push 0x4c9f80
push 0x4ca668
push 0x527738
push ecx
mov dword [edi + 0x3e4], eax
mov dword [edi + 0x3e8], 1
call fcn.00405e90
mov eax, dword [vtable.LocalMutex.0]
add esp, 0x10
mov ecx, 0x555558
call dword [eax + 4]
mov esi, dword [0x558fbc]
mov byte [ebp - 4], 0xc
mov ecx, 0x555558
mov eax, dword [vtable.LocalMutex.0]
call dword [eax + 8]
mov al, byte [esi + 0x302]
xor ecx, ecx
test al, al
mov dword [ebp + 8], 0
setne cl
add ecx, reloc.WS2_32.dll_accept
mov dword [ebp + 0x14], ecx
test al, al
je 0x414a5f
mov eax, dword [esi + 0x304]
test eax, eax
je 0x414a5f
add eax, 0x40
mov dword [ebp + 8], eax
mov byte [ebp - 4], 0xd
push 0x1c
mov dword [ebp - 0x2c], vtable.RegistrySettingsManager.0
mov dword [ebp - 0x28], 0
call fcn.0049b504
add esp, 4
mov dword [ebp + 0x10], eax
mov byte [ebp - 4], 0xe
mov ecx, eax
push dword [ebp + 8]
push 1
push str.SoftwareTightVNCServer
push dword [ebp + 0x14]
call fcn.0041f2d0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xf
push eax
mov ecx, esi
call fcn.0046b820
cmp word [esi + 0xf8], 0
lea eax, [esi + 0xf8]
jbe 0x414b01
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.00478850
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 0x10
push eax
mov ecx, esi
call fcn.0046b820
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x60], vtable.IniFileSettingsManager.0
mov dword [ebp - 0x4c], vtable.StringStorage.0
call fcn.004039c0
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x5c], vtable.StringStorage.0
call fcn.004039c0
mov dword [ebp - 0x60], vtable.SettingsManager.0
mov ecx, esi
call fcn.0046b560
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], vtable.RegistrySettingsManager.0
test ecx, ecx
je 0x414b20
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [vtable.LocalMutex.0]
mov ecx, 0x555558
call dword [eax + 4]
mov esi, dword [0x558fbc]
mov byte [ebp - 4], 0x11
mov ecx, 0x555558
mov eax, dword [vtable.LocalMutex.0]
call dword [eax + 8]
lea eax, [esi + 0x2c]
mov dword [ebp - 0x3c], vtable.StringStorage.0
mov dword [edi + 0x384], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0x13
push eax
push 1
mov ecx, eax
call fcn.00403af0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x525db4
push ecx
call fcn.0049e720
add esp, 0xc
mov byte [ebp - 4], 0x14
mov esi, dword [edi + 0x384]
mov ecx, esi
mov dword [ebp - 0x2c], vtable.AutoLock.0
mov dword [ebp - 0x28], esi
mov eax, dword [esi]
call dword [eax + 4]
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x3c]
mov eax, dword [ebp - 0x3c]
push dword [esi + 0xa0]
call dword [eax + 4]
mov byte [ebp - 4], 0x16
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 8]
mov byte [ebp - 4], 0x14
mov esi, dword [edi + 0x384]
mov eax, dword [esi + 0xb0]
lea ecx, [esi + 0xb0]
mov dword [ebp + 8], esi
call dword [eax + 4]
mov esi, dword [esi + 0x34]
mov byte [ebp - 4], 0x17
mov ecx, dword [ebp + 8]
add ecx, 0xb0
mov eax, dword [ecx]
call dword [eax + 8]
mov byte [ebp - 4], 0x14
mov ecx, dword [edi + 0x3e4]
push esi
push 0x4ca4dc
push dword [ebp - 0x38]
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x3c], vtable.StringStorage.0
call fcn.004039c0
mov dword [ebp - 4], 0xb
jmp 0x414c3e
lea eax, [edi + 0x34]
push str.Initialize_WinSock
push eax
call fcn.00405ec0
add esp, 8
mov byte [ebp - 4], 0x19
call fcn.004581a0
mov dword [ebp - 4], 0xb
jmp 0x414c8b
push 0xe4
call fcn.0049b504
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
mov edx, dword [ebp - 0x1c]
lea eax, [edi + 0x34]
mov ecx, dword [ebp - 0x20]
add edx, 0x3ac
add ecx, 0x3a8
mov byte [ebp - 4], 0x1b
cmp byte [ebp - 0x11], 0
cmove ecx, edx
push ecx
push eax
push dword [ebp + 0xc]
push ecx
mov ecx, esi
call fcn.00417bd0
mov byte [ebp - 4], 0xb
lea ecx, [edi + 8]
mov dword [edi + 0x3b0], eax
mov dword [ebp + 8], ecx
lea esi, [eax + 0x14]
mov dword [ebp - 0x2c], vtable.AutoLock.0
mov eax, dword [esi]
mov ecx, esi
mov dword [ebp - 0x28], esi
call dword [eax + 4]
mov byte [ebp - 4], 0x1c
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
cmp eax, ecx
je 0x414d11
nop dword [eax]
mov edi, dword [ebp + 8]
cmp dword [eax], edi
mov edi, dword [ebp - 0x18]
je 0x414d21
add eax, 4
cmp eax, ecx
jne 0x414d00
cmp dword [esi + 0x24], ecx
je 0x414d27
lea eax, [edi + 8]
mov dword [ecx], eax
add dword [esi + 0x20], 4
jmp 0x414d34
mov byte [ebp - 4], 0x1d
jmp 0x414d38
lea eax, [ebp + 8]
push eax
push ecx
lea ecx, [esi + 0x1c]
call fcn.00411e10
mov byte [ebp - 4], 0x1e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov byte [ebp - 4], 0xb
mov ecx, 0x555558
mov eax, dword [vtable.LocalMutex.0]
add edi, 4
call dword [eax + 4]
mov esi, dword [0x558fbc]
mov byte [ebp - 4], 0x1f
mov ecx, 0x555558
mov eax, dword [vtable.LocalMutex.0]
call dword [eax + 8]
push edi
lea ecx, [esi + 4]
mov byte [ebp - 4], 0xb
call fcn.00411d70
mov edi, dword [ebp - 0x18]
mov eax, dword [edi + 0x388]
lea esi, [edi + 0x388]
mov ecx, esi
mov dword [ebp - 0x2c], vtable.AutoLock.0
mov dword [ebp - 0x28], esi
call dword [eax + 4]
mov ecx, edi
mov byte [ebp - 4], 0x20
call fcn.00416030
push dword [edi + 0x3b0]
movzx eax, byte [edi + 0x3a4]
lea ecx, [edi + 0x3c0]
push eax
call fcn.00417050
mov ecx, edi
call fcn.00415c60
mov ecx, edi
call fcn.00415da0
mov byte [ebp - 4], 0x21
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 8]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10