Function at 0x140048ff0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x160
mov rax, qword [0x14021b0e0]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rsi, rcx
lea r8, str.vncClient::DoFTUserImpersonation_:_______________vncClient::DoFTUserImpersonation___Call_n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140018d00
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x50]
mov rbp, rax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], 0x67
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
cmp byte [rsi + 0x80d], 0
jne 0x140049240
cmp byte [rsi + 0x82a], 0
jne 0x140049240
cmp byte [rsi + 0x889], 0
jne 0x140049240
lea r8, str.vncClient::DoFTUserImpersonation_:_______________vncClient::DoFTUserImpersonation___1_n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140018d00
mov dil, 1
call fcn.140021b10
test eax, eax
je 0x1400490be
mov byte [rsi + 0x889], 0
lea r8, str.vncClient::DoFTUserImpersonation_:_______________vncClient::DoFTUserImpersonation___WSLocked_n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140018d00
xor dil, dil
jmp 0x140049243
xor edx, edx
mov r8d, 0x101
lea rcx, [rsp + 0x40]
call fcn.14014a5c0
lea rcx, [rsp + 0x40]
call fcn.140021a10
lea r9, [rsp + 0x40]
lea r8, str.vncClient::DoFTUserImpersonation_:_______________vncClient::DoFTUserImpersonation___currentUser___s_n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140018d00
cmp byte [rsp + 0x40], 0
je 0x140049234
mov ecx, reloc.WS2_32.dll_recv
call fcn.140147b18
mov rbx, rax
mov qword [rsp + 0x20], rax
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
call fcn.1400216f0
test eax, eax
je 0x140049148
mov r8d, eax
xor edx, edx
mov ecx, 0x2000000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbx], rax
lea r8, [rbx + 8]
mov edx, 0x201eb
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov qword [rsi + 0x368], rbx
mov rcx, qword [rbx + 8]
mov qword [rsi + 0x110], rcx
test rcx, rcx
jne 0x140049179
lea r8, str.vncClient::DoFTUserImpersonation_:_______________vncClient::DoFTUserImpersonation___OpenProcessToken_Error_n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140018d00
xor dil, dil
jmp 0x1400491f2
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x14004919b
lea r8, str.vncClient::DoFTUserImpersonation_:_______________vncClient::DoFTUserImpersonation___ImpersonateLoggedOnUser_Failed_n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140018d00
xor dil, dil
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, eax
lea r8, str.vncClient::DoFTUserImpersonation_:_______________vncClient::DoFTUserImpersonation___thread___d_n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140018d00
mov r9d, 0x104
lea r8, [rsi + 0x88a]
lea rdx, str._TEMP_
mov rcx, qword [rsi + 0x110]
call qword [sym.imp.USERENV.dll_ExpandEnvironmentStringsForUserA]
lea r8, [0x1401ef4f8]
mov edx, 0x104
lea rcx, [rsi + 0x88a]
call fcn.140150860
mov rax, qword [0x14022a710]
cmp dword [rax + 0xe20], 0
jne 0x14004921a
mov dil, 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsi + 0x990], eax
mov byte [rsi + 0x889], dil
jmp 0x140049243
test dil, dil
je 0x140049237
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsi + 0x990], eax
mov byte [rsi + 0x889], dil
jmp 0x140049243
xor dil, dil
mov byte [rsi + 0x889], dil
jmp 0x140049243
mov dil, 1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx eax, dil
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140147af0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret