Function at 0x4145f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b9e72
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0xc
mov eax, 0x1924
call fcn.004b0320
mov eax, dword [0x554008]
xor eax, ebp
mov dword [ebp - 0x24], eax
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 - 0x1914], edi
mov dword [ebp - 0x1908], edi
mov eax, dword [ebx + 8]
mov ecx, 0x5555ac
mov byte [ebp - 0x1902], al
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x191c], edi
mov dword [ebp - 0x1934], eax
mov dword [edi], vtable.Singleton_class_TvnServer_.0
mov eax, dword [vtable.LocalMutex.0]
mov dword [ebp - 0x1918], edi
call dword [eax + 4]
mov eax, dword [0x558fc8]
test eax, eax
cmove eax, edi
mov dword [0x558fc8], 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 [ebx + 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.00471b70
push dword [ebx + 8]
lea ecx, [edi + 0x78]
mov byte [ebp - 4], 6
call fcn.0046b540
lea eax, [edi + 0x184]
mov dword [edi + method.LocalMutex.virtual_0], vtable.LocalMutex.0
push eax
call esi
mov eax, dword [ebx + 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
mov dword [edi + 0x1b4], 0
add edi, 0x1b8
lea esi, [edi + 4]
mov dword [ebp - 0x1908], edi
push 0
mov dword [ebp - 0x1908], esi
mov dword [edi], vtable.ExtraRfbServers.0
mov dword [esi], 0
mov dword [esi + 4], 0
push 0
call fcn.0040cd10
mov ecx, dword [ebp - 0x1914]
mov dword [esi], eax
add ecx, 0x34
mov word [edi + 0xc], 0
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 eax, dword [ebx + 0x10]
mov byte [ebp - 4], 0xb
mov edi, dword [ebp - 0x1914]
push 0x4c8f70
push 0x4c9658
push 0x5267e0
push ecx
mov dword [edi + 0x1dc], eax
mov dword [edi + 0x1e0], 1
call fcn.00405e90
mov eax, dword [vtable.LocalMutex.0]
add esp, 0x10
mov ecx, 0x555558
call dword [eax + 4]
mov esi, dword [0x558f94]
mov byte [ebp - 4], 0xc
mov ecx, 0x555558
mov eax, dword [vtable.LocalMutex.0]
call dword [eax + 8]
mov al, byte [esi + 0xf8]
xor ecx, ecx
test al, al
mov dword [ebp - 0x1914], 0
setne cl
add ecx, reloc.WS2_32.dll_accept
mov dword [ebp - 0x1908], ecx
test al, al
je 0x414880
mov eax, dword [esi + 0xfc]
test eax, eax
je 0x414880
add eax, 0x40
mov dword [ebp - 0x1914], eax
mov byte [ebp - 4], 0xd
push 0x1c
mov dword [ebp - method.RegistrySettingsManager.virtual_0], vtable.RegistrySettingsManager.0
mov dword [ebp - 0x190c], 0
call fcn.0049adb4
add esp, 4
mov dword [ebp - 0x1938], eax
mov byte [ebp - 4], 0xe
mov ecx, eax
push dword [ebp - 0x1914]
push 1
push str.SoftwareTightVNCServer
push dword [ebp - 0x1908]
call fcn.0041fbb0
mov dword [ebp - 0x190c], eax
lea eax, [ebp - 0x1910]
mov byte [ebp - 4], 0xf
push eax
mov ecx, esi
call fcn.0046ba90
mov ecx, esi
call fcn.0046b7d0
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x190c]
mov dword [ebp - method.RegistrySettingsManager.virtual_0], vtable.RegistrySettingsManager.0
test ecx, ecx
je 0x414903
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 [0x558f94]
mov byte [ebp - 4], 0x10
mov ecx, 0x555558
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 - 0x192c], 0
mov dword [ebp - 0x1928], 0
mov dword [ebp - 0x1924], 0
lea eax, [ebp - 0x192c]
mov byte [ebp - 4], 0x12
push eax
push 1
mov ecx, eax
call fcn.00403af0
mov eax, dword [ebp - 0x1928]
mov ecx, dword [ebp - 0x192c]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x524da8
push ecx
call fcn.0049dfe0
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 - 0x190c], esi
mov eax, dword [esi]
call dword [eax + 4]
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x1930]
mov eax, dword [ebp - 0x1930]
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 - 0x1908], esi
call dword [eax + 4]
mov esi, dword [esi + 0x34]
mov ecx, dword [ebp - 0x1908]
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 + 0x1dc]
push esi
push 0x4c94cc
push dword [ebp - 0x192c]
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x192c]
mov dword [ebp - method.StringStorage.virtual_0], vtable.StringStorage.0
call fcn.004039c0
mov dword [ebp - 4], 0xb
jmp 0x414a5a
lea esi, [edi + 0x34]
push str.Initialize_WinSock
push esi
call fcn.00405ec0
push 0x18d6
lea eax, [ebp - 0x1900]
push str.3333ed
push eax
call fcn.0049dfe0
push 0x526328
push esi
call fcn.00405ec0
mov al, byte [ebp - 0x1900]
xor al, 0x90
mov byte [ebp - 0x1901], al
movsx eax, al
push 0x526328
push esi
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
movaps xmmword [ebp - 0x1930], xmm0
call fcn.00405ec0
push 0x526328
push esi
call fcn.00405ec0
movaps xmm2, xmmword [ebp - 0x1930]
add esp, 0x2c
xor eax, eax
nop dword [eax]
nop dword [eax + eax]
movups xmm0, xmmword [ebp + eax - 0x1900]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x1900], xmm1
movups xmm0, xmmword [ebp + eax - 0x18f0]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x18f0], xmm1
movups xmm0, xmmword [ebp + eax - 0x18e0]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x18e0], xmm1
movups xmm0, xmmword [ebp + eax - 0x18d0]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x18d0], xmm1
add eax, 0x40
cmp eax, 0x18c0
jb 0x414ae0
cmp eax, 0x18d5
jae 0x414b64
mov dl, byte [ebp - 0x1901]
lea ecx, [ebp - 0x1900]
xor byte [ecx + eax], dl
inc eax
cmp eax, 0x18d5
jb 0x414b53
push 0x18d6
lea eax, [ebp - 0x1900]
push eax
push dword [ebp - 0x1934]
call fcn.0049dfe0
push str.Initialize_WinSock_finished
push esi
call fcn.00405ec0
add esp, 0x14
push 0
push dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov byte [ebp - 4], 0x18
call fcn.00458450
mov dword [ebp - 4], 0xb
jmp 0x414be4
push 0xe4
call fcn.0049adb4
mov edx, eax
add esp, 4
mov dword [ebp - 0x1938], edx
movzx ecx, byte [ebp - 0x1902]
xor ecx, 1
mov byte [ebp - 4], 0x1a
mov eax, dword [ebp - 0x1918]
lea eax, [eax + ecx*4]
add eax, 0x1a0
push eax
lea eax, [edi + 0x34]
push eax
push dword [ebx + 0xc]
push ecx
mov ecx, edx
call fcn.00417bc0
mov byte [ebp - 4], 0xb
lea ecx, [edi + 8]
mov dword [edi + 0x1a8], eax
mov dword [ebp - 0x1918], 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 - 0x190c], 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 0x414c76
lea edx, [edi + 8]
cmp dword [eax], edx
lea edx, [esi + 0x1c]
je 0x414c86
add eax, 4
cmp eax, ecx
jne 0x414c62
mov ecx, dword [edx + 4]
cmp dword [edx + 8], ecx
je 0x414c8c
lea eax, [edi + 8]
mov dword [ecx], eax
add dword [edx + 4], 4
jmp 0x414c9b
mov byte [ebp - 4], 0x1c
jmp 0x414c9f
lea eax, [ebp - 0x1918]
push eax
push ecx
mov ecx, edx
call fcn.00411c50
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 - 0x1918], eax
mov ecx, 0x555558
mov eax, dword [vtable.LocalMutex.0]
call dword [eax + 4]
mov esi, dword [0x558f94]
mov byte [ebp - 4], 0x1e
mov ecx, 0x555558
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 - 0x190c], 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 0x414d19
lea edx, [edi + 4]
cmp dword [eax], edx
lea edx, [esi + 0x1c]
je 0x414d29
add eax, 4
cmp eax, ecx
jne 0x414d05
mov ecx, dword [edx + 4]
cmp dword [edx + 8], ecx
je 0x414d2f
lea eax, [edi + 4]
mov dword [ecx], eax
add dword [edx + 4], 4
jmp 0x414d3e
mov byte [ebp - 4], 0x20
jmp 0x414d42
lea eax, [ebp - 0x1918]
push eax
push ecx
mov ecx, edx
call fcn.00411c50
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 - 0x190c], esi
call dword [eax + 4]
mov ecx, edi
mov byte [ebp - 4], 0x22
call fcn.00416020
push dword [edi + 0x1a8]
movzx eax, byte [edi + 0x19c]
lea ecx, [edi + 0x1b8]
push eax
call fcn.00417040
mov ecx, edi
call fcn.00415c40
mov ecx, edi
call fcn.00415d90
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
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.0049a89b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x14