Function at 0x411750
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ad9d
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x5e3fe4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
xor esi, esi
xor edi, edi
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], eax
test byte [ecx + 0xed8], 1
je 0x411a70
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
push 1
push edi
push edi
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
test eax, eax
jne 0x4117d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov dword [ebp - 0x20], 0x103
mov dword [ebp - 0x28], ebx
cmp dword [ebp - 0x30], ebx
jbe 0x411933
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
nop dword [eax + eax]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x34]
push 5
push dword [ecx + eax]
push 0
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x41191d
mov ebx, dword [ebp - 0x18]
cmp word [ebx], 0
je 0x411913
cmp dword [ebp - 0x20], 0
jbe 0x411913
mov eax, dword [ebp - 0x1c]
add eax, 0xcd8
push ebx
push eax
call fcn.0055da38
mov ebx, dword [ebp - 0x18]
add esp, 8
test eax, eax
je 0x411913
mov ecx, dword [ebp - 0x10]
xor esi, esi
sub edi, ecx
sar edi, 2
test edi, edi
je 0x411897
cmp edi, esi
jbe 0x411a82
mov ecx, dword [ecx + esi*4]
mov eax, ebx
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x411886
test dx, dx
je 0x411882
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x411886
add ecx, 4
add eax, 4
test dx, dx
jne 0x411860
xor eax, eax
jmp 0x41188b
sbb eax, eax
or eax, 1
test eax, eax
je 0x411897
mov ecx, dword [ebp - 0x10]
inc esi
cmp esi, edi
jb 0x411852
cmp esi, edi
jb 0x41190d
mov eax, dword [ebp - 0x20]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00414cd3
mov edx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp - 0x38], eax
mov esi, eax
movzx ecx, word [edx]
lea edx, [edx + 2]
mov word [esi], cx
lea esi, [esi + 2]
test cx, cx
jne 0x4118c0
mov edi, dword [ebp - 0x14]
cmp edi, dword [ebp - 0x24]
je 0x4118e9
mov dword [edi], eax
add edi, 4
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x40], edi
jmp 0x411910
lea eax, [ebp - 0x38]
push eax
push edi
lea ecx, [ebp - 0x44]
call fcn.0040b4b0
mov eax, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x40]
mov esi, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], esi
jmp 0x411913
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
push ebx
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov ebx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
inc ebx
add ecx, 0xc
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ecx
cmp ebx, dword [ebp - 0x30]
jb 0x4117f0
push dword [ebp - 0x34]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
sub edi, esi
sar edi, 2
mov dword [ebp - 0x14], edi
test edi, edi
je 0x411a40
mov edi, dword [ebp - 0x1c]
add edi, 0x100e
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x411955
mov eax, dword [ebp - 0x14]
mov ecx, 0x1c
mov esi, str._r_n_n______The_following_need_to_sign_on_to_Windows_again
xor ebx, ebx
rep movsd dword es:[edi], dword [esi]
test eax, eax
je 0x411a21
mov ecx, str._r_n
nop
cmp ebx, 3
jg 0x411a21
mov edx, str._r_n__________
cmove edx, ecx
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x411993
mov edi, dword [ebp - 0x1c]
sub edx, esi
add edi, 0x100e
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4119b0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp ebx, 3
jne 0x4119d6
mov edx, str._...
jmp 0x4119dc
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + ebx*4]
mov esi, edx
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4119e0
mov edi, dword [ebp - 0x1c]
sub edx, esi
add edi, 0x100e
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4119f6
mov eax, dword [ebp - 0x14]
mov ecx, edx
shr ecx, 2
inc ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, str._r_n
cmp ebx, eax
jb 0x411980
lea esi, [eax - 1]
test esi, esi
js 0x411a3d
mov eax, dword [ebp - 0x10]
push 2
push dword [eax + esi*4]
call fcn.0054e5df
add esp, 8
sub esi, 1
jns 0x411a28
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x411a70
mov ecx, dword [ebp - 0x24]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x411a66
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411a87
push ecx
push esi
call fcn.0054e5df
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00413780
call fcn.00558084
int3