Function at 0x10079a90
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10159c87
mov eax, dword fs:[0]
push eax
sub esp, 0x8d0
mov eax, dword [0x101ac034]
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.1001bcd0
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.10075440
add esp, 0xc
mov dword [ebp - 4], 0
push 0x101790e4
lea ecx, [ebp - 0x844]
call fcn.10003d50
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 0x101790e8
lea ecx, [ebp - 0x82c]
call fcn.10003d50
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 0x10079b76
lea ecx, [ebp - 0x810]
push ecx
lea ecx, [ebp - 0x844]
call fcn.10007da0
mov dword [ebp - 0x8b0], 0xffffffff
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x8b4], edx
cmp dword [ebp - 0x8b4], 0x80000000
je 0x10079be4
cmp dword [ebp - 0x8b4], 1
je 0x10079bac
cmp dword [ebp - 0x8b4], 0x40000000
je 0x10079bc8
jmp 0x10079bfe
push str.The_application_is_shut_down_or_restart
lea ecx, [ebp - 0x82c]
call fcn.10007da0
mov dword [ebp - 0x8b0], 0
jmp 0x10079bfe
push str.The_application_is_forced_to_shut_down
lea ecx, [ebp - 0x82c]
call fcn.10007da0
mov dword [ebp - 0x8b0], 1
jmp 0x10079bfe
push str.The_user_is_logging_off
lea ecx, [ebp - 0x82c]
call fcn.10007da0
mov dword [ebp - 0x8b0], 2
lea ecx, [ebp - 0x890]
call fcn.1004d060
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.100035f0
lea edx, [ebp - 0x82c]
push edx
lea ecx, [ebp - 0x874]
call fcn.100035f0
lea eax, [ebp - 0x8a8]
push eax
lea ecx, [ebp - 0x85c]
call fcn.100035f0
lea ecx, [ebp - 0x890]
push ecx
mov ecx, dword [ebp - 0x8ac]
add ecx, 8
call fcn.10079ed0
lea edx, [ebp - 0x8dc]
push edx
lea ecx, [ebp - 0x890]
call fcn.100797e0
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.10002bf0
push eax
push 1
push 0x63
push 0x101791d0
push str.CSystemNotify::OnQueryEndSession
call fcn.10146290
add esp, 0x14
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x8dc]
call fcn.10003e00
mov ecx, dword [ebp - 0x8ac]
cmp dword [ecx], 0
je 0x10079ce3
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.10079d50
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x890]
call fcn.10035400
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x82c]
call fcn.10003e00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x844]
call fcn.10003e00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8a8]
call fcn.10003e00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101506bb
mov esp, ebp
pop ebp
ret 0x10