Function at 0x41738c
Capabilities:
Get session user name

Disassembly:
push 0x2a0
mov eax, 0x58cad6
call fcn.004321e7
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.0044b1c0
add esp, 0xc
mov dword [ebp - 0x2ac], 0x104
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push dword [ebp - 0x2ac]
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.004041ab
lea eax, [ebp - 0x2a8]
mov byte [ebp - 4], 2
push eax
call fcn.00419bd2
pop ecx
cmp byte [edi + 0x98], 0
push 8
mov byte [ebp - 4], 3
pop ebx
jne 0x4174d7
cmp dword [ebp - 0x294], ebx
lea ecx, [ebp - 0x2a8]
lea eax, [ebp - 0x248]
cmovae ecx, dword [ebp - 0x2a8]
cmp dword [ebp - 0x234], ebx
push ecx
cmovae eax, dword [ebp - 0x248]
push eax
call fcn.004097b6
pop ecx
pop ecx
test al, al
je 0x4174d7
push 0
lea eax, [ebp - 0x230]
push 0x1a
push eax
call fcn.00418d24
add esp, 0xc
lea ecx, [ebp - 0x278]
push eax
call fcn.00406168
lea ecx, [ebp - 0x230]
call fcn.00406253
push 0
lea eax, [ebp - 0x230]
push 0x1c
push eax
call fcn.00418d24
add esp, 0xc
lea ecx, [ebp - 0x260]
push eax
call fcn.00406168
jmp 0x417582
lea eax, [ebp - 0x230]
push eax
call fcn.00419d5b
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 4
mov dword [esp], str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders_
call fcn.00406a05
cmp dword [ebp - 0x21c], ebx
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.0041b42e
add esp, 0x10
lea ecx, [ebp - 0x278]
push eax
call fcn.00406168
lea ecx, [ebp - 0x290]
call fcn.00406253
cmp dword [ebp - 0x21c], ebx
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.0041b42e
add esp, 0x10
lea ecx, [ebp - 0x260]
push eax
call fcn.00406168
lea ecx, [ebp - 0x290]
call fcn.00406253
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x230]
call fcn.00406253
lea eax, [ebp - 0x278]
lea esi, [edi + 0x38]
push eax
mov ecx, esi
call fcn.004093e0
lea eax, [ebp - 0x260]
lea ebx, [edi + 0x50]
push eax
mov ecx, ebx
call fcn.004093e0
push esi
call fcn.0040972f
pop ecx
test eax, eax
jne 0x4175c6
push 0x59083c
mov ecx, esi
call fcn.00406a05
push ebx
call fcn.0040972f
pop ecx
test eax, eax
jne 0x4175dd
push 0x59083c
mov ecx, ebx
call fcn.00406a05
lea eax, [edi + 0x80]
cmp dword [eax + 0x14], 8
jb 0x4175eb
mov eax, dword [eax]
cmp dword [esi + 0x14], 8
jb 0x4175f3
mov esi, dword [esi]
push eax
push esi
lea eax, [ebp - 0x290]
push str._s_s_
push eax
call fcn.0040953f
add esp, 0x10
lea esi, [edi + 0x20]
mov ecx, esi
push eax
call fcn.00406168
lea ecx, [ebp - 0x290]
call fcn.00406253
cmp dword [esi + 0x14], 8
jb 0x417627
mov esi, dword [esi]
push esi
call fcn.00418b74
pop ecx
lea ecx, [ebp - 0x2a8]
call fcn.00406253
lea ecx, [ebp - 0x248]
call fcn.00406253
lea ecx, [ebp - 0x260]
call fcn.00406253
lea ecx, [ebp - 0x278]
call fcn.00406253
mov al, 1
call fcn.00432191
ret