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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x549bd0
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x5b0008]
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 0x5b0d48
call fcn.0041cc90
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 0x4498cc
cmp byte [edi + 0x73a], 0
jne 0x4498cc
cmp byte [edi + 0x779], 0
jne 0x4498cc
push str.vncClient::DoFTUserImpersonation_:_______________vncClient::DoFTUserImpersonation___1_n
push 0
push 0x5b0d48
call fcn.0041cc90
add esp, 0xc
mov bl, 1
call fcn.00425ca0
test eax, eax
je 0x449763
push str.vncClient::DoFTUserImpersonation_:_______________vncClient::DoFTUserImpersonation___WSLocked_n
push 0
push 0x5b0d48
mov byte [edi + 0x779], 0
call fcn.0041cc90
add esp, 0xc
xor bl, bl
jmp 0x4498ce
push 0x101
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.0051b450
lea ecx, [ebp - 0x114]
call fcn.00425b90
lea eax, [ebp - 0x114]
push eax
push str.vncClient::DoFTUserImpersonation_:_______________vncClient::DoFTUserImpersonation___currentUser___s_n
push 0
push 0x5b0d48
call fcn.0041cc90
add esp, 0x1c
lea eax, [ebp - 0x114]
mov ecx, 0x569fe8
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4497c7
test dl, dl
je 0x4497c3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4497c7
add eax, 2
add ecx, 2
test dl, dl
jne 0x4497a7
xor eax, eax
jmp 0x4497cc
sbb eax, eax
or eax, 1
test eax, eax
je 0x4498c2
push 8
call fcn.0051946c
add esp, 4
mov dword [ebp - 0x120], eax
mov ecx, eax
call fcn.0042a880
mov dword [edi + 0x35c], eax
mov eax, dword [eax + 4]
mov dword [edi + 0x10c], eax
test eax, eax
jne 0x449815
push str.vncClient::DoFTUserImpersonation_:_______________vncClient::DoFTUserImpersonation___OpenProcessToken_Error_n
push eax
push 0x5b0d48
call fcn.0041cc90
add esp, 0xc
xor bl, bl
jmp 0x449886
push eax
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x449835
push str.vncClient::DoFTUserImpersonation_:_______________vncClient::DoFTUserImpersonation___ImpersonateLoggedOnUser_Failed_n
push eax
push 0x5b0d48
call fcn.0041cc90
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 0x5b0d48
call fcn.0041cc90
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 0x597578
push 0x104
push esi
call fcn.0051f428
mov esi, dword [ebp - 0x11c]
add esp, 0xc
mov eax, dword [0x5be08c]
cmp dword [eax + 0xe20], 0
jne 0x4498aa
mov bl, 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x880], eax
mov byte [edi + 0x779], bl
jmp 0x4498ce
test bl, bl
je 0x4498c4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x880], eax
mov byte [edi + 0x779], bl
jmp 0x4498ce
xor bl, bl
mov byte [edi + 0x779], bl
jmp 0x4498ce
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.00519459
mov esp, ebp
pop ebp
ret