Function at 0x427ef0
Capabilities:
Get session information
Get session user name
Get user security identifier

Disassembly:
push 0xffffffffffffffff
push 0x4cf347
mov eax, dword fs:[0]
push eax
mov eax, 0x22c0
call fcn.004c60d0
mov eax, dword [0x50397c]
xor eax, esp
mov dword [esp + 0x22bc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50397c]
xor eax, esp
push eax
lea eax, [esp + 0x22d4]
mov dword fs:[0], eax
xor ebp, ebp
mov edi, ecx
mov dword [esp + 0x20], ebp
test byte [0x510af0], 1
mov dword [esp + 0x2c], edi
lea ebx, [ebp + 7]
jne 0x427f6e
or dword [0x510af0], 1
push 0x4d41d0
mov dword [0x510aec], ebx
mov dword [0x510ae8], ebp
mov word [0x510ad8], bp
call fcn.004aa96d
add esp, 4
cmp dword [0x510ae8], ebp
jne 0x428251
call dword [0x4d5254]
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x20], ebp
call dword [0x4d50c8]
test eax, eax
je 0x428251
mov dword [esp + 0x14], ebp
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x9c], ebp
mov word [esp + 0x8c], bp
mov dword [esp + 0x22dc], ebp
mov dword [esp + 0x84], ebx
mov dword [esp + 0x80], ebp
mov word [esp + 0x70], bp
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x22e4], 1
mov ecx, dword [esp + 0x20]
push 5
push ecx
push ebp
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
cmp eax, ebp
je 0x4281e9
mov edx, dword [esp + 0x14]
cmp edx, ebp
je 0x4281e9
lea eax, [esp + 0x88]
push eax
call fcn.00429510
mov ecx, dword [esp + 0x14]
push ecx
call sub.WTSAPI32.dll_WTSFreeMemory
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x18]
push eax
push ebx
push ecx
push ebp
mov dword [esp + 0x28], ebp
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
cmp eax, ebp
je 0x4281c7
mov edx, dword [esp + 0x14]
cmp edx, ebp
je 0x4281c7
lea eax, [esp + 0x6c]
push eax
call fcn.00429510
mov ecx, dword [esp + 0x14]
push ecx
call sub.WTSAPI32.dll_WTSFreeMemory
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xb8], ebp
mov word [esp + 0xa8], bp
lea edx, [esp + 0x6c]
push edx
mov ebx, 0x4e35b4
lea esi, [esp + 0x54]
mov byte [esp + 0x22e0], 2
call fcn.00420cf0
lea ecx, [esp + 0x8c]
push ecx
push eax
lea edi, [esp + 0x40]
mov byte [esp + 0x22e8], 3
call fcn.00420da0
add esp, 0xc
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0xac]
mov byte [esp + 0x22e4], 4
call fcn.00407340
mov esi, edi
call fcn.004068f0
lea esi, [esp + 0x50]
mov byte [esp + 0x22dc], 2
call fcn.004068f0
push 0x2002
lea edx, [esp + 0x2d2]
push ebp
push edx
mov word [esp + 0x2d8], bp
call fcn.004b0720
push 0x20a
lea eax, [esp + 0xd2]
push ebp
push eax
mov word [esp + 0xd8], bp
call fcn.004b0720
mov eax, dword [esp + 0xc0]
add esp, 0x18
cmp dword [esp + 0xbc], 8
mov dword [esp + 0x20], 0x1000
mov dword [esp + 0x28], 0x105
jae 0x428136
lea eax, [esp + 0xa8]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0xc8]
push ecx
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x2dc]
push ecx
push eax
push ebp
call dword [0x4d5008]
cmp eax, ebp
je 0x42818d
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x2d0]
push eax
call dword [0x4d5040]
mov edx, dword [esp + 0x1c]
push 0x510ad4
call fcn.00429510
mov ecx, dword [esp + 0x1c]
push ecx
call dword [0x4d50cc]
lea esi, [esp + 0xa4]
call fcn.004068f0
lea esi, [esp + 0x6c]
call fcn.004068f0
lea esi, [esp + 0x88]
mov dword [esp + 0x22dc], 0xffffffff
call fcn.004068f0
mov edi, dword [esp + 0x2c]
mov ebx, 7
jmp 0x428251
lea esi, [esp + 0x6c]
call fcn.004068f0
lea esi, [esp + 0x88]
mov dword [esp + 0x22dc], 0xffffffff
call fcn.004068f0
jmp 0x428251
mov esi, 8
cmp dword [esp + 0x84], esi
jb 0x428204
mov edx, dword [esp + 0x70]
push edx
call fcn.004a91d0
add esp, 4
mov dword [esp + 0x22dc], 0xffffffff
cmp dword [esp + 0xa0], esi
mov dword [esp + 0x84], ebx
mov dword [esp + 0x80], ebp
mov word [esp + 0x70], bp
jb 0x42823b
mov eax, dword [esp + 0x8c]
push eax
call fcn.004a91d0
add esp, 4
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x9c], ebp
mov word [esp + 0x8c], bp
push 0xffffffffffffffff
mov dword [edi + 0x18], ebx
mov dword [edi + 0x14], ebp
push ebp
mov eax, 0x510ad4
mov ecx, edi
mov word [edi + 4], bp
call fcn.00407340
mov eax, edi
mov ecx, dword [esp + 0x22d4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x22bc]
xor ecx, esp
call fcn.004a91d5
add esp, 0x22cc
ret