Function at 0x14004d750
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3250]
mov eax, 0x3350
call fcn.140167c10
sub rsp, rax
mov rax, qword [0x1401f0010]
xor rax, rsp
mov qword [rbp + 0x3240], rax
mov qword [rbp - 0x80], rdx
mov rbx, rcx
xor r12d, r12d
mov r15d, r12d
mov qword [rbp - 0x68], r12
lea rcx, str.wtsapi32
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbp - 0x60], rax
test rax, rax
je 0x14004d7c4
lea rdx, [0x1401c80d0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
mov qword [rbp - 0x68], rax
mov r14, r12
mov qword [rbp - 0x78], r12
lea rcx, str.wtsapi32
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbp - 0x70], rax
test rax, rax
je 0x14004d7f8
lea rdx, [0x1401c80f8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
mov qword [rbp - 0x78], rax
mov dword [rbx + 0xe448], r12d
mov edi, r12d
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov esi, eax
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0xa
jg 0x14004d821
cmp esi, 0xffffffff
je 0x14004d802
lea ecx, [rsi - 1]
cmp ecx, 0xfffffffd
ja 0x14004db7d
mov rax, qword [rbx + 0xe440]
mov dword [rax], esi
mov rax, qword [rbx + 0xe440]
xorps xmm0, xmm0
movups xmmword [rax + 4], xmm0
movups xmmword [rax + 0x14], xmm0
mov rax, qword [rbx + 0xe440]
movups xmmword [rax + 0x24], xmm0
movups xmmword [rax + 0x34], xmm0
mov rcx, qword [rbx + 0xe440]
add rcx, 4
lea r8, str.Not_Active
mov edx, 0x20
call fcn.14013ac00
mov rcx, qword [rbx + 0xe440]
add rcx, 0x24
lea r8, str.Console
mov edx, 0x20
call fcn.14013ac00
movsxd rax, dword [rbx + 0xe448]
imul rcx, rax, 0x64
mov rax, qword [rbx + 0xe440]
xorps xmm0, xmm0
movups xmmword [rcx + rax + 0x44], xmm0
movups xmmword [rcx + rax + 0x54], xmm0
movsxd rax, dword [rbx + 0xe448]
imul rcx, rax, 0x64
mov rax, qword [rbx + 0xe440]
add rax, 0x44
add rcx, rax
lea r8, str.Current_Console
mov edx, 0x20
call fcn.14013ac00
lea rcx, str.WTSAPI32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x70], r12
mov dword [rsp + 0x60], r12d
test rax, rax
je 0x14004d960
lea rdx, str.WTSQuerySessionInformationA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0xe440]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x70]
mov r8d, 5
mov edx, dword [rcx]
xor ecx, ecx
call rax
test eax, eax
je 0x14004d960
mov rcx, qword [rbx + 0xe440]
add rcx, 0x44
mov r8, qword [rsp + 0x70]
mov edx, 0x20
call fcn.14013ac00
mov rcx, qword [rbx + 0xe440]
add rcx, 4
lea r8, str.Active
mov edx, 0x20
call fcn.14013ac00
inc dword [rbx + 0xe448]
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x40], r12d
test r15, r15
je 0x14004dd81
test r14, r14
je 0x14004dd81
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call r15
test eax, eax
je 0x14004dd81
mov edi, r12d
cmp dword [rsp + 0x40], r12d
jbe 0x14004dd79
mov eax, edi
lea rcx, [rax + rax*2]
lea r15, [rcx*8]
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + r15 + 0x10]
test eax, 0xfffffffc
jne 0x14004db6c
cmp eax, 1
je 0x14004db6c
lea rdx, str.Console
mov rcx, qword [rcx + r15 + 8]
call fcn.14014a678
test eax, eax
je 0x14004db6c
movsxd rax, dword [rbx + 0xe448]
imul r8, rax, 0x64
mov rdx, qword [rbx + 0xe440]
mov rax, qword [rsp + 0x48]
mov ecx, dword [r15 + rax]
mov dword [r8 + rdx], ecx
movsxd rax, dword [rbx + 0xe448]
imul rcx, rax, 0x64
mov rax, qword [rbx + 0xe440]
xorps xmm0, xmm0
movups xmmword [rcx + rax + 4], xmm0
movups xmmword [rcx + rax + 0x14], xmm0
movsxd rax, dword [rbx + 0xe448]
imul rcx, rax, 0x64
mov rax, qword [rbx + 0xe440]
movups xmmword [rcx + rax + 0x24], xmm0
movups xmmword [rcx + rax + 0x34], xmm0
movsxd rax, dword [rbx + 0xe448]
imul rcx, rax, 0x64
mov rax, qword [rbx + 0xe440]
add rax, 4
add rcx, rax
lea r8, str.Active
mov edx, 0x20
call fcn.14013ac00
movsxd rax, dword [rbx + 0xe448]
imul rcx, rax, 0x64
mov rax, qword [rbx + 0xe440]
add rax, 0x24
add rcx, rax
mov r8, qword [rsp + 0x48]
mov r8, qword [r15 + r8 + 8]
mov edx, 0x20
call fcn.14013ac00
lea rcx, str.WTSAPI32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x50], r12d
test rax, rax
je 0x14004db50
lea rdx, str.WTSQuerySessionInformationA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x58]
mov r8d, 5
mov rcx, qword [rsp + 0x48]
mov edx, dword [r15 + rcx]
xor ecx, ecx
call rax
test eax, eax
je 0x14004db50
movsxd rax, dword [rbx + 0xe448]
imul rcx, rax, 0x64
mov rax, qword [rbx + 0xe440]
xorps xmm0, xmm0
movups xmmword [rcx + rax + 0x44], xmm0
movups xmmword [rcx + rax + 0x54], xmm0
movsxd rax, dword [rbx + 0xe448]
imul rcx, rax, 0x64
mov rax, qword [rbx + 0xe440]
add rax, 0x44
add rcx, rax
mov r8, qword [rsp + 0x58]
mov edx, 0x20
call fcn.14013ac00
inc dword [rbx + 0xe448]
jmp 0x14004db5b
inc dword [rbx + 0xe448]
test rsi, rsi
je 0x14004db64
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x58]
call r14
inc edi
cmp edi, dword [rsp + 0x40]
jb 0x14004d9b2
jmp 0x14004dd79
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x40], r12d
test r15, r15
je 0x14004dd81
test r14, r14
je 0x14004dd81
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call r15
test eax, eax
je 0x14004dd81
mov edi, r12d
mov edx, dword [rsp + 0x40]
test edx, edx
je 0x14004dd79
nop word [rax + rax]
mov eax, edi
lea rcx, [rax + rax*2]
lea r15, [rcx*8]
mov r8, qword [rsp + 0x48]
mov eax, dword [r8 + r15 + 0x10]
test eax, 0xfffffffc
jne 0x14004dd6f
cmp eax, 1
je 0x14004dd6f
movsxd rax, dword [rbx + 0xe448]
imul rdx, rax, 0x64
mov rcx, qword [rbx + 0xe440]
mov eax, dword [r8 + r15]
mov dword [rdx + rcx], eax
movsxd rax, dword [rbx + 0xe448]
imul rcx, rax, 0x64
mov rax, qword [rbx + 0xe440]
xorps xmm0, xmm0
movups xmmword [rcx + rax + 4], xmm0
movups xmmword [rcx + rax + 0x14], xmm0
movsxd rax, dword [rbx + 0xe448]
imul rcx, rax, 0x64
mov rax, qword [rbx + 0xe440]
movups xmmword [rcx + rax + 0x24], xmm0
movups xmmword [rcx + rax + 0x34], xmm0
movsxd rax, dword [rbx + 0xe448]
imul rcx, rax, 0x64
mov rax, qword [rbx + 0xe440]
add rax, 4
add rcx, rax
lea r8, str.Active
mov edx, 0x20
call fcn.14013ac00
movsxd rax, dword [rbx + 0xe448]
imul rcx, rax, 0x64
mov rax, qword [rbx + 0xe440]
add rax, 0x24
add rcx, rax
mov r8, qword [rsp + 0x48]
mov r8, qword [r15 + r8 + 8]
mov edx, 0x20
call fcn.14013ac00
lea rcx, str.WTSAPI32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x50], r12d
test rax, rax
je 0x14004dd4f
lea rdx, str.WTSQuerySessionInformationA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x58]
mov r8d, 5
mov rcx, qword [rsp + 0x48]
mov edx, dword [r15 + rcx]
xor ecx, ecx
call rax
test eax, eax
je 0x14004dd4f
movsxd rax, dword [rbx + 0xe448]
imul rcx, rax, 0x64
mov rax, qword [rbx + 0xe440]
xorps xmm0, xmm0
movups xmmword [rcx + rax + 0x44], xmm0
movups xmmword [rcx + rax + 0x54], xmm0
movsxd rax, dword [rbx + 0xe448]
imul rcx, rax, 0x64
mov rax, qword [rbx + 0xe440]
add rax, 0x44
add rcx, rax
mov r8, qword [rsp + 0x58]
mov edx, 0x20
call fcn.14013ac00
inc dword [rbx + 0xe448]
jmp 0x14004dd5a
inc dword [rbx + 0xe448]
test rsi, rsi
je 0x14004dd63
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x58]
call r14
mov edx, dword [rsp + 0x40]
inc edi
cmp edi, edx
jb 0x14004dbd0
mov rcx, qword [rsp + 0x48]
call r14
lea r8, [0x14019626c]
mov edx, 0x3200
lea rcx, [rbp + 0x40]
call fcn.14013ac00
mov edi, r12d
cmp dword [rbx + 0xe448], r12d
jbe 0x14004de2c
nop word [rax + rax]
mov eax, edi
imul r10, rax, 0x64
add r10, qword [rbx + 0xe440]
mov r9d, dword [r10]
test r9d, 0xfffeffff
je 0x14004de22
lea rcx, [r10 + 4]
lea rdx, [r10 + 0x44]
add r10, 0x24
lea eax, [rdi + 0x61]
movsx r8d, al
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], r10
lea rdx, str._c__session_i__s_user_s__status_s
lea rcx, [rbp - 0x40]
call fcn.14001a7c0
lea r8, [rbp - 0x40]
mov edx, 0x3200
lea rcx, [rbp + 0x40]
call fcn.14013ac60
lea r8, [0x1401c4b64]
mov edx, 0x3200
lea rcx, [rbp + 0x40]
call fcn.14013ac60
inc edi
cmp edi, dword [rbx + 0xe448]
jb 0x14004ddb0
lea r8, [0x1401c4b64]
mov edx, 0x3200
lea rcx, [rbp + 0x40]
call fcn.14013ac60
lea r8, [0x1401c4b64]
mov edx, 0x3200
lea rcx, [rbp + 0x40]
call fcn.14013ac60
lea r8, str.Enter_session_to_clone:__n
mov edx, 0x3200
lea rcx, [rbp + 0x40]
call fcn.14013ac60
mov dword [rsp + 0x20], 0x280
mov r9d, 0x280
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x50]
call qword [sym.imp.USER32.dll_SetRect]
mov edx, 0xfefefe
mov rcx, qword [rbx + 0xe4d0]
call qword [sym.imp.GDI32.dll_SetTextColor]
mov r12d, eax
mov edx, 0xff0000
mov rcx, qword [rbx + 0xe4d0]
call qword [sym.imp.GDI32.dll_SetBkColor]
mov r13d, eax
mov ecx, 0xff0000
call qword [sym.imp.GDI32.dll_CreateSolidBrush]
mov r14, rax
mov rdx, qword [rbx + 0xe4e0]
mov rcx, qword [rbx + 0xe4d0]
call qword [sym.imp.GDI32.dll_SelectObject]
mov r15, rax
test rax, rax
je 0x14004e0db
mov r8, r14
lea rdx, [rbp - 0x50]
mov rcx, qword [rbx + 0xe4d0]
call qword [sym.imp.USER32.dll_FillRect]
mov dword [rsp + 0x20], 0x280
xor edx, edx
mov r9d, 0x280
lea r8d, [rdx + 0xa]
lea rcx, [rbp - 0x50]
call qword [sym.imp.USER32.dll_SetRect]
mov dword [rsp + 0x20], 1
lea r9, [rbp - 0x50]
mov r8d, 0x2d
lea rdx, str.UVNC_experimental_server_pre_connect_window__n
mov rcx, qword [rbx + 0xe4d0]
call qword [sym.imp.USER32.dll_DrawTextA]
lea rcx, [0x1401f3ec0]
mov rdi, 0xffffffffffffffff
mov rax, rdi
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x14004df50
test rax, rax
jne 0x14004df63
call fcn.14001cc20
mov dword [rsp + 0x20], 0x280
mov edx, 0x1e
mov r9d, 0x280
lea r8d, [rdx + 0x14]
lea rcx, [rbp - 0x50]
call qword [sym.imp.USER32.dll_SetRect]
mov ecx, reloc.WS2_32.dll_inet_addr
call qword [sym.imp.GDI32.dll_GetStockObject]
mov rdx, rax
mov rcx, qword [rbx + 0xe4d0]
call qword [sym.imp.GDI32.dll_SelectObject]
mov rsi, rax
test rax, rax
je 0x14004dfe4
mov r8, rdi
lea rdx, [0x1401f3ec0]
inc r8
cmp byte [rdx + r8], 0
jne 0x14004dfb1
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea r9, [rbp - 0x50]
mov rcx, qword [rbx + 0xe4d0]
call qword [sym.imp.USER32.dll_DrawTextA]
mov rdx, rsi
mov rcx, qword [rbx + 0xe4d0]
call qword [sym.imp.GDI32.dll_SelectObject]
mov dword [rsp + 0x20], 0x280
mov edx, 0x1e
mov r9d, 0x280
mov r8d, 0xb4
lea rcx, [rbp - 0x50]
call qword [sym.imp.USER32.dll_SetRect]
mov ecx, reloc.WS2_32.dll_inet_addr
call qword [sym.imp.GDI32.dll_GetStockObject]
mov rdx, rax
mov rcx, qword [rbx + 0xe4d0]
call qword [sym.imp.GDI32.dll_SelectObject]
mov rsi, rax
test rax, rax
je 0x14004e069
lea rax, [rbp + 0x40]
nop
inc rdi
cmp byte [rax + rdi], 0
jne 0x14004e030
mov r8, rdi
mov dword [rsp + 0x20], 0
lea r9, [rbp - 0x50]
lea rdx, [rbp + 0x40]
mov rcx, qword [rbx + 0xe4d0]
call qword [sym.imp.USER32.dll_DrawTextA]
mov rdx, rsi
mov rcx, qword [rbx + 0xe4d0]
call qword [sym.imp.GDI32.dll_SelectObject]
mov edx, r13d
mov rcx, qword [rbx + 0xe4d0]
call qword [sym.imp.GDI32.dll_SetBkColor]
mov edx, r12d
mov rcx, qword [rbx + 0xe4d0]
call qword [sym.imp.GDI32.dll_SetTextColor]
mov rdx, r15
mov rcx, qword [rbx + 0xe4d0]
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, r14
call qword [sym.imp.GDI32.dll_DeleteObject]
mov dword [rsp + 0x20], 0x280
mov r9d, 0x280
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x50]
call qword [sym.imp.USER32.dll_SetRect]
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rsp + 0x70], xmm0
mov r8, qword [rbp - 0x80]
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.14004e810
nop
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x14004e0eb
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x14004e0fb
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
mov rcx, qword [rbp + 0x3240]
xor rcx, rsp
call fcn.140131ef0
mov rbx, qword [rsp + 0x33a0]
add rsp, 0x3350
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret