Function at 0x18001adb0
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 [0x180145010]
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.18001b8e0
test eax, eax
je 0x18001ae76
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x20a
call fcn.180063de0
lea rcx, [rbp - 0x80]
call fcn.18001a3e0
cmp bx, word [rbp - 0x80]
je 0x18001ae76
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18001ae76
test al, 0x10
je 0x18001ae76
lea rax, [rbp - 0x80]
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], si
jne 0x18001ae37
inc rbx
mov ecx, 0x40
lea rdx, [rbx + rbx]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x18001aeaa
lea r8, [rbp - 0x80]
mov rdx, rbx
mov rcx, rax
call fcn.1800148d0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
jmp 0x18001aeac
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.18001b8e0
test eax, eax
jne 0x18001aed4
lea ecx, [rax + 0x78]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.180034ab0
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 [0x18014c140]
test rax, rax
jne 0x18001aefa
xor edx, edx
lea rcx, str.Setupapi.dll
call fcn.180015530
mov qword [0x18014c140], rax
test rax, rax
je 0x18001aeaa
cmp qword [0x18014c180], rbx
jne 0x18001af26
lea rdx, str.SetupDiGetDevicePropertyW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18014c180], rax
test rax, rax
je 0x18001aeaa
mov rax, qword [0x18014c140]
cmp qword [0x18014c1e8], rbx
jne 0x18001af56
lea rdx, str.SetupGetInfDriverStoreLocationW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18014c1e8], rax
test rax, rax
je 0x18001aeaa
mov rax, qword [0x18014c140]
cmp qword [0x18014c1d8], rbx
jne 0x18001af7f
lea rdx, str.SetupDiDestroyDeviceInfoList
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18014c1d8], rax
test rax, rax
je 0x18001aeaa
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x58]
call fcn.18001bc90
test eax, eax
je 0x18001aeaa
mov dword [rsp + 0x38], ebx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x54]
mov rax, qword [0x18014c180]
lea r8, [0x180119b68]
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.0x18001f0fa.0]
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x18001b0e6
mov edx, eax
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x18001b0e6
mov ecx, dword [rsp + 0x50]
lea r9, [rsp + 0x54]
mov dword [rsp + 0x38], ebx
lea r8, [0x180119b68]
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 [0x18014c180]
call qword [case.0x18001f0fa.0]
test eax, eax
je 0x18001b0e6
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rax, qword [0x18014c1e8]
xor edx, edx
mov rcx, rsi
mov dword [rsp + 0x20], ebx
call qword [case.0x18001f0fa.0]
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x18001b0e6
mov edx, eax
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x18001b0e6
mov ecx, dword [rsp + 0x50]
mov r9, rax
mov rax, qword [0x18014c1e8]
xor r8d, r8d
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call qword [case.0x18001f0fa.0]
test eax, eax
je 0x18001b0e6
mov edx, 0x5c
mov rcx, rdi
call fcn.180063600
lea rdx, [rax + 2]
test rax, rax
jne 0x18001b0d2
mov rdx, rdi
sub rdx, rdi
mov rcx, rdi
sar rdx, 1
dec rdx
call fcn.18001b540
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 0x18001b10d
mov rax, qword [0x18014c1d8]
mov rcx, r14
call qword [case.0x18001f0fa.0]
mov r14, qword [rsp + 0x2b0]
test rbx, rbx
je 0x18001b122
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
jmp 0x18001aeac