Function at 0x43a9e0
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 [0x5f3024]
xor eax, ebp
mov dword [esp + 0x268], eax
mov edi, dword [ecx]
mov dword [ecx], 0
test edi, edi
je 0x43aa1f
mov ecx, edi
call fcn.0043b990
push edi
call fcn.0050d52e
add esp, 4
lea edi, [esp + 0x60]
mov dword [edi], 0x101
lea ebx, [esp + 0x66]
push 0x202
push 0xff
push ebx
call fcn.00510dc0
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 0x43aa77
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 0x43aac9
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0043a530
test al, al
je 0x43abb3
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x43aab6
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 0x43abb3
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 0x43abb3
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x43ab47
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 0x43ab3f
cmp dword [ecx + edi + 0x14], 0
jne 0x43ab3f
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 0x43ab3b
cmp dword [esp + 0x14], 0
je 0x43ab3b
mov eax, dword [esp + 0x28]
and dword [eax + edi], esi
mov eax, dword [esp + 0x2c]
inc ebx
add edi, 0x20
cmp ebx, eax
jb 0x43aafe
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 0x43ab95
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 0x43abed
mov eax, dword [esp + 0x20]
test eax, eax
je 0x43aba4
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x43abb3
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor ebx, ebx
mov eax, dword [esp + 0x28]
test eax, eax
je 0x43abc4
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x43abd3
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x268]
xor ecx, ebp
call fcn.0050db32
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.0043a890
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 0x43ac29
mov dword [esp + 0x18], eax
push eax
call fcn.0050d52e
add esp, 4
mov dword [esp + 0xc], edi
cmp edi, 5
mov edi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0xc]
jne 0x43ac8c
push ebx
push esi
call fcn.0043a530
mov dword [esp + 0xc], 5
test al, al
je 0x43ac8c
mov edi, dword [esp + 0x20]
mov edx, esi
mov esi, ebx
lea ebx, [esp + 0x14]
mov ecx, ebx
call fcn.0043a890
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 0x43ac86
mov dword [esp + 0x18], eax
push eax
call fcn.0050d52e
add esp, 4
mov edi, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x43ac9b
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x43acaa
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0xc], 0
sete bl
jne 0x43abb5
cmp byte [ebp + 0x14], 0
jne 0x43abb5
push 0x18
call fcn.0050d4fe
add esp, 4
mov ebx, eax
mov ecx, eax
call fcn.0043b970
mov ecx, ebx
mov ebx, dword [edi]
mov dword [edi], ecx
test ebx, ebx
je 0x43acf1
mov ecx, ebx
call fcn.0043b990
push ebx
call fcn.0050d52e
add esp, 4
mov ecx, dword [edi]
mov ebx, dword [ebp + 0xc]
cmp ecx, esi
je 0x43ad20
cmp byte [ecx + 0xb], 0
movzx eax, byte [esi + 0xb]
js 0x43ad45
test al, al
jns 0x43ad12
push dword [esi + 4]
push dword [esi]
call fcn.00451cf0
jmp 0x43ad20
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 0x43abb5
test al, al
jns 0x43ad57
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov edx, dword [edx]
mov dword [esp + 0x10], edx
jmp 0x43ad5a
and eax, 0x7f
push eax
push dword [esp + 0x14]
call fcn.00451c20
mov edi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0xc]
jmp 0x43ad20