Function at 0x180a5a5e
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [0x1819f008]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push dword [edx]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x80]
test eax, eax
js 0x180a5ccc
push dword [esi]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x88]
test eax, eax
js 0x180a5ccc
push dword [edi]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x48]
test eax, eax
js 0x180a5ccc
cmp byte [ebp + 0x10], 0
mov eax, dword [ebx]
je 0x180a5ad2
xor edi, edi
push edi
push 0x18160a9c
push ebx
call dword [eax + 0x78]
jmp 0x180a5b58
push 0x2000
push ebx
call dword [eax + 0x70]
test eax, eax
js 0x180a5ccc
call fcn.18002e11
push eax
lea ecx, [esp + 0x18]
call fcn.18005bd3
mov eax, 0x101
lea ecx, [esp + 0x14]
push eax
mov dword [esp + 0x20], eax
call fcn.18005ac9
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.180058f6
test esi, esi
jne 0x180a5b3a
call fcn.18011478
mov ecx, dword [esp + 0x14]
mov esi, eax
add ecx, 0xfffffff0
call fcn.18003476
jmp 0x180a5cca
mov eax, dword [ebx]
xor edi, edi
mov esi, dword [esp + 0x14]
push edi
push esi
push ebx
call dword [eax + 0x78]
lea ecx, [esi - 0x10]
mov dword [esp + 0x14], eax
call fcn.18003476
mov eax, dword [esp + 0x14]
test eax, eax
js 0x180a5ccc
call fcn.1800fa0c
xor ecx, ecx
test al, al
mov eax, dword [ebx]
setne cl
not ecx
push ecx
push ebx
call dword [eax + 0xa8]
test eax, eax
js 0x180a5ccc
cmp byte [ebp + 0x14], 0
je 0x180a5b9d
cmp byte [ebp + 0x10], 0
je 0x180a5b9d
mov ecx, ebx
call fcn.180a58b4
mov esi, eax
test esi, esi
js 0x180a5cca
mov dl, byte [ebp + 0x18]
mov ecx, ebx
call fcn.180a5940
mov esi, eax
test esi, esi
js 0x180a5cca
mov eax, dword [ebx]
lea ecx, [esp + 0x10]
push ecx
push 0x1818e700
push ebx
mov dword [esp + 0x1c], edi
call dword [eax]
test eax, eax
jns 0x180a5bd0
mov eax, edi
mov dword [esp + 0x10], eax
jmp 0x180a5bd4
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x180a5be2
mov esi, 0x80004002
jmp 0x180a5cc0
mov ecx, dword [eax]
push 1
push edi
push eax
call dword [ecx + 0x18]
mov esi, eax
test esi, esi
js 0x180a5cbc
cmp byte [ebp + 0x10], 0
mov eax, dword [esp + 0x10]
je 0x180a5c06
mov esi, edi
jmp 0x180a5cc0
mov dword [esp + 0x18], edi
lea edx, [esp + 0x18]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x20]
mov esi, eax
test esi, esi
js 0x180a5cb2
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x180a5c31
mov dword [esp + 0x10], edi
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ebx, 0x1817c904
mov dword [esp + 0x24], edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.18005fde
push ecx
lea ecx, [esp + 0x24]
call fcn.1800ef1b
test al, al
je 0x180a5c95
push ecx
push ecx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x2c]
call fcn.18008f0d
test al, al
je 0x180a5c95
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x30]
push edi
xor edx, edx
push 0x1f01ff
push eax
inc edx
call fcn.180073d8
mov esi, eax
add esp, 0xc
test esi, esi
js 0x180a5c9c
mov esi, edi
jmp 0x180a5c9c
call fcn.18011478
mov esi, eax
lea ecx, [esp + 0x30]
call fcn.180035d6
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], ebx
call fcn.180069c9
push dword [esp + 0x18]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x180a5cca
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.18128eaf
mov esp, ebp
pop ebp
ret