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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac8dc
mov eax, dword fs:[0]
push eax
mov eax, 0x22ac
call fcn.0048d860
mov eax, dword [0x4f3168]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x4f5460]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x22b8], 0
test al, 1
jne 0x418007
or eax, 1
mov dword [0x4f5460], eax
xor eax, eax
push 0x4b3870
mov dword [0x4f545c], 7
mov dword [0x4f5458], 0
mov word [0x4f5448], ax
call fcn.0048be44
add esp, 4
cmp dword [0x4f5458], 0
jne 0x4182d3
call dword [0x4b4248]
lea ecx, [ebp - 0x22a0]
push ecx
push eax
mov dword [ebp - 0x22a0], 0
call dword [0x4b4218]
test eax, eax
je 0x4182d3
xor eax, eax
mov dword [ebp - 0x229c], 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 - 0x22b0]
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 0x418281
mov eax, dword [ebp - 0x229c]
test eax, eax
je 0x418281
push eax
lea ecx, [ebp - 0x2250]
call fcn.004160d0
push dword [ebp - 0x229c]
call sub.WTSAPI32.dll_WTSFreeMemory
lea eax, [ebp - 0x22b0]
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 0x418262
mov eax, dword [ebp - 0x229c]
test eax, eax
je 0x418262
push eax
lea ecx, [ebp - 0x2238]
call fcn.004160d0
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 0x4b48c0
lea eax, [ebp - 0x2238]
push eax
lea eax, [ebp - 0x2298]
push eax
mov byte [ebp - 4], 2
call fcn.00415ba0
lea ecx, [ebp - 0x2250]
push ecx
push eax
lea eax, [ebp - 0x2280]
push eax
mov byte [ebp - 4], 3
call fcn.00415b70
add esp, 0x18
lea ecx, [ebp - 0x2268]
push eax
call fcn.00416090
lea ecx, [ebp - 0x2280]
call fcn.00414f70
lea ecx, [ebp - 0x2298]
mov byte [ebp - 4], 2
call fcn.00414f70
xor eax, eax
push 0x2002
push eax
mov word [ebp - 0x2220], ax
lea eax, [ebp - 0x221e]
push eax
call fcn.0048d890
xor eax, eax
push 0x20a
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.0048d890
add esp, 0x18
cmp dword [ebp - 0x2254], 8
lea ecx, [ebp - 0x22b4]
push ecx
lea ecx, [ebp - 0x22ac]
push ecx
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x22a8]
push ecx
lea ecx, [ebp - 0x2220]
lea eax, [ebp - 0x2268]
cmovae eax, dword [ebp - 0x2268]
push ecx
push eax
push 0
mov dword [ebp - 0x22a8], 0x1000
mov dword [ebp - 0x22ac], 0x105
call dword [0x4b402c]
test eax, eax
je 0x418257
lea eax, [ebp - 0x22a4]
push eax
lea eax, [ebp - 0x2220]
push eax
call fcn.0044d002
push dword [ebp - 0x22a4]
mov ecx, 0x4f5448
call fcn.004160d0
push dword [ebp - 0x22a4]
call dword [0x4b421c]
lea ecx, [ebp - 0x2268]
call fcn.00414f70
lea ecx, [ebp - 0x2238]
call fcn.00414f70
lea ecx, [ebp - 0x2250]
mov dword [ebp - 4], 0xffffffff
call fcn.00414f70
jmp 0x4182d3
cmp dword [ebp - 0x2224], 8
jb 0x418298
push dword [ebp - 0x2238]
call fcn.0048bbcf
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 0x4182d3
push dword [ebp - 0x2250]
call fcn.0048bbcf
add esp, 4
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push 0x4f5448
mov ecx, esi
mov word [esi], ax
call fcn.00415630
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.0048caf4
mov esp, ebp
pop ebp
ret