Function at 0x4dd1d0
Capabilities:
Get session user name
Get token membership

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x260
mov ecx, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
mov eax, dword [0x7aa024]
xor eax, ebp
mov dword [esp + 0x258], eax
mov edi, dword [ecx]
mov dword [ecx], 0
test edi, edi
je 0x4dd20f
mov ecx, edi
call fcn.004de140
push edi
call fcn.0064cd6e
add esp, 4
lea edi, [esp + 0x50]
mov dword [edi], 0x101
lea ebx, [esp + 0x56]
push 0x202
push 0xff
push ebx
call fcn.00650600
add esp, 0xc
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov dword [esp + 0x4c], eax
xor ecx, ecx
dec ecx
mov dword [esp + 0x48], ecx
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
cmp byte [esi + 0xb], 0
mov ecx, esi
jns 0x4dd267
mov ecx, dword [esi]
lea ebx, [esp + 0x4c]
lea edi, [esp + 0x48]
push ebx
push eax
push edi
push eax
push eax
push 4
mov esi, dword [ebp + 0xc]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
cmp eax, 5
jne 0x4dd2b5
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.004dcd50
test al, al
je 0x4dd3a8
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x4dd2a2
mov eax, dword [esi]
xor ecx, ecx
push ebx
push ecx
push edi
push ecx
push ecx
push 4
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
jne 0x4dd3a8
lea eax, [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
push ecx
push dword [esp + 0x50]
call dword [sym.imp.ADVAPI32.dll_GetExplicitEntriesFromAclW]
test eax, eax
jne 0x4dd3a8
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4dd333
mov esi, dword [ebp + 0x10]
not esi
xor edi, edi
xor ebx, ebx
mov ecx, dword [esp + 0x18]
cmp dword [ecx + edi + 4], 3
jne 0x4dd32b
cmp dword [ecx + edi + 0x14], 0
jne 0x4dd32b
mov dword [esp + 4], 0xffffffff
lea eax, [esp + 4]
push eax
push dword [ecx + edi + 0x1c]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x4dd327
cmp dword [esp + 4], 0
je 0x4dd327
mov eax, dword [esp + 0x18]
and dword [eax + edi], esi
mov eax, dword [esp + 0x1c]
inc ebx
add edi, 0x20
cmp ebx, eax
jb 0x4dd2ea
xor edi, edi
inc edi
lea ebx, [esp + 0x20]
push 3
push edi
push dword [ebp + 0x10]
lea eax, [esp + 0x62]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameW]
xor eax, eax
lea ecx, [esp + 0x14]
mov dword [ecx], eax
mov dword [esp + 0x10], eax
push ecx
push eax
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
je 0x4dd371
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4dd399
push eax
jmp 0x4dd393
lea edi, [esp + 0x10]
push edi
push dword [esp + 0x18]
push dword [esp + 0x20]
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
mov edi, dword [edi]
test eax, eax
je 0x4dd3e2
test edi, edi
je 0x4dd399
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4dd3a8
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor ebx, ebx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4dd3b9
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4dd3c8
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x258]
xor ecx, ebp
call fcn.0064d372
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
lea ebx, [esp + 4]
mov ecx, ebx
mov esi, dword [ebp + 8]
mov edx, esi
call fcn.004dd0b0
xor eax, eax
push eax
push edi
push eax
push eax
push 4
push dword [ebp + 0xc]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov edi, eax
mov eax, dword [ebx]
test eax, eax
je 0x4dd41a
mov dword [esp + 8], eax
push eax
call fcn.0064cd6e
add esp, 4
mov dword [esp], edi
cmp edi, 5
mov edi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0xc]
jne 0x4dd47a
push ebx
push esi
call fcn.004dcd50
mov dword [esp], 5
test al, al
je 0x4dd47a
mov edi, dword [esp + 0x10]
mov edx, esi
mov esi, ebx
lea ebx, [esp + 4]
mov ecx, ebx
call fcn.004dd0b0
xor eax, eax
push eax
push edi
push eax
push eax
push 4
push esi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov dword [esp], eax
mov eax, dword [ebx]
test eax, eax
je 0x4dd474
mov dword [esp + 8], eax
push eax
call fcn.0064cd6e
add esp, 4
mov edi, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4dd489
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4dd498
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp], 0
sete bl
jne 0x4dd3aa
cmp byte [ebp + 0x14], 0
jne 0x4dd3aa
push 0x18
call fcn.0064cd3e
add esp, 4
mov ebx, eax
mov ecx, eax
call fcn.004de120
mov ecx, ebx
mov ebx, dword [edi]
mov dword [edi], ecx
test ebx, ebx
je 0x4dd4de
mov ecx, ebx
call fcn.004de140
push ebx
call fcn.0064cd6e
add esp, 4
mov ecx, dword [edi]
mov ebx, dword [ebp + 0xc]
cmp ecx, esi
je 0x4dd50d
cmp byte [ecx + 0xb], 0
movzx eax, byte [esi + 0xb]
js 0x4dd532
test al, al
jns 0x4dd4ff
push dword [esi + 4]
push dword [esi]
call fcn.0053bd50
jmp 0x4dd50d
mov eax, dword [esi + 8]
mov dword [ecx + 8], eax
movq xmm0, qword [esi]
movq qword [ecx], xmm0
mov eax, dword [esp + 0x48]
mov ecx, dword [edi]
mov dword [ecx + 0x10], eax
mov eax, dword [edi]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0x4c]
mov dword [eax + 0x14], edx
mov dword [esp + 0x4c], ecx
mov eax, dword [edi]
mov dword [eax + 0xc], ebx
mov bl, 1
jmp 0x4dd3aa
test al, al
jns 0x4dd53b
mov eax, dword [esi + 4]
mov esi, dword [esi]
push eax
push esi
call fcn.0053bc40
jmp 0x4dd50d