Function at 0x413ac0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5ce2
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x190c
call fcn.004ac240
mov eax, dword [0x4fa008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x18f0], edi
mov dword [ebp - 0x1904], edi
mov eax, dword [ebp + 8]
mov ecx, 0x4fb5ac
mov byte [ebp - 0x18e9], al
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1908], edi
mov dword [ebp - 0x18fc], eax
mov dword [edi], vtable.Singleton_class_TvnServer_.0
mov eax, dword [vtable.LocalMutex.0]
mov dword [ebp - 0x1900], edi
call dword [eax + 4]
mov eax, dword [0x4feeb8]
test eax, eax
cmove eax, edi
mov dword [0x4feeb8], eax
mov dword [ebp - 4], 0
mov ecx, 0x4fb5ac
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.1.0
mov dword [edi + 4], vtable.TvnServer.0
mov dword [edi + 8], vtable.TvnServer.2.0
call fcn.00405480
lea ecx, [edi + 0x40]
mov byte [ebp - 4], 5
call fcn.0046de60
push dword [ebp + 8]
lea ecx, [edi + 0x78]
mov byte [ebp - 4], 6
call fcn.00467830
lea eax, [edi + 0x184]
mov dword [edi + method.LocalMutex.virtual_0], vtable.LocalMutex.0
push eax
call esi
mov eax, dword [ebp + 8]
mov byte [edi + 0x19c], 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 + 0x1a8], 0
mov dword [edi + 0x1ac], 0
mov dword [edi + 0x1b0], 0
add edi, 0x1b4
mov dword [ebp - 0x1904], edi
lea esi, [edi + 4]
push 0
mov dword [ebp - 0x1904], esi
mov dword [edi], vtable.ExtraRfbServers.0
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040c400
mov dword [esi], eax
mov esi, dword [ebp - 0x18f0]
mov word [edi + 0xc], 0
add esi, 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], esi
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 0xb
mov edi, dword [ebp - 0x18f0]
push 0x4c4f70
push 0x4c5630
push 0x4cc6f4
push esi
mov dword [edi + 0x1d8], eax
mov dword [edi + 0x1dc], 1
call fcn.004056b0
mov eax, dword [vtable.LocalMutex.0]
add esp, 0x10
mov ecx, 0x4fb558
call dword [eax + 4]
mov eax, dword [0x4fee84]
mov dword [ebp - 0x18f0], eax
mov byte [ebp - 4], 0xc
mov ecx, 0x4fb558
mov eax, dword [vtable.LocalMutex.0]
call dword [eax + 8]
push str.Initialize_WinSock
push esi
mov byte [ebp - 4], 0xb
call fcn.004056e0
push 0x18d2
lea eax, [ebp - 0x18e8]
push 0x4cc740
push eax
call fcn.0049a300
push str.Initialize_WinSock_Success
push esi
call fcn.004056e0
push str.Initialize_WinSock_Success
push esi
call fcn.004056e0
push str.Initialize_WinSock_Success
push esi
call fcn.004056e0
push 0x18d2
lea eax, [ebp - 0x18e8]
push eax
push dword [ebp - 0x18fc]
call fcn.0049a300
push str.Initialize_WinSock_finished
push esi
call fcn.004056e0
add esp, 0x40
push 0
push dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov esi, dword [ebp - 0x18f0]
xor ecx, ecx
mov dword [ebp - 0x18f0], 0
mov al, byte [esi + 0xf8]
test al, al
setne cl
add ecx, reloc.WS2_32.dll_accept
mov dword [ebp - 0x18fc], ecx
test al, al
je 0x413db6
mov eax, dword [esi + 0xfc]
test eax, eax
je 0x413db6
add eax, 0x40
mov dword [ebp - 0x18f0], eax
mov byte [ebp - 4], 0xd
push 0x1c
mov dword [ebp - method.RegistrySettingsManager.virtual_0], vtable.RegistrySettingsManager.0
mov dword [ebp - 0x18f4], 0
call fcn.004970d4
add esp, 4
mov dword [ebp - 0x1904], eax
mov byte [ebp - 4], 0xe
mov ecx, eax
push dword [ebp - 0x18f0]
push 1
push str.SoftwareTightVNCServer
push dword [ebp - 0x18fc]
call fcn.0041ebb0
mov dword [ebp - 0x18f4], eax
lea eax, [ebp - 0x18f8]
mov byte [ebp - 4], 0xf
push eax
mov ecx, esi
call fcn.00467d80
mov ecx, esi
call fcn.00467ac0
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x18f4]
mov dword [ebp - method.RegistrySettingsManager.virtual_0], vtable.RegistrySettingsManager.0
test ecx, ecx
je 0x413e39
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [vtable.LocalMutex.0]
mov ecx, 0x4fb558
call dword [eax + 4]
mov esi, dword [0x4fee84]
mov byte [ebp - 4], 0x10
mov ecx, 0x4fb558
mov eax, dword [vtable.LocalMutex.0]
call dword [eax + 8]
lea eax, [esi + 0x2c]
mov dword [ebp - method.StringStorage.virtual_0], vtable.StringStorage.0
mov dword [edi + 0x17c], eax
mov dword [ebp - 0x1914], 0
mov dword [ebp - 0x1910], 0
mov dword [ebp - 0x190c], 0
lea eax, [ebp - 0x1914]
mov byte [ebp - 4], 0x12
push eax
push 1
mov ecx, eax
call fcn.00403cc0
mov eax, dword [ebp - 0x1910]
mov ecx, dword [ebp - 0x1914]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cb34c
push ecx
call fcn.0049a300
add esp, 0xc
mov byte [ebp - 4], 0x13
mov esi, dword [edi + 0x17c]
mov ecx, esi
mov dword [ebp - method.AutoLock.virtual_0], vtable.AutoLock.0
mov dword [ebp - 0x18f4], esi
mov eax, dword [esi]
call dword [eax + 4]
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x1918]
mov eax, dword [ebp - 0x1918]
push dword [esi + 0xa0]
call dword [eax + 4]
mov byte [ebp - 4], 0x15
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 8]
mov byte [ebp - 4], 0x13
mov esi, dword [edi + 0x17c]
mov eax, dword [esi + 0xb0]
lea ecx, [esi + 0xb0]
mov dword [ebp - 0x18fc], esi
call dword [eax + 4]
mov esi, dword [esi + 0x34]
mov ecx, dword [ebp - 0x18fc]
add ecx, 0xb0
mov byte [ebp - 4], 0x16
mov eax, dword [ecx]
call dword [eax + 8]
mov byte [ebp - 4], 0x13
mov ecx, dword [edi + 0x1d8]
push esi
push 0x4c54b8
push dword [ebp - 0x1914]
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x1914]
mov dword [ebp - method.StringStorage.virtual_0], vtable.StringStorage.0
call fcn.00403b90
mov dword [ebp - 4], 0xb
jmp 0x413f8a
mov byte [ebp - 4], 0x18
call fcn.00454980
mov dword [ebp - 4], 0xb
jmp 0x413fcf
push 0xe4
call fcn.004970d4
mov edx, eax
add esp, 4
mov dword [ebp - 0x1904], edx
movzx ecx, byte [ebp - 0x18e9]
xor ecx, 1
mov byte [ebp - 4], 0x1a
mov eax, dword [ebp - 0x1900]
lea eax, [eax + ecx*4]
add eax, 0x1a0
push eax
lea eax, [edi + 0x34]
push eax
push dword [ebp + 0xc]
push ecx
mov ecx, edx
call fcn.00416bf0
mov byte [ebp - 4], 0xb
lea ecx, [edi + 8]
mov dword [edi + 0x1a8], eax
mov dword [ebp - 0x1900], ecx
lea esi, [eax + 0x14]
mov dword [ebp - method.AutoLock.virtual_0], vtable.AutoLock.0
mov eax, dword [esi]
mov ecx, esi
mov dword [ebp - 0x18f4], esi
call dword [eax + 4]
lea edx, [esi + 0x1c]
mov byte [ebp - 4], 0x1b
mov eax, dword [edx]
mov ecx, dword [edx + 4]
cmp eax, ecx
je 0x414064
nop dword [eax]
lea edx, [edi + 8]
cmp dword [eax], edx
lea edx, [esi + 0x1c]
je 0x414074
add eax, 4
cmp eax, ecx
jne 0x414050
mov ecx, dword [edx + 4]
cmp dword [edx + 8], ecx
je 0x41407a
lea eax, [edi + 8]
mov dword [ecx], eax
add dword [edx + 4], 4
jmp 0x414089
mov byte [ebp - 4], 0x1c
jmp 0x41408d
lea eax, [ebp - 0x1900]
push eax
push ecx
mov ecx, edx
call fcn.00411130
mov byte [ebp - 4], 0x1d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov byte [ebp - 4], 0xb
lea eax, [edi + 4]
mov dword [ebp - 0x1900], eax
mov ecx, 0x4fb558
mov eax, dword [vtable.LocalMutex.0]
call dword [eax + 4]
mov esi, dword [0x4fee84]
mov byte [ebp - 4], 0x1e
mov ecx, 0x4fb558
mov eax, dword [vtable.LocalMutex.0]
call dword [eax + 8]
add esi, 4
mov byte [ebp - 4], 0xb
mov ecx, esi
mov dword [ebp - method.AutoLock.virtual_0], vtable.AutoLock.0
mov dword [ebp - 0x18f4], esi
mov eax, dword [esi]
call dword [eax + 4]
lea edx, [esi + 0x1c]
mov byte [ebp - 4], 0x1f
mov eax, dword [edx]
mov ecx, dword [edx + 4]
cmp eax, ecx
je 0x414107
lea edx, [edi + 4]
cmp dword [eax], edx
lea edx, [esi + 0x1c]
je 0x414117
add eax, 4
cmp eax, ecx
jne 0x4140f3
mov ecx, dword [edx + 4]
cmp dword [edx + 8], ecx
je 0x41411d
lea eax, [edi + 4]
mov dword [ecx], eax
add dword [edx + 4], 4
jmp 0x41412c
mov byte [ebp - 4], 0x20
jmp 0x414130
lea eax, [ebp - 0x1900]
push eax
push ecx
mov ecx, edx
call fcn.00411130
mov byte [ebp - 4], 0x21
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov byte [ebp - 4], 0xb
lea esi, [edi + 0x180]
mov eax, dword [esi]
mov ecx, esi
mov dword [ebp - method.AutoLock.virtual_0], vtable.AutoLock.0
mov dword [ebp - 0x18f4], esi
call dword [eax + 4]
mov ecx, edi
mov byte [ebp - 4], 0x22
call fcn.004151d0
push dword [edi + 0x1a8]
movzx eax, byte [edi + 0x19c]
lea ecx, [edi + 0x1b4]
push eax
call fcn.00416100
mov ecx, edi
call fcn.00414f40
mov byte [ebp - 4], 0x23
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 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 - 0x14]
xor ecx, ebp
call fcn.00496bbb
mov esp, ebp
pop ebp
ret 0x14