Function at 0x1009e7d0
Capabilities:
Get logon sessions
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x10172eb8]
xor eax, ebp
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x5c], ecx
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
call sub.Secur32.dll_LsaEnumerateLogonSessions
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1009e800
xor eax, eax
jmp 0x1009ea9f
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], 2
mov edx, dword [ebp - 0x14]
push edx
call fcn.100aaab5
add esp, 4
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x1009e839
mov ecx, dword [ebp - 0xc]
push ecx
call sub.Secur32.dll_LsaFreeReturnBuffer
xor eax, eax
jmp 0x1009ea9f
mov edx, dword [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 0x1c]
push eax
call fcn.100cac20
add esp, 0xc
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x20], 0
jne 0x1009e8c1
cmp dword [ebp - 0x24], 0x7a
jne 0x1009e8bf
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.100aaaba
add esp, 4
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x14]
push edx
call fcn.100aaab5
add esp, 4
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x1009e8bf
mov dword [ebp - 0x20], 1
jmp 0x1009e8c8
mov dword [ebp - 0x20], 1
cmp dword [ebp - 0x20], 0
jne 0x1009e8de
mov eax, dword [ebp - 0xc]
push eax
call sub.Secur32.dll_LsaFreeReturnBuffer
xor eax, eax
jmp 0x1009ea9f
mov dword [ebp - 0x10], 0
jmp 0x1009e8f0
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 8]
jge 0x1009ea55
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
lea eax, [edx + ecx*8]
push eax
call sub.Secur32.dll_LsaGetLogonSessionData
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1009e923
mov ecx, dword [ebp + 8]
push ecx
call sub.Secur32.dll_LsaFreeReturnBuffer
jmp 0x1009e8e7
mov edx, dword [ebp + 8]
mov eax, dword [edx]
cmp dword [eax + 0x24], 2
je 0x1009e946
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
cmp dword [edx + 0x24], 0xb
je 0x1009e946
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call sub.Secur32.dll_LsaFreeReturnBuffer
jmp 0x1009e8e7
mov edx, dword [ebp + 8]
mov eax, dword [edx]
cmp dword [eax + 0x10], 0
je 0x1009ea50
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
movzx eax, word [edx + 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.100aaab5
add esp, 4
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 0
je 0x1009ea49
mov eax, dword [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.100cac20
add esp, 0xc
call fcn.100012c0
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x34], 0
jne 0x1009e9ba
mov dword [ebp - 0x60], 0
jmp 0x1009ea09
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x3fffffff
jle 0x1009e9dc
mov dword [ebp - 0x64], 0
jmp 0x1009ea03
mov eax, dword [ebp - 0x30]
shl eax, 1
call fcn.100ca810
mov dword [ebp - 0x68], esp
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x30]
shl edx, 1
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.10001680
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x60], edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.10003fa0
add esp, 0x10
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x1009ea3c
mov dword [ebp - 0x20], 1
jmp 0x1009ea55
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call sub.Secur32.dll_LsaFreeReturnBuffer
jmp 0x1009ea50
mov dword [ebp - 0x20], 0
jmp 0x1009e8e7
mov ecx, dword [ebp - 0xc]
push ecx
call sub.Secur32.dll_LsaFreeReturnBuffer
cmp dword [ebp - 0x28], 0
je 0x1009ea7d
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
push eax
call fcn.100aaaba
add esp, 4
mov dword [ebp - 0x28], 0
cmp dword [ebp - 0x1c], 0
je 0x1009ea9c
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x58]
push edx
call fcn.100aaaba
add esp, 4
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 0x68]
mov ecx, dword [ebp - 0x50]
xor ecx, ebp
call fcn.100ca7f5
mov esp, ebp
pop ebp
ret 4