Function at 0x140012f40
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 [0x1402d48f8]
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 0x140012f91
mov rcx, qword [rdx]
jmp 0x140012f94
mov rcx, r15
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140012fd8
mov r8, qword [r15 + 0x18]
cmp r8, 8
jb 0x140012fb6
inc r8
mov rdx, qword [r15]
mov rcx, r15
call fcn.140003790
mov qword [r15 + 0x18], 7
xor r14d, r14d
mov qword [r15 + 0x10], r14
cmp qword [r15 + 0x18], 8
jb 0x140012fcf
mov r15, qword [r15]
mov word [r15], r14w
jmp 0x1400138cb
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 0x140013007
mov rcx, qword [r15]
jmp 0x14001300a
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 0x140013061
cmp qword [r15 + 0x18], 8
jb 0x140013040
mov r8, qword [r15 + 0x18]
inc r8
mov rdx, qword [r15]
mov rcx, r15
call fcn.140003790
mov qword [r15 + 0x18], 7
mov qword [r15 + 0x10], r14
cmp qword [r15 + 0x18], 8
jb 0x140013056
mov r15, qword [r15]
mov word [r15], r14w
xor eax, eax
jmp 0x1400138cd
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 0x140013093
mov rcx, r15
call fcn.140003560
xor eax, eax
jmp 0x1400138cd
mov ecx, 0x100
call fcn.14002a7c0
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.1400072a0
cmp qword [rax + 0x18], 8
jb 0x1400130e0
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 0x140013116
inc r8
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.140003790
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 0x14001314c
mov rcx, r15
call fcn.140003560
xor eax, eax
jmp 0x1400138cd
test eax, eax
je 0x14001377a
mov ecx, 0x100
call fcn.14002a7c0
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 0x1400131d6
mov edx, 1
mov rcx, rbx
call fcn.140004390
mov ecx, dword [rsp + 0xc0]
call fcn.14002a7c0
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 0x14001375f
mov qword [rsp + 0x148], SafeArrayGetDim
mov qword [rsp + 0x140], r14
mov byte [rsp + 0x130], 0
cmp byte [rbx], 0
jne 0x140013204
mov r8, r14
jmp 0x14001321a
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rbx + r8], 0
jne 0x140013210
mov rdx, rbx
lea rcx, [rsp + 0x130]
call fcn.140002530
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.140002660
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 0x14001337e
nop word [rax + rax]
xor edx, edx
mov r8d, 0x100
lea rcx, [rsp + 0x170]
call fcn.1401e6990
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 0x14001335b
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x30]
call fcn.140005970
nop
mov rdx, rax
lea rcx, [rsp + 0xd8]
call fcn.140014c60
nop
mov rax, qword [rsp + 0x48]
cmp rax, 0x10
jb 0x14001335b
inc rax
mov rcx, qword [rsp + 0x30]
cmp rax, 0x1000
jb 0x140013356
test cl, 0x1f
je 0x140013329
call fcn.1401e8534
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140013338
call fcn.1401e8534
int3
sub rcx, rax
cmp rcx, 8
jae 0x140013347
call fcn.1401e8534
int3
cmp rcx, 0x27
jbe 0x140013353
call fcn.1401e8534
int3
mov rcx, rax
call fcn.14002a7b8
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0x150]
call qword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
jne 0x1400132a0
jmp 0x140013687
mov qword [rsp + 0x68], SafeArrayGetDim
mov qword [rsp + 0x60], r14
mov byte [rsp + 0x50], 0
cmp byte [rbx], 0
jne 0x14001339b
mov r8, r14
jmp 0x1400133aa
or r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rbx + r8], 0
jne 0x1400133a0
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140002530
mov rax, qword [rsp + 0x60]
inc rax
add rbx, rax
mov rax, qword [rsp + 0x68]
cmp rax, 0x10
jb 0x14001341a
inc rax
mov rcx, qword [rsp + 0x50]
cmp rax, 0x1000
jb 0x140013415
test cl, 0x1f
je 0x1400133e8
call fcn.1401e8534
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400133f7
call fcn.1401e8534
int3
sub rcx, rax
cmp rcx, 8
jae 0x140013406
call fcn.1401e8534
int3
cmp rcx, 0x27
jbe 0x140013412
call fcn.1401e8534
int3
mov rcx, rax
call fcn.14002a7b8
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 0x140013450
mov r8, r14
jmp 0x14001345e
or r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], 0
jne 0x140013454
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.140002530
nop
lea r8, [0x14028bab4]
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x30]
call 0x1400083d0
nop
lea r8, [rsp + 0x78]
mov rdx, rax
lea rcx, [rsp + 0x98]
call fcn.140008600
mov rdi, rax
lea rax, [rsp + 0xf0]
cmp rax, rdi
je 0x14001353e
mov rcx, qword [rsp + 0x108]
cmp rcx, 0x10
jb 0x140013511
inc rcx
mov rdx, qword [rsp + 0xf0]
cmp rcx, 0x1000
jb 0x140013509
test dl, 0x1f
je 0x1400134dc
call fcn.1401e8534
int3
mov rax, qword [rdx - 8]
cmp rax, rdx
jb 0x1400134eb
call fcn.1401e8534
int3
sub rdx, rax
cmp rdx, 8
jae 0x1400134fa
call fcn.1401e8534
int3
cmp rdx, 0x27
jbe 0x140013506
call fcn.1401e8534
int3
mov rdx, rax
mov rcx, rdx
call fcn.14002a7b8
mov qword [rsp + 0x108], SafeArrayGetDim
mov qword [rsp + 0x100], r14
mov byte [rsp + 0xf0], 0
mov rdx, rdi
lea rcx, [rsp + 0xf0]
call fcn.140002a10
nop
mov rax, qword [rsp + 0xb0]
cmp rax, 0x10
jb 0x14001359c
inc rax
mov rcx, qword [rsp + 0x98]
cmp rax, 0x1000
jb 0x140013597
test cl, 0x1f
je 0x14001356a
call fcn.1401e8534
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140013579
call fcn.1401e8534
int3
sub rcx, rax
cmp rcx, 8
jae 0x140013588
call fcn.1401e8534
int3
cmp rcx, 0x27
jbe 0x140013594
call fcn.1401e8534
int3
mov rcx, rax
call fcn.14002a7b8
mov qword [rsp + 0xb0], SafeArrayGetDim
mov qword [rsp + 0xa8], r14
mov byte [rsp + 0x98], 0
mov rax, qword [rsp + 0x48]
cmp rax, 0x10
jb 0x140013610
inc rax
mov rcx, qword [rsp + 0x30]
cmp rax, 0x1000
jb 0x14001360b
test cl, 0x1f
je 0x1400135de
call fcn.1401e8534
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400135ed
call fcn.1401e8534
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400135fc
call fcn.1401e8534
int3
cmp rcx, 0x27
jbe 0x140013608
call fcn.1401e8534
int3
mov rcx, rax
call fcn.14002a7b8
mov qword [rsp + 0x48], SafeArrayGetDim
mov qword [rsp + 0x40], r14
mov byte [rsp + 0x30], 0
mov rax, qword [rsp + 0x90]
cmp rax, 0x10
jb 0x14001367e
inc rax
mov rcx, qword [rsp + 0x78]
cmp rax, 0x1000
jb 0x140013679
test cl, 0x1f
je 0x14001364c
call fcn.1401e8534
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14001365b
call fcn.1401e8534
int3
sub rcx, rax
cmp rcx, 8
jae 0x14001366a
call fcn.1401e8534
int3
cmp rcx, 0x27
jbe 0x140013676
call fcn.1401e8534
int3
mov rcx, rax
call fcn.14002a7b8
cmp byte [rbx], 0
jne 0x140013264
mov rax, qword [rsp + 0x108]
cmp rax, 0x10
jb 0x1400136e5
inc rax
mov rcx, qword [rsp + 0xf0]
cmp rax, 0x1000
jb 0x1400136e0
test cl, 0x1f
je 0x1400136b3
call fcn.1401e8534
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400136c2
call fcn.1401e8534
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400136d1
call fcn.1401e8534
int3
cmp rcx, 0x27
jbe 0x1400136dd
call fcn.1401e8534
int3
mov rcx, rax
call fcn.14002a7b8
mov qword [rsp + 0x108], SafeArrayGetDim
mov qword [rsp + 0x100], r14
mov byte [rsp + 0xf0], 0
mov rax, qword [rsp + 0x148]
cmp rax, 0x10
jb 0x14001375f
inc rax
mov rcx, qword [rsp + 0x130]
cmp rax, 0x1000
jb 0x14001375a
test cl, 0x1f
je 0x14001372d
call fcn.1401e8534
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14001373c
call fcn.1401e8534
int3
sub rcx, rax
cmp rcx, 8
jae 0x14001374b
call fcn.1401e8534
int3
cmp rcx, 0x27
jbe 0x140013757
call fcn.1401e8534
int3
mov rcx, rax
call fcn.14002a7b8
lea rdx, [rsp + 0x118]
lea rcx, [rsp + 0x118]
call qword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
jmp 0x140013144
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0x150]
call fcn.140014dc0
movdqa xmmword [rsp + 0xc0], xmm6
mov r9, r12
mov r8, rax
call fcn.140013900
test al, al
jne 0x14001380f
mov rsi, qword [rsp + 0xd8]
test rsi, rsi
je 0x140013800
mov rbx, rsi
mov rdi, qword [rsp + 0xe0]
cmp rsi, rdi
je 0x1400137d5
mov rcx, rbx
call fcn.1400023f0
add rbx, 0x20
cmp rbx, rdi
jne 0x1400137c4
mov r8, qword [rsp + 0xe8]
sub r8, rsi
sar r8, 5
mov rdx, rsi
call fcn.140003d30
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xd8], xmm0
mov qword [rsp + 0xe8], r14
mov rcx, r15
call fcn.140003560
xor eax, eax
jmp 0x1400138cd
test rsi, rsi
je 0x14001381e
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
nop
mov rdi, qword [rsp + 0xd8]
test rdi, rdi
je 0x140013869
mov rbx, rdi
mov rsi, qword [rsp + 0xe0]
cmp rdi, rsi
je 0x140013851
nop dword [rax + rax]
mov rcx, rbx
call fcn.1400023f0
add rbx, 0x20
cmp rbx, rsi
jne 0x140013840
mov r8, qword [rsp + 0xe8]
sub r8, rdi
sar r8, 5
mov rdx, rdi
call fcn.140003d30
nop
mov rcx, r15
call fcn.140003560
mov eax, 1
jmp 0x1400138cd
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1401e1ba0
mov rbx, qword [rsp + 0x2c0]
movaps xmm6, xmmword [rsp + 0x280]
add rsp, 0x290
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret