Function at 0x49edb4
Capabilities:
Get session user name

Disassembly:
mov eax, 0x50300c
call fcn.004c13fc
sub esp, 0x6c
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x49f03f
push 2
pop ebx
mov dword [esi + 0x54], ebx
mov eax, dword [eax]
cmp dword [eax - 8], edi
jne 0x49ee11
and byte [ebp - 0x78], 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x18], 0x50
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x49ee11
mov eax, dword [ebp - 0x18]
mov ecx, dword [esi + 4]
and byte [ebp + eax - 0x79], 0
lea eax, [ebp - 0x78]
push eax
call fcn.004daf9b
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x10]
cmp ecx, 1
jne 0x49ef14
mov ecx, dword [0x542d10]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax]
mov dword [ebp - 4], edi
cmp dword [ecx - 8], edi
je 0x49eeb9
push dword [eax + 4]
lea eax, [ebp - 0x10]
push ecx
push str._s:_s
push eax
call fcn.004d261f
mov eax, dword [ebp - 0x10]
add esp, 0x10
lea ecx, [ebp - 0x10]
mov eax, dword [eax - 8]
push edi
push edi
push eax
push edi
mov dword [ebp - 0x1c], eax
call fcn.004db242
push eax
call fcn.004a8cb0
mov ebx, eax
add esp, 0x10
cmp ebx, edi
jle 0x49eeb9
lea eax, [ebx + 1]
push eax
call fcn.004db3f6
mov dword [ebp - 0x14], eax
lea eax, [ebx + 1]
push eax
push edi
push dword [ebp - 0x14]
call fcn.004c1810
add esp, 0x10
lea ecx, [ebp - 0x10]
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
push edi
call fcn.004db242
push eax
call fcn.004a8cb0
add esp, 0x10
lea ecx, [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.004daf9b
push dword [ebp - 0x14]
call fcn.004db41f
pop ecx
mov eax, dword [0x542d10]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 8]
push dword [ebp - 0x10]
mov byte [ebp - 4], 1
movsx ecx, word [eax + 0x10]
push dword [eax + 4]
push ecx
push dword [eax + 4]
lea eax, [ebp - 0x18]
push 0xef55
push eax
call fcn.004d2632
mov eax, dword [ebp - 0x18]
add esp, 0x18
mov ecx, dword [eax - 8]
push edi
push ecx
push eax
mov ecx, esi
call fcn.0049e2c9
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004dae12
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004dae12
jmp 0x49f03f
cmp ecx, edi
jne 0x49eff2
mov eax, dword [esi + 8]
and byte [ebp - 0xe], 0
and byte [ebp - 0xf], 0
and byte [ebp - 0x10], 0
mov byte [ebp - 0xd], 1
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x10]
push ecx
push eax
call fcn.0049f04e
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 4]
push dword [eax]
call fcn.004c2130
mov ebx, eax
add esp, 0xc
inc ebx
cmp dword [ebp - 0x18], edi
lea eax, [ebx + 8]
mov dword [ebp - 0x14], eax
je 0x49ef6a
mov ecx, dword [esi + 8]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx - 8]
lea eax, [eax + ecx + 1]
mov dword [ebp - 0x14], eax
push eax
call fcn.004db3f6
push dword [ebp - 0x14]
mov edi, eax
push 0
push edi
call fcn.004c1810
mov byte [edi], 4
mov byte [edi + 1], 1
mov eax, dword [esi + 8]
mov ecx, 0x100
push 4
movsx eax, word [eax + 0x10]
cdq
idiv ecx
mov byte [edi + 2], al
mov eax, dword [esi + 8]
movsx eax, word [eax + 0x10]
cdq
idiv ecx
lea eax, [ebp - 0x10]
push eax
lea eax, [edi + 4]
push eax
mov byte [edi + 3], dl
call fcn.004c14d0
mov eax, dword [esi + 4]
push ebx
push dword [eax]
lea eax, [edi + 8]
push eax
call fcn.004c14d0
add esp, 0x28
cmp dword [ebp - 0x18], 0
je 0x49efdc
mov eax, dword [esi + 8]
push dword [eax + 4]
lea eax, [edi + ebx + 8]
push eax
call fcn.004c23e0
pop ecx
pop ecx
push 0
mov ecx, esi
push dword [ebp - 0x14]
push edi
call fcn.0049e2c9
push edi
call fcn.004db41f
pop ecx
jmp 0x49f03f
cmp ecx, ebx
jne 0x49f03f
mov eax, dword [eax]
xor ebx, ebx
push 0xa
push edi
cmp dword [eax - 8], edi
lea eax, [ebp - 0x28]
push eax
setne bl
call fcn.004c1810
add esp, 0xc
cmp ebx, edi
setne al
inc eax
cmp ebx, edi
mov byte [ebp - 0x27], al
push edi
sete al
dec eax
mov ecx, esi
and eax, 2
mov byte [ebp - 0x28], 5
mov byte [ebp - 0x26], al
xor eax, eax
cmp ebx, edi
setne al
add eax, 3
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0049e2c9
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret