Function at 0x1400a926c
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x14017d140]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor r14d, r14d
mov rdi, rdx
mov qword [rsp + 0x50], rdx
mov rbx, rcx
test rcx, rcx
jne 0x1400a92ba
lea r8, [0x1400095a8]
lea rcx, [0x140009550]
mov edx, 0x17a
call fcn.1400a8be8
mov qword [rdi], r14
mov rbp, r14
mov r13, r14
mov rcx, qword [0x14017d3a8]
lea r12, [0x14017d3a8]
cmp rcx, r12
je 0x1400a92fa
test byte [rcx + 0x1c], 1
je 0x1400a92fa
cmp byte [rcx + 0x19], 4
jb 0x1400a92fa
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400095c0]
mov edx, reloc.ole32.dll_CoRevokeClassObject
mov r9, rbx
call fcn.14001ec40
or rsi, 0xffffffffffffffff
mov rax, rsi
inc rax
cmp word [rbx + rax*2], r14w
jne 0x1400a9301
cmp rax, 2
jae 0x1400a931b
mov ebx, 0x80070057
jmp 0x1400a96d2
lea rdx, [0x1400095b4]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_wcsstr]
cmp rax, rbx
jne 0x1400a9311
lea rcx, [rbx + 4]
mov rax, rsi
inc rax
cmp word [rcx + rax*2], r14w
jne 0x1400a9337
cmp rax, 2
jb 0x1400a9311
lea rdx, [0x140001800]
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
je 0x1400a9311
mov rcx, rsi
inc rcx
cmp word [rax + rcx*2 + 2], r14w
jne 0x1400a935c
cmp rcx, 2
jb 0x1400a9311
lea rdx, [0x140001800]
lea rcx, [rax + 2]
call qword [sym.imp.msvcrt.dll_wcsstr]
mov rdi, rax
test rax, rax
je 0x1400a9311
sub rdi, rbx
sar rdi, 1
inc rdi
lea r15, [rdi + rdi]
mov rcx, r15
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov r14, rax
test rax, rax
jne 0x1400a93ae
mov ebx, 0x8007000e
jmp 0x1400a96d2
mov r8, r15
xor edx, edx
mov rcx, r14
call sub.msvcrt.dll_memset
lea r9, [rdi - 1]
mov r8, rbx
mov rdx, rdi
mov rcx, r14
call fcn.1400a8cbc
xor r15d, r15d
mov ebx, eax
test eax, eax
js 0x1400a96bb
mov rcx, qword [0x14017d3a8]
cmp rcx, r12
je 0x1400a9409
test byte [rcx + 0x1c], 1
je 0x1400a9409
cmp byte [rcx + 0x19], 4
jb 0x1400a9409
mov rcx, qword [rcx + 0x10]
lea edx, [r15 + 0x12]
lea r8, [0x1400095c0]
mov r9, r14
call fcn.14001ec40
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov edx, 0x80000000
lea r8d, [r9 + 7]
mov rcx, r14
mov dword [rsp + 0x28], reloc.ADVAPI32.dll_TraceEvent
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, rsi
jne 0x1400a949b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x1400a96bb
test byte [rcx + 0x1c], 1
je 0x1400a96bb
cmp byte [rcx + 0x19], 2
jb 0x1400a96bb
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400095c0]
mov edx, reloc.ole32.dll_CoDisconnectObject
mov r9, r14
mov dword [rsp + 0x20], ebx
call fcn.14001ecbc
jmp 0x1400a96bb
xor eax, eax
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x40]
lea r9d, [rax + 8]
mov rcx, r12
mov dword [rsp + 0x20], UnregisterTraceGuids
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
jns 0x1400a9521
cmp eax, 0x80000005
je 0x1400a9521
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x1400a96a4
test byte [rcx + 0x1c], 1
je 0x1400a96a4
cmp byte [rcx + 0x19], 2
jb 0x1400a96a4
mov edx, 0x14
jmp 0x1400a95be
mov ebx, dword [rsp + 0x58]
add ebx, 8
mov ecx, ebx
mov edi, ebx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov r13, rax
test rax, rax
je 0x1400a9636
mov r8d, edi
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
xor r11d, r11d
lea rdx, [rsp + 0x40]
mov r9d, ebx
mov r8, r13
mov rcx, r12
mov qword [rsp + 0x40], r11
mov qword [rsp + 0x48], r11
mov dword [rsp + 0x20], UnregisterTraceGuids
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
jns 0x1400a95d6
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x1400a96a4
test byte [rcx + 0x1c], 1
je 0x1400a96a4
cmp byte [rcx + 0x19], 2
jb 0x1400a96a4
mov edx, 0x15
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400095c0]
mov r9d, ebx
call fcn.14001de24
jmp 0x1400a96a4
lea r15, [r13 + 4]
xor eax, eax
lea rdi, [r15 + 2]
inc rsi
cmp word [rdi + rsi*2], ax
jne 0x1400a95e0
cmp rsi, 2
jb 0x1400a9607
lea rdx, [0x140001800]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcsstr]
mov rbx, rax
test rax, rax
jne 0x1400a9611
mov ebx, 0x80070057
jmp 0x1400a96a4
sub rbx, r15
sub rbx, 2
sar rbx, 1
inc rbx
lea rsi, [rbx + rbx]
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
xor r15d, r15d
mov rbp, rax
test rax, rax
jne 0x1400a963d
mov ebx, 0x8007000e
jmp 0x1400a96a4
mov r8, rsi
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
lea r9, [rbx - 1]
mov r8, rdi
mov rdx, rbx
mov rcx, rbp
call fcn.1400a8cbc
mov ebx, eax
test eax, eax
js 0x1400a96a4
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x1400a9699
test byte [rcx + 0x1c], 1
je 0x1400a9699
cmp byte [rcx + 0x19], 4
jb 0x1400a9699
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400095c0]
mov edx, 0x16
mov r9, rbp
call fcn.14001ec40
mov rax, qword [rsp + 0x50]
mov qword [rax], rbp
mov rbp, r15
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbp, rbp
je 0x1400a96bb
mov rcx, rbp
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test r13, r13
je 0x1400a96d2
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140168920
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret