Function at 0x45840b
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x7aca10]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
push dword [ecx]
push edi
mov eax, dword [edi]
call dword [eax + 0x80]
test eax, eax
js 0x458652
push dword [ebx]
mov eax, dword [edi]
push edi
call dword [eax + 0x88]
test eax, eax
js 0x458652
push dword [esi]
mov eax, dword [edi]
push edi
call dword [eax + 0x48]
test eax, eax
js 0x458652
cmp byte [ebp + 0x18], 0
mov eax, dword [edi]
je 0x45847c
xor ebx, ebx
push ebx
push 0x4fc378
push edi
call dword [eax + 0x78]
jmp 0x4584fe
push 0x2000
push edi
call dword [eax + 0x70]
test eax, eax
js 0x458652
call fcn.00441fe8
push eax
lea ecx, [ebp - 0x6c]
call fcn.00448d9c
mov eax, 0x101
lea ecx, [ebp - 0x6c]
push eax
mov dword [ebp - 0x70], eax
call fcn.00449a22
lea ecx, [ebp - 0x70]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov ebx, eax
lea ecx, [ebp - 0x6c]
neg ebx
push 0xffffffffffffffff
sbb bl, bl
call fcn.00459888
add bl, 1
je 0x4584e3
call fcn.004590eb
mov ecx, dword [ebp - 0x6c]
mov esi, eax
add ecx, 0xfffffff0
call fcn.00449d97
jmp 0x458650
mov eax, dword [edi]
xor ebx, ebx
mov esi, dword [ebp - 0x6c]
push ebx
push esi
push edi
call dword [eax + 0x78]
lea ecx, [esi - 0x10]
mov dword [ebp - 0x6c], eax
call fcn.00449d97
mov eax, dword [ebp - 0x6c]
test eax, eax
js 0x458652
push ebx
push ebx
push 6
call fcn.0045963d
mov ecx, dword [edi]
add esp, 0xc
neg eax
sbb eax, eax
neg eax
not eax
push eax
push edi
call dword [ecx + 0xa8]
test eax, eax
js 0x458652
cmp byte [ebp + 0x1c], 0
je 0x458549
cmp byte [ebp + 0x18], 0
je 0x458549
push edi
call fcn.00458261
mov esi, eax
pop ecx
test esi, esi
js 0x458650
push dword [ebp + 0x20]
push edi
call fcn.004582f1
mov esi, eax
pop ecx
pop ecx
test esi, esi
js 0x458650
push edi
lea ecx, [ebp - 0x68]
call fcn.004574df
mov eax, dword [ebp - 0x68]
test eax, eax
jne 0x458578
mov esi, 0x80004002
jmp 0x458646
mov ecx, dword [eax]
push 1
push ebx
push eax
call dword [ecx + 0x18]
mov esi, eax
test esi, esi
js 0x458643
cmp byte [ebp + 0x18], 0
mov eax, dword [ebp - 0x68]
je 0x45859b
mov esi, ebx
jmp 0x458646
mov ecx, dword [eax]
lea edx, [ebp - 0x74]
push edx
push eax
call dword [ecx + 0x20]
mov esi, eax
test esi, esi
js 0x458643
mov ecx, dword [ebp - 0x68]
test ecx, ecx
je 0x4585bf
mov dword [ebp - 0x68], ebx
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edi, vtable.ATL::CAccessToken.0
mov dword [ebp - 0x80], ebx
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
call fcn.004577be
push 8
lea ecx, [ebp - 0x84]
call fcn.00458b62
test al, al
je 0x458623
push ebx
push 1
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x84]
call fcn.00457375
test al, al
je 0x458623
push ebx
push 0x1f01ff
lea eax, [ebp - 0x64]
push eax
push 1
push dword [ebp - 0x74]
call fcn.00457c55
mov esi, eax
add esp, 0x14
test esi, esi
js 0x45862a
mov esi, ebx
jmp 0x45862a
call fcn.004590eb
mov esi, eax
lea ecx, [ebp - 0x64]
call fcn.00457901
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x84], edi
call fcn.00457f4c
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x458650
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a7ad5
mov esp, ebp
pop ebp
ret