Function at 0x100782e0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10155897
mov eax, dword fs:[0]
push eax
sub esp, 0x8d0
mov eax, dword [0x101a5034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x8ac], ecx
push 0
call fcn.1001b930
add esp, 4
mov dword [ebp - 0x8bc], eax
mov dword [ebp - 0x8b8], edx
mov eax, dword [ebp - 0x8b8]
push eax
mov ecx, dword [ebp - 0x8bc]
push ecx
lea edx, [ebp - 0x8a8]
push edx
call fcn.10073cc0
add esp, 0xc
mov dword [ebp - 4], 0
push 0x10173388
lea ecx, [ebp - 0x844]
call fcn.10002c60
mov byte [ebp - 4], 1
xor eax, eax
mov word [ebp - 0x810], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x80e]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x814], 0x400
push 0x1017338c
lea ecx, [ebp - 0x82c]
call fcn.10002c60
mov byte [ebp - 4], 2
lea edx, [ebp - 0x814]
push edx
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x100783c6
lea ecx, [ebp - 0x810]
push ecx
lea ecx, [ebp - 0x844]
call fcn.10006e00
mov dword [ebp - 0x8b0], 0xffffffff
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x8b4], edx
cmp dword [ebp - 0x8b4], 0x80000000
je 0x10078434
cmp dword [ebp - 0x8b4], 1
je 0x100783fc
cmp dword [ebp - 0x8b4], 0x40000000
je 0x10078418
jmp 0x1007844e
push str.The_application_is_shut_down_or_restart
lea ecx, [ebp - 0x82c]
call fcn.10006e00
mov dword [ebp - 0x8b0], 0
jmp 0x1007844e
push str.The_application_is_forced_to_shut_down
lea ecx, [ebp - 0x82c]
call fcn.10006e00
mov dword [ebp - 0x8b0], 1
jmp 0x1007844e
push str.The_user_is_logging_off
lea ecx, [ebp - 0x82c]
call fcn.10006e00
mov dword [ebp - 0x8b0], 2
lea ecx, [ebp - 0x890]
call fcn.1004d600
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x8b0]
mov dword [ebp - 0x890], eax
lea ecx, [ebp - 0x844]
push ecx
lea ecx, [ebp - 0x88c]
call fcn.100023a0
lea edx, [ebp - 0x82c]
push edx
lea ecx, [ebp - 0x874]
call fcn.100023a0
lea eax, [ebp - 0x8a8]
push eax
lea ecx, [ebp - 0x85c]
call fcn.100023a0
lea ecx, [ebp - 0x890]
push ecx
mov ecx, dword [ebp - 0x8ac]
add ecx, 8
call fcn.10078720
lea edx, [ebp - 0x8dc]
push edx
lea ecx, [ebp - 0x890]
call fcn.10078030
mov dword [ebp - 0x8c0], eax
mov eax, dword [ebp - 0x8c0]
mov dword [ebp - 0x8c4], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x8c4]
call fcn.10001960
push eax
push 1
push 0x63
push 0x10173460
push str.CSystemNotify::OnQueryEndSession
call fcn.10142a80
add esp, 0x14
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x8dc]
call fcn.10002d10
mov ecx, dword [ebp - 0x8ac]
cmp dword [ecx], 0
je 0x10078533
mov edx, dword [ebp - 0x8ac]
mov eax, dword [edx + 4]
push eax
lea ecx, [ebp - 0x890]
push ecx
mov edx, dword [ebp - 0x8ac]
mov eax, dword [edx]
call eax
lea ecx, [ebp - 0x890]
push ecx
mov ecx, dword [ebp - 0x8ac]
call fcn.100785a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x890]
call fcn.100362b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x82c]
call fcn.10002d10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x844]
call fcn.10002d10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8a8]
call fcn.10002d10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014c66b
mov esp, ebp
pop ebp
ret 0x10