Function at 0x140012fd0
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x290
mov qword [rax - 0x200], 0xfffffffffffffffe
mov qword [rax + 8], rbx
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x1402d68f8]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r12, r8
mov r15, rdx
mov qword [rsp + 0xd0], rdx
cmp qword [rdx + 0x18], 8
jb 0x140013021
mov rcx, qword [rdx]
jmp 0x140013024
mov rcx, r15
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140013068
mov r8, qword [r15 + 0x18]
cmp r8, 8
jb 0x140013046
inc r8
mov rdx, qword [r15]
mov rcx, r15
call fcn.1400037a0
mov qword [r15 + 0x18], 7
xor r14d, r14d
mov qword [r15 + 0x10], r14
cmp qword [r15 + 0x18], 8
jb 0x14001305f
mov r15, qword [r15]
mov word [r15], r14w
jmp 0x14001395b
xor r14d, r14d
mov qword [rsp + 0xd8], r14
mov qword [rsp + 0xe8], r14
mov qword [rsp + 0xe0], r14
mov dword [rsp + 0x110], r14d
cmp qword [r15 + 0x18], 8
jb 0x140013097
mov rcx, qword [r15]
jmp 0x14001309a
mov rcx, r15
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
call qword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
mov rsi, rax
mov qword [rsp + 0x70], rax
cmp rax, 0xffffffffffffffff
jne 0x1400130f1
cmp qword [r15 + 0x18], 8
jb 0x1400130d0
mov r8, qword [r15 + 0x18]
inc r8
mov rdx, qword [r15]
mov rcx, r15
call fcn.1400037a0
mov qword [r15 + 0x18], 7
mov qword [r15 + 0x10], r14
cmp qword [r15 + 0x18], 8
jb 0x1400130e6
mov r15, qword [r15]
mov word [r15], r14w
xor eax, eax
jmp 0x14001395d
lea r9, [rsp + 0x118]
lea r8, str.ClassGUID
lea rdx, str.Version
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
test eax, eax
jne 0x140013123
mov rcx, r15
call fcn.140003580
xor eax, eax
jmp 0x14001395d
mov ecx, 0x100
call fcn.14002bcc0
mov rbx, rax
lea rax, [rsp + 0x110]
mov qword [rsp + 0x20], rax
mov r9d, 0x100
mov r8, rbx
mov edx, 1
lea rcx, [rsp + 0x118]
call qword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1400072b0
cmp qword [rax + 0x18], 8
jb 0x140013170
mov rax, qword [rax]
lea rdx, [rsp + 0xc0]
mov rcx, rax
call qword [sym.imp.ole32.dll_CLSIDFromString]
movaps xmm6, xmmword [rsp + 0xc0]
mov r8, qword [rsp + 0x48]
cmp r8, 8
jb 0x1400131a6
inc r8
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.1400037a0
lea r9, [rsp + 0x118]
xor r8d, r8d
lea rdx, str.Manufacturer
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
test eax, eax
jne 0x1400131dc
mov rcx, r15
call fcn.140003580
xor eax, eax
jmp 0x14001395d
test eax, eax
je 0x14001380a
mov ecx, 0x100
call fcn.14002bcc0
mov rbx, rax
mov dword [rsp + 0xc0], r14d
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
mov r9d, 0x100
mov r8, rbx
mov edx, 1
lea rcx, [rsp + 0x118]
call qword [sym.imp.SETUPAPI.dll_SetupGetMultiSzFieldA]
cmp dword [rsp + 0xc0], 0x100
jbe 0x140013266
mov edx, 1
mov rcx, rbx
call fcn.1400043a0
mov ecx, dword [rsp + 0xc0]
call fcn.14002bcc0
mov rbx, rax
mov qword [rsp + 0x20], r14
mov r9d, dword [rsp + 0xc0]
mov r8, rax
mov edx, 1
lea rcx, [rsp + 0x118]
call qword [sym.imp.SETUPAPI.dll_SetupGetMultiSzFieldA]
test eax, eax
je 0x1400137ef
mov qword [rsp + 0x148], SafeArrayGetDim
mov qword [rsp + 0x140], r14
mov byte [rsp + 0x130], 0
cmp byte [rbx], 0
jne 0x140013294
mov r8, r14
jmp 0x1400132aa
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rbx + r8], 0
jne 0x1400132a0
mov rdx, rbx
lea rcx, [rsp + 0x130]
call fcn.140002540
nop
mov qword [rsp + 0x108], SafeArrayGetDim
mov qword [rsp + 0x100], r14
mov byte [rsp + 0xf0], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0xf0]
call fcn.140002670
nop
lea rdx, [rsp + 0xf0]
cmp qword [rsp + 0x108], 0x10
cmovae rdx, qword [rsp + 0xf0]
lea r9, [rsp + 0x150]
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
test eax, eax
je 0x14001340e
nop word [rax + rax]
xor edx, edx
mov r8d, 0x100
lea rcx, [rsp + 0x170]
call fcn.1401e7f40
mov qword [rsp + 0x20], r14
mov r9d, 0x100
lea r8, [rsp + 0x170]
mov edx, 2
lea rcx, [rsp + 0x150]
call qword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
test eax, eax
je 0x1400133eb
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x30]
call fcn.140005980
nop
mov rdx, rax
lea rcx, [rsp + 0xd8]
call fcn.140014cf0
nop
mov rax, qword [rsp + 0x48]
cmp rax, 0x10
jb 0x1400133eb
inc rax
mov rcx, qword [rsp + 0x30]
cmp rax, 0x1000
jb 0x1400133e6
test cl, 0x1f
je 0x1400133b9
call fcn.1401e9ae4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400133c8
call fcn.1401e9ae4
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400133d7
call fcn.1401e9ae4
int3
cmp rcx, 0x27
jbe 0x1400133e3
call fcn.1401e9ae4
int3
mov rcx, rax
call fcn.14002bcb8
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0x150]
call qword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
jne 0x140013330
jmp 0x140013717
mov qword [rsp + 0x68], SafeArrayGetDim
mov qword [rsp + 0x60], r14
mov byte [rsp + 0x50], 0
cmp byte [rbx], 0
jne 0x14001342b
mov r8, r14
jmp 0x14001343a
or r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rbx + r8], 0
jne 0x140013430
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140002540
mov rax, qword [rsp + 0x60]
inc rax
add rbx, rax
mov rax, qword [rsp + 0x68]
cmp rax, 0x10
jb 0x1400134aa
inc rax
mov rcx, qword [rsp + 0x50]
cmp rax, 0x1000
jb 0x1400134a5
test cl, 0x1f
je 0x140013478
call fcn.1401e9ae4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140013487
call fcn.1401e9ae4
int3
sub rcx, rax
cmp rcx, 8
jae 0x140013496
call fcn.1401e9ae4
int3
cmp rcx, 0x27
jbe 0x1400134a2
call fcn.1401e9ae4
int3
mov rcx, rax
call fcn.14002bcb8
mov qword [rsp + 0x68], SafeArrayGetDim
mov qword [rsp + 0x60], r14
mov byte [rsp + 0x50], 0
mov qword [rsp + 0x90], SafeArrayGetDim
mov qword [rsp + 0x88], r14
mov byte [rsp + 0x78], 0
cmp byte [rbx], 0
jne 0x1400134e0
mov r8, r14
jmp 0x1400134ee
or r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], 0
jne 0x1400134e4
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.140002540
nop
lea r8, [0x14028cad4]
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x30]
call fcn.140008450
nop
lea r8, [rsp + 0x78]
mov rdx, rax
lea rcx, [rsp + 0x98]
call fcn.140008680
mov rdi, rax
lea rax, [rsp + 0xf0]
cmp rax, rdi
je 0x1400135ce
mov rcx, qword [rsp + 0x108]
cmp rcx, 0x10
jb 0x1400135a1
inc rcx
mov rdx, qword [rsp + 0xf0]
cmp rcx, 0x1000
jb 0x140013599
test dl, 0x1f
je 0x14001356c
call fcn.1401e9ae4
int3
mov rax, qword [rdx - 8]
cmp rax, rdx
jb 0x14001357b
call fcn.1401e9ae4
int3
sub rdx, rax
cmp rdx, 8
jae 0x14001358a
call fcn.1401e9ae4
int3
cmp rdx, 0x27
jbe 0x140013596
call fcn.1401e9ae4
int3
mov rdx, rax
mov rcx, rdx
call fcn.14002bcb8
mov qword [rsp + 0x108], SafeArrayGetDim
mov qword [rsp + 0x100], r14
mov byte [rsp + 0xf0], 0
mov rdx, rdi
lea rcx, [rsp + 0xf0]
call fcn.140002a20
nop
mov rax, qword [rsp + 0xb0]
cmp rax, 0x10
jb 0x14001362c
inc rax
mov rcx, qword [rsp + 0x98]
cmp rax, 0x1000
jb 0x140013627
test cl, 0x1f
je 0x1400135fa
call fcn.1401e9ae4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140013609
call fcn.1401e9ae4
int3
sub rcx, rax
cmp rcx, 8
jae 0x140013618
call fcn.1401e9ae4
int3
cmp rcx, 0x27
jbe 0x140013624
call fcn.1401e9ae4
int3
mov rcx, rax
call fcn.14002bcb8
mov qword [rsp + 0xb0], SafeArrayGetDim
mov qword [rsp + 0xa8], r14
mov byte [rsp + 0x98], 0
mov rax, qword [rsp + 0x48]
cmp rax, 0x10
jb 0x1400136a0
inc rax
mov rcx, qword [rsp + 0x30]
cmp rax, 0x1000
jb 0x14001369b
test cl, 0x1f
je 0x14001366e
call fcn.1401e9ae4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14001367d
call fcn.1401e9ae4
int3
sub rcx, rax
cmp rcx, 8
jae 0x14001368c
call fcn.1401e9ae4
int3
cmp rcx, 0x27
jbe 0x140013698
call fcn.1401e9ae4
int3
mov rcx, rax
call fcn.14002bcb8
mov qword [rsp + 0x48], SafeArrayGetDim
mov qword [rsp + 0x40], r14
mov byte [rsp + 0x30], 0
mov rax, qword [rsp + 0x90]
cmp rax, 0x10
jb 0x14001370e
inc rax
mov rcx, qword [rsp + 0x78]
cmp rax, 0x1000
jb 0x140013709
test cl, 0x1f
je 0x1400136dc
call fcn.1401e9ae4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400136eb
call fcn.1401e9ae4
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400136fa
call fcn.1401e9ae4
int3
cmp rcx, 0x27
jbe 0x140013706
call fcn.1401e9ae4
int3
mov rcx, rax
call fcn.14002bcb8
cmp byte [rbx], 0
jne 0x1400132f4
mov rax, qword [rsp + 0x108]
cmp rax, 0x10
jb 0x140013775
inc rax
mov rcx, qword [rsp + 0xf0]
cmp rax, 0x1000
jb 0x140013770
test cl, 0x1f
je 0x140013743
call fcn.1401e9ae4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140013752
call fcn.1401e9ae4
int3
sub rcx, rax
cmp rcx, 8
jae 0x140013761
call fcn.1401e9ae4
int3
cmp rcx, 0x27
jbe 0x14001376d
call fcn.1401e9ae4
int3
mov rcx, rax
call fcn.14002bcb8
mov qword [rsp + 0x108], SafeArrayGetDim
mov qword [rsp + 0x100], r14
mov byte [rsp + 0xf0], 0
mov rax, qword [rsp + 0x148]
cmp rax, 0x10
jb 0x1400137ef
inc rax
mov rcx, qword [rsp + 0x130]
cmp rax, 0x1000
jb 0x1400137ea
test cl, 0x1f
je 0x1400137bd
call fcn.1401e9ae4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400137cc
call fcn.1401e9ae4
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400137db
call fcn.1401e9ae4
int3
cmp rcx, 0x27
jbe 0x1400137e7
call fcn.1401e9ae4
int3
mov rcx, rax
call fcn.14002bcb8
lea rdx, [rsp + 0x118]
lea rcx, [rsp + 0x118]
call qword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
jmp 0x1400131d4
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0x150]
call fcn.140014e50
movdqa xmmword [rsp + 0xc0], xmm6
mov r9, r12
mov r8, rax
call fcn.140013990
test al, al
jne 0x14001389f
mov rsi, qword [rsp + 0xd8]
test rsi, rsi
je 0x140013890
mov rbx, rsi
mov rdi, qword [rsp + 0xe0]
cmp rsi, rdi
je 0x140013865
mov rcx, rbx
call fcn.1400023f0
add rbx, 0x20
cmp rbx, rdi
jne 0x140013854
mov r8, qword [rsp + 0xe8]
sub r8, rsi
sar r8, 5
mov rdx, rsi
call fcn.140003d40
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xd8], xmm0
mov qword [rsp + 0xe8], r14
mov rcx, r15
call fcn.140003580
xor eax, eax
jmp 0x14001395d
test rsi, rsi
je 0x1400138ae
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
nop
mov rdi, qword [rsp + 0xd8]
test rdi, rdi
je 0x1400138f9
mov rbx, rdi
mov rsi, qword [rsp + 0xe0]
cmp rdi, rsi
je 0x1400138e1
nop dword [rax + rax]
mov rcx, rbx
call fcn.1400023f0
add rbx, 0x20
cmp rbx, rsi
jne 0x1400138d0
mov r8, qword [rsp + 0xe8]
sub r8, rdi
sar r8, 5
mov rdx, rdi
call fcn.140003d40
nop
mov rcx, r15
call fcn.140003580
mov eax, 1
jmp 0x14001395d
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1401e30a0
mov rbx, qword [rsp + 0x2c0]
movaps xmm6, xmmword [rsp + 0x280]
add rsp, 0x290
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret