Function at 0xc11fc
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x38
push 0
push 0
dec ecx
jne 0xc1205
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0xc1905
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.000143f0
lea eax, [ebp - 0x28]
call fcn.0002a1d0
push dword [ebp - 0x28]
push 0xc1920
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x2c]
call fcn.00027444
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00014068
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
call fcn.000145ac
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp + 0xc]
call fcn.000c0948
mov byte [ebp - 0xd], 0
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax], edx
xor eax, eax
push ebp
push 0xc1726
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.kernel32.dll_SetLastError
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push 7
push ebx
push 0
call sub.wtsapi32.dll_WTSQuerySessionInformationW
neg eax
sbb eax, eax
neg eax
mov byte [esi], al
cmp dword [ebp - 0x1c], 0
setne byte [ebp - 0xd]
call sub.kernel32.dll_GetLastError_1
mov edx, dword [ebp - 4]
mov dword [edx], eax
cmp byte [esi], 0
je 0xc1640
cmp byte [ebp - 0xd], 0
je 0xc14d6
cmp dword [ebp - 0x14], 0
jbe 0xc14d6
cmp dword [ebp - 0x14], 0x200
ja 0xc14d6
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.000271f0
push 0
call sub.kernel32.dll_SetLastError
xor eax, eax
mov dword [ebp - 0xc], eax
push 0
call sub.kernel32.dll_SetLastError
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_ReadProcessMemory
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x15], al
call sub.kernel32.dll_GetLastError_1
mov edx, dword [ebp - 4]
mov dword [edx], eax
xor eax, eax
push ebp
push 0xc1361
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
push eax
call sub.wtsapi32.dll_WTSFreeMemory
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0xc1396
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp byte [ebp - 0x15], 0
je 0xc1444
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jne 0xc13bd
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
call fcn.00014548
jmp 0xc14c6
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0xc13ce
mov eax, dword [ebp - 4]
mov dword [eax], 0x1e
lea eax, [ebp - 0x40]
call fcn.0002a2b0
push dword [ebp - 0x40]
push 0xc1950
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x44]
call fcn.00027444
push dword [ebp - 0x44]
push 0xc1968
mov eax, dword [ebp - 0x14]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x48]
call fcn.00027444
push dword [ebp - 0x48]
push 0xc1968
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00027478
push dword [ebp - 0x4c]
lea eax, [ebp - 0x3c]
mov edx, 7
call fcn.00014068
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
call fcn.000145ac
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp + 0xc]
call fcn.000c0948
jmp 0xc14c6
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0xc1455
mov eax, dword [ebp - 4]
mov dword [eax], 0xc
lea eax, [ebp - 0x58]
call fcn.0002a2b0
push dword [ebp - 0x58]
push 0xc1974
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x5c]
call fcn.00027444
push dword [ebp - 0x5c]
push 0xc1968
mov eax, dword [ebp - 0x14]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x60]
call fcn.00027444
push dword [ebp - 0x60]
push 0xc1968
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00027478
push dword [ebp - 0x64]
lea eax, [ebp - 0x54]
mov edx, 7
call fcn.00014068
mov edx, dword [ebp - 0x54]
lea eax, [ebp - 0x50]
call fcn.000145ac
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp + 0xc]
call fcn.000c0948
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.00027218
jmp 0xc16ac
cmp byte [ebp - 0xd], 0
je 0xc158b
cmp dword [ebp - 0x14], 0
jne 0xc158b
cmp dword [ebp - 0x14], 2
je 0xc157e
lea eax, [ebp - 0x70]
call fcn.0002a240
push dword [ebp - 0x70]
push 0xc198c
lea edx, [ebp - 0x174]
mov al, byte [ebp - 0xd]
call fcn.000294b8
lea edx, [ebp - 0x174]
lea eax, [ebp - 0x74]
call fcn.00013f4c
push dword [ebp - 0x74]
push 0xc1968
mov eax, dword [ebp - 0x14]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x178]
call fcn.00027444
push dword [ebp - 0x178]
push 0xc1968
lea edx, [ebp - 0x17c]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00027478
push dword [ebp - 0x17c]
lea eax, [ebp - 0x6c]
mov edx, 7
call fcn.00014068
mov edx, dword [ebp - 0x6c]
lea eax, [ebp - 0x68]
call fcn.000145ac
mov eax, dword [ebp - 0x68]
mov edx, dword [ebp + 0xc]
call fcn.000c0948
mov eax, dword [ebp + 8]
call fcn.000143f0
jmp 0xc16ac
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0xc159c
mov eax, dword [ebp - 4]
mov dword [eax], 0x1f
lea eax, [ebp - 0x188]
call fcn.0002a2b0
push dword [ebp - 0x188]
push 0xc19a4
lea edx, [ebp - 0x174]
mov al, byte [ebp - 0xd]
call fcn.000294b8
lea edx, [ebp - 0x174]
lea eax, [ebp - 0x18c]
call fcn.00013f4c
push dword [ebp - 0x18c]
push 0xc1968
mov eax, dword [ebp - 0x14]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x190]
call fcn.00027444
push dword [ebp - 0x190]
push 0xc1968
lea edx, [ebp - 0x194]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00027478
push dword [ebp - 0x194]
lea eax, [ebp - 0x184]
mov edx, 7
call fcn.00014068
mov edx, dword [ebp - 0x184]
lea eax, [ebp - 0x180]
call fcn.000145ac
mov eax, dword [ebp - 0x180]
mov edx, dword [ebp + 0xc]
call fcn.000c0948
jmp 0xc16ac
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0xc1651
mov eax, dword [ebp - 4]
mov dword [eax], 0x1f
lea eax, [ebp - 0x1a0]
call fcn.0002a2b0
push dword [ebp - 0x1a0]
push 0xc19bc
lea edx, [ebp - 0x1a4]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00027478
push dword [ebp - 0x1a4]
lea eax, [ebp - 0x19c]
mov edx, 3
call fcn.00014068
mov edx, dword [ebp - 0x19c]
lea eax, [ebp - 0x198]
call fcn.000145ac
mov eax, dword [ebp - 0x198]
mov edx, dword [ebp + 0xc]
call fcn.000c0948
xor eax, eax
push ebp
push 0xc16d3
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x1c], 0
je 0xc16c9
mov eax, dword [ebp - 0x1c]
push eax
call sub.wtsapi32.dll_WTSFreeMemory
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0xc1717
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0xc176a
lea eax, [ebp - 0x1c0]
call fcn.0002a1d0
push dword [ebp - 0x1c0]
push 0xc1a04
lea edx, [ebp - 0x174]
mov al, byte [ebp - 0xd]
call fcn.000294b8
lea edx, [ebp - 0x174]
lea eax, [ebp - 0x1c4]
call fcn.00013f4c
push dword [ebp - 0x1c4]
push 0xc1a1c
mov eax, dword [ebp - 0x14]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1c8]
call fcn.00027444
push dword [ebp - 0x1c8]
push 0xc1a28
lea eax, [ebp - 0x1bc]
mov edx, 6
call fcn.00014068
mov edx, dword [ebp - 0x1bc]
lea eax, [ebp - 0x1b8]
call fcn.000145ac
lea eax, [ebp - 0x1b8]
mov edx, dword [ebp + 8]
mov edx, dword [edx]
call fcn.0001463c
mov eax, dword [ebp - 0x1b8]
mov edx, dword [ebp + 0xc]
call fcn.000c0948
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xc190f
lea eax, [ebp - 0x1c8]
mov edx, 4
call fcn.00013d3c
lea eax, [ebp - 0x1b8]
call fcn.000143f0
lea eax, [ebp - 0x1b4]
call fcn.00013d18
lea eax, [ebp - 0x1b0]
call fcn.000143f0
lea eax, [ebp - 0x1ac]
call fcn.00013d18
lea eax, [ebp - 0x1a8]
call fcn.000143f0
lea eax, [ebp - 0x1a4]
mov edx, 3
call fcn.00013d3c
lea eax, [ebp - 0x198]
call fcn.000143f0
lea eax, [ebp - 0x194]
mov edx, 5
call fcn.00013d3c
lea eax, [ebp - 0x180]
call fcn.000143f0
lea eax, [ebp - 0x17c]
mov edx, 2
call fcn.00013d3c
lea eax, [ebp - 0x74]
mov edx, 3
call fcn.00013d3c
lea eax, [ebp - 0x68]
call fcn.000143f0
lea eax, [ebp - 0x64]
mov edx, 5
call fcn.00013d3c
lea eax, [ebp - 0x50]
call fcn.000143f0
lea eax, [ebp - 0x4c]
mov edx, 5
call fcn.00013d3c
lea eax, [ebp - 0x38]
call fcn.000143f0
lea eax, [ebp - 0x34]
call fcn.00013d18
lea eax, [ebp - 0x30]
call fcn.000143f0
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00013d3c
lea eax, [ebp - 0x20]
call fcn.000143f0
ret