Function at 0x140014200
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 [0x1402d48f8]
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 0x14001424d
mov rcx, qword [rdx]
jmp 0x140014250
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140014279
mov r8, qword [rdi + 0x18]
cmp r8, 8
jb 0x140014272
inc r8
mov rdx, qword [rdi]
mov rcx, rdi
call fcn.140003790
xor esi, esi
jmp 0x140014844
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.140003820
lea r8, [rbp - 1]
lea rdx, [rbp - 0x21]
call fcn.140012f40
test eax, eax
jne 0x1400142ee
mov r15, qword [rbp - 1]
test r15, r15
je 0x14001482c
mov rbx, r15
mov r14, qword [rbp + 7]
cmp r15, r14
je 0x140014818
mov rcx, rbx
call fcn.1400023f0
add rbx, 0x20
cmp rbx, r14
jne 0x1400142d8
jmp 0x140014818
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 0x14001472f
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.140003820
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x79]
call fcn.14001e410
mov rbx, rax
cmp rdi, rax
je 0x1400143a3
cmp qword [rdi + 0x18], 8
jb 0x140014379
mov r8, qword [rdi + 0x18]
inc r8
mov rdx, qword [rdi]
mov rcx, rdi
call fcn.140003790
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rsi
cmp qword [rdi + 0x18], 8
jb 0x140014391
mov rax, qword [rdi]
jmp 0x140014394
mov rax, rdi
mov word [rax], si
mov rdx, rbx
mov rcx, rdi
call fcn.140003ca0
nop
mov r8, qword [rbp - 0x61]
cmp r8, 8
jb 0x1400143bd
inc r8
mov rdx, qword [rbp - 0x79]
lea rcx, [rbp - 0x79]
call fcn.140003790
cmp qword [r14 + 0x18], 0x10
jb 0x1400143c9
mov rdx, qword [r14]
jmp 0x1400143cc
mov rdx, r14
lea rcx, [rbp - 0x21]
call fcn.1400072a0
nop
lea rbx, [rbp - 0x21]
cmp qword [rbp - 9], 8
cmovae rbx, qword [rbp - 0x21]
mov rcx, rdi
call fcn.140003550
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 0x1400144cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe000020b
jne 0x14001448b
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.140003640
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.140003820
nop
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x79]
call fcn.14001f900
nop
jmp 0x140014537
mov qword [rbp - 0x61], 7
mov qword [rbp - 0x69], rsi
mov word [rbp - 0x79], si
lea rcx, [rbp - 0x79]
cmp eax, 2
je 0x14001457c
test eax, eax
lea rax, [rbp - 0x79]
mov qword [rbp - 0x49], rax
jne 0x140014567
mov r8d, 0x38
lea rdx, str._Install_failed:_The_current_driver_in_system_is_better.
call fcn.140003640
nop
jmp 0x1400144fc
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.140003640
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.140003820
nop
lea rdx, [rbp - 0x79]
lea rcx, [rsp + 0x40]
call fcn.14001f900
nop
inc dword [rbp - 0x59]
mov r8, qword [rbp - 9]
cmp r8, 8
jb 0x140014551
inc r8
mov rdx, qword [rbp - 0x21]
lea rcx, [rbp - 0x21]
call fcn.140003790
inc r13
add r14, 0x20
cmp r13, qword [rbp - 0x39]
jae 0x1400145e9
jmp 0x140014320
mov r8d, 0x1d
lea rdx, str._Install_failed:_other_error
call fcn.140003640
nop
jmp 0x140014597
lea rax, [rbp - 0x79]
mov qword [rbp - 0x49], rax
mov r8d, 0x25
lea rdx, str._Install_failed:_ERROR_FILE_NOT_FOUND
call fcn.140003640
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.140003820
nop
lea rdx, [rbp - 0x79]
lea rcx, [rsp + 0x40]
call fcn.14001f900
nop
mov r8, qword [rbp - 9]
cmp r8, 8
jb 0x1400145e9
inc r8
mov rdx, qword [rbp - 0x21]
lea rcx, [rbp - 0x21]
call fcn.140003790
mov eax, dword [rbp - 0x59]
test eax, eax
jle 0x14001472f
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.140003640
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.140003820
nop
lea rdx, [rbp - 0x79]
lea rcx, [rsp + 0x40]
call fcn.14001f900
mov rcx, qword [rbp - 0x41]
mov rax, qword [rcx + 0x10]
cmp byte [rax + 0x815], 0
jne 0x1400146c8
cmp byte [rax + 0x810], 0
jne 0x1400146c8
mov byte [rax + 0x816], 0
call fcn.140052a58
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, [0x14028b540]
lea rdx, str.Install_Finished__
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
nop
test r15, r15
je 0x1400146fa
mov rbx, r15
cmp r15, r12
je 0x1400146e6
mov rcx, rbx
call fcn.1400023f0
add rbx, 0x20
cmp rbx, r12
jne 0x1400146d5
mov r8, qword [rbp + 0xf]
sub r8, r15
sar r8, 5
mov rdx, r15
call fcn.140003d30
nop
mov r8, qword [rdi + 0x18]
cmp r8, 8
jb 0x140014712
inc r8
mov rdx, qword [rdi]
mov rcx, rdi
call fcn.140003790
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rsi
cmp qword [rdi + 0x18], 8
jb 0x140014728
mov rdi, qword [rdi]
mov al, 1
jmp 0x14001485c
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.140003640
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.140003820
nop
lea rdx, [rbp - 0x79]
lea rcx, [rsp + 0x40]
call fcn.14001f900
mov rcx, qword [rbp - 0x41]
mov rax, qword [rcx + 0x10]
cmp byte [rax + 0x815], 0
jne 0x1400147fa
mov byte [rax + 0x816], 0
call fcn.140052a58
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, [0x14028b540]
lea rdx, str.Install_Failed__
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
nop
test r15, r15
je 0x14001482c
mov rbx, r15
cmp r15, r12
je 0x140014818
mov rcx, rbx
call fcn.1400023f0
add rbx, 0x20
cmp rbx, r12
jne 0x140014807
mov r8, qword [rbp + 0xf]
sub r8, r15
sar r8, 5
mov rdx, r15
call fcn.140003d30
nop
mov r8, qword [rdi + 0x18]
cmp r8, 8
jb 0x140014844
inc r8
mov rdx, qword [rdi]
mov rcx, rdi
call fcn.140003790
mov qword [rdi + 0x18], 7
cmp qword [rdi + 0x18], 8
mov qword [rdi + 0x10], rsi
jb 0x14001485a
mov rdi, qword [rdi]
xor al, al
mov word [rdi], si
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1401e1ba0
mov rbx, qword [rsp + 0x150]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret