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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x111e897b
mov eax, dword fs:[0]
push eax
sub esp, 0x504
mov eax, dword [0x11279148]
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 edx, dword [ebp + 8]
mov esi, dword [ecx + 0x24]
xor ebx, ebx
mov dword [ebp - 0x4b8], ecx
mov dword [ebp - 0x4a4], edx
mov dword [ebp - 0x4a8], ebx
cmp dword [0x1127ad00], ebx
jne 0x11162e65
cmp dword [ebp + 0x10], ebx
je 0x11162ea2
xor eax, eax
push edx
mov dword [ebp - 0x4c8], eax
mov dword [ebp - 0x4c4], eax
mov dword [ebp - 0x4c0], eax
mov dword [ebp - 0x4bc], eax
call fcn.111629e0
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x11162ea9
mov eax, dword [ebp - 0x4a4]
push eax
push str.Error._Null_psi_for_session__d_n
call fcn.111bd7b0
add esp, 8
xor eax, eax
jmp 0x111633ea
mov ecx, edi
call fcn.1114d080
test eax, eax
jne 0x11162ea2
cmp dword [edi + 8], ebx
je 0x11162ebc
mov dword [edi + 8], ebx
cmp dword [edi + 0x54], ebx
jne 0x11162ec6
cmp dword [edi + 0x58], ebx
je 0x11162ef2
mov ecx, dword [ebp - 0x4a4]
push ecx
push edi
call fcn.1114d040
add esp, 8
test eax, eax
jne 0x11162ea2
cmp dword [edi + 0x54], ebx
je 0x11162eec
push str.Restarting_client_after_aborted_logoff._n
call fcn.111bd7b0
add esp, 4
mov dword [edi + 0x54], ebx
mov dword [edi + 0x58], ebx
lea ecx, [esi + 0xbfc]
mov dword [ebp - 0x4ac], ecx
mov dword [ebp - 0x4b4], ebx
mov dword [ebp - 0x4b0], ebx
lea edx, [ebp - 0x4b0]
push edx
mov edx, dword [ebp - 0x4a4]
lea eax, [ebp - 0x4b4]
push eax
push 8
push edx
push ebx
mov dword [ebp - 4], ebx
call fcn.110630a0
cmp eax, ebx
jne 0x11162fb7
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x1b6e
je 0x11162f46
cmp eax, 2
jne 0x11162f4b
cmp dword [ebp + 0x10], ebx
jne 0x11162fb3
call esi
mov esi, dword [ebp - 0x4a4]
push eax
push esi
push str.Warning._WTSQuerySessionInformation__d__failed___not_launching_client__e_d_n
call fcn.111bd7b0
mov eax, dword [0x1127ad0c]
add esp, 0xc
cmp eax, esi
jne 0x11162f9a
cmp dword [ebp + 0x10], ebx
jne 0x11162f9a
push eax
push str.CurrentSession__d_appears_invalid._Reset_to__1_n
call fcn.111bd7b0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
dec eax
or eax, 1
push eax
mov ecx, edi
call fcn.1114d0f0
mov dword [0x1127ad0c], 0xffffffff
lea ecx, [ebp - 0x4b4]
mov dword [ebp - 4], 0xffffffff
call fcn.110630f0
xor eax, eax
jmp 0x111633ea
cmp eax, ebx
jne 0x11162fd8
mov eax, dword [ebp - 0x4b4]
cmp dword [eax], 4
jne 0x11162fd8
mov ecx, dword [ebp - 0x4a4]
push ecx
push str.Warning._Session__d_disconnected___not_launching_client_n
call fcn.111bd7b0
add esp, 8
jmp 0x11162f9a
cmp dword [edi + 0x1c], ebx
je 0x11163057
cmp dword [0x1127ad00], ebx
je 0x11163057
cmp dword [ebp + 0x10], ebx
jne 0x11163057
push ebx
push 1
mov dword [edi + 0x14], edi
mov dword [edi + 0x1c], ebx
push 0x11157eb0
lea ecx, [edi + 0xc]
mov dword [edi + 4], ebx
call fcn.11170830
mov esi, eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi + 0x34], ebx
lea eax, [edi + 0x34]
je 0x11163057
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov esi, eax
cmp esi, ebx
je 0x11163057
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x11163050
push str.Error._terminating_ui_client_n
call fcn.111bd7b0
push 0xffffffffffffffff
push esi
call fcn.1118ce10
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x111fa890]
mov word [ebp + eax - 0x4a0], cx
add eax, 2
cmp cx, bx
jne 0x11163060
push 0x207
lea edx, [ebp - 0x49e]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x4a0]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x11163093
mov ecx, dword [0x1127aa44]
sub eax, edx
push ecx
sar eax, 1
lea edx, [ebp + eax*2 - 0x4a0]
push 0x11231e58
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
cmp dword [0x1127ad00], ebx
je 0x11163162
cmp dword [ebp + 0x10], ebx
jne 0x1116316b
lea eax, [ebp - 0x4a0]
add eax, 0xfffffffe
lea ecx, [ecx]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x111630e0
mov ecx, dword [str._VistaUI]
mov edx, dword [0x11231e48]
mov dword [eax], ecx
mov ecx, dword [0x11231e4c]
mov dword [eax + 4], edx
mov edx, dword [0x11231e50]
push ebx
mov dword [eax + 8], ecx
mov ecx, dword [0x11231e54]
push ebx
mov dword [eax + 0xc], edx
push str.DisableConsoleClient
mov dword [eax + 0x10], ecx
mov ecx, dword [0x1127aa68]
push 0x11218928
call fcn.110bbc00
test eax, eax
je 0x11163206
lea eax, [ebp - 0x4a0]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x11163140
mov edx, dword [0x11231e3c]
mov ecx, dword [0x11231e40]
mov dword [eax], edx
mov dword [eax + 4], ecx
jmp 0x11163206
cmp dword [ebp + 0x10], ebx
je 0x11163206
lea eax, [ebp - 0x4a0]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x11163174
mov edx, dword [str._TS]
mov ecx, dword [0x11231e34]
mov dword [eax], edx
mov dx, word [0x11231e38]
mov dword [eax + 4], ecx
mov ecx, dword [0x1127aa68]
mov word [eax + 8], dx
push ebx
xor eax, eax
mov word [ebp - 0x90], ax
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push 0x80
lea eax, [ebp - 0x90]
push eax
push str.clientname
push 0x11218928
call edx
cmp word [ebp - 0x90], bx
jne 0x11163206
lea eax, [ebp - 0x4a0]
lea edx, [eax + 2]
jmp 0x111631e0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x111631e0
mov ecx, dword [ebp - 0x4a4]
sub eax, edx
sar eax, 1
push ecx
lea edx, [ebp + eax*2 - 0x4a0]
push edx
call fcn.11067960
add esp, 8
lea eax, [ebp - 0x4a0]
push 0x1122daf4
push eax
call dword [sym.imp.MSVCR100.dll_wcsstr]
add esp, 8
cmp eax, ebx
je 0x11163225
mov dword [eax], 0x200020
cmp dword [edi + 0x510], ebx
je 0x1116323f
push str.Prevent_duplicate__recursive__launch_of_client_n
call fcn.111bd7b0
add esp, 4
jmp 0x11162f9a
cmp dword [ebp - 0x4a4], 0xffffffff
mov esi, dword [ebp - 0x4b8]
mov dword [edi + 0x510], 1
je 0x11163408
mov eax, dword [esi]
mov edx, dword [eax + 0xc0]
mov ecx, esi
call edx
test eax, eax
je 0x11163408
push ebx
call fcn.1114cdd0
add esp, 4
push 4
lea ecx, [ebp - 0x4cc]
push ecx
mov esi, eax
mov eax, dword [ebp - 0x4a4]
push 0xc
push esi
mov dword [ebp - 0x4cc], eax
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
cmp eax, ebx
jne 0x111632ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x4a4]
push eax
push ebx
push edx
push esi
push str.Error._settok__x__seshid__d__ret__d__e_d_n
call fcn.111bd7b0
add esp, 0x14
push 0x40
lea eax, [ebp - 0x50c]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x510]
push ecx
mov dword [ebp - 0x510], 0x44
mov dword [ebp - 0x4e4], 0x80
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
or eax, 0x4000000
push eax
push ebx
lea edx, [ebp - 0x4c8]
push edx
push ebx
push ebx
lea eax, [ebp - 0x4a0]
push eax
push esi
call fcn.110f0000
add esp, 0x20
cmp eax, ebx
jne 0x11163331
mov ecx, dword [ebp - 0x4c4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x4a8], 1
jmp 0x1116333f
push eax
push str.Error._ExecProcessAsUser_ret__d
call fcn.111bd7b0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x1127ad0c], ebx
jg 0x11163367
cmp dword [ebp + 0xc], ebx
je 0x11163367
mov ecx, dword [0x1127ab0c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x4a4]
mov edx, dword [edx + 0x48]
push eax
call edx
mov esi, dword [ebp - 0x4a8]
mov ecx, dword [ebp - 0x4c8]
mov eax, dword [ebp - 0x4a4]
push ecx
push esi
lea edx, [ebp - 0x4a0]
push edx
push eax
push str.Exec__d__s_ret__d__h_x__n
mov dword [0x1127f46c], ebx
call fcn.111bd7b0
add esp, 0x14
mov dword [edi + 0x510], ebx
cmp esi, ebx
je 0x111633cd
mov ecx, dword [ebp - 0x4c8]
mov dword [edi + 0x34], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
dec eax
or eax, 1
mov dword [edi + 8], eax
cmp dword [ebp + 0x10], ebx
je 0x111633cd
mov edx, dword [ebp - 0x4a4]
push edx
call fcn.110654e0
add esp, 4
mov dword [edi + 0x60], eax
xor eax, eax
cmp esi, ebx
setne al
lea ecx, [ebp - 0x4b4]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.110630f0
mov eax, esi
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.111d9022
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi]
mov eax, dword [eax + 0xec]
push ebx
push 1
push ebx
push 0x4000000
push ebx
lea ecx, [ebp - 0x4c8]
push ecx
push ebx
lea edx, [ebp - 0x4a0]
push edx
mov ecx, esi
call eax
mov esi, eax
jmp 0x1116336d