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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x1c
push 0
push 0
dec ecx
jne 0xb74a5
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0xb7bf5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00014294
mov byte [ebp - 0x1d], 0
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax], edx
xor eax, eax
push ebp
push 0xb7ab7
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0xb7aa3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.kernel32.dll_SetLastError
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push 5
mov eax, dword [ebp - 8]
push eax
push 0
call sub.wtsapi32.dll_WTSQuerySessionInformationW
neg eax
sbb eax, eax
neg eax
mov edx, dword [ebp + 0x10]
mov byte [edx], al
cmp dword [ebp - 0x18], 0
setne byte [ebp - 0x1d]
call sub.kernel32.dll_GetLastError_1
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
cmp byte [eax], 0
je 0xb79a7
cmp byte [ebp - 0x1d], 0
je 0xb77f7
cmp dword [ebp - 0x24], 0
jbe 0xb77f7
cmp dword [ebp - 0x24], 0x200
ja 0xb77f7
mov edx, dword [ebp - 0x24]
add edx, 4
lea eax, [ebp - 0x10]
call fcn.000744bc
xor eax, eax
push ebp
push 0xb77f0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.kernel32.dll_SetLastError
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x24]
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 - 0x11], al
call sub.kernel32.dll_GetLastError_1
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
xor eax, eax
push ebp
push 0xb75e0
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 0xb761e
xor eax, eax
mov dword [ebp - 0x18], eax
cmp byte [ebp - 0x11], 0
je 0xb7736
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x24]
jne 0xb7693
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.000143ec
lea edx, [ebp - 0x40]
mov eax, 0xb7c18
call fcn.00078120
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 4]
call fcn.00013f30
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
call fcn.00014444
push dword [ebp - 0x38]
mov eax, dword [ebp + 8]
push dword [eax]
push 0xb7c28
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00014598
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
call fcn.000b71f0
jmp 0xb77d4
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0xb76a4
mov eax, dword [ebp - 0xc]
mov dword [eax], 0x1e
push dword [ebp - 4]
lea edx, [ebp - 0x4c]
mov eax, 0xb7c2c
call fcn.00078120
push dword [ebp - 0x4c]
mov eax, dword [ebp - 0x1c]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x50]
call fcn.0007476c
push dword [ebp - 0x50]
lea edx, [ebp - 0x54]
mov eax, 0xb7c3c
call fcn.00078120
push dword [ebp - 0x54]
mov eax, dword [ebp - 0x24]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x58]
call fcn.0007476c
push dword [ebp - 0x58]
lea edx, [ebp - 0x5c]
mov eax, 0xb7c3c
call fcn.00078120
push dword [ebp - 0x5c]
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.000747a0
push dword [ebp - 0x60]
lea eax, [ebp - 0x48]
mov edx, 7
call fcn.00013fa4
mov edx, dword [ebp - 0x48]
lea eax, [ebp - 0x44]
call fcn.00014444
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
call fcn.000b73b8
jmp 0xb77d4
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0xb7747
mov eax, dword [ebp - 0xc]
mov dword [eax], 0xc
push dword [ebp - 4]
lea edx, [ebp - 0x6c]
mov eax, 0xb7c40
call fcn.00078120
push dword [ebp - 0x6c]
mov eax, dword [ebp - 0x1c]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x70]
call fcn.0007476c
push dword [ebp - 0x70]
lea edx, [ebp - 0x74]
mov eax, 0xb7c3c
call fcn.00078120
push dword [ebp - 0x74]
mov eax, dword [ebp - 0x24]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x78]
call fcn.0007476c
push dword [ebp - 0x78]
lea edx, [ebp - 0x7c]
mov eax, 0xb7c3c
call fcn.00078120
push dword [ebp - 0x7c]
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.000747a0
push dword [ebp - 0x80]
lea eax, [ebp - 0x68]
mov edx, 7
call fcn.00013fa4
mov edx, dword [ebp - 0x68]
lea eax, [ebp - 0x64]
call fcn.00014444
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
call fcn.000b73b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xb7a19
mov edx, dword [ebp - 0x24]
add edx, 4
lea eax, [ebp - 0x10]
call fcn.000744f8
ret
cmp byte [ebp - 0x1d], 0
je 0xb78db
cmp dword [ebp - 0x24], 0
jne 0xb78db
cmp dword [ebp - 0x24], 2
je 0xb78ce
push dword [ebp - 4]
lea edx, [ebp - 0x8c]
mov eax, 0xb7c50
call fcn.00078120
push dword [ebp - 0x8c]
lea edx, [ebp - 0x90]
mov al, byte [ebp - 0x1d]
call fcn.000759c8
push dword [ebp - 0x90]
lea edx, [ebp - 0x94]
mov eax, 0xb7c3c
call fcn.00078120
push dword [ebp - 0x94]
mov eax, dword [ebp - 0x24]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x98]
call fcn.0007476c
push dword [ebp - 0x98]
lea edx, [ebp - 0x9c]
mov eax, 0xb7c3c
call fcn.00078120
push dword [ebp - 0x9c]
lea edx, [ebp - 0xa0]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.000747a0
push dword [ebp - 0xa0]
lea eax, [ebp - 0x88]
mov edx, 7
call fcn.00013fa4
mov edx, dword [ebp - 0x88]
lea eax, [ebp - 0x84]
call fcn.00014444
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
call fcn.000b72d4
mov eax, dword [ebp + 8]
call fcn.00014294
jmp 0xb7a19
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0xb78ec
mov eax, dword [ebp - 0xc]
mov dword [eax], 0x1f
push dword [ebp - 4]
lea edx, [ebp - 0xac]
mov eax, 0xb7c60
call fcn.00078120
push dword [ebp - 0xac]
lea edx, [ebp - 0xb0]
mov al, byte [ebp - 0x1d]
call fcn.000759c8
push dword [ebp - 0xb0]
lea edx, [ebp - 0xb4]
mov eax, 0xb7c3c
call fcn.00078120
push dword [ebp - 0xb4]
mov eax, dword [ebp - 0x24]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xb8]
call fcn.0007476c
push dword [ebp - 0xb8]
lea edx, [ebp - 0xbc]
mov eax, 0xb7c3c
call fcn.00078120
push dword [ebp - 0xbc]
lea edx, [ebp - 0xc0]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.000747a0
push dword [ebp - 0xc0]
lea eax, [ebp - 0xa8]
mov edx, 7
call fcn.00013fa4
mov edx, dword [ebp - 0xa8]
lea eax, [ebp - 0xa4]
call fcn.00014444
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
call fcn.000b73b8
jmp 0xb7a19
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0xb79b8
mov eax, dword [ebp - 0xc]
mov dword [eax], 0x1f
push dword [ebp - 4]
lea edx, [ebp - 0xcc]
mov eax, 0xb7c70
call fcn.00078120
push dword [ebp - 0xcc]
lea edx, [ebp - 0xd0]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.000747a0
push dword [ebp - 0xd0]
lea eax, [ebp - 0xc8]
mov edx, 3
call fcn.00013fa4
mov edx, dword [ebp - 0xc8]
lea eax, [ebp - 0xc4]
call fcn.00014444
mov eax, dword [ebp - 0xc4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
call fcn.000b73b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xb7aad
xor eax, eax
push ebp
push 0xb7a4d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x18], 0
je 0xb7a43
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 0xb7a9d
xor eax, eax
mov dword [ebp - 0x18], eax
ret