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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x140278eb8]
xor rax, rsp
mov qword [rbp + 0x180], rax
xor ebx, ebx
mov qword [rsp + 0x48], rbx
mov r14d, ebx
mov edi, ebx
test ecx, ecx
jne 0x1400a3676
mov ecx, 0x42ea
call fcn.1400a0220
test eax, eax
je 0x1400a3642
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x20a
call fcn.140187880
lea rcx, [rsp + 0x70]
call fcn.14009e640
cmp bx, word [rsp + 0x70]
je 0x1400a3642
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400a3642
test al, 0x10
je 0x1400a3642
lea rax, [rsp + 0x70]
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], di
jne 0x1400a3602
inc rbx
mov ecx, 0x40
lea rdx, [rbx + rbx]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1400a3676
lea r8, [rsp + 0x70]
mov rdx, rbx
mov rcx, rax
call fcn.1400a15a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
jmp 0x1400a3678
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x50], 0x20
movups xmmword [rsp + 0x60], xmm0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, 0x1770
call fcn.1400a0220
test eax, eax
jne 0x1400a369b
lea ecx, [rax + 0x78]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140157570
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop r14
pop rdi
pop rbp
ret
mov rax, qword [0x14027caa0]
test rax, rax
jne 0x1400a36c1
xor edx, edx
lea rcx, str.Setupapi.dll
call fcn.1400a0450
mov qword [0x14027caa0], rax
test rax, rax
je 0x1400a3676
cmp qword [0x14027cac8], rbx
jne 0x1400a36ed
lea rdx, str.SetupDiGetDevicePropertyW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14027cac8], rax
test rax, rax
je 0x1400a3676
mov rax, qword [0x14027caa0]
cmp qword [0x14027cad8], rbx
jne 0x1400a371d
lea rdx, str.SetupGetInfDriverStoreLocationW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14027cad8], rax
test rax, rax
je 0x1400a3676
mov rax, qword [0x14027caa0]
cmp qword [0x14027cad0], rbx
jne 0x1400a3746
lea rdx, str.SetupDiDestroyDeviceInfoList
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14027cad0], rax
test rax, rax
je 0x1400a3676
lea r8, [rsp + 0x50]
xor ecx, ecx
lea rdx, [rsp + 0x48]
call fcn.14009e2b0
test eax, eax
je 0x1400a3676
mov dword [rsp + 0x38], ebx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x44]
mov qword [rsp + 0x2b8], rsi
lea r8, [0x140210658]
mov rsi, qword [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x28], ebx
mov rcx, rsi
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x44], ebx
call qword [0x14027cac8]
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x1400a3893
mov edx, eax
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r14, rax
test rax, rax
je 0x1400a3893
mov ecx, dword [rsp + 0x40]
lea r9, [rsp + 0x44]
mov dword [rsp + 0x38], ebx
lea r8, [0x140210658]
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x28], ecx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [0x14027cac8]
test eax, eax
je 0x1400a3893
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], ebx
mov rcx, r14
call qword [0x14027cad8]
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x1400a3893
mov edx, eax
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1400a3893
mov ecx, dword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x28], rbx
xor r8d, r8d
mov dword [rsp + 0x20], ecx
xor edx, edx
mov rcx, r14
call qword [0x14027cad8]
test eax, eax
je 0x1400a3893
mov edx, 0x5c
mov rcx, rdi
call fcn.140187c1c
lea rdx, [rax + 2]
test rax, rax
jne 0x1400a387f
mov rdx, rdi
sub rdx, rdi
mov rcx, rdi
sar rdx, 1
dec rdx
call fcn.1400a1170
mov rbx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rsi, rsi
je 0x1400a38b3
mov rcx, rsi
call qword [0x14027cad0]
mov rsi, qword [rsp + 0x2b8]
test rbx, rbx
je 0x1400a38c8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
jmp 0x1400a3678