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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50534c
mov eax, dword fs:[0]
push eax
mov eax, 0x22ac
call fcn.00433230
mov eax, dword [0x52f8b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x5340f8]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x22b8], 0
test al, 1
jne 0x441827
or eax, 1
mov dword [0x5340f8], eax
xor eax, eax
push 0x507fb0
mov dword [0x5340f4], 7
mov dword [0x5340f0], 0
mov word [0x5340e0], ax
call fcn.0041b1d3
add esp, 4
cmp dword [0x5340f0], 0
jne 0x441b03
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [ebp - 0x22a0]
push ecx
push eax
mov dword [ebp - 0x22a0], 0
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x441b03
xor eax, eax
mov dword [ebp - 0x229c], 0
mov dword [ebp - 0x22a8], 0
mov dword [ebp - 0x223c], 7
mov dword [ebp - 0x2240], 0
mov word [ebp - 0x2250], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x2224], 7
mov dword [ebp - 0x2228], eax
mov word [ebp - 0x2238], ax
lea eax, [ebp - 0x22a8]
push eax
lea eax, [ebp - 0x229c]
push eax
push 5
push dword [ebp - 0x22a0]
mov byte [ebp - 4], 1
push 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x441aab
mov eax, dword [ebp - 0x229c]
test eax, eax
je 0x441aab
push eax
lea ecx, [ebp - 0x2250]
call fcn.0040bc30
push dword [ebp - 0x229c]
call sub.WTSAPI32.dll_WTSFreeMemory
lea eax, [ebp - 0x22a8]
push eax
lea eax, [ebp - 0x229c]
push eax
push 7
push dword [ebp - 0x22a0]
mov dword [ebp - 0x229c], 0
push 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x441a8c
mov eax, dword [ebp - 0x229c]
test eax, eax
je 0x441a8c
push eax
lea ecx, [ebp - 0x2238]
call fcn.0040bc30
push dword [ebp - 0x229c]
call sub.WTSAPI32.dll_WTSFreeMemory
xor eax, eax
mov dword [ebp - 0x2254], 7
mov dword [ebp - 0x2258], 0
mov word [ebp - 0x2268], ax
push 0x5269b0
lea eax, [ebp - 0x2238]
push eax
lea eax, [ebp - 0x2298]
push eax
mov byte [ebp - 4], 2
call fcn.00440750
lea ecx, [ebp - 0x2250]
push ecx
push eax
lea eax, [ebp - 0x2280]
push eax
mov byte [ebp - 4], 3
call fcn.00440720
add esp, 0x18
lea ecx, [ebp - 0x2268]
push eax
call fcn.004172ad
lea ecx, [ebp - 0x2280]
call fcn.00402340
lea ecx, [ebp - 0x2298]
mov byte [ebp - 4], 2
call fcn.00402340
xor eax, eax
push 0x2002
push eax
mov word [ebp - 0x2220], ax
lea eax, [ebp - 0x221e]
push eax
call fcn.0041f040
xor eax, eax
push 0x20a
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.0041f040
add esp, 0x18
cmp dword [ebp - 0x2254], 8
lea ecx, [ebp - 0x22b4]
push ecx
lea ecx, [ebp - 0x22b0]
push ecx
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x22ac]
push ecx
lea ecx, [ebp - 0x2220]
lea eax, [ebp - 0x2268]
cmovae eax, dword [ebp - 0x2268]
push ecx
push eax
push 0
mov dword [ebp - 0x22ac], 0x1000
mov dword [ebp - 0x22b0], 0x105
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x441a81
lea eax, [ebp - 0x22a4]
push eax
lea eax, [ebp - 0x2220]
push eax
call sub.ADVAPI32.dll_ConvertSidToStringSidW
push dword [ebp - 0x22a4]
mov ecx, 0x5340e0
call fcn.0040bc30
push dword [ebp - 0x22a4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x2268]
call fcn.00402340
lea ecx, [ebp - 0x2238]
call fcn.00402340
lea ecx, [ebp - 0x2250]
mov dword [ebp - 4], 0xffffffff
call fcn.00402340
jmp 0x441b03
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x2224], 8
jb 0x441ac8
push dword [ebp - 0x2238]
call fcn.0041a777
add esp, 4
xor eax, eax
cmp dword [ebp - 0x223c], 8
mov dword [ebp - 0x2224], 7
mov dword [ebp - 0x2228], 0
mov word [ebp - 0x2238], ax
mov dword [ebp - 4], 0xffffffff
jb 0x441b03
push dword [ebp - 0x2250]
call fcn.0041a777
add esp, 4
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push 0x5340e0
mov ecx, esi
mov word [esi], ax
call fcn.004026f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041a77c
mov esp, ebp
pop ebp
ret