Function at 0x1006177b
Capabilities:
Get session user name

Disassembly:
push 0x2b0
mov eax, 0x10262bb6
call fcn.10054407
mov ebx, ecx
push 7
xor edi, edi
xor eax, eax
pop esi
mov dword [ebp - 0x268], edi
mov dword [ebp - 0x264], esi
mov word [ebp - 0x278], ax
mov dword [ebp - 4], edi
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x24c], esi
mov word [ebp - 0x260], ax
push 0x208
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push edi
push eax
call fcn.100cd120
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], edi
mov word [ebp - 0x248], ax
lea ecx, [ebp - 0x248]
lea eax, [ebp - 0x218]
mov dword [ebp - 0x234], esi
push eax
call fcn.10006680
lea eax, [ebp - 0x290]
mov byte [ebp - 4], 2
push eax
call fcn.1006dc03
pop ecx
cmp byte [ebx + 0x98], 0
mov byte [ebp - 4], 3
jne 0x100618c3
cmp dword [ebp - 0x27c], 8
lea ecx, [ebp - 0x290]
lea eax, [ebp - 0x248]
cmovae ecx, dword [ebp - 0x290]
cmp dword [ebp - 0x234], 8
push ecx
cmovae eax, dword [ebp - 0x248]
push eax
call fcn.1005ba5d
pop ecx
pop ecx
test al, al
je 0x100618c3
push edi
lea eax, [ebp - 0x230]
push 0x1a
push eax
call fcn.1006b7c9
add esp, 0xc
lea ecx, [ebp - 0x278]
push eax
call fcn.10005380
lea ecx, [ebp - 0x230]
call fcn.100042b0
push edi
lea eax, [ebp - 0x230]
push 0x1c
push eax
call fcn.1006b7c9
add esp, 0xc
lea ecx, [ebp - 0x260]
push eax
call fcn.10005380
jmp 0x10061970
lea eax, [ebp - 0x230]
push eax
call fcn.1006dc21
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 4
mov dword [esp], str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders_
call fcn.10007ee0
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 - 0x2a8]
push esi
push eax
call fcn.10073d16
add esp, 0x10
lea ecx, [ebp - 0x278]
push eax
call fcn.10005380
lea ecx, [ebp - 0x2a8]
call fcn.100042b0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push str.Local_AppData
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x2a8]
push esi
push eax
call fcn.10073d16
add esp, 0x10
lea ecx, [ebp - 0x260]
push eax
call fcn.10005380
lea ecx, [ebp - 0x2a8]
call fcn.100042b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x230]
call fcn.100042b0
lea eax, [ebp - 0x278]
lea edi, [ebx + 0x38]
push eax
mov ecx, edi
call fcn.10025f90
lea eax, [ebp - 0x260]
lea esi, [ebx + 0x50]
push eax
mov ecx, esi
call fcn.10025f90
push edi
call fcn.1005acab
pop ecx
test eax, eax
jne 0x100619b4
push 0x102ddc5c
mov ecx, edi
call fcn.10007ee0
push esi
call fcn.1005acab
pop ecx
test eax, eax
jne 0x100619cb
push 0x102ddc5c
mov ecx, esi
call fcn.10007ee0
lea esi, [ebx + 0x20]
push edi
mov ecx, esi
call fcn.10025f90
lea eax, [ebx + 0x80]
mov ecx, esi
push eax
call fcn.10007f10
push esi
call fcn.1005acab
pop ecx
test eax, eax
jne 0x100619fb
push 0x102ddc5c
mov ecx, esi
call fcn.10007ee0
and dword [ebp - 0x294], 0
cmp dword [esi + 0x14], 8
mov byte [ebp - 4], 5
jb 0x10061a0e
mov esi, dword [esi]
lea eax, [ebp - 0x2b8]
push eax
push esi
call fcn.1006a4a9
pop ecx
pop ecx
lea ecx, [ebp - 0x2b8]
call fcn.100207f0
lea ecx, [ebp - 0x290]
call fcn.100042b0
lea ecx, [ebp - 0x248]
call fcn.100042b0
lea ecx, [ebp - 0x260]
call fcn.100042b0
lea ecx, [ebp - 0x278]
call fcn.100042b0
mov al, 1
call fcn.100543b1
ret