Function at 0x10008317
Capabilities:
Get session user name

Disassembly:
push 0x2a0
mov eax, 0x1004e7a8
call fcn.100186c5
mov ebx, ecx
push 7
xor edi, edi
xor eax, eax
pop esi
mov dword [ebp - 0x280], edi
mov dword [ebp - 0x27c], esi
mov word [ebp - 0x290], ax
mov dword [ebp - 4], edi
mov dword [ebp - 0x268], edi
mov dword [ebp - 0x264], esi
mov word [ebp - 0x278], ax
push 0x208
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push edi
push eax
call fcn.1002f640
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], edi
mov word [ebp - 0x248], ax
lea ecx, [ebp - 0x248]
lea eax, [ebp - 0x218]
mov dword [ebp - 0x234], esi
push eax
call fcn.1000411b
lea eax, [ebp - 0x2a8]
mov byte [ebp - 4], 2
push eax
call fcn.10006f90
pop ecx
cmp byte [ebx + 0x98], 0
push 8
mov byte [ebp - 4], 3
pop edi
jne 0x10008462
cmp dword [ebp - 0x294], edi
lea ecx, [ebp - 0x2a8]
lea eax, [ebp - 0x248]
cmovae ecx, dword [ebp - 0x2a8]
cmp dword [ebp - 0x234], edi
push ecx
cmovae eax, dword [ebp - 0x248]
push eax
call fcn.100067f3
pop ecx
pop ecx
test al, al
je 0x10008462
push 0
lea eax, [ebp - 0x230]
push 0x1a
push eax
call fcn.10006f14
add esp, 0xc
lea ecx, [ebp - 0x290]
push eax
call fcn.10003ec7
lea ecx, [ebp - 0x230]
call fcn.10004033
push 0
lea eax, [ebp - 0x230]
push 0x1c
push eax
call fcn.10006f14
add esp, 0xc
lea ecx, [ebp - 0x278]
push eax
call fcn.10003ec7
jmp 0x10008515
lea eax, [ebp - 0x230]
push eax
call fcn.10007138
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders_
mov byte [ebp - 4], 4
push esi
call fcn.10033e5f
pop ecx
pop ecx
push eax
push esi
lea ecx, [ebp - 0x230]
call fcn.10004080
cmp dword [ebp - 0x21c], edi
lea eax, [ebp - 0x230]
push str.AppData
cmovae eax, dword [ebp - 0x230]
mov esi, 0x80000003
push eax
lea eax, [ebp - 0x260]
push esi
push eax
call fcn.10006094
add esp, 0x10
lea ecx, [ebp - 0x290]
push eax
call fcn.10003ec7
lea ecx, [ebp - 0x260]
call fcn.10004033
cmp dword [ebp - 0x21c], edi
lea eax, [ebp - 0x230]
push str.Local_AppData
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x260]
push esi
push eax
call fcn.10006094
add esp, 0x10
lea ecx, [ebp - 0x278]
push eax
call fcn.10003ec7
lea ecx, [ebp - 0x260]
call fcn.10004033
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x230]
call fcn.10004033
lea eax, [ebp - 0x290]
lea esi, [ebx + 0x50]
push eax
mov ecx, esi
call fcn.10003ef0
lea eax, [ebp - 0x278]
lea edi, [ebx + 0x68]
push eax
mov ecx, edi
call fcn.10003ef0
push esi
call fcn.1000678d
pop ecx
test eax, eax
jne 0x10008565
push 0x10056320
call fcn.10033e5f
pop ecx
push eax
push 0x10056320
mov ecx, esi
call fcn.10004080
push edi
call fcn.1000678d
pop ecx
test eax, eax
jne 0x10008588
push 0x10056320
call fcn.10033e5f
pop ecx
push eax
push 0x10056320
mov ecx, edi
call fcn.10004080
lea eax, [ebp - 0x230]
push str.SOFT_NAME_EN
push eax
call fcn.1000b0a0
pop ecx
pop ecx
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 5
jb 0x100085a7
mov eax, dword [eax]
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x100085b1
mov ecx, dword [esi]
push eax
push ecx
lea eax, [ebp - 0x260]
push str._s_s_
push eax
call fcn.10006593
add esp, 0x10
lea edi, [ebx + 0x20]
mov ecx, edi
push eax
call fcn.10003ec7
lea ecx, [ebp - 0x260]
call fcn.10004033
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 3
call fcn.10004033
cmp dword [edi + 0x14], 8
jb 0x100085f4
mov edi, dword [edi]
push edi
call fcn.10006d47
lea eax, [ebp - 0x230]
mov dword [esp], str.APPDATA_RETAIN_FOLDER
push eax
call fcn.1000b0a0
pop ecx
pop ecx
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 6
jb 0x1000861b
mov eax, dword [eax]
cmp dword [esi + 0x14], 8
jb 0x10008623
mov esi, dword [esi]
push eax
push esi
lea eax, [ebp - 0x260]
push str._s_s_
push eax
call fcn.10006593
add esp, 0x10
lea esi, [ebx + 0x38]
mov ecx, esi
push eax
call fcn.10003ec7
lea ecx, [ebp - 0x260]
call fcn.10004033
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 3
call fcn.10004033
cmp dword [esi + 0x14], 8
jb 0x10008666
mov esi, dword [esi]
push esi
call fcn.10006d47
pop ecx
lea ecx, [ebp - 0x2a8]
call fcn.10004033
lea ecx, [ebp - 0x248]
call fcn.10004033
lea ecx, [ebp - 0x278]
call fcn.10004033
lea ecx, [ebp - 0x290]
call fcn.10004033
mov al, 1
call fcn.1001866f
ret