Function at 0x410ad0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 1
push eax
mov dword [ebp - 4], 0xffffffff
xor edi, edi
call fcn.00403a60
add esp, 8
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x410cd6
test al, 0x10
je 0x410cd6
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea ecx, [ebp - 4]
push ecx
push 1
push 8
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
push eax
call ebx
test eax, eax
jne 0x410bc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x410b3e
mov bl, 1
jmp 0x410cd8
cmp eax, 0x3f0
je 0x410b5d
push eax
push 0x436b28
push 0x436aec
call fcn.00406ce0
add esp, 0xc
jmp 0x410cd6
push 2
call dword [sym.imp.ADVAPI32.dll_ImpersonateSelf]
test eax, eax
jne 0x410b87
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x436b28
push 0x436ab8
call fcn.00406ce0
add esp, 0xc
jmp 0x410cd6
lea edx, [ebp - 4]
push edx
push 1
push 8
call esi
push eax
call ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test esi, esi
jne 0x410bc0
push ebx
push 0x436b28
push 0x436a7c
call fcn.00406ce0
add esp, 0xc
jmp 0x410cd6
mov esi, dword [ebp - 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
lea eax, [ebp - 8]
push eax
push 0
push 0
push 7
push esi
call ebx
test eax, eax
jne 0x410c19
lea ebx, [ebx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x410ca8
mov ecx, dword [ebp - 8]
push ecx
push edi
call dword [sym.imp.MSVCR80.dll_realloc]
mov edi, eax
add esp, 8
test edi, edi
je 0x410cc4
mov eax, dword [ebp - 8]
lea edx, [ebp - 8]
push edx
push eax
push edi
push 7
push esi
call ebx
test eax, eax
je 0x410be0
cmp dword [edi + 8], 0
jne 0x410c2c
cmp dword [edi + 4], 0
jne 0x410c2c
mov bl, 1
jmp 0x410cd8
lea ecx, [ebp - 0x2c]
mov eax, 0x120116
push ecx
lea edx, [ebp - 0xc]
push edx
mov dword [ebp - 0x2c], 0x120089
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0x1200a0
mov dword [ebp - 0x20], 0x1201bf
mov dword [ebp - 0xc], eax
call dword [sym.imp.ADVAPI32.dll_MapGenericMask]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x14]
push edx
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x2c]
push ecx
push edx
push eax
push edi
mov dword [ebp - 0x14], 0x14
call dword [sym.imp.ADVAPI32.dll_AccessCheck]
test eax, eax
jne 0x410ca3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x436b28
push 0x436a44
call fcn.00406ce0
add esp, 0xc
jmp 0x410cd6
mov bl, byte [ebp - 0x18]
jmp 0x410cd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x436b28
push 0x4369e8
call fcn.00406ce0
add esp, 0x10
jmp 0x410cd6
push 0x436b28
push 0x4369cc
call fcn.00406ce0
add esp, 8
xor bl, bl
mov ecx, dword [ebp - 0x10]
mov esi, dword [sym.imp.MSVCR80.dll_free]
push ecx
call esi
mov eax, dword [ebp - 4]
add esp, 4
cmp eax, 0xffffffff
je 0x410cf6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret