Function at 0x180a9abb
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [0x181c900c]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push dword [edx]
mov edi, ecx
mov dword [esp + 0x18], eax
push edi
mov dword [esp + 0x14], edi
mov eax, dword [edi]
mov esi, dword [eax + 0x80]
mov ecx, esi
call dword [0x1815d3d4]
call esi
lfence
test eax, eax
js 0x180a9df5
mov eax, dword [edi]
push dword [ebx]
push edi
mov esi, dword [eax + 0x88]
mov ecx, esi
call dword [0x1815d3d4]
call esi
lfence
test eax, eax
js 0x180a9df5
mov eax, dword [edi]
mov esi, dword [eax + 0x48]
mov ecx, esi
mov eax, dword [esp + 0x14]
push dword [eax]
push edi
call dword [0x1815d3d4]
call esi
test eax, eax
jns 0x180a9b4a
lfence
jmp 0x180a9df5
cmp byte [ebp + 0x10], 0
lfence
mov eax, dword [edi]
je 0x180a9b72
mov esi, dword [eax + 0x78]
xor ebx, ebx
push ebx
push 0x1816db7c
push edi
mov ecx, esi
call dword [0x1815d3d4]
call esi
mov esi, eax
jmp 0x180a9c28
mov esi, dword [eax + 0x70]
mov ecx, esi
push 0x2000
push edi
call dword [0x1815d3d4]
call esi
test eax, eax
js 0x180a9b42
xor ebx, ebx
mov dword [esp + 0x14], ebx
call fcn.1800703b
push eax
lea ecx, [esp + 0x18]
call fcn.1800774f
mov eax, dword [esp + 0x14]
mov esi, 0x101
xor edx, edx
mov dword [esp + 0x10], esi
inc edx
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, esi
or edx, ecx
jge 0x180a9bcb
push esi
lea ecx, [esp + 0x18]
lfence
call fcn.180077dc
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.18009f73
test esi, esi
jne 0x180a9c02
call fcn.1801ba7c
mov ecx, dword [esp + 0x14]
mov esi, eax
add ecx, 0xfffffff0
call fcn.18007012
mov eax, esi
jmp 0x180a9df5
lfence
mov eax, dword [edi]
push ebx
push dword [esp + 0x18]
mov esi, dword [eax + 0x78]
mov ecx, esi
push edi
call dword [0x1815d3d4]
call esi
mov ecx, dword [esp + 0x14]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.18007012
lfence
test esi, esi
js 0x180a9bfb
call fcn.18015d01
xor ecx, ecx
test al, al
mov eax, dword [edi]
setne cl
not ecx
push ecx
mov esi, dword [eax + 0xa8]
mov ecx, esi
push edi
call dword [0x1815d3d4]
call esi
lfence
test eax, eax
js 0x180a9df5
cmp byte [ebp + 0x14], 0
je 0x180a9c7d
mov ecx, edi
call fcn.180a98b7
mov edi, eax
test edi, edi
jns 0x180a9c79
cmp byte [ebp + 0x10], 0
jne 0x180a9df3
mov edi, dword [esp + 0xc]
mov dl, byte [ebp + 0x18]
mov ecx, edi
call fcn.180a9964
mov edi, eax
test edi, edi
js 0x180a9df3
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x18], ebx
lfence
mov eax, dword [ecx]
mov esi, dword [eax]
lea eax, [esp + 0x18]
push eax
push 0x181b4e00
push ecx
mov ecx, esi
call dword [0x1815d3d4]
call esi
test eax, eax
jns 0x180a9cc1
mov eax, ebx
mov dword [esp + 0x18], eax
jmp 0x180a9cc5
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x180a9cd3
mov edi, 0x80004002
jmp 0x180a9ddf
mov ecx, dword [eax]
push 1
push ebx
push eax
mov esi, dword [ecx + 0x18]
mov ecx, esi
call dword [0x1815d3d4]
call esi
mov edi, eax
test edi, edi
js 0x180a9ddb
cmp byte [ebp + 0x10], 0
mov eax, dword [esp + 0x18]
je 0x180a9d01
mov edi, ebx
jmp 0x180a9ddf
mov dword [esp + 0x1c], ebx
mov ecx, dword [eax]
mov esi, dword [ecx + 0x20]
lea ecx, [esp + 0x1c]
push ecx
push eax
mov ecx, esi
call dword [0x1815d3d4]
call esi
mov edi, eax
test edi, edi
js 0x180a9dd1
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x180a9d40
mov dword [esp + 0x18], ebx
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x1815d3d4]
call esi
push 0x60
lea eax, [esp + 0x34]
mov dword [esp + 0x28], ebx
push ebx
mov esi, 0x18196d68
mov dword [esp + 0x30], ebx
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x38], ebx
call fcn.1812da70
add esp, 0xc
lea ecx, [esp + 0x30]
call fcn.1800a54f
push ecx
lea ecx, [esp + 0x24]
call fcn.180188d8
test al, al
je 0x180a9db4
push ecx
push ecx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x2c]
call fcn.180102ec
test al, al
je 0x180a9db4
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x30]
push ebx
xor edx, edx
push 0x1f01ff
push eax
inc edx
call fcn.1800c856
mov edi, eax
add esp, 0xc
test edi, edi
js 0x180a9dbb
mov edi, ebx
jmp 0x180a9dbb
call fcn.1801ba7c
mov edi, eax
lea ecx, [esp + 0x30]
call fcn.1800a6ab
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], esi
call fcn.1800bc30
push dword [esp + 0x1c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x180a9df3
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x1815d3d4]
call esi
mov eax, edi
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.18118dc8
mov esp, ebp
pop ebp
ret