Function at 0x100d3070
Capabilities:
Get logon sessions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014fb26
mov eax, dword fs:[0]
push eax
sub esp, 0x5d4
mov eax, dword [0x1019a128]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x454], ecx
lea eax, [ebp - 0x44c]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x44c], 0
push eax
call dword [sym.imp.Secur32.dll_LsaEnumerateLogonSessions]
mov edi, eax
test edi, edi
je 0x100d3125
push str.EnumLsaSessions
mov edx, 8
lea ecx, [ebp - 0x538]
call fcn.1000aed0
add esp, 4
mov esi, eax
mov dword [ebp - 4], 0
cmp byte [esi + 0x48], 0
je 0x100d30fe
mov edx, str.LsaEnumerateLogonSessions_err
mov ecx, esi
call fcn.100205a0
push edi
call dword [sym.imp.ADVAPI32.dll_LsaNtStatusToWinError]
cmp byte [esi + 0x48], 0
je 0x100d3113
push eax
mov ecx, esi
call fcn.100201d0
lea ecx, [ebp - 0x538]
call fcn.1000ad70
xor al, al
jmp 0x100d3575
xor edi, edi
mov dword [ebp - 0x458], edi
cmp dword [ebp - 0x14], edi
jbe 0x100d3562
nop word [eax + eax]
mov edx, edi
lea ecx, [ebp - 0x490]
call fcn.1008cf90
push 4
push str.idx
push ecx
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.1008c680
mov dword [ebp - 0x470], 0
xor ecx, ecx
mov dword [ebp - 0x460], 0
mov dword [ebp - 0x45c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x470], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x460], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 2
lea eax, [ebp - 0x470]
cmp dword [ebp - 0x45c], 8
lea ecx, [ebp - 0x440]
push str.EnumLsaSessions
cmovae eax, dword [ebp - 0x470]
push eax
call fcn.1002f6c0
lea ecx, [ebp - 0x470]
call fcn.10002400
lea ecx, [ebp - 0x490]
mov byte [ebp - 4], 5
call fcn.10002400
lea eax, [ebp - 0x444]
mov dword [ebp - 0x444], 0
push eax
mov eax, dword [ebp - 0x44c]
lea eax, [eax + edi*8]
push eax
call dword [sym.imp.Secur32.dll_LsaGetLogonSessionData]
mov edi, eax
test edi, edi
je 0x100d326a
push str.EnumLsaSessions
mov edx, 8
lea ecx, [ebp - 0x538]
call fcn.1000aed0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 6
cmp byte [esi + 0x48], 0
je 0x100d3245
mov edx, str.LsaGetLogonSessionData_err
mov ecx, esi
call fcn.100205a0
push edi
call dword [sym.imp.ADVAPI32.dll_LsaNtStatusToWinError]
cmp byte [esi + 0x48], 0
je 0x100d325a
push eax
mov ecx, esi
call fcn.100201d0
lea ecx, [ebp - 0x538]
call fcn.1000ad70
jmp 0x100d353a
mov eax, dword [ebp - 0x444]
test eax, eax
jne 0x100d32b0
push str.EnumLsaSessions
lea edx, [eax + 8]
lea ecx, [ebp - 0x538]
call fcn.1000aed0
add esp, 4
mov byte [ebp - 4], 7
cmp byte [eax + 0x48], 0
je 0x100d32a0
mov edx, str.sessionData_is_nullptr
mov ecx, eax
call fcn.100205a0
lea ecx, [ebp - 0x538]
call fcn.1000ad70
jmp 0x100d353a
cmp dword [eax + 0x2c], 0
jne 0x100d32f4
push str.EnumLsaSessions
mov edx, 8
lea ecx, [ebp - 0x538]
call fcn.1000aed0
add esp, 4
mov byte [ebp - 4], 8
cmp byte [eax + 0x48], 0
je 0x100d32e4
mov edx, str.sid_is_nullptr
mov ecx, eax
call fcn.100205a0
lea ecx, [ebp - 0x538]
call fcn.1000ad70
jmp 0x100d353a
lea ecx, [ebp - 0x448]
mov dword [ebp - 0x448], 0
push ecx
push dword [eax + 0x2c]
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
jne 0x100d334b
push str.EnumLsaSessions
lea edx, [eax + 8]
lea ecx, [ebp - 0x538]
call fcn.1000aed0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 9
cmp byte [esi + 0x48], 0
je 0x100d3340
mov edx, str.ConvertSidToStringSid_failed_err
mov ecx, esi
call fcn.100205a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100d324c
cmp dword [ebp - 0x448], 0
jne 0x100d3396
push str.EnumLsaSessions
mov edx, 8
lea ecx, [ebp - 0x538]
call fcn.1000aed0
add esp, 4
mov byte [ebp - 4], 0xa
cmp byte [eax + 0x48], 0
je 0x100d325a
mov edx, str.ConvertSidToStringSid_return_nullptr
mov ecx, eax
call fcn.100205a0
lea ecx, [ebp - 0x538]
call fcn.1000ad70
jmp 0x100d353a
xor eax, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x444]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x100d33d7
movzx eax, word [eax + 0xc]
test ax, ax
je 0x100d33d7
shr eax, 1
push eax
push ecx
lea ecx, [ebp - 0x2c]
call fcn.10002060
push str.EnumLsaSessions
mov edx, 0x10
lea ecx, [ebp - 0x538]
call fcn.1000aed0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0xc
mov al, byte [esi + 0x48]
test al, al
je 0x100d343d
mov edx, str.name
mov ecx, esi
call fcn.100205a0
mov al, byte [esi + 0x48]
test al, al
je 0x100d343d
cmp dword [ebp - 0x18], 8
lea edx, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmovae edx, dword [ebp - 0x2c]
mov ecx, esi
call fcn.10021f70
mov al, byte [esi + 0x48]
add esp, 4
test al, al
je 0x100d343d
mov edx, str._logon_type
mov ecx, esi
call fcn.100205a0
mov al, byte [esi + 0x48]
mov ecx, dword [ebp - 0x444]
test al, al
je 0x100d3451
push dword [ecx + 0x24]
mov ecx, esi
call fcn.100201d0
lea ecx, [ebp - 0x538]
mov byte [ebp - 4], 0xb
call fcn.1000ad70
mov ecx, dword [ebp - 0x454]
mov esi, dword [ebp - 0x448]
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov dword [ebp - 0x450], eax
cmp edi, eax
je 0x100d34aa
nop dword [eax + eax]
cmp dword [edi + 0x2c], 8
lea eax, [edi + 0x18]
jb 0x100d348b
mov eax, dword [eax]
push esi
push eax
call fcn.10123ead
add esp, 8
test eax, eax
je 0x100d34a4
add edi, 0x74
cmp edi, dword [ebp - 0x450]
jne 0x100d3480
mov ecx, dword [ebp - 0x454]
cmp edi, dword [ecx + 4]
je 0x100d34d6
mov eax, dword [ebp - 0x444]
lea ecx, [edi + 0x34]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x450], eax
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x478]
push eax
call fcn.100d5030
jmp 0x100d3526
push str.EnumLsaSessions
mov edx, 8
lea ecx, [ebp - 0x5e0]
call fcn.1000aed0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0xd
mov al, byte [esi + 0x48]
test al, al
je 0x100d351b
mov edx, str.user_not_found_sid_
mov ecx, esi
call fcn.100205a0
mov al, byte [esi + 0x48]
test al, al
je 0x100d351b
mov edx, dword [ebp - 0x448]
mov ecx, esi
call fcn.100205a0
lea ecx, [ebp - 0x5e0]
call fcn.1000ad70
push dword [ebp - 0x448]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x2c]
call fcn.10002400
lea ecx, [ebp - 0x440]
mov dword [ebp - 4], 0xffffffff
call fcn.1000ac70
mov edi, dword [ebp - 0x458]
inc edi
mov dword [ebp - 0x458], edi
cmp edi, dword [ebp - 0x14]
jb 0x100d3140
mov eax, dword [ebp - 0x44c]
test eax, eax
je 0x100d3573
push eax
call dword [sym.imp.Secur32.dll_LsaFreeReturnBuffer]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101157bc
mov esp, ebp
pop ebp
ret