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

Disassembly:
push 0xffffffffffffffff
push 0x4662c5
mov eax, dword fs:[0]
push eax
mov eax, 0x22c0
call fcn.00459440
mov eax, dword [0x485300]
xor eax, esp
mov dword [esp + 0x22bc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x485300]
xor eax, esp
push eax
lea eax, [esp + 0x22d4]
mov dword fs:[0], eax
xor edi, edi
mov ebx, ecx
mov dword [esp + 0x20], edi
test byte [0x4898f0], 1
mov dword [esp + 0x2c], ebx
lea ebp, [edi + 7]
jne 0x41d479
or dword [0x4898f0], 1
push 0x467200
mov dword [0x4898ec], ebp
mov dword [0x4898e8], edi
mov word [0x4898d8], di
call fcn.00442e97
add esp, 4
mov dword [esp + 0x22dc], 0xffffffff
cmp dword [0x4898e8], edi
jne 0x41d782
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.DLL_ProcessIdToSessionId]
test eax, eax
je 0x41d782
mov dword [esp + 0x14], edi
mov dword [esp + 0xa0], ebp
mov dword [esp + 0x9c], edi
mov word [esp + 0x8c], di
mov dword [esp + 0x22dc], 1
mov dword [esp + 0x84], ebp
mov dword [esp + 0x80], edi
mov word [esp + 0x70], di
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x22e4], 2
mov ecx, dword [esp + 0x20]
push 5
push ecx
push edi
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
cmp eax, edi
je 0x41d712
mov edx, dword [esp + 0x14]
cmp edx, edi
je 0x41d712
lea eax, [esp + 0x88]
push eax
call fcn.0041e690
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 ebp
push ecx
push edi
mov dword [esp + 0x28], edi
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
cmp eax, edi
je 0x41d6e8
mov edx, dword [esp + 0x14]
cmp edx, edi
je 0x41d6e8
lea eax, [esp + 0x6c]
push eax
call fcn.0041e690
mov ecx, dword [esp + 0x14]
push ecx
call sub.WTSAPI32.dll_WTSFreeMemory
mov dword [esp + 0xbc], ebp
mov dword [esp + 0xb8], edi
mov word [esp + 0xa8], di
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x54]
push eax
mov byte [esp + 0x22e4], 3
call fcn.00408300
lea ecx, [esp + 0x90]
push ecx
push eax
lea edx, [esp + 0x44]
mov bl, 4
push edx
mov byte [esp + 0x22f0], bl
call fcn.00404ac0
add esp, 0x14
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0xac]
mov byte [esp + 0x22e4], 5
call fcn.00403b80
lea esi, [esp + 0x34]
mov byte [esp + 0x22dc], bl
call fcn.00403540
lea esi, [esp + 0x50]
mov byte [esp + 0x22dc], 3
call fcn.00403540
push 0x2002
lea eax, [esp + 0x2d2]
push edi
push eax
mov word [esp + 0x2d8], di
call fcn.00447890
push 0x20a
lea ecx, [esp + 0xd2]
push edi
push ecx
mov word [esp + 0xd8], di
call fcn.00447890
mov eax, dword [esp + 0xc0]
add esp, 0x18
cmp dword [esp + 0xbc], 8
mov dword [esp + 0x20], 0x1000
mov dword [esp + 0x28], 0x105
jae 0x41d64c
lea eax, [esp + 0xa8]
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0xc8]
push edx
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x2dc]
push edx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
cmp eax, edi
je 0x41d6a3
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x2d0]
push ecx
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
mov edx, dword [esp + 0x1c]
push 0x4898d4
call fcn.0041e690
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.DLL_LocalFree]
lea esi, [esp + 0xa4]
mov byte [esp + 0x22dc], 2
call fcn.00403540
lea esi, [esp + 0x6c]
mov byte [esp + 0x22dc], 1
call fcn.00403540
lea esi, [esp + 0x88]
mov dword [esp + 0x22dc], 0xffffffff
call fcn.00403540
mov ebx, dword [esp + 0x2c]
jmp 0x41d782
lea esi, [esp + 0x6c]
mov byte [esp + 0x22dc], 1
call fcn.00403540
lea esi, [esp + 0x88]
mov dword [esp + 0x22dc], 0xffffffff
call fcn.00403540
jmp 0x41d782
mov esi, 8
mov byte [esp + 0x22dc], 1
cmp dword [esp + 0x84], esi
jb 0x41d735
mov eax, dword [esp + 0x70]
push eax
call fcn.00442665
add esp, 4
mov dword [esp + 0x22dc], 0xffffffff
cmp dword [esp + 0xa0], esi
mov dword [esp + 0x84], ebp
mov dword [esp + 0x80], edi
mov word [esp + 0x70], di
jb 0x41d76c
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.00442665
add esp, 4
mov dword [esp + 0xa0], ebp
mov dword [esp + 0x9c], edi
mov word [esp + 0x8c], di
push 0xffffffffffffffff
mov dword [ebx + 0x18], ebp
mov dword [ebx + 0x14], edi
push edi
mov eax, 0x4898d4
mov ecx, ebx
mov word [ebx + 4], di
call fcn.00403b80
mov eax, ebx
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.0044266a
add esp, 0x22cc
ret