Function at 0x41e370
Capabilities:
Get session user name

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444b3d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x477840]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
xorps xmm0, xmm0
mov dword [ebp - 0x4c], esi
xor eax, eax
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
mov edi, dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x41e531
push 0
push dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
call fcn.0041ef00
cmp dword [ebp - 0x18], 7
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push ecx
push eax
call edi
test eax, eax
je 0x41e531
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x2c]
dec ecx
cmp dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ecx
cmova eax, dword [ebp - 0x2c]
xor edx, edx
mov word [eax + ecx*2], dx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x4c], ecx
test ecx, ecx
jne 0x41e459
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], 0xf
mov byte [esi], dl
jmp 0x41e4db
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmova eax, dword [ebp - 0x2c]
push 0
push 0
push 0
push 0
push ecx
push eax
push 0
push 0xfde9
call edi
mov esi, eax
lea ecx, [ebp - 0x48]
push 0
push esi
call fcn.0041cdb0
cmp dword [ebp - 0x34], 0xf
lea ecx, [ebp - 0x48]
push 0
cmova ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 7
push 0
cmova eax, dword [ebp - 0x2c]
push esi
push ecx
push dword [ebp - 0x4c]
push eax
push 0
push 0xfde9
call edi
mov esi, dword [ebp - 0x50]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
movups xmm0, xmmword [ebp - 0x48]
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x38]
movq qword [esi + 0x10], xmm0
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x41e511
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41e507
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e582
push ecx
push edx
call fcn.00439f72
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00439e1a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebp - 0x18]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
cmp ecx, 7
jbe 0x41e511
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41e507
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41e507
call fcn.00423f6f
int3