Function at 0x402f30
Capabilities:
Get logon sessions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449321
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x460070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.Secur32.dll_LsaEnumerateLogonSessions]
test eax, eax
js 0x4031c2
mov ebx, dword [sym.imp.Secur32.dll_LsaFreeReturnBuffer]
xor esi, esi
cmp dword [ebp - 0x64], esi
jbe 0x4031bd
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0
push eax
mov eax, dword [ebp - 0x60]
lea eax, [eax + esi*8]
push eax
call dword [sym.imp.Secur32.dll_LsaGetLogonSessionData]
test eax, eax
js 0x4031b3
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 0x24], 3
je 0x4031b0
sub esp, 8
lea ecx, [ebp - 0x100]
call fcn.004043b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
mov eax, dword [ebp - 0x5c]
push dword [eax + 0x18]
push dword [eax + 0x14]
call fcn.00401240
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x5c]
push dword [ecx + 0x10]
push dword [ecx + 0xc]
lea ecx, [ebp - 0x28]
call fcn.00401240
mov ebx, eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x5c]
push dword [ecx + 0x20]
push dword [ecx + 0x1c]
lea ecx, [ebp - 0x40]
call fcn.00401240
mov edi, eax
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 3
push eax
call fcn.00409780
mov ecx, dword [ebp - 0x60]
add esp, 0x1c
mov edx, 0x459400
push dword [ecx + esi*8]
push dword [ecx + esi*8 + 4]
mov ecx, eax
call fcn.004091f0
mov ecx, eax
call fcn.00404c70
mov edx, 0x4593fc
mov ecx, eax
call fcn.004091f0
mov ecx, eax
call fcn.00404ad0
push eax
call fcn.00409780
mov edx, str.Authentication_Package:
mov ecx, eax
call fcn.004091f0
mov edx, edi
mov ecx, eax
call fcn.00409820
push eax
call fcn.00409780
mov edx, str.Primary_User:
mov ecx, eax
call fcn.004091f0
mov edx, ebx
mov ecx, eax
call fcn.00409820
push eax
call fcn.00409780
mov edx, str.Authentication_Domain:
mov ecx, eax
call fcn.004091f0
mov edx, dword [ebp - 0x68]
mov ecx, eax
call fcn.00409820
push eax
call fcn.00409780
mov eax, dword [ebp - 0x2c]
add esp, 0x10
cmp eax, 8
jb 0x4030bc
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0040e850
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
cmp eax, 8
jb 0x4030e5
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040e850
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x403111
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.0040e850
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x100]
call fcn.004042d0
mov edx, eax
mov byte [ebp - 4], 4
mov ecx, 0x4619a0
call fcn.00409820
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x403149
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040e850
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x18], 0
lea ecx, [eax + esi*8]
call fcn.00402e70
push 0x4619a0
call fcn.00409780
add esp, 4
lea ecx, [ebp - 0xb0]
call fcn.004042f0
lea eax, [ebp - 0xb0]
mov dword [ebp - 4], 5
push eax
mov dword [ebp - 0xb0], vtable.std::ios_base.0
call fcn.00413266
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov eax, dword [ebp - 0x5c]
mov ebx, dword [sym.imp.Secur32.dll_LsaFreeReturnBuffer]
push eax
call ebx
inc esi
cmp esi, dword [ebp - 0x64]
jb 0x402f85
push dword [ebp - 0x60]
call ebx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00424c25
mov esp, ebp
pop ebp
ret