Function at 0x1004b622
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 8], 0xffffffff
xor ebx, ebx
mov dword [ebp - 0x14], 0xe8e56f9b
mov esi, ecx
push 2
mov dword [ebp - 0x14], 0xfffffff7
mov dword [ebp - 0xc], ebx
pop edi
jmp 0x1004b65a
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0x1c], 0xffffffff
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], edi
jl 0x1004b64c
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], ebx
cmp dword [ebp - 8], 1
jg 0x1004b73b
mov eax, 0x8a2b8ea2
mov dword [ebp - 0xc], 0xffffffff
xor ecx, ecx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 8]
mov eax, dword [ebp + eax*4 - 0x1c]
mov eax, dword [ebp - 8]
mov eax, dword [ebp + eax*4 - 0x1c]
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x1c], 1
mov dword [ebp - 0x54], 0xfffffffb
mov eax, dword [ebp - 0xc]
cmp eax, 0x6b86
setne cl
xor edx, edx
imul ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp eax, ecx
mov eax, dword [ebp - 0x54]
setne dl
xor ecx, ecx
cmp edx, eax
setl cl
imul eax, ecx, 0x86a6
inc eax
cmp eax, 0xffffffff
jne 0x1004b706
mov eax, dword [ebp - 8]
cmp dword [ebp + eax*4 - 0x1c], ebx
je 0x1004b706
cmp dword [ebp - 0xc], ebx
je 0x1004b706
xor edx, edx
inc edx
jmp 0x1004b708
mov edx, ebx
mov eax, dword [ebp - 8]
cmp edx, 0xfff6
mov ecx, dword [ebp + eax*4 - 0x1c]
sbb eax, eax
neg eax
add ecx, eax
xor eax, eax
cmp ecx, 0x324015fb
setg al
mov dword [ebp - 0x14], eax
mov eax, 0x8a2b8ea2
inc dword [ebp - 8]
cmp dword [ebp - 8], 1
jle 0x1004b677
push 1
push esi
call fcn.10045312
mov dword [ebp - 0x10], ebx
pop ecx
mov dword [ebp - 0x14], 0xffffffff
pop ecx
mov dword [ebp - 8], ebx
jmp 0x1004b75e
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x30], ebx
inc dword [ebp - 8]
cmp dword [ebp - 8], 3
jl 0x1004b754
mov dword [ebp - 8], ebx
jmp 0x1004b777
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x24], 4
inc dword [ebp - 8]
cmp dword [ebp - 8], edi
jl 0x1004b769
mov dword [ebp - 0x10], edi
cmp dword [ebp - 0x10], ebx
jl 0x1004b8cd
mov dword [ebp - 8], 0xa9ef72d4
mov dword [ebp - 0x14], 6
mov dword [ebp - 0x14], 0x1be360de
mov dword [ebp - 0x14], 0xf39c
mov dword [ebp - 0x14], 0x881dda8d
mov dword [ebp - 0x14], 0xef2f37fc
mov dword [ebp - 0x14], 0x2e4a6b2c
mov dword [ebp - 0xc], 1
mov dword [ebp - 0xc], ebx
jmp 0x1004b7d3
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0x48], 0x717b38e5
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 3
jl 0x1004b7c5
mov dword [ebp - 8], edi
cmp dword [ebp - 8], ebx
jl 0x1004b8c4
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], edi
mov dword [ebp - 0xc], 0xcff29c21
mov eax, dword [ebp - 8]
mov eax, dword [ebp + eax*4 - 0x30]
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 8]
mov eax, dword [ebp - 8]
neg ecx
sbb ecx, ecx
inc ecx
mov eax, dword [ebp + eax*4 - 0x30]
sub eax, ecx
xor ecx, ecx
add eax, dword [ebp - 8]
cmp eax, 0x7c7
setne cl
sub ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
sub edx, ecx
neg edx
sbb edx, edx
xor ecx, ecx
inc edx
cmp edx, eax
mov eax, dword [ebp - 8]
setle cl
mov eax, dword [ebp + eax*4 - 0x30]
sub eax, ecx
je 0x1004b899
mov dword [ebp - 0xc], 0x74579933
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x14], 0xbbd4856c
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x14], 0xfffffff9
mov dword [ebp - 0xc], ebx
jmp 0x1004b876
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0x68], 0x7bdd4840
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 4
jl 0x1004b868
dec dword [ebp - 0x14]
mov dword [ebp - 0xc], 0xfffffffa
jmp 0x1004b891
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x44], eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0xb
jle 0x1004b888
jmp 0x1004b89e
cmp dword [ebp - 0x20], ebx
jne 0x1004b8c4
mov dword [ebp - 0xc], edi
cmp dword [ebp - 0xc], ebx
jl 0x1004b8bb
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x1004b8b6
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
dec dword [ebp - 0xc]
jns 0x1004b8a6
dec dword [ebp - 8]
jns 0x1004b7e5
dec dword [ebp - 0x10]
jns 0x1004b788
push esi
call fcn.1002fbac
pop ecx
mov edi, eax
mov dword [ebp - 0xc], ebx
jmp 0x1004b8e9
mov ecx, dword [ebp - 0xc]
mov dword [ebp + ecx*4 - 0x3c], 0x75b57fd5
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 3
jl 0x1004b8db
mov dword [ebp - 0x3c], ebx
cmp dword [ebp - 0x3c], 0x1b
jge 0x1004b922
mov esi, dword [sym.imp.USER32.dll_GetDesktopWindow]
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x1004b919
call esi
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call esi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
inc dword [ebp - 0x3c]
cmp dword [ebp - 0x3c], 0x1b
jl 0x1004b8fe
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret