Function at 0x43ffb0
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, 0x270
mov ecx, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
mov eax, dword [0x59d024]
xor eax, ebp
mov dword [esp + 0x268], eax
mov edi, dword [ecx]
mov dword [ecx], 0
test edi, edi
je 0x43ffef
mov ecx, edi
call fcn.00440f60
push edi
call fcn.004eca8e
add esp, 4
lea edi, [esp + 0x60]
mov dword [edi], 0x101
lea ebx, [esp + 0x66]
push 0x202
push 0xff
push ebx
call fcn.004f0310
add esp, 0xc
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov dword [esp + 0x5c], eax
xor ecx, ecx
dec ecx
mov dword [esp + 0x58], ecx
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], eax
cmp byte [esi + 0xb], 0
mov ecx, esi
jns 0x440047
mov ecx, dword [esi]
mov dword [esp + 0x10], esi
lea ebx, [esp + 0x5c]
lea edi, [esp + 0x58]
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 0x440099
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0043fb00
test al, al
je 0x440183
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x440086
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 0x440183
lea eax, [esp + 0x28]
lea ecx, [esp + 0x2c]
push eax
push ecx
push dword [esp + 0x60]
call dword [sym.imp.ADVAPI32.dll_GetExplicitEntriesFromAclW]
test eax, eax
jne 0x440183
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x440117
mov esi, dword [ebp + 0x10]
not esi
xor edi, edi
xor ebx, ebx
mov ecx, dword [esp + 0x28]
cmp dword [ecx + edi + 4], 3
jne 0x44010f
cmp dword [ecx + edi + 0x14], 0
jne 0x44010f
mov dword [esp + 0x14], 0xffffffff
lea eax, [esp + 0x14]
push eax
push dword [ecx + edi + 0x1c]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x44010b
cmp dword [esp + 0x14], 0
je 0x44010b
mov eax, dword [esp + 0x28]
and dword [eax + edi], esi
mov eax, dword [esp + 0x2c]
inc ebx
add edi, 0x20
cmp ebx, eax
jb 0x4400ce
xor edi, edi
inc edi
lea ebx, [esp + 0x30]
push 3
push edi
push dword [ebp + 0x10]
lea eax, [esp + 0x72]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameW]
xor eax, eax
lea ecx, [esp + 0x24]
mov dword [ecx], eax
mov dword [esp + 0x20], eax
push ecx
push eax
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x440165
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x28]
push dword [esp + 0x30]
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
je 0x4401bd
mov eax, dword [esp + 0x20]
test eax, eax
je 0x440174
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x440183
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor ebx, ebx
mov eax, dword [esp + 0x28]
test eax, eax
je 0x440194
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4401a3
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x268]
xor ecx, ebp
call fcn.004ed092
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
mov edi, dword [esp + 0x20]
lea ebx, [esp + 0x14]
mov ecx, ebx
mov esi, dword [ebp + 8]
mov edx, esi
call fcn.0043fe60
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 0x4401f9
mov dword [esp + 0x18], eax
push eax
call fcn.004eca8e
add esp, 4
mov dword [esp + 0xc], edi
cmp edi, 5
mov edi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0xc]
jne 0x44025c
push ebx
push esi
call fcn.0043fb00
mov dword [esp + 0xc], 5
test al, al
je 0x44025c
mov edi, dword [esp + 0x20]
mov edx, esi
mov esi, ebx
lea ebx, [esp + 0x14]
mov ecx, ebx
call fcn.0043fe60
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 + 0xc], eax
mov eax, dword [ebx]
test eax, eax
je 0x440256
mov dword [esp + 0x18], eax
push eax
call fcn.004eca8e
add esp, 4
mov edi, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x44026b
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x44027a
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0xc], 0
sete bl
jne 0x440185
cmp byte [ebp + 0x14], 0
jne 0x440185
push 0x18
call fcn.004eca5e
add esp, 4
mov ebx, eax
mov ecx, eax
call fcn.00440f40
mov ecx, ebx
mov ebx, dword [edi]
mov dword [edi], ecx
test ebx, ebx
je 0x4402c1
mov ecx, ebx
call fcn.00440f60
push ebx
call fcn.004eca8e
add esp, 4
mov ecx, dword [edi]
mov ebx, dword [ebp + 0xc]
cmp ecx, esi
je 0x4402f0
cmp byte [ecx + 0xb], 0
movzx eax, byte [esi + 0xb]
js 0x440315
test al, al
jns 0x4402e2
push dword [esi + 4]
push dword [esi]
call fcn.00469530
jmp 0x4402f0
mov eax, dword [esi + 8]
mov dword [ecx + 8], eax
movq xmm0, qword [esi]
movq qword [ecx], xmm0
mov eax, dword [esp + 0x58]
mov ecx, dword [edi]
mov dword [ecx + 0x10], eax
mov eax, dword [edi]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0x5c]
mov dword [eax + 0x14], edx
mov dword [esp + 0x5c], ecx
mov eax, dword [edi]
mov dword [eax + 0xc], ebx
mov bl, 1
jmp 0x440185
test al, al
jns 0x440327
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov edx, dword [edx]
mov dword [esp + 0x10], edx
jmp 0x44032a
and eax, 0x7f
push eax
push dword [esp + 0x14]
call fcn.00469460
mov edi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0xc]
jmp 0x4402f0