Function at 0xadcb4
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x22
push 0
push 0
dec ecx
jne 0xadcbd
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 0xae513
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00014314
lea eax, [ebp - 0x24]
call fcn.0002dd44
push dword [ebp - 0x24]
lea edx, [ebp - 0x28]
mov eax, 0xae528
call fcn.00031d88
push dword [ebp - 0x28]
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x2c]
call fcn.0002b0cc
push dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00013f8c
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
call fcn.000144c4
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp + 0xc]
call fcn.000adc50
mov byte [ebp - 0xa], 0
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax], edx
xor eax, eax
push ebp
push 0xae2fa
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0xae2e6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.kernel32.dll_SetLastError
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
push 5
push ebx
push 0
call sub.wtsapi32.dll_WTSQuerySessionInformationW
neg eax
sbb eax, eax
neg eax
mov byte [esi], al
cmp dword [ebp - 0x18], 0
setne byte [ebp - 0xa]
call sub.kernel32.dll_GetLastError_1
mov edx, dword [ebp - 4]
mov dword [edx], eax
cmp byte [esi], 0
je 0xae1d8
cmp byte [ebp - 0xa], 0
je 0xae012
cmp dword [ebp - 8], 0
jbe 0xae012
cmp dword [ebp - 8], 0x200
ja 0xae012
mov edx, dword [ebp - 8]
add edx, 4
lea eax, [ebp - 0x10]
call fcn.0002aea4
xor eax, eax
push ebp
push 0xae00b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.kernel32.dll_SetLastError
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_ReadProcessMemory
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 9], al
call sub.kernel32.dll_GetLastError_1
mov edx, dword [ebp - 4]
mov dword [edx], eax
xor eax, eax
push ebp
push 0xade3b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
push eax
call sub.wtsapi32.dll_WTSFreeMemory
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0xade7d
xor eax, eax
mov dword [ebp - 0x18], eax
cmp byte [ebp - 9], 0
je 0xadf4c
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 8]
jne 0xadea4
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.0001446c
jmp 0xadfef
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0xadeb5
mov eax, dword [ebp - 4]
mov dword [eax], 0x1e
lea eax, [ebp - 0x44]
call fcn.0002de44
push dword [ebp - 0x44]
lea edx, [ebp - 0x48]
mov eax, 0xae548
call fcn.00031d88
push dword [ebp - 0x48]
mov eax, dword [ebp - 0x14]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x4c]
call fcn.0002b0cc
push dword [ebp - 0x4c]
lea edx, [ebp - 0x50]
mov eax, 0xae558
call fcn.00031d88
push dword [ebp - 0x50]
mov eax, dword [ebp - 8]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x54]
call fcn.0002b0cc
push dword [ebp - 0x54]
lea edx, [ebp - 0x58]
mov eax, 0xae558
call fcn.00031d88
push dword [ebp - 0x58]
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0002b100
push dword [ebp - 0x5c]
lea eax, [ebp - 0x40]
mov edx, 7
call fcn.00013f8c
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
call fcn.000144c4
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp + 0xc]
call fcn.000adc50
jmp 0xadfef
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0xadf5d
mov eax, dword [ebp - 4]
mov dword [eax], 0xc
lea eax, [ebp - 0x68]
call fcn.0002de44
push dword [ebp - 0x68]
lea edx, [ebp - 0x6c]
mov eax, 0xae55c
call fcn.00031d88
push dword [ebp - 0x6c]
mov eax, dword [ebp - 0x14]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x70]
call fcn.0002b0cc
push dword [ebp - 0x70]
lea edx, [ebp - 0x74]
mov eax, 0xae558
call fcn.00031d88
push dword [ebp - 0x74]
mov eax, dword [ebp - 8]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x78]
call fcn.0002b0cc
push dword [ebp - 0x78]
lea edx, [ebp - 0x7c]
mov eax, 0xae558
call fcn.00031d88
push dword [ebp - 0x7c]
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0002b100
push dword [ebp - 0x80]
lea eax, [ebp - 0x64]
mov edx, 7
call fcn.00013f8c
mov edx, dword [ebp - 0x64]
lea eax, [ebp - 0x60]
call fcn.000144c4
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp + 0xc]
call fcn.000adc50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xae255
mov edx, dword [ebp - 8]
add edx, 4
lea eax, [ebp - 0x10]
call fcn.0002aecc
ret
cmp byte [ebp - 0xa], 0
je 0xae101
cmp dword [ebp - 8], 0
jne 0xae101
cmp dword [ebp - 8], 2
je 0xae0f4
lea eax, [ebp - 0x8c]
call fcn.0002ddc4
push dword [ebp - 0x8c]
lea edx, [ebp - 0x90]
mov eax, 0xae56c
call fcn.00031d88
push dword [ebp - 0x90]
lea edx, [ebp - 0x94]
mov al, byte [ebp - 0xa]
call fcn.0002d050
push dword [ebp - 0x94]
lea edx, [ebp - 0x98]
mov eax, 0xae558
call fcn.00031d88
push dword [ebp - 0x98]
mov eax, dword [ebp - 8]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x9c]
call fcn.0002b0cc
push dword [ebp - 0x9c]
lea edx, [ebp - 0xa0]
mov eax, 0xae558
call fcn.00031d88
push dword [ebp - 0xa0]
lea edx, [ebp - 0xa4]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0002b100
push dword [ebp - 0xa4]
lea eax, [ebp - 0x88]
mov edx, 7
call fcn.00013f8c
mov edx, dword [ebp - 0x88]
lea eax, [ebp - 0x84]
call fcn.000144c4
mov eax, dword [ebp - 0x84]
mov edx, dword [ebp + 0xc]
call fcn.000adc50
mov eax, dword [ebp + 8]
call fcn.00014314
jmp 0xae255
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0xae112
mov eax, dword [ebp - 4]
mov dword [eax], 0x1f
lea eax, [ebp - 0xb0]
call fcn.0002de44
push dword [ebp - 0xb0]
lea edx, [ebp - 0xb4]
mov eax, 0xae57c
call fcn.00031d88
push dword [ebp - 0xb4]
lea edx, [ebp - 0xb8]
mov al, byte [ebp - 0xa]
call fcn.0002d050
push dword [ebp - 0xb8]
lea edx, [ebp - 0xbc]
mov eax, 0xae558
call fcn.00031d88
push dword [ebp - 0xbc]
mov eax, dword [ebp - 8]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xc0]
call fcn.0002b0cc
push dword [ebp - 0xc0]
lea edx, [ebp - 0xc4]
mov eax, 0xae558
call fcn.00031d88
push dword [ebp - 0xc4]
lea edx, [ebp - 0xc8]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0002b100
push dword [ebp - 0xc8]
lea eax, [ebp - 0xac]
mov edx, 7
call fcn.00013f8c
mov edx, dword [ebp - 0xac]
lea eax, [ebp - 0xa8]
call fcn.000144c4
mov eax, dword [ebp - 0xa8]
mov edx, dword [ebp + 0xc]
call fcn.000adc50
jmp 0xae255
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0xae1e9
mov eax, dword [ebp - 4]
mov dword [eax], 0x1f
lea eax, [ebp - 0xd4]
call fcn.0002de44
push dword [ebp - 0xd4]
lea edx, [ebp - 0xd8]
mov eax, 0xae58c
call fcn.00031d88
push dword [ebp - 0xd8]
lea edx, [ebp - 0xdc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0002b100
push dword [ebp - 0xdc]
lea eax, [ebp - 0xd0]
mov edx, 3
call fcn.00013f8c
mov edx, dword [ebp - 0xd0]
lea eax, [ebp - 0xcc]
call fcn.000144c4
mov eax, dword [ebp - 0xcc]
mov edx, dword [ebp + 0xc]
call fcn.000adc50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xae2f0
xor eax, eax
push ebp
push 0xae289
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x18], 0
je 0xae27f
mov eax, dword [ebp - 0x18]
push eax
call sub.wtsapi32.dll_WTSFreeMemory
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0xae2e0
xor eax, eax
mov dword [ebp - 0x18], eax
ret