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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f57ab
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x55800c]
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.d:_saasultravncwinvncwinvnc_vncclient.cpp_:_______________vncClient::DoFTUserImpersonation___Call_n
push 0
push 0x558c50
call fcn.0041c840
mov eax, dword [edi]
add esp, 0xc
mov edx, dword [eax + 0x28]
cmp eax, vtable.vncClient.0
jne 0x443ead
mov eax, dword [edi + 0x24c]
mov esi, dword [eax + 0x68]
add esi, 0xdc2c
push esi
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x11c], 0x67
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp byte [edi + 0x501], 0
jne 0x443e86
cmp byte [edi + 0x51a], 0
jne 0x443e86
cmp byte [edi + 0x559], 0
jne 0x443e86
push str.d:_saasultravncwinvncwinvnc_vncclient.cpp_:_______________vncClient::DoFTUserImpersonation___1_n
push 0
push 0x558c50
call fcn.0041c840
add esp, 0xc
mov bl, 1
call fcn.004843d0
test eax, eax
je 0x443d2f
push str.d:_saasultravncwinvncwinvnc_vncclient.cpp_:_______________vncClient::DoFTUserImpersonation___WSLocked_n
push 0
push 0x558c50
mov byte [edi + 0x559], 0
call fcn.0041c840
add esp, 0xc
xor bl, bl
jmp 0x443e88
lea ecx, [ebp - 0x114]
call fcn.00484360
lea eax, [ebp - 0x114]
push eax
push str.d:_saasultravncwinvncwinvnc_vncclient.cpp_:_______________vncClient::DoFTUserImpersonation___currentUser___s_n
push 0
push 0x558c50
call fcn.0041c840
add esp, 0x10
lea eax, [ebp - 0x114]
mov ecx, 0x518188
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x443d80
test dl, dl
je 0x443d7c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x443d80
add eax, 2
add ecx, 2
test dl, dl
jne 0x443d60
xor eax, eax
jmp 0x443d85
sbb eax, eax
or eax, 1
test eax, eax
je 0x443e7c
call fcn.00483e70
test eax, eax
je 0x443e45
push eax
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea esi, [edi + 8]
mov dword [ebp - 0x11c], eax
push esi
push 0x201eb
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x443dc9
push str.d:_saasultravncwinvncwinvnc_vncclient.cpp_:_______________vncClient::DoFTUserImpersonation___OpenProcessToken_Error_n
jmp 0x443dda
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x443deb
push str.d:_saasultravncwinvncwinvnc_vncclient.cpp_:_______________vncClient::DoFTUserImpersonation___ImpersonateLoggedOnUser_Failed_n
push 0
push 0x558c50
call fcn.0041c840
add esp, 0xc
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.d:_saasultravncwinvncwinvnc_vncclient.cpp_:_______________vncClient::DoFTUserImpersonation___thread___d_n
push 0
push 0x558c50
call fcn.0041c840
add esp, 0x10
lea esi, [edi + 0x55a]
push 0x104
push esi
push str._TEMP_
push dword [edi + 8]
call dword [sym.imp.USERENV.dll_ExpandEnvironmentStringsForUserA]
push 0x53e1f8
push 0x104
push esi
call fcn.004d01ca
add esp, 0xc
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x118]
cmp dword [0x5674b8], 0
jne 0x443e64
mov bl, 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x660], eax
mov byte [edi + 0x559], bl
jmp 0x443e88
test bl, bl
je 0x443e7e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x660], eax
mov byte [edi + 0x559], bl
jmp 0x443e88
xor bl, bl
mov byte [edi + 0x559], bl
jmp 0x443e88
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.004cbf27
mov esp, ebp
pop ebp
ret
mov ecx, edi
call edx
mov esi, eax
jmp 0x443ca3