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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48d22c
mov eax, dword fs:[0]
push eax
mov eax, 0x22ac
call fcn.00438670
mov eax, dword [0x4aa6e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x4adb18]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x22b8], 0
test al, 1
jne 0x446be7
or eax, 1
mov dword [0x4adb18], eax
xor eax, eax
push 0x48ed20
mov dword [0x4adb14], 7
mov dword [0x4adb10], 0
mov word [0x4adb00], ax
call fcn.00422904
add esp, 4
cmp dword [0x4adb10], 0
jne 0x446ec3
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 0x446ec3
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 0x446e6b
mov eax, dword [ebp - 0x229c]
test eax, eax
je 0x446e6b
push eax
lea ecx, [ebp - 0x2250]
call fcn.004461a0
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 0x446e4c
mov eax, dword [ebp - 0x229c]
test eax, eax
je 0x446e4c
push eax
lea ecx, [ebp - 0x2238]
call fcn.004461a0
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 0x496008
lea eax, [ebp - 0x2238]
push eax
lea eax, [ebp - 0x2298]
push eax
mov byte [ebp - 4], 2
call fcn.00413900
lea ecx, [ebp - 0x2250]
push ecx
push eax
lea eax, [ebp - 0x2280]
push eax
mov byte [ebp - 4], 3
call fcn.00444920
add esp, 0x18
lea ecx, [ebp - 0x2268]
push eax
call fcn.00410f30
lea ecx, [ebp - 0x2280]
call fcn.00407530
lea ecx, [ebp - 0x2298]
mov byte [ebp - 4], 2
call fcn.00407530
xor eax, eax
push 0x2002
push eax
mov word [ebp - 0x2220], ax
lea eax, [ebp - 0x221e]
push eax
call fcn.00426af0
xor eax, eax
push 0x20a
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.00426af0
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 0x446e41
lea eax, [ebp - 0x22a4]
push eax
lea eax, [ebp - 0x2220]
push eax
call sub.ADVAPI32.dll_ConvertSidToStringSidW
push dword [ebp - 0x22a4]
mov ecx, 0x4adb00
call fcn.004461a0
push dword [ebp - 0x22a4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x2268]
call fcn.00407530
lea ecx, [ebp - 0x2238]
call fcn.00407530
lea ecx, [ebp - 0x2250]
mov dword [ebp - 4], 0xffffffff
call fcn.00407530
jmp 0x446ec3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x2224], 8
jb 0x446e88
push dword [ebp - 0x2238]
call fcn.00421634
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 0x446ec3
push dword [ebp - 0x2250]
call fcn.00421634
add esp, 4
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push 0x4adb00
mov ecx, esi
mov word [esi], ax
call fcn.0040daa0
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.00421639
mov esp, ebp
pop ebp
ret