Function at 0x471750
Capabilities:
Check os version
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f60b6
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x55800c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
lea ecx, [edi + 4]
call fcn.00477670
lea ecx, [edi + 0xc84]
call fcn.004268c0
mov edx, 2
mov byte [edi + 0xee8], 0
push 0
mov dword [edi + 0xd94], 0
mov dword [edi + 0xd8c], 1
lea ecx, [edx + 4]
call fcn.00429a90
add esp, 4
test al, al
je 0x4717c8
mov byte [edi + 0xee8], 1
lea eax, [edi + 0x1100]
mov dword [edi + 0xef0], 0
push eax
mov dword [edi + 0xef8], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push str.d:_saasultravncwinvncwinvnc_vncmenu.cpp_:_vncmenu_server__n
push 0
push 0x558c50
mov dword [ebp - 4], 0
call fcn.0041c840
add esp, 0xc
mov dword [edi + 0x122c], 0
mov dword [edi + 0x1240], 0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push str.user32.dll
mov byte [edi + 0x1244], 0
mov dword [edi + 0x1248], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x4718a3
push str.ChangeWindowMessageFilter
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x47189c
push 1
push dword [0x569bf0]
call ebx
push 1
push dword [0x569bfc]
call ebx
push 1
push dword [0x569be8]
call ebx
push 1
push dword [0x569bf4]
call ebx
push 1
push dword [0x569c00]
call ebx
push 1
push dword [0x569bec]
call ebx
push 1
push dword [0x569bf8]
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp + 8]
lea ecx, [edi + 0x1120]
mov dword [edi + 0x1118], 0
mov dword [edi + 0x111c], 0
mov dword [edi], eax
call fcn.00484360
mov eax, dword [0x568a68]
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push 0
mov dword [ebp - 0x54], 0x30
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0x472ff0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], eax
call esi
push 0x7f00
push 0
mov dword [ebp - 0x3c], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0
mov dword [ebp - 0x38], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push 0x7f00
push 0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], str.WinVNC_Tray_Icon
call esi
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push dword [0x568a68]
push 0
push 0
push 0xc8
push 0xc8
push bind
push bind
push 0xcf0000
push str.WinVNC_Tray_Icon
push str.WinVNC_Tray_Icon
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [edi + 0xefc], eax
mov dword [0x563180], eax
test eax, eax
jne 0x471996
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x471c7a
mov eax, dword [edi + 0x122c]
test eax, eax
jne 0x4719b5
push str.wtsapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [edi + 0x122c], eax
test eax, eax
je 0x4719cf
push str.WTSRegisterSessionNotification
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4719cf
push 0
push dword [edi + 0xefc]
call eax
push edi
push 0xffffffffffffffeb
push dword [edi + 0xefc]
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov esi, dword [ebp + 8]
mov ecx, dword [edi + 0xefc]
mov eax, dword [esi]
mov edx, dword [eax + 0x68]
cmp eax, vtable.vncServer.0
jne 0x471ca1
lea eax, [esi + 0x38]
mov dword [ebp + 8], ecx
mov dword [ebp - 0x24], eax
push eax
mov dword [ebp - 0x20], 0x2c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 1
lea edx, [ebp + 8]
mov eax, dword [esi + 0x358]
push edx
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov ecx, dword [eax + 4]
push ecx
push eax
mov dword [ebp - 0x18], ecx
call fcn.00483d70
mov edx, eax
mov ecx, 0x15555554
mov eax, dword [esi + 0x35c]
sub ecx, eax
cmp ecx, 1
jb 0x471c97
inc eax
mov dword [esi + 0x35c], eax
mov eax, dword [ebp - 0x14]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x18]
mov dword [eax], edx
lea eax, [esi + 0x38]
push eax
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [edi]
lea ecx, [edi + 4]
call fcn.004778a0
test eax, eax
je 0x471989
mov eax, dword [edi]
mov dword [edi + 0xd88], eax
lea eax, [edi + 0xc84]
push eax
push 0
push str.UseRegistry
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
xor edx, edx
lea ecx, [edi + 0xc80]
cmp eax, 1
sete dl
mov dword [edi + 0xc80], edx
jne 0x471ab8
push 1
call fcn.0047c300
jmp 0x471abd
call fcn.0047cfe0
cmp dword [edi + 0x11c], 0
je 0x471ade
test ebx, ebx
je 0x471ade
push 1
push dword [0x569bf0]
call ebx
push 1
push dword [0x569bfc]
call ebx
push 0
push 0x1388
push 1
push dword [edi + 0xefc]
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [edi]
mov dword [edi + 0xef4], eax
lea eax, [edi + 0x124c]
push eax
mov dword [eax], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [edi + 0x125c], 2
jne 0x471bb6
cmp dword [edi + 0x1250], 5
jne 0x471bb6
cmp dword [edi + 0x1254], 1
jb 0x471bb6
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x10
push 0x32
call esi
push eax
push 0x31
call esi
mov ebx, dword [sym.imp.USER32.dll_LoadImageA]
push eax
push 1
push str.icon1.ico
push 0
call ebx
push 0x10
push 0x32
mov dword [edi + 0x1224], eax
call esi
push eax
push 0x31
call esi
push eax
push 1
push str.icon2.ico
push 0
call ebx
cmp dword [edi + 0x1224], 0
mov dword [edi + 0x1228], eax
jne 0x471ba2
push 0
push 0x32
call esi
push eax
push 0x31
call esi
push eax
push 1
push 0x66
push dword [0x567d1c]
call ebx
mov dword [edi + 0x1224], eax
cmp dword [edi + 0x1228], 0
jne 0x471c59
push 0
jmp 0x471c3a
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x90
push 0x32
call esi
push eax
push 0x31
call esi
mov ebx, dword [sym.imp.USER32.dll_LoadImageA]
push eax
push 1
push str.icon1.ico
push 0
call ebx
push 0x90
push 0x32
mov dword [edi + 0x1224], eax
call esi
push eax
push 0x31
call esi
push eax
push 1
push str.icon2.ico
push 0
call ebx
cmp dword [edi + 0x1224], 0
mov dword [edi + 0x1228], eax
jne 0x471c2c
push 0x80
push 0x32
call esi
push eax
push 0x31
call esi
push eax
push 1
push 0x66
push dword [0x567d1c]
call ebx
mov dword [edi + 0x1224], eax
cmp dword [edi + 0x1228], 0
jne 0x471c59
push 0x80
push 0x32
call esi
push eax
push 0x31
call esi
push eax
push 1
push 0x86
push dword [0x567d1c]
call ebx
mov dword [edi + 0x1228], eax
push 0x68
push dword [0x567d1c]
call dword [sym.imp.USER32.dll_LoadMenuA]
mov ecx, edi
mov dword [edi + 0xf00], eax
call fcn.004721e0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [ebp - 4], 0xffffffff
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 4
push str.list_T__too_long
call fcn.004cbeda
push ecx
mov ecx, esi
call edx
jmp 0x471a66