Function at 0x140014700
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 [0x1400c7338]
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 0x14001486b
mov ecx, 0x42ea
call fcn.140011180
test eax, eax
je 0x140014837
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x20a
call fcn.140037a40
lea rcx, [rbp - 0x80]
call fcn.14000f3a0
cmp di, word [rbp - 0x80]
je 0x140014837
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140014837
test al, 0x10
je 0x140014837
lea rax, [rbp - 0x80]
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], di
jne 0x1400147a5
inc rbx
mov ecx, 0x40
lea rdx, [rbx + rbx]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x14001486b
lea rcx, [rbx - 1]
mov edx, 0x7ffffffe
cmp rcx, rdx
ja 0x140014822
sub rdx, rbx
lea r8, [rbp - 0x80]
sub r8, rax
mov rcx, rax
lea rax, [rdx + rbx]
test rax, rax
je 0x140014807
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140014807
mov word [rcx], ax
add rcx, 2
sub rbx, 1
jne 0x1400147e7
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 0x14001486d
test rbx, rbx
je 0x14001482a
mov word [rax], di
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
jmp 0x14001486d
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.140011180
test eax, eax
jne 0x140014899
lea ecx, [rax + 0x78]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140035de0
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 [0x1400c9ce0]
test rax, rax
jne 0x1400148bf
xor edx, edx
lea rcx, str.Setupapi.dll
call fcn.1400113c0
mov qword [0x1400c9ce0], rax
test rax, rax
je 0x14001486b
cmp qword [0x1400c9d08], rdi
jne 0x1400148eb
lea rdx, str.SetupDiGetDevicePropertyW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c9d08], rax
test rax, rax
je 0x14001486b
mov rax, qword [0x1400c9ce0]
cmp qword [0x1400c9d18], rdi
jne 0x14001491b
lea rdx, str.SetupGetInfDriverStoreLocationW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c9d18], rax
test rax, rax
je 0x14001486b
mov rax, qword [0x1400c9ce0]
cmp qword [0x1400c9d10], rdi
jne 0x140014944
lea rdx, str.SetupDiDestroyDeviceInfoList
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c9d10], rax
test rax, rax
je 0x14001486b
lea r8, [rsp + 0x60]
xor ecx, ecx
lea rdx, [rsp + 0x58]
call fcn.14000eff0
test eax, eax
je 0x14001486b
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, [0x1400a67a8]
mov rax, qword [0x1400c9d08]
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 [0x1400a2660]
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x140014b61
mov edx, eax
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r15, rax
test rax, rax
je 0x140014b61
mov ecx, dword [rsp + 0x50]
lea r9, [rsp + 0x54]
mov dword [rsp + 0x38], edi
lea r8, [0x1400a67a8]
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 [0x1400c9d08]
call qword [0x1400a2660]
test eax, eax
je 0x140014b61
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rax, qword [0x1400c9d18]
xor edx, edx
mov rcx, r15
mov dword [rsp + 0x20], edi
call qword [0x1400a2660]
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x140014b61
mov edx, eax
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r14, rax
test rax, rax
je 0x140014b61
mov ecx, dword [rsp + 0x50]
mov r9, rax
mov rax, qword [0x1400c9d18]
xor r8d, r8d
mov qword [rsp + 0x28], rdi
xor edx, edx
mov dword [rsp + 0x20], ecx
mov rcx, r15
call qword [0x1400a2660]
test eax, eax
je 0x140014b61
mov edx, 0x5c
mov rcx, r14
call fcn.140038f30
lea rsi, [rax + 2]
test rax, rax
jne 0x140014a9d
mov rsi, r14
sub rsi, r14
sar rsi, 1
sub rsi, 1
js 0x140014b61
lfence
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [r14 + rbx*2], di
jne 0x140014ac0
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 0x140014b5c
lea rax, [rbx - 1]
mov edx, 0x7ffffffe
cmp rax, rdx
ja 0x140014b41
cmp rsi, rdx
ja 0x140014b46
sub rsi, rbx
mov rdx, r14
sub rdx, r8
mov rcx, r8
nop word [rax + rax]
lea rax, [rsi + rbx]
test rax, rax
je 0x140014b2f
movzx eax, word [rdx + rcx]
test ax, ax
je 0x140014b2f
mov word [rcx], ax
add rcx, 2
sub rbx, 1
jne 0x140014b10
test rbx, rbx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], di
jne 0x140014b59
jmp 0x140014b4a
test rbx, rbx
je 0x140014b4a
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 0x140014b88
mov rax, qword [0x1400c9d10]
mov rcx, rbx
call qword [0x1400a2660]
test rdi, rdi
je 0x140014b95
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
jmp 0x14001486d