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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x180144010]
xor rax, rsp
mov qword [rbp + 0x190], rax
xor ebx, ebx
mov ecx, 0x42ea
mov qword [rsp + 0x58], rbx
mov esi, ebx
mov edi, ebx
call fcn.18001b0e0
test eax, eax
je 0x18001a676
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x20a
call fcn.180064850
lea rcx, [rbp - 0x80]
call fcn.180019bf0
cmp bx, word [rbp - 0x80]
je 0x18001a676
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18001a676
test al, 0x10
je 0x18001a676
lea rax, [rbp - 0x80]
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], si
jne 0x18001a637
inc rbx
mov ecx, 0x40
lea rdx, [rbx + rbx]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x18001a6aa
lea r8, [rbp - 0x80]
mov rdx, rbx
mov rcx, rax
call fcn.180014130
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
jmp 0x18001a6ac
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x60], 0x20
movups xmmword [rsp + 0x70], xmm0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, 0x1770
call fcn.18001b0e0
test eax, eax
jne 0x18001a6d4
lea ecx, [rax + 0x78]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1800341c0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov rax, qword [0x18014b588]
test rax, rax
jne 0x18001a6f8
lea rcx, str.Setupapi.dll
call fcn.180014d90
mov qword [0x18014b588], rax
test rax, rax
je 0x18001a6aa
cmp qword [0x18014b5c8], rbx
jne 0x18001a724
lea rdx, str.SetupDiGetDevicePropertyW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18014b5c8], rax
test rax, rax
je 0x18001a6aa
mov rax, qword [0x18014b588]
cmp qword [0x18014b630], rbx
jne 0x18001a754
lea rdx, str.SetupGetInfDriverStoreLocationW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18014b630], rax
test rax, rax
je 0x18001a6aa
mov rax, qword [0x18014b588]
cmp qword [0x18014b620], rbx
jne 0x18001a77d
lea rdx, str.SetupDiDestroyDeviceInfoList
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18014b620], rax
test rax, rax
je 0x18001a6aa
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x58]
call fcn.18001b490
test eax, eax
je 0x18001a6aa
mov dword [rsp + 0x38], ebx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x54]
mov rax, qword [0x18014b5c8]
lea r8, [0x180118da8]
mov qword [rsp + 0x2b0], r14
lea rdx, [rsp + 0x60]
mov r14, qword [rsp + 0x58]
mov dword [rsp + 0x28], ebx
mov rcx, r14
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x54], ebx
call qword [case.0x18001dfea.0]
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x18001a8e4
mov edx, eax
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x18001a8e4
mov ecx, dword [rsp + 0x50]
lea r9, [rsp + 0x54]
mov dword [rsp + 0x38], ebx
lea r8, [0x180118da8]
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x28], ecx
mov rcx, r14
mov qword [rsp + 0x20], rax
mov rax, qword [0x18014b5c8]
call qword [case.0x18001dfea.0]
test eax, eax
je 0x18001a8e4
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rax, qword [0x18014b630]
xor edx, edx
mov rcx, rsi
mov dword [rsp + 0x20], ebx
call qword [case.0x18001dfea.0]
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x18001a8e4
mov edx, eax
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x18001a8e4
mov ecx, dword [rsp + 0x50]
mov r9, rax
mov rax, qword [0x18014b630]
xor r8d, r8d
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call qword [case.0x18001dfea.0]
test eax, eax
je 0x18001a8e4
mov edx, 0x5c
mov rcx, rdi
call fcn.180063fac
lea rdx, [rax + 2]
test rax, rax
jne 0x18001a8d0
mov rdx, rdi
sub rdx, rdi
mov rcx, rdi
sar rdx, 1
dec rdx
call fcn.18001ad40
mov rbx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r14, r14
je 0x18001a90b
mov rax, qword [0x18014b620]
mov rcx, r14
call qword [case.0x18001dfea.0]
mov r14, qword [rsp + 0x2b0]
test rbx, rbx
je 0x18001a920
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
jmp 0x18001a6ac