Function at 0x140080360
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x4c0
mov rax, qword [0x1401ef010]
xor rax, rsp
mov qword [rsp + 0x4b0], rax
mov rbx, rcx
mov ecx, 0x348
call fcn.140132648
mov qword [rsp + 0x68], rax
mov rcx, rax
call fcn.140019c40
mov rdi, rax
mov qword [rsp + 0x70], rax
mov rdx, rbx
mov rcx, rax
call fcn.140019f70
cmp byte [rdi + 0x38], 0
je 0x140080637
lea r8, str.NoPassword_
mov edx, 0x20
lea rcx, [rsp + 0x190]
call fcn.14013b330
lea r8, str.server_app
mov edx, 0x20
lea rcx, [rsp + 0x190]
call fcn.14013b390
xor edx, edx
xor ecx, ecx
mov r8d, 0x400001cf
call qword [sym.imp.USER32.dll_OpenInputDesktop]
mov rbx, rax
lea r8, str.Secure_Plugin_:_OpenInputdesktop_Error__n
lea rax, str.Secure_Plugin_:_OpenInputdesktop_OK_n
test rbx, rbx
cmovne r8, rax
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140018c00
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
call qword [sym.imp.USER32.dll_GetThreadDesktop]
mov rbp, rax
xor r14d, r14d
mov dword [rsp + 0x60], r14d
xor edx, edx
mov r8d, 0x100
lea rcx, [rsp + 0x1b0]
call fcn.140135010
test rbx, rbx
je 0x1400804e4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x100
lea r8, [rsp + 0x1b0]
lea edx, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetUserObjectInformationA]
test eax, eax
jne 0x14008049b
lea r8, str.Secure_Plugin_:__GetUserObjectInformation__n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140018c00
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x1b0]
lea r8, str.Secure_Plugin_:_SelectHDESK_to__s___x__from__x_n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140018c00
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetThreadDesktop]
test eax, eax
jne 0x1400804e4
lea r8, str.Secure_Plugin_:_SelectHDESK:_SetThreadDesktop__n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140018c00
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x38], Ordinal_102
mov dword [rsp + 0x30], Ordinal_102
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
mov r9d, 0x10000000
lea r8, str.dummy
lea rdx, str.STATIC
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov rsi, rax
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov qword [rsp + 0x68], r14
mov byte [rsp + 0x2b0], r14b
lea rcx, [rsp + 0x80]
call fcn.140022050
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x200
lea r9, [rsp + 0x2b0]
lea r8, [0x14019528c]
lea rdx, str.DSMPluginConfig
lea rcx, str.admin
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov rax, qword [rdi + 0x308]
lea rdx, [rsp + 0x190]
mov rcx, rsi
test rax, rax
je 0x1400805be
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x2b0]
call rax
jmp 0x1400805c4
call qword [rdi + 0x2c8]
mov r8, qword [rsp + 0x68]
test r8, r8
je 0x1400805f5
mov rax, 0xffffffffffffffff
inc rax
cmp byte [r8 + rax], r14b
jne 0x1400805d5
test rax, rax
je 0x1400805f5
mov edx, 0x1ff
lea rcx, [rsp + 0x2b0]
call fcn.14013b330
lea r9, [rsp + 0x80]
lea r8, [rsp + 0x2b0]
lea rdx, str.DSMPluginConfig
lea rcx, str.admin
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, rbp
call qword [sym.imp.USER32.dll_SetThreadDesktop]
test rbx, rbx
je 0x140080637
mov rcx, rbx
call qword [sym.imp.USER32.dll_CloseDesktop]
nop
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
mov rcx, qword [rsp + 0x4b0]
xor rcx, rsp
call fcn.140132620
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret