Function at 0x140047740
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 [0x1401f0010]
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 0x140047990
cmp byte [rsi + 0x82a], 0
jne 0x140047990
cmp byte [rsi + 0x889], 0
jne 0x140047990
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.140021370
test eax, eax
je 0x14004780e
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 0x140047993
xor edx, edx
mov r8d, 0x101
lea rcx, [rsp + 0x40]
call fcn.1401348e0
lea rcx, [rsp + 0x40]
call fcn.140021210
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 0x140047984
mov ecx, reloc.WS2_32.dll_recv
call fcn.140131f18
mov rbx, rax
mov qword [rsp + 0x20], rax
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
call fcn.140020ef0
test eax, eax
je 0x140047898
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 0x1400478c9
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 0x140047942
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x1400478eb
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, [0x1401c3a08]
mov edx, 0x104
lea rcx, [rsi + 0x88a]
call fcn.14013ac60
mov rax, qword [0x1401fef68]
cmp dword [rax + 0xe20], 0
jne 0x14004796a
mov dil, 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsi + 0x990], eax
mov byte [rsi + 0x889], dil
jmp 0x140047993
test dil, dil
je 0x140047987
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsi + 0x990], eax
mov byte [rsi + 0x889], dil
jmp 0x140047993
xor dil, dil
mov byte [rsi + 0x889], dil
jmp 0x140047993
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.140131ef0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret