Function at 0x1002d6f0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10081dc8
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x100c6034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x240], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0x18], 0
jne 0x1002d833
mov byte [ebp - 4], 1
xor eax, eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x23c], 0x105
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov dword [ebp - 0x234], 0
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002d7a7
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.10027680
lea ecx, [ebp + 8]
mov dword [ebp - 0x240], 1
call fcn.10027d30
movups xmm0, xmmword [ebp - 0x234]
xor eax, eax
mov word [ebp - 0x234], ax
mov eax, 1
movups xmmword [ebp + 8], xmm0
movq xmm0, qword [ebp - 0x224]
mov dword [ebp - 0x240], eax
and eax, 0xfffffffe
movq qword [ebp + 0x18], xmm0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x240], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.10027d30
mov dword [ebp - 0x248], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x248]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push ecx
cmovae eax, dword [ebp + 8]
push 1
push eax
push 0
call dword [sym.imp.NETAPI32.dll_NetUserGetInfo]
mov esi, eax
test esi, esi
je 0x1002d94e
call fcn.1003e820
cmp byte [eax + 0x1c], 0
je 0x1002d945
call fcn.1003e820
mov edi, eax
call fcn.10029330
test eax, eax
je 0x1002d9a4
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x244], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x244]
push 0x26
push str.::NetUserGetInfo___failed_with_error:
call fcn.1002ae70
push esi
lea ecx, [ebp - 0x244]
call fcn.1003ec10
mov esi, eax
call fcn.10029330
test eax, eax
je 0x1002d9a4
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x23c], eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x23c]
push 0
push 0x100a3438
call fcn.1002ae70
push ecx
push esi
sub esp, 8
mov ecx, edi
call fcn.1003e900
mov byte [ebp - 4], 5
or esi, 0xffffffff
mov edx, dword [ebp - 0x23c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002d926
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x244]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x1002d945
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 0x235], 0
jmp 0x1002d95f
mov eax, dword [ebp - 0x248]
cmp dword [eax + 0xc], 2
sete byte [ebp - 0x235]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x248]
test ecx, ecx
je 0x1002d974
push ecx
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10027d30
mov al, byte [ebp - 0x235]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005c4e7
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100269b0
int3