Function at 0x417a7e
Capabilities:
Get session user name

Disassembly:
push 0x2b0
mov eax, 0x588f9f
call fcn.0042d9c2
mov edi, ecx
push 7
xor ebx, ebx
xor eax, eax
pop esi
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0x264], esi
mov word [ebp - 0x278], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x24c], esi
mov word [ebp - 0x260], ax
push 0x208
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push ebx
push eax
call fcn.00444fb0
add esp, 0xc
mov dword [ebp - 0x2bc], 0x104
lea eax, [ebp - 0x2bc]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push dword [ebp - 0x2bc]
xor eax, eax
mov dword [ebp - 0x238], ebx
mov word [ebp - 0x248], ax
lea ecx, [ebp - 0x248]
lea eax, [ebp - 0x218]
mov dword [ebp - 0x234], esi
push eax
call fcn.00404460
lea eax, [ebp - 0x2b8]
mov byte [ebp - 4], 2
push eax
call fcn.0041a50f
pop ecx
mov byte [ebp - 4], 3
cmp byte [edi + 0x98], bl
jne 0x417bc5
cmp dword [ebp - 0x2a4], 8
lea ecx, [ebp - 0x2b8]
lea eax, [ebp - 0x248]
cmovae ecx, dword [ebp - 0x2b8]
cmp dword [ebp - 0x234], 8
push ecx
cmovae eax, dword [ebp - 0x248]
push eax
call fcn.0040dac8
pop ecx
pop ecx
test al, al
je 0x417bc5
push ebx
lea eax, [ebp - 0x230]
push 0x1a
push eax
call fcn.00419350
add esp, 0xc
lea ecx, [ebp - 0x278]
push eax
call fcn.0040682c
lea ecx, [ebp - 0x230]
call fcn.00406942
push ebx
lea eax, [ebp - 0x230]
push 0x1c
push eax
call fcn.00419350
add esp, 0xc
lea ecx, [ebp - 0x260]
push eax
call fcn.0040682c
jmp 0x417c72
lea eax, [ebp - 0x230]
push eax
call fcn.0041a52d
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 4
mov dword [esp], str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders_
call fcn.004071bd
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push str.AppData
cmovae eax, dword [ebp - 0x230]
mov esi, reloc.WS2_32.dll_closesocket
push eax
lea eax, [ebp - 0x290]
push esi
push eax
call fcn.0041c431
add esp, 0x10
lea ecx, [ebp - 0x278]
push eax
call fcn.0040682c
lea ecx, [ebp - 0x290]
call fcn.00406942
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push str.Local_AppData
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x290]
push esi
push eax
call fcn.0041c431
add esp, 0x10
lea ecx, [ebp - 0x260]
push eax
call fcn.0040682c
lea ecx, [ebp - 0x290]
call fcn.00406942
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x230]
call fcn.00406942
lea eax, [ebp - 0x278]
lea esi, [edi + 0x38]
push eax
mov ecx, esi
call fcn.0040d51e
lea eax, [ebp - 0x260]
lea ebx, [edi + 0x50]
push eax
mov ecx, ebx
call fcn.0040d51e
push esi
call fcn.0040d843
pop ecx
test eax, eax
jne 0x417cb6
push 0x58e62c
mov ecx, esi
call fcn.004071bd
push ebx
call fcn.0040d843
pop ecx
test eax, eax
jne 0x417ccd
push 0x58e62c
mov ecx, ebx
call fcn.004071bd
lea eax, [edi + 0x80]
cmp dword [eax + 0x14], 8
jb 0x417cdb
mov eax, dword [eax]
cmp dword [esi + 0x14], 8
jb 0x417ce3
mov esi, dword [esi]
push eax
push esi
lea eax, [ebp - 0x290]
push str._s_s_
push eax
call fcn.0040d6ae
add esp, 0x10
lea esi, [edi + 0x20]
mov ecx, esi
push eax
call fcn.0040682c
lea ecx, [ebp - 0x290]
call fcn.00406942
and dword [ebp - 0x27c], 0
cmp dword [esi + 0x14], 8
mov byte [ebp - 4], 5
jb 0x417d22
mov esi, dword [esi]
lea eax, [ebp - 0x2a0]
push eax
push esi
call fcn.00419200
pop ecx
pop ecx
lea ecx, [ebp - 0x2a0]
call fcn.00407fca
lea ecx, [ebp - 0x2b8]
call fcn.00406942
lea ecx, [ebp - 0x248]
call fcn.00406942
lea ecx, [ebp - 0x260]
call fcn.00406942
lea ecx, [ebp - 0x278]
call fcn.00406942
mov al, 1
call fcn.0042d96c
ret