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

Disassembly:
push 0xffffffffffffffff
push 0x4a3b77
mov eax, dword fs:[0]
push eax
mov eax, 0x22c0
call fcn.00498c40
mov eax, dword [0x4d32ac]
xor eax, esp
mov dword [esp + 0x22bc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d32ac]
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 [0x4dfda8], 1
mov dword [esp + 0x2c], edi
lea ebx, [ebp + 7]
jne 0x42a01e
or dword [0x4dfda8], 1
push 0x4a5f60
mov dword [0x4dfda4], ebx
mov dword [0x4dfda0], ebp
mov word [0x4dfd90], bp
call fcn.0047f635
add esp, 4
cmp dword [0x4dfda0], ebp
jne 0x42a301
call dword [0x4a72a4]
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x20], ebp
call dword [0x4a7218]
test eax, eax
je 0x42a301
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 0x42a299
mov edx, dword [esp + 0x14]
cmp edx, ebp
je 0x42a299
lea eax, [esp + 0x88]
push eax
call fcn.0042b3d0
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 0x42a277
mov edx, dword [esp + 0x14]
cmp edx, ebp
je 0x42a277
lea eax, [esp + 0x6c]
push eax
call fcn.0042b3d0
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, 0x4bc8d8
lea esi, [esp + 0x54]
mov byte [esp + 0x22e0], 2
call fcn.0041fef0
lea ecx, [esp + 0x8c]
push ecx
push eax
lea edi, [esp + 0x40]
mov byte [esp + 0x22e8], 3
call fcn.0041ffa0
add esp, 0xc
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0xac]
mov byte [esp + 0x22e4], 4
call fcn.0041fa90
mov esi, edi
call fcn.0041f860
lea esi, [esp + 0x50]
mov byte [esp + 0x22dc], 2
call fcn.0041f860
push 0x2002
lea edx, [esp + 0x2d2]
push ebp
push edx
mov word [esp + 0x2d8], bp
call fcn.00485090
push 0x20a
lea eax, [esp + 0xd2]
push ebp
push eax
mov word [esp + 0xd8], bp
call fcn.00485090
mov eax, dword [esp + 0xc0]
add esp, 0x18
cmp dword [esp + 0xbc], 8
mov dword [esp + 0x20], 0x1000
mov dword [esp + 0x28], 0x105
jae 0x42a1e6
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 [0x4a701c]
cmp eax, ebp
je 0x42a23d
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x2d0]
push eax
call dword [0x4a7024]
mov edx, dword [esp + 0x1c]
push 0x4dfd8c
call fcn.0042b3d0
mov ecx, dword [esp + 0x1c]
push ecx
call dword [0x4a7174]
lea esi, [esp + 0xa4]
call fcn.0041f860
lea esi, [esp + 0x6c]
call fcn.0041f860
lea esi, [esp + 0x88]
mov dword [esp + 0x22dc], 0xffffffff
call fcn.0041f860
mov edi, dword [esp + 0x2c]
mov ebx, 7
jmp 0x42a301
lea esi, [esp + 0x6c]
call fcn.0041f860
lea esi, [esp + 0x88]
mov dword [esp + 0x22dc], 0xffffffff
call fcn.0041f860
jmp 0x42a301
mov esi, 8
cmp dword [esp + 0x84], esi
jb 0x42a2b4
mov edx, dword [esp + 0x70]
push edx
call fcn.0047eacc
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 0x42a2eb
mov eax, dword [esp + 0x8c]
push eax
call fcn.0047eacc
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, 0x4dfd8c
mov ecx, edi
mov word [edi + 4], bp
call fcn.0041fa90
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.0047f0e0
add esp, 0x22cc
ret