Function at 0x180b87c0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [0x181cb008]
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.18007149
add eax, 0x10
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], eax
call fcn.1800f00d
mov eax, dword [esi]
mov edi, dword [esp + 0x14]
push edi
push esi
call dword [eax + 0x80]
mov ebx, eax
test ebx, ebx
js 0x180b8a7a
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 0x180b8a7a
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 0x180b8a7a
cmp byte [ebp + 0x10], 0
mov eax, dword [esi]
je 0x180b8870
xor esi, esi
push esi
push 0x1817fc2c
push dword [esp + 0x20]
call dword [eax + 0x78]
mov ebx, eax
jmp 0x180b88f7
push 0x2000
push esi
call dword [eax + 0x70]
mov ebx, eax
test ebx, ebx
js 0x180b8a7a
call fcn.18004001
push eax
lea ecx, [esp + 0x18]
call fcn.180070cc
mov eax, 0x101
lea ecx, [esp + 0x14]
push eax
mov dword [esp + 0x24], eax
call fcn.18006fc2
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.18006def
test esi, esi
jne 0x180b88da
call fcn.18013c92
mov ecx, dword [esp + 0x14]
mov ebx, eax
lea ecx, [ecx - 0x10]
call fcn.18004665
jmp 0x180b8a7a
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.18004665
xor esi, esi
test ebx, ebx
js 0x180b8a7a
call fcn.180111af
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 0x180b8a7a
cmp byte [ebp + 0x14], 0
je 0x180b8944
cmp byte [ebp + 0x10], 0
je 0x180b8944
mov ecx, dword [esp + 0x18]
call fcn.180b8616
mov ebx, eax
test ebx, ebx
js 0x180b8a7a
mov dl, byte [ebp + 0x18]
mov ecx, dword [esp + 0x18]
call fcn.180b86a2
mov ebx, eax
test ebx, ebx
js 0x180b8a7a
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
push 0x181b9e58
push ecx
mov eax, dword [ecx]
mov dword [esp + 0x1c], esi
call dword [eax]
test eax, eax
jns 0x180b897d
mov eax, esi
mov dword [esp + 0x10], eax
jmp 0x180b8981
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x180b898f
mov ebx, 0x80004002
jmp 0x180b8a70
mov ecx, dword [eax]
push 1
push esi
push eax
call dword [ecx + 0x18]
mov ebx, eax
test ebx, ebx
js 0x180b8a6c
cmp byte [ebp + 0x10], 0
mov eax, dword [esp + 0x10]
je 0x180b89b3
mov ebx, esi
jmp 0x180b8a70
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 0x180b8a62
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x180b89de
mov dword [esp + 0x10], esi
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea ecx, [esp + 0x38]
mov dword [esp + 0x28], 0x181a6a14
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call fcn.18007504
push ecx
lea ecx, [esp + 0x2c]
call fcn.1801052f
test al, al
je 0x180b8a41
push ecx
push ecx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x34]
call fcn.1800a464
test al, al
je 0x180b8a41
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x38]
push esi
xor edx, edx
push 0x1f01ff
push eax
inc edx
call fcn.18008abf
mov ebx, eax
add esp, 0xc
test ebx, ebx
js 0x180b8a48
mov ebx, esi
jmp 0x180b8a48
call fcn.18013c92
mov ebx, eax
lea ecx, [esp + 0x38]
call fcn.180047fa
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0x181a6a14
call fcn.18007f28
push dword [esp + 0x1c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x180b8a7a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [edi - 0x10]
call fcn.18004665
mov ecx, dword [esp + 0x9c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.18144705
mov esp, ebp
pop ebp
ret