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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x111e88d3
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
push ebx
push esi
push edi
mov eax, dword [0x11279148]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ecx + 0x24]
xor edi, edi
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x50], edi
cmp eax, edi
je 0x11162279
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x11162282
mov dword [eax], edi
cmp dword [0x1127ad10], edi
jne 0x11162292
cmp dword [0x1127acfc], edi
je 0x111622b1
call fcn.1114cf20
test eax, eax
jle 0x111622b1
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.111489a0
test al, al
jne 0x1116229b
cmp dword [0x1127ad00], edi
jne 0x111622d8
push edi
push edi
push 6
call fcn.111bb9f0
add esp, 0xc
test eax, eax
je 0x111627a4
xor edi, edi
add esi, 0xbfc
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], esi
cmp dword [esi + 0x10], edi
jne 0x111622fd
mov edx, dword [esi]
push str.WTSEnumerateSessionsW
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x10]
cmp eax, edi
je 0x11162533
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x20]
push edx
push 1
push edi
push edi
call eax
cmp eax, edi
je 0x111627a4
lea ecx, [ebp - 0xbc]
call fcn.11030fd0
xor ebx, ebx
lea ecx, [ebp - 0xbc]
mov dword [ebp - 4], ebx
call fcn.110826d0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], 7
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.1113dd30
lea eax, [ebp - 0x4c]
push eax
push str.LocalUsers
push str.SoftwareNetSupport_LtdClient32
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], 2
call fcn.11143cd0
mov edi, dword [ebp - 0x20]
add esp, 0x10
cmp dword [ebp - 0x1c], ebx
jbe 0x11162558
cmp dword [0x1127acfc], 0
jne 0x111623dd
cmp dword [0x1127ad10], 0
jne 0x111623dd
mov eax, dword [edi]
cmp eax, 0x10000
jae 0x111623cf
push eax
call fcn.111611c0
mov esi, eax
add esp, 4
test esi, esi
je 0x111623cf
cmp dword [esi + 0x5c], 0
jne 0x111623cf
mov eax, dword [edi + 8]
test eax, eax
je 0x111623c2
cmp eax, 1
jne 0x111623cf
call dword [sym.imp.KERNEL32.dll_GetTickCount]
dec eax
or eax, 1
mov dword [esi + 0x5c], eax
mov ecx, dword [edi]
cmp ecx, dword [0x1127ad0c]
jne 0x111623dd
mov byte [ebp - 0xd], 1
mov edx, dword [ebp - 0x28]
cmp edx, dword [edi]
jne 0x11162494
cmp dword [0x1127ad00], 0
mov eax, dword [edi + 8]
mov dword [ebp - 0x18], eax
je 0x11162494
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x154]
call eax
test al, al
jne 0x11162494
mov ecx, dword [edi]
push ecx
call fcn.1114e3e0
mov esi, eax
add esp, 4
mov dword [ebp - 0x60], esi
cmp word [esi], 0
mov byte [ebp - 4], 3
je 0x11162487
push 0x1120a480
push esi
lea ecx, [ebp - 0x4c]
call fcn.1102f630
push eax
call fcn.11159fd0
add esp, 0xc
test al, al
jne 0x11162487
lea ecx, [ebp - 0x4c]
call fcn.11058100
test eax, eax
je 0x1116245e
push 0x112053e0
lea ecx, [ebp - 0x4c]
call fcn.1113dca0
push esi
lea ecx, [ebp - 0x4c]
call fcn.1113dca0
lea ecx, [ebp - 0x4c]
call fcn.1102f630
push eax
push str.LocalUsers
push str.SoftwareNetSupport_LtdClient32
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.11143df0
add esp, 0x10
push esi
mov byte [ebp - 4], 2
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [edi + 8], 0
jne 0x11162549
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx]
lea ecx, [ebp - 0x4c]
call eax
test al, al
jne 0x111624c3
push 0x266
push str.e:_nsmsrc_nsm14101410fctl32NSMString.h
push str.IsA__
call fcn.11067750
add esp, 0xc
mov ecx, dword [ebp - 0x40]
cmp word [ecx], 0
je 0x11162540
mov edx, dword [edi]
push edx
call fcn.1114e3e0
mov esi, eax
add esp, 4
mov dword [ebp - 0x64], esi
mov eax, dword [ebp - 0x4c]
mov edx, dword [eax]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 4
call edx
test al, al
jne 0x11162505
push 0x266
push str.e:_nsmsrc_nsm14101410fctl32NSMString.h
push str.IsA__
call fcn.11067750
add esp, 0xc
mov eax, dword [ebp - 0x40]
push 0x1120a480
push esi
push eax
call fcn.11159fd0
add esp, 0xc
test al, al
je 0x11162524
push edi
lea ecx, [ebp - 0x3c]
call fcn.111421c0
push esi
mov byte [ebp - 4], 2
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x11162549
push 0x78
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x111627a4
push edi
lea ecx, [ebp - 0x3c]
call fcn.111421c0
inc ebx
add edi, 0xc
cmp ebx, dword [ebp - 0x1c]
jb 0x11162386
xor ebx, ebx
cmp dword [0x1127ad00], ebx
je 0x11162587
mov ecx, dword [ebp - 0x38]
sub ecx, dword [ebp - 0x3c]
and ecx, 0xfffffffc
cmp ecx, 4
jne 0x11162587
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x154]
call eax
test al, al
jne 0x11162587
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x14]
xor edi, edi
cmp dword [ebp - 0x1c], edi
jbe 0x111625cd
cmp ebx, 0xffffffff
jne 0x111625c1
call fcn.111a9a40
test eax, eax
je 0x111625b9
mov ecx, dword [esi]
cmp dword [ebp - 0x28], ecx
jne 0x111625c1
mov eax, dword [esi + 8]
test eax, eax
je 0x111625b5
cmp eax, 1
jne 0x111625c1
mov ebx, ecx
jmp 0x111625c1
cmp dword [esi + 8], 0
jne 0x111625c1
mov ebx, dword [esi]
inc edi
add esi, 0xc
cmp edi, dword [ebp - 0x1c]
jb 0x11162594
mov dword [ebp - 0x14], ebx
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
cmp ebx, 0xffffffff
jne 0x1116260c
cmp dword [ebp - 0x18], 1
jne 0x111625e9
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x1116260c
push 0
call fcn.111611c0
add esp, 4
test eax, eax
je 0x111626cc
cmp dword [eax + 0x5c], 0
je 0x111626cc
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0x14], 0
mov dword [ebp - 0x50], 1
je 0x111626cc
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc0]
call edx
test eax, eax
je 0x111626cc
mov ebx, dword [ebp - 0x24]
cmp dword [ebx + 0x1c], 0
mov dword [ebp - 0x18], 0
jne 0x11162653
mov eax, dword [ebx]
push str.WTSQueryUserToken
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x111626c6
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
push ecx
push edx
call eax
test eax, eax
je 0x111626cf
mov esi, dword [ebp + 0xc]
xor eax, eax
cmp esi, eax
je 0x111626bc
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
lea ecx, [ebp - 0x58]
push ecx
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x5c]
push edx
push 5
push ecx
push eax
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.110630a0
test eax, eax
je 0x111626b0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x5c]
dec eax
push eax
push ecx
xor edx, edx
push esi
mov word [esi], dx
call dword [sym.imp.MSVCR100.dll_wcsncat]
add esp, 0xc
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.110630f0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
jmp 0x111626cf
push 0x78
call edi
jmp 0x111626cf
mov ebx, dword [ebp - 0x24]
cmp dword [ebx + 0x14], 0
mov esi, dword [ebp - 0x20]
jne 0x111626e9
mov ecx, dword [ebx]
push str.WTSFreeMemory
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x14], eax
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x111626f5
push esi
call eax
jmp 0x111626f9
push 0x78
call edi
cmp byte [ebp - 0xd], 0
jne 0x1116275e
mov eax, dword [0x1127ad0c]
cmp eax, 0xffffffff
je 0x1116275e
push eax
call fcn.111611c0
mov esi, eax
xor edi, edi
add esp, 4
cmp esi, edi
je 0x11162760
mov ecx, esi
call fcn.1114d080
test eax, eax
jne 0x11162760
mov edx, dword [0x1127ad0c]
push edx
push str.CurrentSession___d__appears_invalid___resetting_to__1_n
call fcn.111bd7b0
add esp, 8
mov dword [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
dec eax
or eax, 1
push eax
mov ecx, esi
call fcn.1114d0f0
mov dword [0x1127ad0c], 0xffffffff
jmp 0x11162760
xor edi, edi
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.1113cd80
mov byte [ebp - 4], 0
cmp dword [ebp - 0x3c], edi
je 0x1116278a
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVCP100.dll_public:_void___thiscall_std::_Container_base0::_Orphan_all_void_]
mov eax, dword [ebp - 0x3c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
cmp eax, edi
je 0x111627a4
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp + 8]
test eax, eax
je 0x111627b0
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10