Function at 0x4a2870
Capabilities:
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x564930
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x5c4954]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x10], 0x200
lea edi, [ebx + 0xf]
cmp byte [0x5cac08], bl
jne 0x4a2a81
lea eax, [esp + 0x10]
push eax
push 0x5cac08
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x4a2a81
push edi
push str.Logon_User_Name
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.00402c81
push 0x32
push str.SoftwareMicrosoftWindowsCurrentVersionExplorer
lea ecx, [esp + 0x1c]
mov dword [esp + 0x78], ebx
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00402c81
push ebx
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x58]
push 0x80000001
push eax
mov byte [esp + 0x84], 1
call fcn.005554d0
add esp, 0x14
mov esi, 0x10
mov byte [esp + 0x70], 2
cmp dword [eax + 0x18], esi
jb 0x4a293f
mov eax, dword [eax + 4]
jmp 0x4a2942
add eax, 4
push 0x200
push eax
push 0x5cac08
call fcn.0052b7c0
add esp, 0xc
cmp dword [esp + 0x64], esi
jb 0x4a2968
mov ecx, dword [esp + 0x50]
push ecx
call fcn.00529442
add esp, 4
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
cmp dword [esp + 0x2c], esi
jb 0x4a2987
mov edx, dword [esp + 0x18]
push edx
call fcn.00529442
add esp, 4
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
mov dword [esp + 0x70], 0xffffffff
cmp dword [esp + 0x48], esi
jb 0x4a29ae
mov eax, dword [esp + 0x34]
push eax
call fcn.00529442
add esp, 4
cmp byte [0x5cac08], bl
jne 0x4a2a81
push str.USERNAME
lea ecx, [esp + 0x18]
call fcn.004022a6
push str.Volatile_Environment
lea ecx, [esp + 0x34]
mov dword [esp + 0x74], 3
call fcn.004022a6
push ebx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x58]
push 0x80000001
push eax
mov byte [esp + 0x84], 4
call fcn.005554d0
add esp, 0x14
mov byte [esp + 0x70], 5
cmp dword [eax + 0x18], esi
jb 0x4a2a12
mov eax, dword [eax + 4]
jmp 0x4a2a15
add eax, 4
push 0x200
push eax
push 0x5cac08
call fcn.0052b7c0
add esp, 0xc
cmp dword [esp + 0x64], esi
jb 0x4a2a3b
mov ecx, dword [esp + 0x50]
push ecx
call fcn.00529442
add esp, 4
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
cmp dword [esp + 0x48], esi
jb 0x4a2a5a
mov edx, dword [esp + 0x34]
push edx
call fcn.00529442
add esp, 4
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
mov dword [esp + 0x70], 0xffffffff
cmp dword [esp + 0x2c], esi
jb 0x4a2a81
mov eax, dword [esp + 0x18]
push eax
call fcn.00529442
add esp, 4
mov esi, dword [esp + 0x78]
mov eax, 0x5cac08
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4a2a96
sub eax, edx
push eax
push 0x5cac08
mov ecx, esi
call fcn.00402c81
mov eax, esi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x64
ret