Function at 0x4e6741
Capabilities:
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x868]
sub esp, 0x868
push 0xffffffffffffffff
push 0x65c392
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x758f44]
xor eax, ebp
mov dword [ebp + 0x864], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x870]
lea eax, [ebp + 0x60]
push 0x802
xor ebx, ebx
mov dword [ebp - 0x10], esi
push ebx
push eax
call fcn.0060ecf0
add esp, 0xc
mov dword [ebp - 0x10], 0x401
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x60]
push eax
push 1
call dword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
jne 0x4e684b
push 5
pop ecx
call fcn.00488e9b
test al, al
je 0x4e6989
push ecx
lea ecx, [ebp - 0xbc]
call fcn.004506fd
mov edx, str.DistinguishedName_cannot_be_found.
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0xbc]
call fcn.00451714
sub esp, 0x18
mov ecx, 0x70294c
mov eax, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.0044ff43
sub esp, 0x18
mov byte [ebp - 4], 1
mov eax, esp
mov dword [ebp - 0x20], esp
mov ecx, 0x702934
push eax
call fcn.004671f3
sub esp, 0x18
mov byte [ebp - 4], 2
mov eax, esp
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x18], eax
push eax
call fcn.00450fef
push 0x5b
pop edx
push 5
pop ecx
mov byte [ebp - 4], bl
call fcn.00488e21
add esp, 0x48
lea ecx, [ebp - 0xbc]
call fcn.0044ec83
jmp 0x4e6989
push 2
pop ecx
call fcn.00488e9b
test al, al
je 0x4e6924
push ecx
lea ecx, [ebp - 0xbc]
call fcn.004506fd
mov edx, str.DistinguishedName_for_the_logged_on_account:
mov dword [ebp - 4], 3
lea ecx, [ebp - 0xbc]
call fcn.00451714
mov edi, eax
lea eax, [ebp + 0x60]
mov ecx, eax
mov dword [ebp - 0x1c], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4e688b
sub ecx, edx
lea edx, [ebp - 0x1c]
sar ecx, 1
mov dword [ebp - 0x18], ecx
lea ecx, [ebp + 0x30]
call fcn.0048a47c
mov edx, eax
mov byte [ebp - 4], 4
mov ecx, edi
call fcn.0045195f
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 3
call fcn.004511a7
sub esp, 0x18
mov ecx, 0x70294c
mov eax, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.0044ff43
sub esp, 0x18
mov byte [ebp - 4], 5
mov eax, esp
mov dword [ebp - 0x20], esp
mov ecx, 0x702934
push eax
call fcn.004671f3
sub esp, 0x18
mov byte [ebp - 4], 6
mov eax, esp
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x14], eax
push eax
call fcn.00450fef
push 0x5f
pop edx
push 2
pop ecx
mov byte [ebp - 4], 3
call fcn.00488e21
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xbc]
add esp, 0x48
call fcn.0044ec83
lea eax, [ebp + 0x60]
push eax
lea ecx, [ebp + 0x30]
call fcn.0044eb76
lea eax, [ebp + 0x30]
mov dword [ebp - 4], 7
push eax
lea ecx, [ebp]
call fcn.00525e3b
add eax, 0x18
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp + 0x48]
call fcn.00450b40
lea ecx, [ebp]
call fcn.00526024
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 0xb
call fcn.004510b9
cmp dword [ebp + 0x58], 0
je 0x4e6981
lea edx, [ebp + 0x48]
mov ecx, esi
call fcn.0048a4b7
lea ecx, [ebp + 0x48]
call fcn.004510b9
jmp 0x4e699d
lea ecx, [ebp + 0x48]
call fcn.004510b9
mov edi, esi
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 0xf
mov byte [esi], bl
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x864]
xor ecx, ebp
call fcn.005f9dd5
add ebp, 0x868
leave
ret 4