Function at 0x45ed40
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57f56b
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x5cb074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push dword [edx]
mov eax, dword [edi]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push edi
call dword [eax + 0x80]
test eax, eax
js 0x45efd9
push dword [esi]
mov eax, dword [edi]
push edi
call dword [eax + 0x88]
test eax, eax
js 0x45efd9
push dword [ebx]
mov eax, dword [edi]
push edi
call dword [eax + 0x48]
test eax, eax
js 0x45efd9
mov bh, byte [ebp + 0x10]
mov eax, dword [edi]
test bh, bh
je 0x45edc7
push 0
push 0x5b4d04
push edi
call dword [eax + 0x78]
mov esi, eax
jmp 0x45ee54
push 0x2000
push edi
call dword [eax + 0x70]
test eax, eax
js 0x45efd9
lea ecx, [ebp - 0x78]
call fcn.0045f1c0
push ecx
push 0x101
lea eax, [ebp - 0x78]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x7c], 0x101
call fcn.0045f270
lea ecx, [ebp - 0x7c]
push ecx
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
lea ecx, [ebp - 0x9c]
sete bl
call fcn.0045f1f0
test bl, bl
je 0x45ee38
call fcn.0045e270
lea ecx, [ebp - 0x78]
mov esi, eax
call fcn.0044dc00
jmp 0x45efd7
mov eax, dword [edi]
push 0
push dword [ebp - 0x78]
push edi
call dword [eax + 0x78]
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.0044dc00
test esi, esi
js 0x45efd7
push ecx
call fcn.0044c0a0
mov ecx, dword [edi]
add esp, 4
neg eax
sbb eax, eax
neg eax
not eax
push eax
push edi
call dword [ecx + 0xa8]
test eax, eax
js 0x45efd9
mov dword [ebp - 0x7c], 0
cmp byte [ebp + 0x14], 0
mov dword [ebp - 4], 1
je 0x45eea4
mov ecx, edi
call fcn.0045eab0
mov esi, eax
test esi, esi
js 0x45efd7
mov dl, byte [ebp + 0x18]
mov ecx, edi
call fcn.0045eb80
mov esi, eax
test esi, esi
js 0x45efd7
mov eax, dword [edi]
lea ecx, [ebp - 0x74]
push ecx
push 0x5b9e9c
push edi
mov dword [ebp - 0x74], 0
call dword [eax]
mov ecx, dword [ebp - 0x74]
xor edx, edx
test eax, eax
cmovs ecx, edx
mov dword [ebp - 0x74], ecx
mov byte [ebp - 4], 2
test ecx, ecx
jne 0x45eeec
mov esi, 0x80004002
jmp 0x45efc9
mov eax, dword [ecx]
push 1
push 0
push ecx
call dword [eax + 0x18]
mov esi, eax
test esi, esi
js 0x45efc6
test bh, bh
je 0x45ef0b
xor esi, esi
jmp 0x45efc6
mov eax, dword [ebp - 0x74]
lea edx, [ebp - 0x80]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov ecx, dword [ebp - 0x74]
mov esi, eax
test esi, esi
js 0x45efc9
test ecx, ecx
je 0x45ef36
mov dword [ebp - 0x74], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x90], 0x5b9e0c
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
lea ecx, [ebp - 0x70]
call fcn.0045cf10
push ecx
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 4
call fcn.0045e140
test al, al
je 0x45efac
sub esp, 8
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x90]
push eax
call fcn.0045f4d0
test al, al
je 0x45efac
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x70]
sub esp, 8
push eax
call fcn.0045e290
mov esi, eax
add esp, 0xc
test esi, esi
js 0x45efb3
xor esi, esi
jmp 0x45efb3
call fcn.0045e270
mov esi, eax
lea ecx, [ebp - 0x70]
call fcn.0045cfe0
lea ecx, [ebp - 0x90]
call fcn.0045e0e0
mov ecx, dword [ebp - 0x74]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x45efd7
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
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 - 0x10]
xor ecx, ebp
call fcn.0049fa97
mov esp, ebp
pop ebp
ret