Function at 0x468470
Capabilities:
Hide graphical window
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x31c
mov edi, ecx
call fcn.004ad3ab
add esp, 4
test eax, eax
je 0x4684a4
mov ecx, eax
call fcn.00416fe0
mov esi, eax
jmp 0x4684a6
xor esi, esi
push ecx
push edi
mov ecx, esi
call fcn.00417470
cmp byte [esi + 0x20], 0
je 0x4686d0
movq xmm0, qword [str.NoPassword_]
lea ecx, [ebp - 0x24]
mov eax, dword [0x4e8a64]
dec ecx
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x1c], eax
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4684d2
mov eax, dword [str.server_app]
mov dword [ecx], eax
mov eax, dword [0x4e8a6c]
mov dword [ecx + 4], eax
mov ax, word [0x4e8a70]
push 0x400001cf
mov word [ecx + 8], ax
mov al, byte [0x4e8a72]
push 0
push 0
mov byte [ecx + 0xa], al
call dword [sym.imp.USER32.dll_OpenInputDesktop]
mov edi, eax
test edi, edi
jne 0x468519
push str.vncproperties.cpp_:_OpenInputdesktop_Error__n
jmp 0x46851e
push str.vncproperties.cpp_:_OpenInputdesktop_OK_n
push 0
push 0x4f6c50
call fcn.00414f90
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
mov ebx, eax
mov dword [ebp - 0x438], ebx
test edi, edi
je 0x4685b4
lea eax, [ebp - 0x440]
push eax
push 0x100
lea eax, [ebp - 0x328]
push eax
push 2
push edi
call dword [sym.imp.USER32.dll_GetUserObjectInformationA]
test eax, eax
jne 0x468579
push str.vncproperties.cpp_:__GetUserObjectInformation__n
push eax
push 0x4f6c50
call fcn.00414f90
add esp, 0xc
push ebx
push edi
lea eax, [ebp - 0x328]
push eax
push str.vncproperties.cpp_:_SelectHDESK_to__s___x__from__x_n
push 0
push 0x4f6c50
call fcn.00414f90
add esp, 0x18
push edi
call dword [sym.imp.USER32.dll_SetThreadDesktop]
test eax, eax
jne 0x4685b4
push str.vncproperties.cpp_:_SelectHDESK:_SetThreadDesktop__n
push eax
push 0x4f6c50
call fcn.00414f90
add esp, 0xc
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
push 0
push 0
push 0
push 0x64
push 0x64
push 0
push 0
push 0x10000000
push str.dummy
push str.STATIC
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ebx, eax
push 0
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [ebp - 0x430]
mov dword [ebp - 0x434], 0
mov byte [ebp - 0x228], 0
call fcn.0041e390
lea eax, [ebp - 0x430]
push eax
push 0x200
lea eax, [ebp - 0x228]
push eax
push 0x4d9f42
push str.DSMPluginConfig
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esi + 0x2f8]
test eax, eax
je 0x468656
lea ecx, [ebp - 0x434]
push ecx
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push ebx
call eax
add esp, 0x10
jmp 0x468666
lea eax, [ebp - 0x24]
push eax
mov eax, dword [esi + 0x2d8]
push ebx
call eax
add esp, 8
mov edx, dword [ebp - 0x434]
test edx, edx
je 0x468695
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x468675
sub ecx, ebx
je 0x468695
push edx
lea eax, [ebp - 0x228]
push 0x1ff
push eax
call fcn.004ad6d8
add esp, 0xc
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x228]
push eax
push str.DSMPluginConfig
push str.admin
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
call dword [sym.imp.ole32.dll_CoUninitialize]
push dword [ebp - 0x438]
call dword [sym.imp.USER32.dll_SetThreadDesktop]
test edi, edi
je 0x4686d0
push edi
call dword [sym.imp.USER32.dll_CloseDesktop]
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004aca59
mov esp, ebp
pop ebp
ret