Function at 0x14001b390
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
push r14
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x140106b98]
xor rax, rsp
mov qword [rbp + 0x190], rax
xor edi, edi
mov qword [rsp + 0x58], rdi
mov r15d, edi
mov r14d, edi
test ecx, ecx
jne 0x14001b4fb
mov ecx, 0x42ea
call fcn.1400186f0
test eax, eax
je 0x14001b4c7
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x20a
call fcn.14006d5a0
lea rcx, [rbp - 0x80]
call fcn.140016940
cmp di, word [rbp - 0x80]
je 0x14001b4c7
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001b4c7
test al, 0x10
je 0x14001b4c7
lea rax, [rbp - 0x80]
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], di
jne 0x14001b435
inc rbx
mov ecx, 0x40
lea rdx, [rbx + rbx]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x14001b4fb
lea rcx, [rbx - 1]
mov edx, 0x7ffffffe
cmp rcx, rdx
ja 0x14001b4b2
sub rdx, rbx
lea r8, [rbp - 0x80]
sub r8, rax
mov rcx, rax
lea rax, [rdx + rbx]
test rax, rax
je 0x14001b497
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14001b497
mov word [rcx], ax
add rcx, 2
sub rbx, 1
jne 0x14001b477
lea rax, [rcx - 2]
test rbx, rbx
cmovne rax, rcx
xor ecx, ecx
mov word [rax], di
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
jmp 0x14001b4fd
test rbx, rbx
je 0x14001b4ba
mov word [rax], di
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
jmp 0x14001b4fd
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.1400186f0
test eax, eax
jne 0x14001b529
lea ecx, [rax + 0x78]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14006b950
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rax, qword [0x140109210]
test rax, rax
jne 0x14001b54f
xor edx, edx
lea rcx, str.Setupapi.dll
call fcn.140018930
mov qword [0x140109210], rax
test rax, rax
je 0x14001b4fb
cmp qword [0x140109238], rdi
jne 0x14001b57b
lea rdx, str.SetupDiGetDevicePropertyW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140109238], rax
test rax, rax
je 0x14001b4fb
mov rax, qword [0x140109210]
cmp qword [0x140109248], rdi
jne 0x14001b5ab
lea rdx, str.SetupGetInfDriverStoreLocationW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140109248], rax
test rax, rax
je 0x14001b4fb
mov rax, qword [0x140109210]
cmp qword [0x140109240], rdi
jne 0x14001b5d4
lea rdx, str.SetupDiDestroyDeviceInfoList
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140109240], rax
test rax, rax
je 0x14001b4fb
lea r8, [rsp + 0x60]
xor ecx, ecx
lea rdx, [rsp + 0x58]
call fcn.140016590
test eax, eax
je 0x14001b4fb
mov rbx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x38], edi
lea r9, [rsp + 0x54]
mov qword [rsp + 0x30], rax
lea r8, [0x1400db5b8]
mov rax, qword [0x140109238]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x28], edi
mov rcx, rbx
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x54], edi
call qword [0x1400d7670]
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x14001b7f1
mov edx, eax
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r15, rax
test rax, rax
je 0x14001b7f1
mov ecx, dword [rsp + 0x50]
lea r9, [rsp + 0x54]
mov dword [rsp + 0x38], edi
lea r8, [0x1400db5b8]
mov qword [rsp + 0x30], rdi
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x28], ecx
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov rax, qword [0x140109238]
call qword [0x1400d7670]
test eax, eax
je 0x14001b7f1
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rax, qword [0x140109248]
xor edx, edx
mov rcx, r15
mov dword [rsp + 0x20], edi
call qword [0x1400d7670]
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x14001b7f1
mov edx, eax
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r14, rax
test rax, rax
je 0x14001b7f1
mov ecx, dword [rsp + 0x50]
mov r9, rax
mov rax, qword [0x140109248]
xor r8d, r8d
mov qword [rsp + 0x28], rdi
xor edx, edx
mov dword [rsp + 0x20], ecx
mov rcx, r15
call qword [0x1400d7670]
test eax, eax
je 0x14001b7f1
mov edx, 0x5c
mov rcx, r14
call fcn.14006f318
lea rsi, [rax + 2]
test rax, rax
jne 0x14001b72d
mov rsi, r14
sub rsi, r14
sar rsi, 1
sub rsi, 1
js 0x14001b7f1
lfence
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [r14 + rbx*2], di
jne 0x14001b750
cmp rsi, rbx
mov ecx, 0x40
cmovb rbx, rsi
inc rbx
lea rdx, [rbx + rbx]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r8, rax
test rax, rax
je 0x14001b7ec
lea rax, [rbx - 1]
mov edx, 0x7ffffffe
cmp rax, rdx
ja 0x14001b7d1
cmp rsi, rdx
ja 0x14001b7d6
sub rsi, rbx
mov rdx, r14
sub rdx, r8
mov rcx, r8
nop word [rax + rax]
lea rax, [rsi + rbx]
test rax, rax
je 0x14001b7bf
movzx eax, word [rdx + rcx]
test ax, ax
je 0x14001b7bf
mov word [rcx], ax
add rcx, 2
sub rbx, 1
jne 0x14001b7a0
test rbx, rbx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], di
jne 0x14001b7e9
jmp 0x14001b7da
test rbx, rbx
je 0x14001b7da
mov word [r8], di
lfence
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r8, rdi
mov rdi, r8
mov rbx, qword [rsp + 0x58]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbx, rbx
je 0x14001b818
mov rax, qword [0x140109240]
mov rcx, rbx
call qword [0x1400d7670]
test rdi, rdi
je 0x14001b825
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
jmp 0x14001b4fd