Function at 0x41aea0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452c61
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x46c664]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x70], eax
xor eax, eax
mov dword [ebp - 0x6c], eax
push 0x101
lea esi, [ebp - 0x64]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
call fcn.0041bba0
mov dword [ebp - 4], 1
mov edi, dword [ebp - 0x60]
mov ebx, dword [ebp - 0x64]
mov esi, edi
lea ecx, [ebp - 0x54]
sub esi, ebx
push ecx
sar esi, 1
push ebx
mov dword [ebp - 0x54], esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x41afe9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
cmp eax, 0x7a
jne 0x41b066
mov ecx, dword [ebp - 0x54]
add ecx, 2
mov dword [ebp - 0x68], ecx
cmp esi, ecx
jbe 0x41af50
lea esi, [ebx + ecx*2]
cmp esi, edi
je 0x41afcd
push 0
push edi
push esi
call fcn.004328d0
add esp, 0xc
mov dword [ebp - 0x60], esi
jmp 0x41afca
jae 0x41afcd
mov eax, ecx
sub eax, esi
mov edx, 0x7fffffff
sub edx, eax
cmp edx, esi
jb 0x41b05c
add esi, eax
mov eax, dword [ebp - 0x5c]
sub eax, ebx
sar eax, 1
cmp esi, eax
jbe 0x41af9e
mov ecx, eax
shr ecx, 1
mov edx, 0x7fffffff
sub edx, ecx
cmp edx, eax
jae 0x41af85
xor eax, eax
jmp 0x41af87
add eax, ecx
cmp eax, esi
cmovb eax, esi
push eax
lea ecx, [ebp - 0x64]
call fcn.0041bf50
mov ebx, dword [ebp - 0x64]
mov edi, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x68]
mov eax, edi
sub eax, ebx
sar eax, 1
mov edx, ecx
sub edx, eax
je 0x41afc4
xor eax, eax
movzx esi, ax
mov eax, esi
shl esi, 0x10
or eax, esi
mov ecx, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x60]
lea ecx, [edi + edx*2]
mov dword [ebp - 0x60], ecx
mov edi, dword [ebp - 0x60]
mov esi, edi
lea edx, [ebp - 0x54]
sub esi, ebx
push edx
sar esi, 1
push ebx
mov dword [ebp - 0x54], esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x41af15
mov esi, dword [ebp - 0x70]
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov eax, ebx
mov word [esi], dx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41b004
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
call fcn.0040e990
mov dword [ebp - 0x6c], 1
mov byte [ebp - 4], 0
xor edi, edi
cmp ebx, edi
je 0x41b035
push ebx
call fcn.0043266a
add esp, 4
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00432675
mov esp, ebp
pop ebp
ret
push str.vector_T__too_long
call fcn.00430350
xor eax, eax
mov word [ebp - 0x50], ax
mov edi, 7
xor ebx, ebx
push 0x1d
mov eax, str.WinAPI::getUserName___failed.
lea esi, [ebp - 0x50]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], ebx
call fcn.0040e990
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x68]
push ebx
mov eax, esi
mov dword [ebp - 0x34], ecx
xor edx, edx
push eax
or eax, 0xffffffff
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], dx
call fcn.00401a90
mov byte [ebp - 4], 2
push 0x4630f4
lea ecx, [ebp - 0x34]
push ecx
call fcn.00436bf2
int3