Function at 0x4dc900
Capabilities:
Check if file exists
Get token membership

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [0x7aa024]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x1c]
mov dword [esi], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push esi
push 0xa
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor esi, esi
test eax, eax
je 0x4dcab6
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x4dc95f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp edi, 0xffffffff
je 0x4dcb0f
call fcn.005e42e0
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, edi
cmp ebx, 1
jne 0x4dc9f9
call fcn.005f29b0
cmp eax, 3
jl 0x4dc9f9
xor eax, eax
dec eax
lea ecx, [ebp - 0x18]
mov dword [ecx], eax
mov edx, esi
lea esi, [ebp - 0x20]
mov dword [esi], eax
push esi
push 4
push ecx
push 0x12
mov edi, edx
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x4dcb05
cmp dword [ebp - 0x18], 3
jne 0x4dc9f7
lea eax, [ebp - 0x24]
mov dword [eax], 0xffffffff
push esi
push 4
push eax
push 0x13
mov esi, edi
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x4dcb0b
mov ebx, esi
mov esi, dword [ebp - 0x24]
cmp ebx, esi
je 0x4dc9f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebx + 1]
cmp ecx, 2
jae 0x4dcb1d
lea ecx, [esi + 1]
cmp ecx, 2
jb 0x4dc9f0
mov edi, eax
call fcn.005e42e0
mov eax, edi
mov edi, esi
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, edi
lea eax, [ebp - 0x1c]
push eax
push 1
mov dword [ebp - 0x28], esi
push esi
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
xor esi, esi
test eax, eax
je 0x4dcaba
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x4dca39
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp edi, 0xffffffff
je 0x4dcb16
call fcn.005e42e0
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, edi
movzx ecx, word [0x74ad44]
lea eax, [ebp - 0x18]
mov word [eax + 4], cx
mov ecx, dword [0x74ad40]
mov dword [eax], ecx
lea ecx, [ebp - 0x24]
mov dword [ecx], 0xffffffff
sub esp, 0x2c
mov dword [esp + 0x28], ecx
xorps xmm0, xmm0
movups xmmword [esp + 0x14], xmm0
movaps xmm0, xmmword [0x74acf0]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4dcabe
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
push esi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x4dcaa4
mov dword [ebp - 0x20], 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x20], 1
sete bl
jmp 0x4dcac0
xor ebx, ebx
jmp 0x4dcaef
xor ebx, ebx
jmp 0x4dcad6
xor ebx, ebx
lea eax, [esi + 1]
cmp eax, 2
jb 0x4dcad6
call fcn.005e42e0
push esi
call fcn.005f2830
add esp, 4
mov esi, dword [ebp - 0x28]
lea eax, [esi + 1]
cmp eax, 2
jb 0x4dcaef
call fcn.005e42e0
push esi
call fcn.005f2830
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064d372
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret 4
xor ebx, ebx
mov esi, edi
jmp 0x4dcad9
xor ebx, ebx
jmp 0x4dcad9
xor edi, edi
jmp 0x4dc956
xor edi, edi
jmp 0x4dca30
mov ebx, eax
call fcn.005e42e0
push edi
call fcn.005f2830
mov eax, ebx
add esp, 4
xor edi, edi
jmp 0x4dc9dd