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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557560
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x5c3040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.vncClient::DoFTUserImpersonation_:_______________vncClient::DoFTUserImpersonation___Call_n
push 0
push 0x5c3db0
call fcn.0041dde0
mov eax, dword [edi]
add esp, 0xc
mov ecx, edi
call dword [eax + 0x28]
mov esi, eax
mov dword [ebp - 0x118], 0x67
push esi
mov dword [ebp - 0x11c], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp byte [edi + 0x721], 0
jne 0x4504ec
cmp byte [edi + 0x73a], 0
jne 0x4504ec
cmp byte [edi + 0x779], 0
jne 0x4504ec
push str.vncClient::DoFTUserImpersonation_:_______________vncClient::DoFTUserImpersonation___1_n
push 0
push 0x5c3db0
call fcn.0041dde0
add esp, 0xc
mov bl, 1
call fcn.00426b90
test eax, eax
je 0x450383
push str.vncClient::DoFTUserImpersonation_:_______________vncClient::DoFTUserImpersonation___WSLocked_n
push 0
push 0x5c3db0
mov byte [edi + 0x779], 0
call fcn.0041dde0
add esp, 0xc
xor bl, bl
jmp 0x4504ee
push 0x101
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.00526a30
lea ecx, [ebp - 0x114]
call fcn.00426a80
lea eax, [ebp - 0x114]
push eax
push str.vncClient::DoFTUserImpersonation_:_______________vncClient::DoFTUserImpersonation___currentUser___s_n
push 0
push 0x5c3db0
call fcn.0041dde0
add esp, 0x1c
lea eax, [ebp - 0x114]
mov ecx, 0x579be0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4503e7
test dl, dl
je 0x4503e3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4503e7
add eax, 2
add ecx, 2
test dl, dl
jne 0x4503c7
xor eax, eax
jmp 0x4503ec
sbb eax, eax
or eax, 1
test eax, eax
je 0x4504e2
push 8
call fcn.00524776
add esp, 4
mov dword [ebp - 0x120], eax
mov ecx, eax
call fcn.0042b7d0
mov dword [edi + 0x35c], eax
mov eax, dword [eax + 4]
mov dword [edi + 0x10c], eax
test eax, eax
jne 0x450435
push str.vncClient::DoFTUserImpersonation_:_______________vncClient::DoFTUserImpersonation___OpenProcessToken_Error_n
push eax
push 0x5c3db0
call fcn.0041dde0
add esp, 0xc
xor bl, bl
jmp 0x4504a6
push eax
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x450455
push str.vncClient::DoFTUserImpersonation_:_______________vncClient::DoFTUserImpersonation___ImpersonateLoggedOnUser_Failed_n
push eax
push 0x5c3db0
call fcn.0041dde0
add esp, 0xc
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.vncClient::DoFTUserImpersonation_:_______________vncClient::DoFTUserImpersonation___thread___d_n
push 0
push 0x5c3db0
call fcn.0041dde0
add esp, 0x10
lea esi, [edi + 0x77a]
push 0x104
push esi
push str._TEMP_
push dword [edi + 0x10c]
call dword [sym.imp.USERENV.dll_ExpandEnvironmentStringsForUserA]
push 0x5a7330
push 0x104
push esi
call fcn.0052c1fd
mov esi, dword [ebp - 0x11c]
add esp, 0xc
mov eax, dword [0x5d1914]
cmp dword [eax + 0xe20], 0
jne 0x4504ca
mov bl, 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x880], eax
mov byte [edi + 0x779], bl
jmp 0x4504ee
test bl, bl
je 0x4504e4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x880], eax
mov byte [edi + 0x779], bl
jmp 0x4504ee
xor bl, bl
mov byte [edi + 0x779], bl
jmp 0x4504ee
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00524763
mov esp, ebp
pop ebp
ret