Function at 0x14004e470
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xaa0]
sub rsp, 0xba0
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rbp + 0xa90], rax
lea rdx, str.CheckPrinterDriverInstall::CheckCATFileExistEx
lea rcx, [rbp - 0x10]
call fcn.14001abe0
nop
lea r14, [0x1402a8360]
lea r12, [0x1402bbdb0]
mov rcx, qword [0x1402a8360]
cmp rcx, r14
je 0x14004e501
test byte [rcx + 0x1c], 1
je 0x14004e501
mov r9, r12
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, reloc.msi.dll_MsiOpenDatabaseW
lea r8, [0x140254a20]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x460]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x40]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x880]
call fcn.1401e7e40
xor esi, esi
mov dword [rsp + 0x40], esi
mov ebx, 8
mov dword [rsp + 0x4c], ebx
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x1400136d6.0]
mov rdx, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0xb8]
mov rcx, rdx
call qword [case.0x1400136d6.0]
mov r15d, eax
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x250]
call fcn.1401e7e40
lea rcx, [rsp + 0x68]
call fcn.14005f660
nop
lea rcx, [rsp + 0x60]
call fcn.140051640
nop
lea rcx, [rsp + 0x58]
call fcn.140091e00
nop
nop dword [rax + rax]
mov dword [rsp + 0x50], 0x63
lea r8, [rsp + 0x50]
mov edx, ebx
lea rcx, [rsp + 0x68]
call fcn.140063670
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x20], 3
lea r9, [rbp + 0x40]
lea r8, [rbp + 0x460]
mov edx, dword [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.140053200
mov ebx, eax
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x250]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp ebx, 1
jne 0x14004ea10
lea rcx, [rsp + 0x70]
call fcn.1401c8bf0
nop
mov edi, ebx
mov dword [rsp + 0x48], ebx
xor r13d, r13d
nop dword [rax]
nop word [rax + rax]
xor edx, edx
lea r8, [rdx - 1]
lea rcx, [rsp + 0x70]
call fcn.1401c921c
test r15d, r15d
je 0x14004e6a6
test r15d, edi
je 0x14004e9db
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x1400136d6.0]
mov r8, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0xc8]
mov edx, r13d
mov rcx, r8
call qword [case.0x1400136d6.0]
mov rbx, rax
lea rdx, [rbp + 0x250]
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rbp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov rdx, rbx
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov dword [rsp + 0x20], 1
lea r9, [rsp + 0x70]
lea r8, [0x1402550a0]
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.140093f40
xor r14d, r14d
xor esi, esi
mov rax, qword [rbp - 0x80]
test eax, eax
jle 0x14004e7a6
nop dword [rax]
test rsi, rsi
js 0x14004eb79
cmp rsi, rax
jge 0x14004eb79
lfence
mov rax, qword [rsp + 0x78]
mov rcx, qword [rax + rsi*8]
sub rcx, 0x18
call fcn.140004d00
mov rdi, rax
lea rbx, [rax + 0x18]
mov qword [rbp - 0x68], rbx
mov rcx, qword [0x1402bbf58]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x1400136d6.0]
mov rcx, rax
mov rdx, rbx
call fcn.140190f90
test eax, eax
jne 0x14004e76f
mov eax, 0xffffffff
lock xadd dword [rdi + 0x10], eax
sub eax, 1
jg 0x14004e75a
lfence
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
inc r14d
inc rsi
mov rax, qword [rbp - 0x80]
cmp r14d, eax
jl 0x14004e6e0
jmp 0x14004e7a2
mov rdx, rbx
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
nop
mov eax, 0xffffffff
lock xadd dword [rdi + 0x10], eax
sub eax, 1
jg 0x14004e7a2
lfence
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
mov edi, dword [rsp + 0x48]
mov rcx, qword [0x1402a8360]
lea r14, [0x1402a8360]
cmp rcx, r14
je 0x14004e804
test byte [rcx + 0x1c], 4
je 0x14004e804
mov r9, r12
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x59
lea rax, [rbp + 0x460]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x20], eax
lea r8, [0x140254a20]
mov rcx, qword [rcx + 0x10]
call fcn.140048180
lea rcx, [rbp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14004e9d2
mov dword [rsp + 0x44], 0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x670]
call fcn.1401e7e40
mov rcx, qword [0x1402bbf58]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x1400136d6.0]
lea rdx, str.CInstCommon::GetCATFileInfo
lea rcx, [rbp - 0x60]
call fcn.14001abe0
nop
mov rcx, qword [0x1402a8360]
cmp rcx, r14
je 0x14004e891
test byte [rcx + 0x1c], 1
je 0x14004e891
mov r9, r12
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, MsiOpenDatabaseW
lea r8, [0x140267de8]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
lea r8, [rbp + 0x670]
lea rdx, [rsp + 0x44]
lea rcx, [rbp + 0x40]
call fcn.1401a8cc0
mov dl, 1
mov byte [rbp - 0x58], dl
mov rcx, qword [0x1402a8360]
cmp rcx, r14
je 0x14004e8f3
test byte [rcx + 0x1c], dl
je 0x14004e8f3
mov r9, r12
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, MsiOpenDatabaseW
mov dword [rsp + 0x20], eax
lea r8, [0x140267de8]
mov rcx, qword [rcx + 0x10]
call fcn.140001b40
mov rcx, qword [0x1402a8360]
movzx edx, byte [rbp - 0x58]
lea rax, vtable.WppTrace.0
mov qword [rbp - 0x60], rax
test dl, dl
jne 0x14004e948
cmp rcx, r14
je 0x14004e948
test byte [rcx + 0x1c], 1
je 0x14004e948
lea rax, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rax, qword [rbp - 0x50]
mov r9, r12
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0xa
mov qword [rsp + 0x20], rax
lea r8, [0x140252818]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
lea rcx, [rbp - 0x30]
call fcn.1400048a0
lea rcx, [rbp - 0x50]
call fcn.1400048a0
mov rcx, qword [0x1402a8360]
cmp rcx, r14
je 0x14004e9b1
test byte [rcx + 0x1c], 4
je 0x14004e9b1
mov r9, r12
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x5a
lea rax, [rbp + 0x670]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
lea r8, [0x140254a20]
mov rcx, qword [rcx + 0x10]
call fcn.140048040
mov esi, dword [rsp + 0x40]
test r15d, r15d
je 0x14004e9c1
cmp dword [rsp + 0x44], 0
jmp 0x14004e9d9
cmp dword [rsp + 0x44], 1
jne 0x14004e9d6
or esi, dword [rsp + 0x4c]
mov dword [rsp + 0x40], esi
jmp 0x14004e9d6
mov esi, dword [rsp + 0x40]
test r15d, r15d
je 0x14004ea06
add edi, edi
mov dword [rsp + 0x48], edi
inc r13d
cmp r13d, 2
jl 0x14004e630
mov dword [rsp + 0x40], esi
test r15d, r15d
je 0x14004ea06
cmp dword [rsp + 0x44], 0
je 0x14004ea06
or esi, dword [rsp + 0x4c]
mov dword [rsp + 0x40], esi
lea rcx, [rsp + 0x70]
call fcn.1401c8c10
mov ebx, dword [rsp + 0x4c]
add ebx, ebx
mov dword [rsp + 0x4c], ebx
cmp ebx, 0x40
jbe 0x14004e5b0
mov r8d, esi
lea rdx, [0x1402524b4]
lea rcx, [rbp + 0x880]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov r9, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x20]
lea r8, [rbp + 0x880]
lea rdx, str.CATSUPPORTEX
mov rcx, r9
call qword [case.0x1400136d6.0]
mov byte [rbp - 8], 1
mov rcx, qword [0x1402a8360]
cmp rcx, r14
je 0x14004eab6
test byte [rcx + 0x1c], 1
je 0x14004eab6
mov r9, r12
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x5b
mov dword [rsp + 0x20], 0
lea r8, [0x140254a20]
mov rcx, qword [rcx + 0x10]
call fcn.140001b40
nop
lea rcx, [rsp + 0x58]
call fcn.140091f70
nop
lea rcx, [rsp + 0x60]
call fcn.1400517b0
nop
lea rcx, [rsp + 0x68]
call fcn.14005f7d0
nop
lea rax, vtable.WppTrace.0
mov qword [rbp - 0x10], rax
cmp byte [rbp - 8], 0
jne 0x14004eb35
mov rcx, qword [0x1402a8360]
cmp rcx, r14
je 0x14004eb35
test byte [rcx + 0x1c], 1
je 0x14004eb35
lea rax, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rax, qword [rbp]
cmp qword [0x1402bbdc8], 8
cmovae r12, qword [0x1402bbdb0]
mov edx, 0xa
mov qword [rsp + 0x20], rax
mov r9, r12
lea r8, [0x140252818]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
lea rcx, [rbp + 0x20]
call fcn.1400048a0
lea rcx, [rbp]
call fcn.1400048a0
xor eax, eax
mov rcx, qword [rbp + 0xa90]
xor rcx, rsp
call fcn.1401e2900
lea r11, [rsp + 0xba0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1401bb848
nop
int3