Function at 0x1807fd27
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [0x1820f00c]
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 0x1807ffa5
push dword [esi]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x88]
test eax, eax
js 0x1807ffa5
push dword [edi]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x48]
test eax, eax
js 0x1807ffa5
cmp byte [ebp + 0x10], 0
mov eax, dword [ebx]
je 0x1807fd9d
xor edi, edi
push edi
push 0x181b72bc
push ebx
call dword [eax + 0x78]
mov esi, eax
jmp 0x1807fe31
push 0x2000
push ebx
call dword [eax + 0x70]
test eax, eax
js 0x1807ffa5
lea ecx, [esp + 0x14]
call fcn.18009c8e
mov eax, dword [esp + 0x14]
mov esi, 0x101
xor edx, edx
mov dword [esp + 0x1c], esi
inc edx
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, esi
or edx, ecx
jge 0x1807fde1
push esi
lea ecx, [esp + 0x18]
call fcn.18006f9e
mov eax, dword [esp + 0x14]
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.18009cb5
test esi, esi
jne 0x1807fe16
call fcn.18017850
mov ecx, dword [esp + 0x14]
mov esi, eax
add ecx, 0xfffffff0
call fcn.1800687d
jmp 0x1807ffa3
mov eax, dword [ebx]
xor edi, edi
push edi
push dword [esp + 0x18]
push ebx
call dword [eax + 0x78]
mov ecx, dword [esp + 0x14]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.1800687d
test esi, esi
js 0x1807ffa3
call fcn.180132ba
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 0x1807ffa5
cmp byte [ebp + 0x14], 0
je 0x1807fe76
cmp byte [ebp + 0x10], 0
je 0x1807fe76
mov ecx, ebx
call fcn.1807fb67
mov esi, eax
test esi, esi
js 0x1807ffa3
mov dl, byte [ebp + 0x18]
mov ecx, ebx
call fcn.1807fbf3
mov esi, eax
test esi, esi
js 0x1807ffa3
mov eax, dword [ebx]
lea ecx, [esp + 0x10]
push ecx
push 0x181f12e8
push ebx
mov dword [esp + 0x1c], edi
call dword [eax]
test eax, eax
jns 0x1807fea9
mov eax, edi
mov dword [esp + 0x10], eax
jmp 0x1807fead
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x1807febb
mov esi, 0x80004002
jmp 0x1807ff99
mov ecx, dword [eax]
push 1
push edi
push eax
call dword [ecx + 0x18]
mov esi, eax
test esi, esi
js 0x1807ff95
cmp byte [ebp + 0x10], 0
mov eax, dword [esp + 0x10]
je 0x1807fedf
mov esi, edi
jmp 0x1807ff99
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 0x1807ff8b
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x1807ff0a
mov dword [esp + 0x10], edi
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ebx, 0x181dc5a0
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.1800a30b
push ecx
lea ecx, [esp + 0x24]
call fcn.18015367
test al, al
je 0x1807ff6e
push ecx
push ecx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x2c]
call fcn.1800e302
test al, al
je 0x1807ff6e
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x30]
push edi
xor edx, edx
push 0x1f01ff
push eax
inc edx
call fcn.1800ba47
mov esi, eax
add esp, 0xc
test esi, esi
js 0x1807ff75
mov esi, edi
jmp 0x1807ff75
call fcn.18017850
mov esi, eax
lea ecx, [esp + 0x30]
call fcn.1800749d
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], ebx
call fcn.1800ada6
push dword [esp + 0x18]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1807ffa3
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.1814cf3d
mov esp, ebp
pop ebp
ret