Function at 0x140047f20
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 [0x1401ef010]
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.140018c00
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 0x140048170
cmp byte [rsi + 0x82a], 0
jne 0x140048170
cmp byte [rsi + 0x889], 0
jne 0x140048170
lea r8, str.vncClient::DoFTUserImpersonation_:_______________vncClient::DoFTUserImpersonation___1_n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140018c00
mov dil, 1
call fcn.1400219e0
test eax, eax
je 0x140047fee
mov byte [rsi + 0x889], 0
lea r8, str.vncClient::DoFTUserImpersonation_:_______________vncClient::DoFTUserImpersonation___WSLocked_n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140018c00
xor dil, dil
jmp 0x140048173
xor edx, edx
mov r8d, 0x101
lea rcx, [rsp + 0x40]
call fcn.140135010
lea rcx, [rsp + 0x40]
call fcn.140021880
lea r9, [rsp + 0x40]
lea r8, str.vncClient::DoFTUserImpersonation_:_______________vncClient::DoFTUserImpersonation___currentUser___s_n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140018c00
cmp byte [rsp + 0x40], 0
je 0x140048164
mov ecx, reloc.WS2_32.dll_recv
call fcn.140132648
mov rbx, rax
mov qword [rsp + 0x20], rax
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
call fcn.140021560
test eax, eax
je 0x140048078
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 0x1400480a9
lea r8, str.vncClient::DoFTUserImpersonation_:_______________vncClient::DoFTUserImpersonation___OpenProcessToken_Error_n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140018c00
xor dil, dil
jmp 0x140048122
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x1400480cb
lea r8, str.vncClient::DoFTUserImpersonation_:_______________vncClient::DoFTUserImpersonation___ImpersonateLoggedOnUser_Failed_n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140018c00
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.140018c00
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, [0x1401c3148]
mov edx, 0x104
lea rcx, [rsi + 0x88a]
call fcn.14013b390
mov rax, qword [0x1401fdf80]
cmp dword [rax + 0xe20], 0
jne 0x14004814a
mov dil, 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsi + 0x990], eax
mov byte [rsi + 0x889], dil
jmp 0x140048173
test dil, dil
je 0x140048167
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsi + 0x990], eax
mov byte [rsi + 0x889], dil
jmp 0x140048173
xor dil, dil
mov byte [rsi + 0x889], dil
jmp 0x140048173
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.140132620
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret