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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [0x57f040]
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 0x429da4
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x429c1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp edi, 0xffffffff
je 0x429dbc
call fcn.004b67c0
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, edi
cmp ebx, 1
jne 0x429cc1
call fcn.004a43f0
cmp eax, 3
lea ebx, [ebp - 0x1c]
jl 0x429cc4
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 dword [ebp - 0x28], edx
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x429d87
cmp dword [ebp - 0x18], 3
jne 0x429cbc
lea eax, [ebp - 0x24]
mov dword [eax], 0xffffffff
push esi
push 4
push eax
push 0x13
mov edi, dword [ebp - 0x28]
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x429d87
mov esi, dword [ebp - 0x24]
cmp edi, esi
je 0x429cbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
lea eax, [edi + 1]
cmp eax, 2
jae 0x429dca
lea eax, [esi + 1]
cmp eax, 2
jb 0x429cb3
call fcn.004b67c0
mov dword [ebp - 0x28], esi
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp - 0x28]
jmp 0x429cc4
lea ebx, [ebp - 0x1c]
push ebx
push 1
mov dword [ebp - 0x28], esi
push esi
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
xor esi, esi
test eax, eax
je 0x429d87
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x429d01
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp edi, 0xffffffff
je 0x429dc3
call fcn.004b67c0
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, edi
xor ebx, ebx
lea eax, [ebp - 0x18]
mov dword [eax], ebx
mov word [eax + 4], 0x500
lea ecx, [ebp - 0x24]
mov dword [ecx], 0xffffffff
sub esp, 0x2c
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], ebx
xorps xmm0, xmm0
movups xmmword [esp + 0x14], xmm0
movaps xmm0, xmmword [0x564a80]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x429d6f
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
push esi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x429d5f
mov dword [ebp - 0x20], 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x20], 1
sete bl
lea eax, [esi + 1]
cmp eax, 2
jb 0x429d89
call fcn.004b67c0
push esi
call fcn.004a4410
add esp, 4
jmp 0x429d89
xor ebx, ebx
mov esi, dword [ebp - 0x28]
lea eax, [esi + 1]
cmp eax, 2
jb 0x429da6
call fcn.004b67c0
push esi
call fcn.004a4410
add esp, 4
jmp 0x429da6
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e71b0
mov eax, ebx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret 4
xor edi, edi
jmp 0x429c16
xor edi, edi
jmp 0x429cf8
call fcn.004b67c0
push dword [ebp - 0x28]
call fcn.004a4410
add esp, 4
mov dword [ebp - 0x28], 0
jmp 0x429ca3