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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x38
push 0
push 0
dec ecx
jne 0xc09b5
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 0xc10ae
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 0xc10cc
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 - 0x19], 0
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax], edx
xor eax, eax
push ebp
push 0xc0ecf
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.kernel32.dll_SetLastError
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
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 - 0x10], 0
setne byte [ebp - 0x19]
call sub.kernel32.dll_GetLastError_1
mov edx, dword [ebp - 4]
mov dword [edx], eax
cmp byte [esi], 0
je 0xc0de9
cmp byte [ebp - 0x19], 0
je 0xc0c7f
cmp dword [ebp - 0x18], 0
jbe 0xc0c7f
cmp dword [ebp - 0x18], 0x200
ja 0xc0c7f
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x18]
call fcn.000271f0
push 0
call sub.kernel32.dll_SetLastError
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_ReadProcessMemory
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 5], al
call sub.kernel32.dll_GetLastError_1
mov edx, dword [ebp - 4]
mov dword [edx], eax
xor eax, eax
push ebp
push 0xc0b0a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
call sub.wtsapi32.dll_WTSFreeMemory
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0xc0b3f
xor eax, eax
mov dword [ebp - 0x10], eax
cmp byte [ebp - 5], 0
je 0xc0bed
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x18]
jne 0xc0b66
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
call fcn.00014548
jmp 0xc0c6f
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0xc0b77
mov eax, dword [ebp - 4]
mov dword [eax], 0x1e
lea eax, [ebp - 0x40]
call fcn.0002a2b0
push dword [ebp - 0x40]
push 0xc10fc
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x44]
call fcn.00027444
push dword [ebp - 0x44]
push 0xc1114
mov eax, dword [ebp - 0x18]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x48]
call fcn.00027444
push dword [ebp - 0x48]
push 0xc1114
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 0xc0c6f
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0xc0bfe
mov eax, dword [ebp - 4]
mov dword [eax], 0xc
lea eax, [ebp - 0x58]
call fcn.0002a2b0
push dword [ebp - 0x58]
push 0xc1120
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x5c]
call fcn.00027444
push dword [ebp - 0x5c]
push 0xc1114
mov eax, dword [ebp - 0x18]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x60]
call fcn.00027444
push dword [ebp - 0x60]
push 0xc1114
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 - 0x14]
mov edx, dword [ebp - 0x18]
call fcn.00027218
jmp 0xc0e55
cmp byte [ebp - 0x19], 0
je 0xc0d34
cmp dword [ebp - 0x18], 0
jne 0xc0d34
cmp dword [ebp - 0x18], 2
je 0xc0d27
lea eax, [ebp - 0x70]
call fcn.0002a240
push dword [ebp - 0x70]
push 0xc1138
lea edx, [ebp - 0x174]
mov al, byte [ebp - 0x19]
call fcn.000294b8
lea edx, [ebp - 0x174]
lea eax, [ebp - 0x74]
call fcn.00013f4c
push dword [ebp - 0x74]
push 0xc1114
mov eax, dword [ebp - 0x18]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x178]
call fcn.00027444
push dword [ebp - 0x178]
push 0xc1114
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 0xc0e55
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0xc0d45
mov eax, dword [ebp - 4]
mov dword [eax], 0x1f
lea eax, [ebp - 0x188]
call fcn.0002a2b0
push dword [ebp - 0x188]
push 0xc1150
lea edx, [ebp - 0x174]
mov al, byte [ebp - 0x19]
call fcn.000294b8
lea edx, [ebp - 0x174]
lea eax, [ebp - 0x18c]
call fcn.00013f4c
push dword [ebp - 0x18c]
push 0xc1114
mov eax, dword [ebp - 0x18]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x190]
call fcn.00027444
push dword [ebp - 0x190]
push 0xc1114
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 0xc0e55
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0xc0dfa
mov eax, dword [ebp - 4]
mov dword [eax], 0x1f
lea eax, [ebp - 0x1a0]
call fcn.0002a2b0
push dword [ebp - 0x1a0]
push 0xc1168
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 0xc0e7c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x10], 0
je 0xc0e72
mov eax, dword [ebp - 0x10]
push eax
call sub.wtsapi32.dll_WTSFreeMemory
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0xc0ec0
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0xc0f13
lea eax, [ebp - 0x1c0]
call fcn.0002a1d0
push dword [ebp - 0x1c0]
push 0xc11b0
lea edx, [ebp - 0x174]
mov al, byte [ebp - 0x19]
call fcn.000294b8
lea edx, [ebp - 0x174]
lea eax, [ebp - 0x1c4]
call fcn.00013f4c
push dword [ebp - 0x1c4]
push 0xc11c8
mov eax, dword [ebp - 0x18]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1c8]
call fcn.00027444
push dword [ebp - 0x1c8]
push 0xc11d4
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 0xc10b8
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