Function at 0x180b916f
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [0x181cd008]
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.18007189
add eax, 0x10
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], eax
call fcn.1800f04e
mov eax, dword [esi]
mov edi, dword [esp + 0x14]
push edi
push esi
call dword [eax + 0x80]
mov ebx, eax
test ebx, ebx
js 0x180b9429
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 0x180b9429
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 0x180b9429
cmp byte [ebp + 0x10], 0
mov eax, dword [esi]
je 0x180b921f
xor esi, esi
push esi
push 0x18180c4c
push dword [esp + 0x20]
call dword [eax + 0x78]
mov ebx, eax
jmp 0x180b92a6
push 0x2000
push esi
call dword [eax + 0x70]
mov ebx, eax
test ebx, ebx
js 0x180b9429
call fcn.18004041
push eax
lea ecx, [esp + 0x18]
call fcn.1800710c
mov eax, 0x101
lea ecx, [esp + 0x14]
push eax
mov dword [esp + 0x24], eax
call fcn.18007002
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.18006e2f
test esi, esi
jne 0x180b9289
call fcn.18013db1
mov ecx, dword [esp + 0x14]
mov ebx, eax
lea ecx, [ecx - 0x10]
call fcn.180046a5
jmp 0x180b9429
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.180046a5
xor esi, esi
test ebx, ebx
js 0x180b9429
call fcn.180111ef
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 0x180b9429
cmp byte [ebp + 0x14], 0
je 0x180b92f3
cmp byte [ebp + 0x10], 0
je 0x180b92f3
mov ecx, dword [esp + 0x18]
call fcn.180b8fc5
mov ebx, eax
test ebx, ebx
js 0x180b9429
mov dl, byte [ebp + 0x18]
mov ecx, dword [esp + 0x18]
call fcn.180b9051
mov ebx, eax
test ebx, ebx
js 0x180b9429
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
push 0x181bb538
push ecx
mov eax, dword [ecx]
mov dword [esp + 0x1c], esi
call dword [eax]
test eax, eax
jns 0x180b932c
mov eax, esi
mov dword [esp + 0x10], eax
jmp 0x180b9330
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x180b933e
mov ebx, 0x80004002
jmp 0x180b941f
mov ecx, dword [eax]
push 1
push esi
push eax
call dword [ecx + 0x18]
mov ebx, eax
test ebx, ebx
js 0x180b941b
cmp byte [ebp + 0x10], 0
mov eax, dword [esp + 0x10]
je 0x180b9362
mov ebx, esi
jmp 0x180b941f
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 0x180b9411
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x180b938d
mov dword [esp + 0x10], esi
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea ecx, [esp + 0x38]
mov dword [esp + 0x28], 0x181a7f74
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call fcn.18007544
push ecx
lea ecx, [esp + 0x2c]
call fcn.18010570
test al, al
je 0x180b93f0
push ecx
push ecx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x34]
call fcn.1800a4a2
test al, al
je 0x180b93f0
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x38]
push esi
xor edx, edx
push 0x1f01ff
push eax
inc edx
call fcn.18008afe
mov ebx, eax
add esp, 0xc
test ebx, ebx
js 0x180b93f7
mov ebx, esi
jmp 0x180b93f7
call fcn.18013db1
mov ebx, eax
lea ecx, [esp + 0x38]
call fcn.1800483a
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0x181a7f74
call fcn.18007f68
push dword [esp + 0x1c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x180b9429
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [edi - 0x10]
call fcn.180046a5
mov ecx, dword [esp + 0x9c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.181450cb
mov esp, ebp
pop ebp
ret