Function at 0x42e8b0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e49b0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x520628]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
xor esi, esi
push esi
push 3
mov dword [ebp - 0x14], esi
call sub.Secur32.dll_GetUserNameExW
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x42e9e7
mov edi, dword [ebp - 0x14]
lea ecx, [ebp - 0x3c]
push ecx
call fcn.004417c0
mov dword [ebp - 4], esi
mov edx, dword [ebp - 0x2c]
sub edx, dword [ebp - 0x30]
sar edx, 1
jne 0x42e91b
call fcn.0046e5b0
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x14]
push eax
push ecx
push 3
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x42e9bb
mov eax, dword [ebp - 0x30]
mov esi, eax
cmp eax, dword [ebp - 0x2c]
jbe 0x42e944
call fcn.0046e5b0
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], esi
mov edi, eax
cmp eax, dword [ebp - 0x2c]
jbe 0x42e959
call fcn.0046e5b0
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x24]
push ecx
lea eax, [ebp - 0x1c]
call fcn.00441830
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
push edx
push eax
push edi
push esi
push ecx
mov eax, ebx
call fcn.00444c50
mov eax, dword [ebp - 0x30]
xor esi, esi
cmp eax, esi
je 0x42e992
push eax
call fcn.004509e1
add esp, 4
mov edx, dword [ebp - 0x3c]
push edx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
call fcn.004509e1
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
cmp eax, esi
je 0x42e9d2
push eax
call fcn.004509e1
add esp, 4
mov eax, dword [ebp - 0x3c]
push eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
call fcn.004509e1
add esp, 4
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 0x14], esi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetUserNameW]
call esi
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x42eae0
lea edx, [ebp - 0x54]
push edx
call fcn.004417c0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x48]
sar eax, 1
jne 0x42ea21
call fcn.0046e5b0
mov edx, dword [ebp - 0x48]
lea ecx, [ebp - 0x14]
push ecx
push edx
call esi
test eax, eax
mov eax, dword [ebp - 0x48]
je 0x42eabc
mov esi, eax
cmp eax, dword [ebp - 0x44]
jbe 0x42ea45
call fcn.0046e5b0
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], esi
mov edi, eax
cmp eax, dword [ebp - 0x44]
jbe 0x42ea5a
call fcn.0046e5b0
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x54]
push edx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
call fcn.00441830
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [ebp - 0x14]
push ecx
push edx
push edi
push esi
push eax
mov eax, ebx
call fcn.00444c50
mov eax, dword [ebp - 0x48]
xor esi, esi
cmp eax, esi
je 0x42ea93
push eax
call fcn.004509e1
add esp, 4
mov ecx, dword [ebp - 0x54]
push ecx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
call fcn.004509e1
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
cmp eax, esi
je 0x42eacb
push eax
call fcn.004509e1
add esp, 4
mov edx, dword [ebp - 0x54]
push edx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
call fcn.004509e1
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret