Function at 0x10003f60
Capabilities:
Get logon sessions

Disassembly:
push 0xffffffffffffffff
push 0x1002ea9e
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x10039aec]
xor eax, esp
mov dword [esp + 0x154], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10039aec]
xor eax, esp
push eax
lea eax, [esp + 0x16c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x17c]
lea edx, [esp + 0x18]
mov dword [esp + 0x24], eax
push edx
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x30], ecx
call sub.Secur32.dll_LsaEnumerateLogonSessions
test eax, eax
jl 0x1000414c
xor ebp, ebp
xor esi, esi
mov dword [esp + 0x1c], esi
cmp dword [esp + 0x20], ebp
jbe 0x10004142
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
lea eax, [edx + esi*8]
push eax
mov dword [esp + 0x1c], ebp
call sub.Secur32.dll_LsaGetLogonSessionData
test eax, eax
jl 0x10004133
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x24], 3
je 0x10004125
mov eax, dword [esp + 0x24]
push 3
lea edx, [esp + 0x50]
push eax
lea eax, [esp + 0x50]
mov dword [esp + 0x50], edx
call fcn.10005a60
mov dword [esp + 0x174], ebp
mov eax, dword [esp + 0x48]
xor ecx, ecx
mov word [esp + 0x150], cx
mov ecx, eax
mov dword [esp + 0x164], 7
mov dword [esp + 0x160], ebp
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bp
jne 0x10004043
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x150]
call fcn.10004970
mov byte [esp + 0x174], 2
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x4c]
cmp eax, edx
je 0x1000407c
push eax
call fcn.10017751
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
push ecx
push edx
lea eax, [esp + 0x34]
call fcn.10002180
add esp, 8
mov ecx, eax
mov byte [esp + 0x174], 3
mov eax, dword [esp + 0x150]
mov esi, 8
cmp dword [esp + 0x164], esi
jae 0x100040ba
lea eax, [esp + 0x150]
mov edi, dword [esp + 0x160]
push eax
mov eax, dword [ecx + 0x14]
call fcn.10008b10
test eax, eax
sete bl
mov byte [esp + 0x174], 2
cmp dword [esp + 0x44], esi
jb 0x100040ea
mov eax, dword [esp + 0x30]
push eax
call fcn.1000c383
add esp, 4
xor ecx, ecx
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebp
mov word [esp + 0x30], cx
test bl, bl
jne 0x10004176
mov dword [esp + 0x174], 0xffffffff
cmp dword [esp + 0x164], esi
jb 0x10004125
mov edx, dword [esp + 0x150]
push edx
call fcn.1000c383
add esp, 4
mov eax, dword [esp + 0x14]
push eax
call sub.Secur32.dll_LsaFreeReturnBuffer
mov esi, dword [esp + 0x1c]
inc esi
mov dword [esp + 0x1c], esi
cmp esi, dword [esp + 0x20]
jb 0x10003fd3
mov edx, dword [esp + 0x18]
push edx
call sub.Secur32.dll_LsaFreeReturnBuffer
xor al, al
mov ecx, dword [esp + 0x16c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.1001732a
add esp, 0x164
ret
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
push ecx
lea ecx, [edx + eax*8]
push ecx
call fcn.10003e30
mov edx, dword [esp + 0x14]
push edx
mov bl, al
call sub.Secur32.dll_LsaFreeReturnBuffer
mov eax, dword [esp + 0x18]
push eax
call sub.Secur32.dll_LsaFreeReturnBuffer
cmp dword [esp + 0x164], esi
jb 0x100041bb
mov ecx, dword [esp + 0x150]
push ecx
call fcn.1000c383
add esp, 4
mov al, bl
jmp 0x1000414e