Function at 0x1006a0f0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009e8b4
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x100c230c]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push esi
push edi
mov eax, dword [0x100c230c]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [esi]
push eax
mov edi, edx
mov edx, dword [ecx + 0x80]
push esi
call edx
xor ebx, ebx
cmp eax, ebx
jl 0x1006a602
mov eax, dword [esi]
mov ecx, dword [eax + 0x88]
push edi
push esi
call ecx
cmp eax, ebx
jl 0x1006a602
mov edx, dword [esi]
mov eax, dword [edx + 0x48]
push 0x100a6f30
push esi
call eax
cmp eax, ebx
jl 0x1006a602
mov ecx, dword [esi]
mov edx, dword [ecx + 0x70]
push 0x2000
push esi
call edx
cmp eax, ebx
jl 0x1006a602
lea eax, [esp + 0x28]
push eax
call fcn.1000ffe0
mov dword [esp + 0xc0], ebx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], 0x104
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
or edi, 0xffffffff
sub eax, 0x104
or eax, ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], edi
jge 0x1006a1e1
mov ecx, 0x104
lea eax, [esp + 0x28]
call fcn.10002ca0
mov edx, dword [esp + 0x28]
mov dword [esp + 0x44], edx
mov byte [esp + 0xc0], 1
lea eax, [esp + 0x3c]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
sete byte [esp + 0x33]
mov byte [esp + 0xc0], bl
lea ecx, [esp + 0x40]
call fcn.1006aa30
cmp byte [esp + 0x33], bl
je 0x1006a22b
mov dword [esp + 0xc0], edi
lea ecx, [esp + 0x28]
call fcn.100025b0
jmp 0x1006a5fd
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.100024a0
mov byte [esp + 0xc0], 2
mov eax, dword [eax]
mov ecx, dword [esi]
mov edx, dword [ecx + 0x78]
push ebx
push eax
push esi
call edx
mov edi, eax
mov byte [esp + 0xc0], bl
lea ecx, [esp + 0x38]
call fcn.100025b0
mov dword [esp + 0xc0], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.100025b0
cmp edi, ebx
jl 0x1006a2c6
mov eax, dword [esi]
mov ecx, dword [eax + 0xa8]
push 0xffffffffffffffff
push esi
call ecx
cmp eax, ebx
jl 0x1006a602
lea edx, [esp + 0x2c]
push edx
call fcn.1002bcf0
mov dword [esp + 0xc0], 3
push esi
call fcn.10069de0
mov edi, eax
add esp, 4
cmp edi, ebx
jge 0x1006a2cd
mov dword [esp + 0xc0], 0xffffffff
lea eax, [esp + 0x2c]
push eax
call fcn.1005ee00
mov eax, edi
jmp 0x1006a602
push esi
lea ecx, [esp + 0x18]
push ecx
call fcn.1006aa80
mov byte [esp + 0xc0], 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x1006a319
mov byte [esp + 0xc0], 3
lea edx, [esp + 0x14]
push edx
call fcn.1005fb10
mov dword [esp + 0xc0], 0xffffffff
lea eax, [esp + 0x2c]
push eax
call fcn.1005ee00
mov eax, 0x80004002
jmp 0x1006a602
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push 1
push ebx
push eax
call edx
mov esi, eax
cmp esi, ebx
jge 0x1006a358
mov byte [esp + 0xc0], 3
lea eax, [esp + 0x14]
push eax
call fcn.1005fb10
mov dword [esp + 0xc0], 0xffffffff
lea ecx, [esp + 0x2c]
push ecx
call fcn.1005ee00
mov eax, esi
jmp 0x1006a602
mov dword [esp + 0x34], ebx
mov byte [esp + 0xc0], 5
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x20]
lea ecx, [esp + 0x34]
push ecx
push eax
call edx
mov esi, eax
cmp esi, ebx
jl 0x1006a487
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x1006a393
mov dword [esp + 0x14], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov edi, vtable.ATL::CAccessToken.0
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0xc0], 6
lea eax, [esp + 0x4c]
push eax
call fcn.100688b0
mov byte [esp + 0xc0], 7
lea esi, [esp + 0x18]
call fcn.10069cc0
test al, al
je 0x1006a566
lea ecx, [esp + 0x4c]
push ecx
mov edx, esi
push edx
call fcn.1006ac10
test al, al
je 0x1006a566
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x38]
push eax
call fcn.10002500
mov byte [esp + 0xc0], 8
mov eax, dword [eax]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, eax
call fcn.10069ee0
add esp, 4
mov esi, eax
mov byte [esp + 0xc0], 7
lea ecx, [esp + 0x38]
call fcn.100025b0
cmp esi, ebx
jge 0x1006a4c8
mov byte [esp + 0xc0], 6
lea ecx, [esp + 0x4c]
call fcn.10068960
mov byte [esp + 0xc0], 5
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], edi
cmp ecx, ebx
je 0x1006a467
cmp eax, ebx
je 0x1006a463
push ecx
push eax
call dword [sym.imp.USERENV.dll_UnloadUserProfile]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], ebx
cmp eax, ebx
je 0x1006a476
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x1c], ebx
mov edx, dword [esp + 0x24]
push edx
call fcn.100755e2
add esp, 4
mov dword [esp + 0x24], ebx
mov byte [esp + 0xc0], 4
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov byte [esp + 0xc0], 3
lea ecx, [esp + 0x14]
push ecx
call fcn.1005fb10
mov dword [esp + 0xc0], 0xffffffff
lea edx, [esp + 0x2c]
push edx
call fcn.1005ee00
mov eax, esi
jmp 0x1006a602
mov byte [esp + 0xc0], 6
lea ecx, [esp + 0x4c]
call fcn.10068960
mov byte [esp + 0xc0], 5
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], edi
cmp ecx, ebx
je 0x1006a505
cmp eax, ebx
je 0x1006a501
push ecx
push eax
call dword [sym.imp.USERENV.dll_UnloadUserProfile]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], ebx
cmp eax, ebx
je 0x1006a514
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x24]
push eax
call fcn.100755e2
add esp, 4
mov dword [esp + 0x24], ebx
mov byte [esp + 0xc0], 4
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov byte [esp + 0xc0], 3
lea edx, [esp + 0x14]
push edx
call fcn.1005fb10
mov dword [esp + 0xc0], 0xffffffff
lea eax, [esp + 0x2c]
push eax
call fcn.1005ee00
xor eax, eax
jmp 0x1006a602
mov byte [esp + 0xc0], 6
lea ecx, [esp + 0x4c]
call fcn.10068960
mov byte [esp + 0xc0], 5
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], edi
cmp ecx, ebx
je 0x1006a5a3
cmp eax, ebx
je 0x1006a59f
push ecx
push eax
call dword [sym.imp.USERENV.dll_UnloadUserProfile]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], ebx
cmp eax, ebx
je 0x1006a5b2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x24]
push ecx
call fcn.100755e2
add esp, 4
mov dword [esp + 0x24], ebx
mov byte [esp + 0xc0], 4
mov edx, dword [esp + 0x34]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov byte [esp + 0xc0], 3
lea eax, [esp + 0x14]
push eax
call fcn.1005fb10
mov dword [esp + 0xc0], 0xffffffff
lea ecx, [esp + 0x2c]
push ecx
call fcn.1005ee00
mov eax, 0x80004005
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.100755ed
mov esp, ebp
pop ebp
ret