Function at 0x100e3970
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x10199f9c
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x10211a50]
xor eax, esp
mov dword [esp + 0x284], eax
push esi
push edi
mov eax, dword [0x10211a50]
xor eax, esp
push eax
lea eax, [esp + 0x298]
mov dword fs:[0], eax
mov eax, dword [0x10219264]
mov edi, dword [ebp + 8]
mov dword [esp + 0x30], 0
test al, 1
jne 0x100e39f4
or eax, 1
mov dword [0x102192e0], 7
mov dword [0x10219264], eax
xor eax, eax
push 0x101a3dd0
mov dword [0x102192dc], 0
mov word [0x102192cc], ax
call fcn.1015f2a9
add esp, 4
sub esp, 0x18
mov dword [esp + 0x50], 0
mov ecx, esp
xor eax, eax
push 0xc
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push str.explorer.exe
mov word [ecx], ax
call fcn.100e9e50
lea ecx, [esp + 0x50]
call fcn.100e5aa0
add esp, 0x18
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
push 0x104
lea eax, [esp + 0x88]
push 0
push eax
call fcn.10161e50
add esp, 0xc
mov dword [esp + 0x48], 0x104
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
sub esp, 0x18
mov dword [esp + 0x54], 0
mov edx, esp
mov dword [esp + 0x4c], 0
xor eax, eax
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
mov word [edx], ax
cmp word [esp + 0x9c], ax
jne 0x100e3aa4
xor ecx, ecx
jmp 0x100e3abf
lea ecx, [esp + 0x9c]
lea esi, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100e3ab0
sub ecx, esi
sar ecx, 1
push ecx
lea eax, [esp + 0xa0]
mov ecx, edx
push eax
call fcn.100e9e50
lea ecx, [esp + 0x4c]
call fcn.100e3e20
add esp, 0x18
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
mov edx, dword [esp + 0x3c]
cmp word [edx], 0
jne 0x100e3af8
xor ecx, ecx
jmp 0x100e3b0f
mov ecx, edx
lea esi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100e3b00
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, 0x102192cc
call fcn.100e9e50
cmp dword [0x102192e0], 8
lea ecx, [esp + 0x34]
push ecx
push 0x20019
mov eax, 0x102192cc
mov byte [esp + 0x1b], 0
cmovae eax, dword [0x102192cc]
push 0
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ecx, byte [esp + 0x13]
test eax, eax
push dword [esp + 0x34]
mov edx, 1
cmove ecx, edx
mov dword [esp + 0x18], ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0x14], 0
jne 0x100e3da0
xor eax, eax
mov dword [esp + 0x2c], 7
xorps xmm0, xmm0
mov dword [esp + 0x28], 0
push eax
push 0x101f377c
lea ecx, [esp + 0x20]
movdqa xmmword [esp + 0x6c], xmm0
movdqa xmmword [esp + 0x7c], xmm0
mov word [esp + 0x20], ax
call fcn.100e9e50
mov dword [esp + 0x2a0], 1
lea ecx, [esp + 0x68]
xor eax, eax
mov dword [esp + 0x64], reloc.WS2_32.dll_closesocket
push 0xffffffffffffffff
push eax
mov word [esp + 0x70], ax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], 0
call fcn.100ebf30
mov dword [esp + 0x80], 0xf003f
mov byte [esp + 0x2a0], 3
cmp dword [esp + 0x2c], 8
jb 0x100e3c0f
push dword [esp + 0x18]
call fcn.1015f106
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
xorps xmm0, xmm0
mov dword [esp + 0x28], 0
movq qword [esp + 0x40], xmm0
mov word [esp + 0x18], ax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
call fcn.100ee610
mov dword [esp + 0x40], eax
lea eax, [esp + 0x40]
mov byte [esp + 0x2a0], 4
push eax
lea ecx, [esp + 0x68]
call fcn.100eeb40
test eax, eax
jne 0x100e3d61
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx]
mov dword [esp + 0x34], eax
cmp eax, ecx
je 0x100e3d65
cmp dword [eax + 0x24], 8
lea edx, [eax + 0x10]
jb 0x100e3c7b
mov edx, dword [edx]
xor eax, eax
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], 0
mov word [esp + 0x4c], ax
cmp word [edx], ax
je 0x100e3caf
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100e3ca0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x54]
call fcn.100e9e50
push 7
push 0
push str.Classes
lea ecx, [esp + 0x58]
mov byte [esp + 0x2ac], 5
call fcn.100ec050
push dword [0x102192dc]
cmp dword [0x102192e0], 8
mov ecx, 0x102192cc
push 0
cmovae ecx, dword [0x102192cc]
mov esi, eax
push ecx
lea ecx, [esp + 0x58]
call fcn.100ec050
cmp eax, 0xffffffff
je 0x100e3d05
cmp esi, 0xffffffff
je 0x100e3d3b
mov byte [esp + 0x2a0], 4
cmp dword [esp + 0x60], 8
jb 0x100e3d20
push dword [esp + 0x4c]
call fcn.1015f106
add esp, 4
lea ecx, [esp + 0x34]
call fcn.100ec650
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x40]
cmp eax, ecx
jne 0x100e3c70
jmp 0x100e3d65
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x54]
mov ecx, 0x102192cc
push eax
call fcn.100ebf30
cmp dword [esp + 0x60], 8
jb 0x100e3d61
push dword [esp + 0x4c]
call fcn.1015f106
add esp, 4
mov ecx, dword [esp + 0x40]
push ecx
push dword [ecx]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x4c]
call fcn.100ed620
push dword [esp + 0x40]
call fcn.1015f106
add esp, 4
mov dword [esp + 0x2a0], 0xffffffff
cmp dword [esp + 0x7c], 8
jb 0x100e3da0
push dword [esp + 0x68]
call fcn.1015f106
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
push 0xffffffffffffffff
push eax
mov dword [edi + 0x10], 0
mov ecx, edi
push 0x102192cc
mov word [edi], ax
call fcn.100ebf30
mov eax, edi
mov ecx, dword [esp + 0x298]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x284]
xor ecx, esp
call fcn.1016177d
mov esp, ebp
pop ebp
ret