Function at 0xf9034
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x11
push 0
push 0
dec ecx
jne 0xf903d
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0xf9411
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 8
lea edx, [ebp - 0x20]
mov eax, 0xf9424
call fcn.00031d88
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0xc]
mov ecx, dword [ebp + 8]
call fcn.00013f18
xor eax, eax
mov dword [esi], eax
xor eax, eax
push ebp
push 0xf93c0
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0xf93af
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push 8
push ebx
push 0
call sub.wtsapi32.dll_WTSQuerySessionInformationA
neg eax
sbb eax, eax
neg eax
mov ebx, eax
call sub.kernel32.dll_GetLastError_1
mov dword [esi], eax
test bl, bl
je 0xf92ce
cmp dword [ebp - 0x10], 0
je 0xf9245
cmp dword [ebp - 0x1c], 4
jne 0xf9245
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [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 ebx, ebx
neg ebx
call sub.kernel32.dll_GetLastError_1
mov dword [esi], eax
test bl, bl
je 0xf91b9
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x1c]
jne 0xf912d
mov al, byte [ebp - 0x14]
mov byte [ebp - 5], al
jmp 0xf934a
cmp dword [esi], 0
jne 0xf9138
mov dword [esi], 0x1e
lea edx, [ebp - 0x28]
mov eax, 0xf942c
call fcn.00031d88
push dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x2c]
call fcn.0002b0cc
push dword [ebp - 0x2c]
lea edx, [ebp - 0x30]
mov eax, 0xf9438
call fcn.00031d88
push dword [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x34]
call fcn.0002b0cc
push dword [ebp - 0x34]
lea edx, [ebp - 0x38]
mov eax, 0xf9438
call fcn.00031d88
push dword [ebp - 0x38]
lea edx, [ebp - 0x3c]
mov eax, dword [esi]
call fcn.0002b100
push dword [ebp - 0x3c]
lea eax, [ebp - 0x24]
mov edx, 6
call fcn.00013f8c
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.00019de0
jmp 0xf934a
cmp dword [esi], 0
jne 0xf91c4
mov dword [esi], 0xc
lea edx, [ebp - 0x44]
mov eax, 0xf943c
call fcn.00031d88
push dword [ebp - 0x44]
mov eax, dword [ebp - 0x18]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x48]
call fcn.0002b0cc
push dword [ebp - 0x48]
lea edx, [ebp - 0x4c]
mov eax, 0xf9438
call fcn.00031d88
push dword [ebp - 0x4c]
mov eax, dword [ebp - 0x1c]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x50]
call fcn.0002b0cc
push dword [ebp - 0x50]
lea edx, [ebp - 0x54]
mov eax, 0xf9438
call fcn.00031d88
push dword [ebp - 0x54]
lea edx, [ebp - 0x58]
mov eax, dword [esi]
call fcn.0002b100
push dword [ebp - 0x58]
lea eax, [ebp - 0x40]
mov edx, 6
call fcn.00013f8c
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.00019de0
jmp 0xf934a
cmp dword [esi], 0
jne 0xf9250
mov dword [esi], 0x1f
lea edx, [ebp - 0x60]
mov eax, 0xf9448
call fcn.00031d88
push dword [ebp - 0x60]
cmp dword [ebp - 0x10], 0
setne al
lea edx, [ebp - 0x64]
call fcn.0002d050
push dword [ebp - 0x64]
lea edx, [ebp - 0x68]
mov eax, 0xf9438
call fcn.00031d88
push dword [ebp - 0x68]
mov eax, dword [ebp - 0x1c]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x6c]
call fcn.0002b0cc
push dword [ebp - 0x6c]
lea edx, [ebp - 0x70]
mov eax, 0xf9438
call fcn.00031d88
push dword [ebp - 0x70]
lea edx, [ebp - 0x74]
mov eax, dword [esi]
call fcn.0002b100
push dword [ebp - 0x74]
lea eax, [ebp - 0x5c]
mov edx, 6
call fcn.00013f8c
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.00019de0
jmp 0xf934a
cmp dword [esi], 0
jne 0xf92d9
mov dword [esi], 0x1f
cmp dword [esi], 2
jne 0xf9312
lea edx, [ebp - 0x78]
mov eax, 0xf9454
call fcn.00031d88
lea eax, [ebp - 0x78]
push eax
lea edx, [ebp - 0x7c]
mov eax, dword [esi]
call fcn.0002b100
mov edx, dword [ebp - 0x7c]
pop eax
call fcn.00013ed4
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.00019d3c
jmp 0xf934a
lea edx, [ebp - 0x80]
mov eax, 0xf9454
call fcn.00031d88
lea eax, [ebp - 0x80]
push eax
lea edx, [ebp - 0x84]
mov eax, dword [esi]
call fcn.0002b100
mov edx, dword [ebp - 0x84]
pop eax
call fcn.00013ed4
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.00019de0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xf93b6
xor eax, eax
push ebp
push 0xf937e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x10], 0
je 0xf9374
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 0xf93a9
xor eax, eax
mov dword [ebp - 0x10], eax
ret