Function at 0x180ba00d
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [0x181cf008]
xor eax, esp
mov dword [esp + 0x90], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x20], eax
mov ecx, dword [edx]
mov eax, dword [ebp + 0xc]
sub ecx, 0x10
push edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], eax
call fcn.180071f9
add eax, 0x10
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], eax
call fcn.1800f0bb
mov eax, dword [esi]
mov edi, dword [esp + 0x14]
push edi
push esi
call dword [eax + 0x80]
mov ebx, eax
test ebx, ebx
js 0x180ba2c7
mov ecx, dword [esp + 0x24]
mov eax, dword [esi]
push dword [ecx]
push esi
call dword [eax + 0x88]
mov ebx, eax
test ebx, ebx
js 0x180ba2c7
mov ecx, dword [esp + 0x20]
mov eax, dword [esi]
push dword [ecx]
push esi
call dword [eax + 0x48]
mov ebx, eax
test ebx, ebx
js 0x180ba2c7
cmp byte [ebp + 0x10], 0
mov eax, dword [esi]
je 0x180ba0bd
xor esi, esi
push esi
push 0x18181c4c
push dword [esp + 0x20]
call dword [eax + 0x78]
mov ebx, eax
jmp 0x180ba144
push 0x2000
push esi
call dword [eax + 0x70]
mov ebx, eax
test ebx, ebx
js 0x180ba2c7
call fcn.180040b1
push eax
lea ecx, [esp + 0x18]
call fcn.1800717c
mov eax, 0x101
lea ecx, [esp + 0x14]
push eax
mov dword [esp + 0x24], eax
call fcn.18007072
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.18006e9f
test esi, esi
jne 0x180ba127
call fcn.18013e1e
mov ecx, dword [esp + 0x14]
mov ebx, eax
lea ecx, [ecx - 0x10]
call fcn.18004715
jmp 0x180ba2c7
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
push 0
push esi
mov eax, dword [ecx]
push ecx
call dword [eax + 0x78]
lea ecx, [esi - 0x10]
mov ebx, eax
call fcn.18004715
xor esi, esi
test ebx, ebx
js 0x180ba2c7
call fcn.1801125c
mov edx, dword [esp + 0x18]
xor ecx, ecx
test al, al
setne cl
mov eax, dword [edx]
not ecx
push ecx
push edx
call dword [eax + 0xa8]
mov ebx, eax
test ebx, ebx
js 0x180ba2c7
cmp byte [ebp + 0x14], 0
je 0x180ba191
cmp byte [ebp + 0x10], 0
je 0x180ba191
mov ecx, dword [esp + 0x18]
call fcn.180b9e63
mov ebx, eax
test ebx, ebx
js 0x180ba2c7
mov dl, byte [ebp + 0x18]
mov ecx, dword [esp + 0x18]
call fcn.180b9eef
mov ebx, eax
test ebx, ebx
js 0x180ba2c7
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
push 0x181bd264
push ecx
mov eax, dword [ecx]
mov dword [esp + 0x1c], esi
call dword [eax]
test eax, eax
jns 0x180ba1ca
mov eax, esi
mov dword [esp + 0x10], eax
jmp 0x180ba1ce
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x180ba1dc
mov ebx, 0x80004002
jmp 0x180ba2bd
mov ecx, dword [eax]
push 1
push esi
push eax
call dword [ecx + 0x18]
mov ebx, eax
test ebx, ebx
js 0x180ba2b9
cmp byte [ebp + 0x10], 0
mov eax, dword [esp + 0x10]
je 0x180ba200
mov ebx, esi
jmp 0x180ba2bd
mov dword [esp + 0x1c], esi
lea edx, [esp + 0x1c]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x20]
mov ebx, eax
test ebx, ebx
js 0x180ba2af
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x180ba22b
mov dword [esp + 0x10], esi
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea ecx, [esp + 0x38]
mov dword [esp + 0x28], 0x181a9bf4
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call fcn.180075b4
push ecx
lea ecx, [esp + 0x2c]
call fcn.180105dd
test al, al
je 0x180ba28e
push ecx
push ecx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x34]
call fcn.1800a512
test al, al
je 0x180ba28e
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x38]
push esi
xor edx, edx
push 0x1f01ff
push eax
inc edx
call fcn.18008b6e
mov ebx, eax
add esp, 0xc
test ebx, ebx
js 0x180ba295
mov ebx, esi
jmp 0x180ba295
call fcn.18013e1e
mov ebx, eax
lea ecx, [esp + 0x38]
call fcn.180048aa
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0x181a9bf4
call fcn.18007fd8
push dword [esp + 0x1c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x180ba2c7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [edi - 0x10]
call fcn.18004715
mov ecx, dword [esp + 0x9c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.18145fe4
mov esp, ebp
pop ebp
ret