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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r14
lea rbp, [rax - 0x1a8]
sub rsp, 0x290
mov rax, qword [0x1801aed20]
xor rax, rsp
mov qword [rbp + 0x180], rax
xor r12d, r12d
mov ecx, 0x42ea
mov qword [rsp + 0x48], r12
mov esi, r12d
mov edi, r12d
mov r14d, r12d
call fcn.18000c740
test eax, eax
je 0x18000bd92
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x20a
call fcn.1800cf2b0
lea rcx, [rsp + 0x70]
call fcn.18000b514
cmp r12w, word [rsp + 0x70]
je 0x18000bd92
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18000bd92
test al, 0x10
je 0x18000bd92
lea rcx, [rsp + 0x70]
call fcn.1800d9868
lea ecx, [r12 + 0x40]
lea rbx, [rax + 1]
lea rdx, [rbx + rbx]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
jne 0x18000bd72
xor eax, eax
jmp 0x18000c036
lea r8, [rsp + 0x70]
mov rdx, rbx
mov rcx, rdi
call fcn.18000a620
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
jmp 0x18000c036
mov ebx, 0x20
lea rcx, [rsp + 0x50]
mov r8d, ebx
xor edx, edx
call fcn.1800cf2b0
xor ecx, ecx
mov dword [rsp + 0x50], ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, 0x1770
call fcn.18000c740
test eax, eax
jne 0x18000bdcb
lea ecx, [rbx + 0x58]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x18000bd6b
mov rax, qword [0x1801fa2c8]
test rax, rax
jne 0x18000bdf5
xor edx, edx
lea rcx, str.Setupapi.dll
call fcn.18000ab70
mov qword [0x1801fa2c8], rax
test rax, rax
je 0x18000bd6b
cmp qword [0x1801fa290], r12
jne 0x18000be25
lea rdx, str.SetupDiGetDevicePropertyW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801fa290], rax
test rax, rax
je 0x18000bd6b
mov rax, qword [0x1801fa2c8]
cmp qword [0x1801fa230], r12
jne 0x18000be55
lea rdx, str.SetupGetInfDriverStoreLocationW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801fa230], rax
test rax, rax
je 0x18000bd6b
mov rax, qword [0x1801fa2c8]
cmp qword [0x1801fa238], r12
jne 0x18000be7e
lea rdx, [0x180158f28]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801fa238], rax
test rax, rax
je 0x18000bd6b
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x48]
call fcn.18000c878
test eax, eax
je 0x18000bd6b
mov rbx, qword [0x1801fa290]
mov rcx, rbx
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x44], r12d
call qword [fcn.18000e000]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x38], r12d
lea r9, [rsp + 0x44]
mov qword [rsp + 0x30], rax
lea r8, [0x1801590e8]
mov dword [rsp + 0x28], r12d
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], r12
call rbx
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x18000bff6
mov edx, eax
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x18000bff6
mov rbx, qword [0x1801fa290]
mov rcx, rbx
call qword [fcn.18000e000]
mov ecx, dword [rsp + 0x40]
lea r9, [rsp + 0x44]
mov dword [rsp + 0x38], r12d
lea r8, [0x1801590e8]
mov qword [rsp + 0x30], r12
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x20], rsi
call rbx
test eax, eax
je 0x18000bff6
mov rbx, qword [0x1801fa230]
mov rcx, rbx
call qword [fcn.18000e000]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], r12d
mov rcx, rsi
call rbx
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x18000bff6
mov edx, eax
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x18000bff6
mov rbx, qword [0x1801fa230]
mov rcx, rbx
call qword [fcn.18000e000]
mov ecx, dword [rsp + 0x40]
mov r9, rdi
mov qword [rsp + 0x28], r12
xor r8d, r8d
mov dword [rsp + 0x20], ecx
xor edx, edx
mov rcx, rsi
call rbx
test eax, eax
je 0x18000bff6
mov edx, 0x5c
mov rcx, rdi
call fcn.1800cf450
lea rdx, [rax + 2]
test rax, rax
jne 0x18000bfe2
mov rdx, rdi
sub rdx, rdi
mov rcx, rdi
sar rdx, 1
dec rdx
call fcn.18000c3d4
mov r14, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp qword [rsp + 0x48], r12
je 0x18000c026
mov rbx, qword [0x1801fa238]
mov rcx, rbx
call qword [fcn.18000e000]
mov rcx, qword [rsp + 0x48]
call rbx
test r14, r14
je 0x18000c033
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r14
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1800a6240
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r12
pop rbp
ret