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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x90
mov esi, edx
mov r15, rcx
xor r13d, r13d
mov edi, r13d
mov qword [rax - 0x48], r13
mov qword [rax - 0x70], r13
mov dword [rax - 0x54], 0x14
mov dword [rax - 0x58], r13d
mov dword [rax + 8], r13d
mov r14d, r13d
mov dword [rax - 0x78], r13d
test rcx, rcx
je 0x14000766e
test edx, 0xfffffff9
jne 0x14000766e
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14000748b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 1
mov dword [rsp + 0x68], ebx
mov dword [rsp + 0x6c], eax
call fcn.140015cc0
mov rbx, rax
lea rcx, [rsp + 0x68]
call fcn.14000d070
mov dword [rbx], eax
jmp 0x140007679
test esi, esi
jne 0x140007496
xor eax, eax
jmp 0x14000767c
test al, 0x10
jne 0x1400074a8
test al, 1
je 0x1400074a8
test sil, 2
jne 0x14000762b
mov dword [rsp + 0xd0], r13d
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 7]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_GetFileSecurityA]
mov edx, dword [rsp + 0xd0]
mov ebx, 1
mov ecx, ebx
call fcn.140015d30
mov rdi, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x14000762b
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xd0]
mov r8, rdi
lea edx, [rbx + 6]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_GetFileSecurityA]
test eax, eax
je 0x14000762b
lea ecx, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_ImpersonateSelf]
test eax, eax
jne 0x140007539
mov dword [rsp + 0xc0], ebx
jmp 0x14000762b
mov r14d, ebx
mov dword [rsp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
lea r9, [rsp + 0x48]
xor r8d, r8d
lea edx, [r8 + 0xa]
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x14000756b
mov dword [rsp + 0xc0], ebx
jmp 0x14000762b
mov dword [rsp + 0xd8], r13d
test sil, 4
mov eax, r13d
cmovne eax, ebx
mov dword [rsp + 0xd8], eax
test sil, 2
je 0x140007594
or eax, 2
mov dword [rsp + 0xd8], eax
mov qword [rsp + 0x50], 0xffffffffffffffff
mov qword [rsp + 0x58], 0xffffffffffffffff
mov dword [rsp + 0x50], 0x120089
mov qword [rsp + 0x54], 0x120116
mov dword [rsp + 0x5c], 0x12019f
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0xd8]
call qword [sym.imp.ADVAPI32.dll_MapGenericMask]
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
mov r8d, dword [rsp + 0xd8]
mov rdx, qword [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_AccessCheck]
mov ecx, dword [rsp + 0xc0]
test eax, eax
cmove ecx, ebx
mov dword [rsp + 0xc0], ecx
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000763b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x140007648
mov rcx, rdi
call fcn.140015978
test r14d, r14d
je 0x140007653
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
cmp dword [rsp + 0xc0], 0
jne 0x14000748f
call fcn.140015cc0
mov dword [rax], 0xd
jmp 0x140007679
call fcn.140015cc0
mov dword [rax], 0x16
or eax, 0xffffffff
mov rbx, qword [rsp + 0xc8]
add rsp, 0x90
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret