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

Disassembly:
push 0xffffffffffffffff
push 0x52d547
mov eax, dword fs:[0]
push eax
mov eax, 0x22c0
call fcn.0051a950
mov eax, dword [0x56b1dc]
xor eax, esp
mov dword [esp + 0x22bc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56b1dc]
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 [0x57ad50], 1
mov dword [esp + 0x2c], edi
lea ebx, [ebp + 7]
jne 0x45cdce
or dword [0x57ad50], 1
push 0x530900
mov dword [0x57ad4c], ebx
mov dword [0x57ad48], ebp
mov word [0x57ad38], bp
call fcn.005000d9
add esp, 4
cmp dword [0x57ad48], ebp
jne 0x45d0b1
call dword [0x531290]
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x20], ebp
call dword [0x531270]
test eax, eax
je 0x45d0b1
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 0x45d049
mov edx, dword [esp + 0x14]
cmp edx, ebp
je 0x45d049
lea eax, [esp + 0x88]
push eax
call fcn.0045e7e0
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 0x45d027
mov edx, dword [esp + 0x14]
cmp edx, ebp
je 0x45d027
lea eax, [esp + 0x6c]
push eax
call fcn.0045e7e0
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, 0x542460
lea esi, [esp + 0x54]
mov byte [esp + 0x22e0], 2
call fcn.00450c60
lea ecx, [esp + 0x8c]
push ecx
push eax
lea edi, [esp + 0x40]
mov byte [esp + 0x22e8], 3
call fcn.0041b8e0
add esp, 0xc
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0xac]
mov byte [esp + 0x22e4], 4
call fcn.00414870
mov esi, edi
call fcn.00414210
lea esi, [esp + 0x50]
mov byte [esp + 0x22dc], 2
call fcn.00414210
push 0x2002
lea edx, [esp + 0x2d2]
push ebp
push edx
mov word [esp + 0x2d8], bp
call fcn.00508d80
push 0x20a
lea eax, [esp + 0xd2]
push ebp
push eax
mov word [esp + 0xd8], bp
call fcn.00508d80
mov eax, dword [esp + 0xc0]
add esp, 0x18
cmp dword [esp + 0xbc], 8
mov dword [esp + 0x20], 0x1000
mov dword [esp + 0x28], 0x105
jae 0x45cf96
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 [0x53104c]
cmp eax, ebp
je 0x45cfed
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x2d0]
push eax
call dword [0x531054]
mov edx, dword [esp + 0x1c]
push 0x57ad34
call fcn.0045e7e0
mov ecx, dword [esp + 0x1c]
push ecx
call dword [0x531198]
lea esi, [esp + 0xa4]
call fcn.00414210
lea esi, [esp + 0x6c]
call fcn.00414210
lea esi, [esp + 0x88]
mov dword [esp + 0x22dc], 0xffffffff
call fcn.00414210
mov edi, dword [esp + 0x2c]
mov ebx, 7
jmp 0x45d0b1
lea esi, [esp + 0x6c]
call fcn.00414210
lea esi, [esp + 0x88]
mov dword [esp + 0x22dc], 0xffffffff
call fcn.00414210
jmp 0x45d0b1
mov esi, 8
cmp dword [esp + 0x84], esi
jb 0x45d064
mov edx, dword [esp + 0x70]
push edx
call fcn.004ffbbe
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 0x45d09b
mov eax, dword [esp + 0x8c]
push eax
call fcn.004ffbbe
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, 0x57ad34
mov ecx, edi
mov word [edi + 4], bp
call fcn.00414870
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.004ff939
add esp, 0x22cc
ret