Function at 0x101af94
Capabilities:
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x10b1090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
xor ecx, ecx
xor ebx, ebx
inc ecx
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x418], ecx
cmp eax, ebx
je 0x101afe6
lea edx, [ebp - 0x418]
push edx
push 0x1389
push ebx
push ecx
push eax
call dword [sym.imp.UxTheme.dll_GetThemeBool]
cmp dword [ebp - 0x418], ebx
je 0x101b1a1
push edi
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x408]
push eax
push 2
mov dword [ebp - 0x424], 0x201
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x101b13e
push ebx
push ebx
lea eax, [ebp - 0x420]
push eax
push ebx
lea eax, [ebp - 0x408]
push eax
call fcn.0101b653
test eax, eax
jl 0x101b13e
lea ecx, [ebp - 0x414]
call fcn.0101bf7b
cmp dword [ebp - 0x414], ebx
je 0x101b133
push ebx
push dword [ebp - 0x420]
call fcn.0101ae3d
mov edi, eax
mov dword [ebp - 0x428], edi
cmp edi, ebx
je 0x101b127
push 0x30
pop eax
mov ecx, edi
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
call fcn.0101bd5d
mov ecx, edi
mov ebx, eax
call fcn.0101b1c5
mov ecx, edi
cmp ebx, eax
ja 0x106147b
call fcn.0101b1c5
mov ecx, edi
mov ebx, eax
call fcn.0101bd5d
cmp ebx, eax
ja 0x106149a
push 8
pop eax
push 0x40
lea edi, [esi + 0x24]
mov dword [edi], eax
lea ebx, [esi + 0x28]
mov dword [ebx], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], eax
pop eax
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x40c], eax
lea eax, [ebp - 0x410]
push eax
call fcn.01014976
lea eax, [esi + 0x3c]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.010148d3
lea eax, [esi + 0x2c]
push eax
push edi
call fcn.010148d3
lea eax, [esi + 0x30]
push eax
push ebx
call fcn.010148d3
cmp dword [ebp + 8], 0
mov eax, dword [ebp - 0x40c]
mov dword [esi + 0x34], eax
mov eax, dword [ebp - 0x410]
mov dword [esi + 0x38], eax
je 0x101b10c
mov ecx, esi
call fcn.0101a4ab
mov dword [ebp - 0x41c], eax
push dword [ebp + 8]
mov edi, dword [ebp - 0x428]
push edi
mov ecx, esi
call fcn.0101be91
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
xor ebx, ebx
push dword [ebp - 0x420]
call dword [sym.imp.GDI32.dll_DeleteObject]
lea ecx, [ebp - 0x414]
call fcn.0101bf55
cmp dword [esi + 0x44], ebx
jne 0x101b173
lea eax, [ebp - 0x410]
push eax
push 1
push 0x400
push 0x4000000
push 0x8002
push dword [esi + 0x18]
mov dword [ebp - 0x40c], ebx
mov dword [ebp - 0x410], ebx
call dword [sym.imp.SHELL32.dll_SHChangeNotifyRegister]
mov dword [esi + 0x44], eax
lea eax, [ebp - 0x42c]
push eax
lea edi, [esi + 0x68]
push edi
mov dword [ebp - 0x42c], 0x101
call sub.SHELL32.dll_Ordinal_241
push edi
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_SetWindowTextW]
pop edi
cmp dword [ebp + 8], ebx
je 0x10614bb
push 1
mov ecx, esi
call fcn.01014784
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x41c]
pop esi
xor ecx, ebp
pop ebx
call fcn.01001fef
leave
ret 4
call fcn.0101bd5d
push eax
mov ecx, edi
call fcn.0101b1c5
push eax
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esi + 0x3c], eax
jmp 0x101b098
mov ecx, edi
call fcn.0101b1c5
push eax
mov ecx, edi
call fcn.0101bd5d
push eax
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esi + 0x40], eax
jmp 0x101b098
push ebx
push ebx
push ebx
push 0x149
push 0x1014178
push 0x1036b10
push dword [esi + 4]
call dword [sym.imp.SHLWAPI.dll_Ordinal_484]
jmp 0x101b1a1