Function at 0x10042350
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009cf08
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x100ef034]
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 0x1004248e
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]
xorps xmm0, xmm0
mov dword [ebp - 0x224], 0
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x220], 0
movups xmmword [ebp - 0x234], xmm0
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100423f0
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.10037aa0
lea ecx, [ebp + 8]
mov dword [ebp - 0x240], 1
call fcn.10038340
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
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
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 0x100425a9
call fcn.10055620
cmp byte [eax + 0x1c], 0
je 0x100425a0
call fcn.10055620
mov edi, eax
call fcn.1003aaa0
test eax, eax
je 0x100425ff
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.1003f390
push esi
lea ecx, [ebp - 0x244]
call fcn.10055a10
mov esi, eax
call fcn.1003aaa0
test eax, eax
je 0x100425ff
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 0x100c62fc
call fcn.1003f390
push ecx
push esi
sub esp, 8
mov ecx, edi
call fcn.10055700
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 0x10042581
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 0x100425a0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 0x235], 0
jmp 0x100425ba
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 0x100425cf
push ecx
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10038340
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.1007685e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100374f0
int3