Function at 0x140014720
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 [0x1400c7368]
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 0x14001488b
mov ecx, 0x42ea
call fcn.1400111a0
test eax, eax
je 0x140014857
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x20a
call fcn.140037a60
lea rcx, [rbp - 0x80]
call fcn.14000f3c0
cmp di, word [rbp - 0x80]
je 0x140014857
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140014857
test al, 0x10
je 0x140014857
lea rax, [rbp - 0x80]
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], di
jne 0x1400147c5
inc rbx
mov ecx, 0x40
lea rdx, [rbx + rbx]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x14001488b
lea rcx, [rbx - 1]
mov edx, 0x7ffffffe
cmp rcx, rdx
ja 0x140014842
sub rdx, rbx
lea r8, [rbp - 0x80]
sub r8, rax
mov rcx, rax
lea rax, [rdx + rbx]
test rax, rax
je 0x140014827
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140014827
mov word [rcx], ax
add rcx, 2
sub rbx, 1
jne 0x140014807
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 0x14001488d
test rbx, rbx
je 0x14001484a
mov word [rax], di
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
jmp 0x14001488d
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.1400111a0
test eax, eax
jne 0x1400148b9
lea ecx, [rax + 0x78]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140035e00
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 [0x1400c9d10]
test rax, rax
jne 0x1400148df
xor edx, edx
lea rcx, str.Setupapi.dll
call fcn.1400113e0
mov qword [0x1400c9d10], rax
test rax, rax
je 0x14001488b
cmp qword [0x1400c9d38], rdi
jne 0x14001490b
lea rdx, str.SetupDiGetDevicePropertyW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c9d38], rax
test rax, rax
je 0x14001488b
mov rax, qword [0x1400c9d10]
cmp qword [0x1400c9d48], rdi
jne 0x14001493b
lea rdx, str.SetupGetInfDriverStoreLocationW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c9d48], rax
test rax, rax
je 0x14001488b
mov rax, qword [0x1400c9d10]
cmp qword [0x1400c9d40], rdi
jne 0x140014964
lea rdx, str.SetupDiDestroyDeviceInfoList
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c9d40], rax
test rax, rax
je 0x14001488b
lea r8, [rsp + 0x60]
xor ecx, ecx
lea rdx, [rsp + 0x58]
call fcn.14000f010
test eax, eax
je 0x14001488b
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, [0x1400a6848]
mov rax, qword [0x1400c9d38]
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 0x140014b81
mov edx, eax
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r15, rax
test rax, rax
je 0x140014b81
mov ecx, dword [rsp + 0x50]
lea r9, [rsp + 0x54]
mov dword [rsp + 0x38], edi
lea r8, [0x1400a6848]
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 [0x1400c9d38]
call qword [0x1400a2660]
test eax, eax
je 0x140014b81
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rax, qword [0x1400c9d48]
xor edx, edx
mov rcx, r15
mov dword [rsp + 0x20], edi
call qword [0x1400a2660]
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x140014b81
mov edx, eax
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r14, rax
test rax, rax
je 0x140014b81
mov ecx, dword [rsp + 0x50]
mov r9, rax
mov rax, qword [0x1400c9d48]
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 0x140014b81
mov edx, 0x5c
mov rcx, r14
call fcn.140038f50
lea rsi, [rax + 2]
test rax, rax
jne 0x140014abd
mov rsi, r14
sub rsi, r14
sar rsi, 1
sub rsi, 1
js 0x140014b81
lfence
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [r14 + rbx*2], di
jne 0x140014ae0
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 0x140014b7c
lea rax, [rbx - 1]
mov edx, 0x7ffffffe
cmp rax, rdx
ja 0x140014b61
cmp rsi, rdx
ja 0x140014b66
sub rsi, rbx
mov rdx, r14
sub rdx, r8
mov rcx, r8
nop word [rax + rax]
lea rax, [rsi + rbx]
test rax, rax
je 0x140014b4f
movzx eax, word [rdx + rcx]
test ax, ax
je 0x140014b4f
mov word [rcx], ax
add rcx, 2
sub rbx, 1
jne 0x140014b30
test rbx, rbx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], di
jne 0x140014b79
jmp 0x140014b6a
test rbx, rbx
je 0x140014b6a
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 0x140014ba8
mov rax, qword [0x1400c9d40]
mov rcx, rbx
call qword [0x1400a2660]
test rdi, rdi
je 0x140014bb5
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
jmp 0x14001488d