Function at 0x1400478a0
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.140017a50
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 0x140047af0
cmp byte [rsi + 0x82a], 0
jne 0x140047af0
cmp byte [rsi + 0x889], 0
jne 0x140047af0
lea r8, str.vncClient::DoFTUserImpersonation_:_______________vncClient::DoFTUserImpersonation___1_n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140017a50
mov dil, 1
call fcn.1400213d0
test eax, eax
je 0x14004796e
mov byte [rsi + 0x889], 0
lea r8, str.vncClient::DoFTUserImpersonation_:_______________vncClient::DoFTUserImpersonation___WSLocked_n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140017a50
xor dil, dil
jmp 0x140047af3
xor edx, edx
mov r8d, 0x101
lea rcx, [rsp + 0x40]
call fcn.140133cd0
lea rcx, [rsp + 0x40]
call fcn.140021270
lea r9, [rsp + 0x40]
lea r8, str.vncClient::DoFTUserImpersonation_:_______________vncClient::DoFTUserImpersonation___currentUser___s_n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140017a50
cmp byte [rsp + 0x40], 0
je 0x140047ae4
mov ecx, reloc.WS2_32.dll_recv
call fcn.140131308
mov rbx, rax
mov qword [rsp + 0x20], rax
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
call fcn.140020f50
test eax, eax
je 0x1400479f8
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 0x140047a29
lea r8, str.vncClient::DoFTUserImpersonation_:_______________vncClient::DoFTUserImpersonation___OpenProcessToken_Error_n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140017a50
xor dil, dil
jmp 0x140047aa2
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x140047a4b
lea r8, str.vncClient::DoFTUserImpersonation_:_______________vncClient::DoFTUserImpersonation___ImpersonateLoggedOnUser_Failed_n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140017a50
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.140017a50
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, [0x1401c3128]
mov edx, 0x104
lea rcx, [rsi + 0x88a]
call fcn.14013a050
mov rax, qword [0x1401fdf60]
cmp dword [rax + 0xe20], 0
jne 0x140047aca
mov dil, 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsi + 0x990], eax
mov byte [rsi + 0x889], dil
jmp 0x140047af3
test dil, dil
je 0x140047ae7
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsi + 0x990], eax
mov byte [rsi + 0x889], dil
jmp 0x140047af3
xor dil, dil
mov byte [rsi + 0x889], dil
jmp 0x140047af3
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.1401312e0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret