Function at 0x1004c385
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10071d9e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xc4
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x1004c6da
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
lea eax, [ebp + 0x30]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 0x2f43
mov dword [ebp - 0x88], 0x10008d28
cmp dword [ebp - 0x3c], 0x314e
jle 0x1004c49f
and dword [ebp - 0x18], 0
jmp 0x1004c423
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x78cd
jge 0x1004c495
and dword [ebp - 0x20], 0
jmp 0x1004c439
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x3932
jge 0x1004c493
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
cdq
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], edx
push dword [ebp - 0xb4]
push dword [ebp - 0xb8]
lea ecx, [ebp - 0xd4]
call fcn.1000a633
pop ecx
pop ecx
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xac]
call fcn.10022371
push eax
call fcn.1005b12f
pop ecx
lea ecx, [ebp - 0xd4]
call fcn.10022332
jmp 0x1004c432
jmp 0x1004c41c
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov eax, dword [ebp - 0x9c]
movzx eax, byte [eax]
test eax, eax
je 0x1004c4ce
push 0
push 0
push 0
push 0xbda
push 0x1439
push 0
push 0xee5
call dword [sym.imp.GDI32.dll_GetTextExtentExPointA]
jmp 0x1004c696
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x34], 0x6bfd
mov dword [ebp - 0x80], 0x10008d78
cmp dword [ebp - 0x34], 0x6d67
jle 0x1004c5ce
and dword [ebp - 0x24], 0
jmp 0x1004c567
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x4553
jge 0x1004c5ce
and dword [ebp - 0x14], 0
jmp 0x1004c57d
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x26af
jge 0x1004c5cc
and dword [ebp - 0x1c], 0
jmp 0x1004c593
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x1023
jge 0x1004c5ca
mov eax, dword [ebp - 0x14]
xor eax, dword [ebp - 0x1c]
or eax, dword [ebp - 0x24]
cdq
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], edx
push dword [ebp - 0xa4]
push dword [ebp - 0xa8]
mov ecx, 0x10618e18
call fcn.1002244f
jmp 0x1004c58c
jmp 0x1004c576
jmp 0x1004c560
push 3
mov ecx, dword [ebp - 0x28]
call fcn.1002273f
cmp dword [eax], 0
je 0x1004c637
mov eax, dword [ebp - 0x58]
mov dword [eax], 0xfffffffb
push 0
mov ecx, dword [ebp - 0x60]
call fcn.1002273f
mov dword [eax], 0xfffffffb
push 0
mov ecx, dword [ebp - 0x68]
call fcn.1002273f
mov ecx, dword [ebp - 0x30]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
mov dword [ebp - 0xbc], eax
push 0
mov ecx, dword [ebp - 0x28]
call fcn.1002273f
mov esi, eax
push 1
mov ecx, dword [ebp - 0x28]
call fcn.1002273f
mov eax, dword [eax]
cmp eax, dword [esi]
jg 0x1004c637
mov dword [ebp - 0x38], 1
jmp 0x1004c63b
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x38]
mov dword [eax], ecx
mov eax, dword [ebp - 0x70]
mov dword [eax], 0x9dcee34e
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x2c]
mov ecx, dword [ecx]
mov dword [eax], ecx
and dword [ebp - 4], 0
cmp dword [ebp - 0x34], 0x687a
jge 0x1004c670
mov edx, dword [ebp - 0x80]
mov ecx, 0x10618e18
call fcn.1002579c
jmp 0x1004c68c
or dword [ebp - 4], 0xffffffff
jmp 0x1004c696
mov dword [ebp - 4], 2
cmp dword [ebp - 0x3c], 0x2c2f
jge 0x1004c6b2
push dword [ebp - 0x88]
call fcn.1005b12f
pop ecx
jmp 0x1004c6ce
or dword [ebp - 4], 0xffffffff
jmp 0x1004c6d8
jmp 0x1004c70c
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x90], eax
push 0
push 0x42b6
push 0x122e
push dword [ebp - 0x90]
push dword [ebp - 0x98]
call fcn.10048595
add esp, 0x14
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret