Function at 0x456120
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x31c
mov edi, ecx
call fcn.004a90a2
add esp, 4
test eax, eax
je 0x45615a
mov esi, eax
call fcn.00404e30
mov esi, eax
mov dword [ebp - 0x434], esi
jmp 0x45616a
mov dword [ebp - 0x434], 0
mov esi, dword [ebp - 0x434]
mov ecx, edi
mov ebx, esi
call fcn.00405170
xor ebx, ebx
cmp byte [esi + 0x20], bl
je 0x456397
mov eax, dword [str.NoPassword_]
mov ecx, dword [0x4ddc08]
mov edx, dword [0x4ddc0c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edx
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x4561a0
mov ecx, dword [str.server_app]
mov edx, dword [0x4ddc14]
mov dword [eax], ecx
mov cx, word [0x4ddc18]
push 0x400001cf
mov dword [eax + 4], edx
mov dl, byte [0x4ddc1a]
push ebx
mov word [eax + 8], cx
push ebx
mov byte [eax + 0xa], dl
call dword [sym.imp.USER32.dll_OpenInputDesktop]
mov edi, eax
xor eax, eax
mov ecx, 0x4ecb00
cmp edi, ebx
jne 0x4561ee
push str.vncproperties.cpp_:_OpenInputdesktop_Error__n
jmp 0x4561f3
push str.vncproperties.cpp_:_OpenInputdesktop_OK_n
call fcn.00403230
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
mov esi, eax
mov dword [ebp - 0x43c], esi
cmp edi, ebx
je 0x456280
lea eax, [ebp - 0x444]
push eax
push pe_nt_image_headers32
lea ecx, [ebp - 0x328]
push ecx
push 2
push edi
call dword [sym.imp.USER32.dll_GetUserObjectInformationA]
test eax, eax
jne 0x456246
push str.vncproperties.cpp_:__GetUserObjectInformation__n
mov ecx, 0x4ecb00
call fcn.00403230
add esp, 4
push esi
push edi
lea edx, [ebp - 0x328]
push edx
push str.vncproperties.cpp_:_SelectHDESK_to__s___x__from__x_n
xor eax, eax
mov ecx, 0x4ecb00
call fcn.00403230
add esp, 0x10
push edi
call dword [sym.imp.USER32.dll_SetThreadDesktop]
test eax, eax
jne 0x456280
push str.vncproperties.cpp_:_SelectHDESK:_SetThreadDesktop__n
mov ecx, 0x4ecb00
call fcn.00403230
add esp, 4
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push ebx
push ebx
push ebx
push ebx
push 0x64
push 0x64
push ebx
push ebx
push 0x10000000
push str.dummy
push str.STATIC
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
push ebx
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 0x438], ebx
mov byte [ebp - 0x228], bl
lea ebx, [ebp - 0x430]
call fcn.0040c260
mov eax, ebx
push eax
push 0x200
lea ecx, [ebp - 0x228]
push ecx
push 0x4ce44c
push str.DSMPluginConfig
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp - 0x434]
mov eax, dword [ecx + 0x2f8]
test eax, eax
je 0x456316
lea edx, [ebp - 0x438]
push edx
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x24]
push edx
push esi
call eax
add esp, 0x10
jmp 0x456326
mov ecx, dword [ecx + 0x2d8]
lea eax, [ebp - 0x24]
push eax
push esi
call ecx
add esp, 8
mov esi, dword [ebp - 0x438]
test esi, esi
je 0x456355
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x456335
sub eax, edx
je 0x456355
push esi
lea edx, [ebp - 0x228]
push 0x1ff
push edx
call fcn.004a9480
add esp, 0xc
lea eax, [ebp - 0x430]
push eax
lea ecx, [ebp - 0x228]
push ecx
push str.DSMPluginConfig
push str.admin
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov edx, dword [ebp - 0x43c]
push edx
call dword [sym.imp.USER32.dll_SetThreadDesktop]
test edi, edi
je 0x456391
push edi
call dword [sym.imp.USER32.dll_CloseDesktop]
mov esi, dword [ebp - 0x434]
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret