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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x55800c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x31c
mov esi, ecx
call fcn.004cbf3d
add esp, 4
mov dword [ebp - 0x438], eax
mov ecx, eax
call fcn.0041e960
push ecx
mov edi, eax
push esi
mov ecx, edi
call fcn.0041ecb0
cmp byte [edi + 0x20], 0
je 0x47b280
push str.NoPassword_
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.004d0170
add esp, 0xc
lea eax, [ebp - 0x24]
push str.server_app
push 0x20
push eax
call fcn.004d01ca
add esp, 0xc
push 0x400001cf
push 0
push 0
call dword [sym.imp.USER32.dll_OpenInputDesktop]
mov esi, eax
mov ecx, str.d:_saasultravncwinvncwinvnc_vncproperties.cpp_:_OpenInputdesktop_Error__n
mov eax, str.d:_saasultravncwinvncwinvnc_vncproperties.cpp_:_OpenInputdesktop_OK_n
test esi, esi
cmovne ecx, eax
push ecx
push 0
push 0x558c50
call fcn.0041c840
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 esi, esi
je 0x47b164
lea eax, [ebp - 0x43c]
push eax
push 0x100
lea eax, [ebp - 0x328]
push eax
push 2
push esi
call dword [sym.imp.USER32.dll_GetUserObjectInformationA]
test eax, eax
jne 0x47b129
push str.d:_saasultravncwinvncwinvnc_vncproperties.cpp_:__GetUserObjectInformation__n
push eax
push 0x558c50
call fcn.0041c840
add esp, 0xc
push ebx
push esi
lea eax, [ebp - 0x328]
push eax
push str.d:_saasultravncwinvncwinvnc_vncproperties.cpp_:_SelectHDESK_to__s___x__from__x_n
push 0
push 0x558c50
call fcn.0041c840
add esp, 0x18
push esi
call dword [sym.imp.USER32.dll_SetThreadDesktop]
test eax, eax
jne 0x47b164
push str.d:_saasultravncwinvncwinvnc_vncproperties.cpp_:_SelectHDESK:_SetThreadDesktop__n
push eax
push 0x558c50
call fcn.0041c840
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.004268c0
lea eax, [ebp - 0x430]
push eax
push 0x200
lea eax, [ebp - 0x228]
push eax
push 0x518188
push str.DSMPluginConfig
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [edi + 0x2f8]
test eax, eax
je 0x47b206
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 0x47b216
lea eax, [ebp - 0x24]
push eax
mov eax, dword [edi + 0x2d8]
push ebx
call eax
add esp, 8
mov edx, dword [ebp - 0x434]
test edx, edx
je 0x47b245
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47b225
sub ecx, ebx
je 0x47b245
push edx
lea eax, [ebp - 0x228]
push 0x1ff
push eax
call fcn.004d0170
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 esi, esi
je 0x47b280
push esi
call dword [sym.imp.USER32.dll_CloseDesktop]
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cbf27
mov esp, ebp
pop ebp
ret