Function at 0x140014290
Capabilities:
Check if file exists

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x100
mov qword [rbp - 0x31], 0xfffffffffffffffe
mov qword [rsp + 0x150], rbx
mov rax, qword [0x1402d68f8]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rdi, rdx
mov qword [rbp - 0x41], rcx
mov qword [rbp - 0x29], rdx
cmp qword [rdx + 0x18], 8
jb 0x1400142dd
mov rcx, qword [rdx]
jmp 0x1400142e0
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140014309
mov r8, qword [rdi + 0x18]
cmp r8, 8
jb 0x140014302
inc r8
mov rdx, qword [rdi]
mov rcx, rdi
call fcn.1400037a0
xor esi, esi
jmp 0x1400148d4
xor esi, esi
mov qword [rbp - 1], rsi
mov qword [rbp + 0xf], rsi
mov qword [rbp + 7], rsi
mov qword [rbp - 9], 7
mov qword [rbp - 0x11], rsi
mov word [rbp - 0x21], si
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x21]
call fcn.140003830
lea r8, [rbp - 1]
lea rdx, [rbp - 0x21]
call fcn.140012fd0
test eax, eax
jne 0x14001437e
mov r15, qword [rbp - 1]
test r15, r15
je 0x1400148bc
mov rbx, r15
mov r14, qword [rbp + 7]
cmp r15, r14
je 0x1400148a8
mov rcx, rbx
call fcn.1400023f0
add rbx, 0x20
cmp rbx, r14
jne 0x140014368
jmp 0x1400148a8
mov dword [rbp - 0x59], esi
mov r13, rsi
mov r12, qword [rbp + 7]
mov rax, r12
mov r15, qword [rbp - 1]
sub rax, r15
sar rax, 5
mov qword [rbp - 0x39], rax
test rax, rax
je 0x1400147bf
mov r14, r15
nop word [rax + rax]
mov dword [rbp + 0x17], esi
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rsi
mov word [rsp + 0x40], si
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140003830
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x79]
call fcn.14001f1f0
mov rbx, rax
cmp rdi, rax
je 0x140014433
cmp qword [rdi + 0x18], 8
jb 0x140014409
mov r8, qword [rdi + 0x18]
inc r8
mov rdx, qword [rdi]
mov rcx, rdi
call fcn.1400037a0
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rsi
cmp qword [rdi + 0x18], 8
jb 0x140014421
mov rax, qword [rdi]
jmp 0x140014424
mov rax, rdi
mov word [rax], si
mov rdx, rbx
mov rcx, rdi
call fcn.140003cb0
nop
mov r8, qword [rbp - 0x61]
cmp r8, 8
jb 0x14001444d
inc r8
mov rdx, qword [rbp - 0x79]
lea rcx, [rbp - 0x79]
call fcn.1400037a0
cmp qword [r14 + 0x18], 0x10
jb 0x140014459
mov rdx, qword [r14]
jmp 0x14001445c
mov rdx, r14
lea rcx, [rbp - 0x21]
call fcn.1400072b0
nop
lea rbx, [rbp - 0x21]
cmp qword [rbp - 9], 8
cmovae rbx, qword [rbp - 0x21]
mov rcx, rdi
call fcn.140003570
mov r8, rax
lea rax, [rbp + 0x17]
mov qword [rsp + 0x20], rax
mov r9d, 1
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.newdev.dll_UpdateDriverForPlugAndPlayDevicesW]
test eax, eax
jne 0x14001455d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe000020b
jne 0x14001451b
lea rax, [rsp + 0x40]
mov qword [rbp - 0x51], rax
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rsi
mov word [rsp + 0x40], si
mov r8d, 0x26
lea rdx, str._Install_failed:_ERROR_NO_SUCH_DEVINST
lea rcx, [rsp + 0x40]
call fcn.140003650
nop
mov qword [rbp - 0x61], 7
mov qword [rbp - 0x69], rsi
mov word [rbp - 0x79], si
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x21]
lea rcx, [rbp - 0x79]
call fcn.140003830
nop
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x79]
call fcn.1400206e0
nop
jmp 0x1400145c7
mov qword [rbp - 0x61], 7
mov qword [rbp - 0x69], rsi
mov word [rbp - 0x79], si
lea rcx, [rbp - 0x79]
cmp eax, 2
je 0x14001460c
test eax, eax
lea rax, [rbp - 0x79]
mov qword [rbp - 0x49], rax
jne 0x1400145f7
mov r8d, 0x38
lea rdx, str._Install_failed:_The_current_driver_in_system_is_better.
call fcn.140003650
nop
jmp 0x14001458c
lea rax, [rbp - 0x79]
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x61], 7
mov qword [rbp - 0x69], rsi
mov word [rbp - 0x79], si
mov r8d, 0x12
lea rdx, str._Install_completed
lea rcx, [rbp - 0x79]
call fcn.140003650
nop
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rsi
mov word [rsp + 0x40], si
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x21]
lea rcx, [rsp + 0x40]
call fcn.140003830
nop
lea rdx, [rbp - 0x79]
lea rcx, [rsp + 0x40]
call fcn.1400206e0
nop
inc dword [rbp - 0x59]
mov r8, qword [rbp - 9]
cmp r8, 8
jb 0x1400145e1
inc r8
mov rdx, qword [rbp - 0x21]
lea rcx, [rbp - 0x21]
call fcn.1400037a0
inc r13
add r14, 0x20
cmp r13, qword [rbp - 0x39]
jae 0x140014679
jmp 0x1400143b0
mov r8d, 0x1d
lea rdx, str._Install_failed:_other_error
call fcn.140003650
nop
jmp 0x140014627
lea rax, [rbp - 0x79]
mov qword [rbp - 0x49], rax
mov r8d, 0x25
lea rdx, str._Install_failed:_ERROR_FILE_NOT_FOUND
call fcn.140003650
nop
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rsi
mov word [rsp + 0x40], si
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x21]
lea rcx, [rsp + 0x40]
call fcn.140003830
nop
lea rdx, [rbp - 0x79]
lea rcx, [rsp + 0x40]
call fcn.1400206e0
nop
mov r8, qword [rbp - 9]
cmp r8, 8
jb 0x140014679
inc r8
mov rdx, qword [rbp - 0x21]
lea rcx, [rbp - 0x21]
call fcn.1400037a0
mov eax, dword [rbp - 0x59]
test eax, eax
jle 0x1400147bf
lea rax, [rbp - 0x79]
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x61], 7
mov qword [rbp - 0x69], rsi
mov word [rbp - 0x79], si
mov r8d, 0x15
lea rdx, str._Install_Successfully
lea rcx, [rbp - 0x79]
call fcn.140003650
nop
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rsi
mov word [rsp + 0x40], si
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140003830
nop
lea rdx, [rbp - 0x79]
lea rcx, [rsp + 0x40]
call fcn.1400206e0
mov rcx, qword [rbp - 0x41]
mov rax, qword [rcx + 0x10]
cmp byte [rax + 0x815], 0
jne 0x140014758
cmp byte [rax + 0x810], 0
jne 0x140014758
mov byte [rax + 0x816], 0
call fcn.140053ff8
mov rcx, qword [rax + 8]
mov rcx, qword [rcx + 0x40]
mov dword [rsp + 0x30], 0x80
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov r9d, 0x40
lea r8, [0x14028c560]
lea rdx, str.Install_Finished__
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
nop
test r15, r15
je 0x14001478a
mov rbx, r15
cmp r15, r12
je 0x140014776
mov rcx, rbx
call fcn.1400023f0
add rbx, 0x20
cmp rbx, r12
jne 0x140014765
mov r8, qword [rbp + 0xf]
sub r8, r15
sar r8, 5
mov rdx, r15
call fcn.140003d40
nop
mov r8, qword [rdi + 0x18]
cmp r8, 8
jb 0x1400147a2
inc r8
mov rdx, qword [rdi]
mov rcx, rdi
call fcn.1400037a0
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rsi
cmp qword [rdi + 0x18], 8
jb 0x1400147b8
mov rdi, qword [rdi]
mov al, 1
jmp 0x1400148ec
lea rax, [rbp - 0x79]
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x61], 7
mov qword [rbp - 0x69], rsi
mov word [rbp - 0x79], si
mov r8d, SafeArrayGetDim
lea rdx, str._Install_failed
lea rcx, [rbp - 0x79]
call fcn.140003650
nop
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rsi
mov word [rsp + 0x40], si
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140003830
nop
lea rdx, [rbp - 0x79]
lea rcx, [rsp + 0x40]
call fcn.1400206e0
mov rcx, qword [rbp - 0x41]
mov rax, qword [rcx + 0x10]
cmp byte [rax + 0x815], 0
jne 0x14001488a
mov byte [rax + 0x816], 0
call fcn.140053ff8
mov rcx, qword [rax + 8]
mov rcx, qword [rcx + 0x40]
mov dword [rsp + 0x30], 0x80
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea r8, [0x14028c560]
lea rdx, str.Install_Failed__
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
nop
test r15, r15
je 0x1400148bc
mov rbx, r15
cmp r15, r12
je 0x1400148a8
mov rcx, rbx
call fcn.1400023f0
add rbx, 0x20
cmp rbx, r12
jne 0x140014897
mov r8, qword [rbp + 0xf]
sub r8, r15
sar r8, 5
mov rdx, r15
call fcn.140003d40
nop
mov r8, qword [rdi + 0x18]
cmp r8, 8
jb 0x1400148d4
inc r8
mov rdx, qword [rdi]
mov rcx, rdi
call fcn.1400037a0
mov qword [rdi + 0x18], 7
cmp qword [rdi + 0x18], 8
mov qword [rdi + 0x10], rsi
jb 0x1400148ea
mov rdi, qword [rdi]
xor al, al
mov word [rdi], si
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1401e30a0
mov rbx, qword [rsp + 0x150]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret