Function at 0x403d90
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a398
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x491024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 4], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x403def
mov eax, dword [edi]
jmp 0x403df1
mov eax, edi
mov byte [eax], 0
mov byte [ebp - 4], 1
lea esi, [edi + 0x18]
mov dword [ebp - 0x1c], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00405d90
mov dword [esi], eax
lea eax, [edi + 0x20]
push 2
push eax
call dword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
add esp, 8
lea ecx, [edi + 0x50]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x403e3c
mov eax, dword [ecx]
jmp 0x403e3e
mov eax, ecx
mov byte [eax], 0
lea eax, [ebp + 8]
mov byte [ebp - 4], 4
mov dword [edi + 0x68], 0xffffffff
cmp ecx, eax
je 0x403e5d
push 0xffffffffffffffff
push 0
push eax
call fcn.004032e0
push 0x20
call fcn.004787dc
mov esi, eax
mov dword [ebp - 0x1c], esi
sub esp, 0x14
mov byte [ebp - 4], 5
mov ecx, esp
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movups xmmword [esi + 0x10], xmm0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x403e94
mov eax, dword [ecx]
jmp 0x403e96
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp + 8]
push 0
push eax
call fcn.004032e0
mov ecx, esi
call fcn.00414f40
mov byte [ebp - 4], 4
mov dword [edi + 0x6c], eax
test eax, eax
je 0x403ebf
mov ecx, eax
call fcn.00415380
call fcn.0040a070
mov esi, eax
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x18]
push eax
push 0x18
push esi
push 0
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x403fa0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x403f99
add eax, 0x60
lea ecx, [ebp - 0x54]
push eax
call fcn.00405360
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x38]
mov eax, dword [ebp - 0x18]
add eax, 0x82
push eax
call fcn.00405360
push 0xffffffffffffffff
sub esp, 0x18
mov byte [ebp - 4], 7
lea edx, [ebp - 0x54]
mov dword [ebp - 0x20], esp
mov ecx, esp
call fcn.00409120
sub esp, 0x18
mov byte [ebp - 4], 8
lea edx, [ebp - 0x38]
mov ecx, esp
call fcn.00409120
push esi
mov ecx, edi
mov byte [ebp - 4], 7
call fcn.00404dd0
mov edx, dword [ebp - 0x24]
cmp edx, 8
jb 0x403f64
mov ecx, dword [ebp - 0x38]
inc edx
push 2
call fcn.004024a0
add esp, 4
mov edx, dword [ebp - 0x40]
xor eax, eax
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], 0
mov word [ebp - 0x38], ax
cmp edx, 8
jb 0x403f8e
mov ecx, dword [ebp - 0x54]
inc edx
push 2
call fcn.004024a0
add esp, 4
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x403f99
mov dword [edi + 0x68], esi
push eax
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x403fb6
mov ecx, dword [ebp + 8]
inc edx
push 1
call fcn.004024a0
add esp, 4
mov eax, edi
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.004787cb
mov esp, ebp
pop ebp
ret 0x18