Function at 0x180b678a
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [0x181c7008]
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.18006e74
add eax, 0x10
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], eax
call fcn.1800ef5c
mov eax, dword [esi]
mov edi, dword [esp + 0x14]
push edi
push esi
call dword [eax + 0x80]
mov ebx, eax
test ebx, ebx
js 0x180b6a44
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 0x180b6a44
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 0x180b6a44
cmp byte [ebp + 0x10], 0
mov eax, dword [esi]
je 0x180b683a
xor esi, esi
push esi
push 0x1817cc0c
push dword [esp + 0x20]
call dword [eax + 0x78]
mov ebx, eax
jmp 0x180b68c1
push 0x2000
push esi
call dword [eax + 0x70]
mov ebx, eax
test ebx, ebx
js 0x180b6a44
call fcn.18003fd3
push eax
lea ecx, [esp + 0x18]
call fcn.18006df7
mov eax, 0x101
lea ecx, [esp + 0x14]
push eax
mov dword [esp + 0x24], eax
call fcn.18006ced
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.18006b1a
test esi, esi
jne 0x180b68a4
call fcn.18013c6a
mov ecx, dword [esp + 0x14]
mov ebx, eax
lea ecx, [ecx - 0x10]
call fcn.18004637
jmp 0x180b6a44
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.18004637
xor esi, esi
test ebx, ebx
js 0x180b6a44
call fcn.18011187
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 0x180b6a44
cmp byte [ebp + 0x14], 0
je 0x180b690e
cmp byte [ebp + 0x10], 0
je 0x180b690e
mov ecx, dword [esp + 0x18]
call fcn.180b65e0
mov ebx, eax
test ebx, ebx
js 0x180b6a44
mov dl, byte [ebp + 0x18]
mov ecx, dword [esp + 0x18]
call fcn.180b666c
mov ebx, eax
test ebx, ebx
js 0x180b6a44
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
push 0x181b61b8
push ecx
mov eax, dword [ecx]
mov dword [esp + 0x1c], esi
call dword [eax]
test eax, eax
jns 0x180b6947
mov eax, esi
mov dword [esp + 0x10], eax
jmp 0x180b694b
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x180b6959
mov ebx, 0x80004002
jmp 0x180b6a3a
mov ecx, dword [eax]
push 1
push esi
push eax
call dword [ecx + 0x18]
mov ebx, eax
test ebx, ebx
js 0x180b6a36
cmp byte [ebp + 0x10], 0
mov eax, dword [esp + 0x10]
je 0x180b697d
mov ebx, esi
jmp 0x180b6a3a
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 0x180b6a2c
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x180b69a8
mov dword [esp + 0x10], esi
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea ecx, [esp + 0x38]
mov dword [esp + 0x28], 0x181a2f84
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call fcn.18007202
push ecx
lea ecx, [esp + 0x2c]
call fcn.1801049e
test al, al
je 0x180b6a0b
push ecx
push ecx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x34]
call fcn.1800a3b8
test al, al
je 0x180b6a0b
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x38]
push esi
xor edx, edx
push 0x1f01ff
push eax
inc edx
call fcn.1800864c
mov ebx, eax
add esp, 0xc
test ebx, ebx
js 0x180b6a12
mov ebx, esi
jmp 0x180b6a12
call fcn.18013c6a
mov ebx, eax
lea ecx, [esp + 0x38]
call fcn.18004797
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0x181a2f84
call fcn.18007bed
push dword [esp + 0x1c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x180b6a44
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [edi - 0x10]
call fcn.18004637
mov ecx, dword [esp + 0x9c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.18141824
mov esp, ebp
pop ebp
ret