Function at 0x140001ca0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x870]
sub rsp, 0x970
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x9c8], rbx
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x860], rax
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rbp - 0x58], rcx
mov qword [rbp - 0x60], rdx
mov qword [rbp - 0x50], rbx
xor r13b, r13b
xor r15d, r15d
mov word [rbp + 0x60], r15w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp + 0x62]
call sub.MSVCR120.dll_memset
lea rcx, [rbp + 0x60]
call fcn.140001bd0
test eax, eax
je 0x140002092
mov qword [rbp + 0x10], 7
mov qword [rbp + 8], r15
mov word [rbp - 8], r15w
cmp word [rbp + 0x60], r15w
jne 0x140001d3c
mov r8d, r15d
jmp 0x140001d4e
lea rax, [rbp + 0x60]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r15w
jne 0x140001d44
lea rdx, [rbp + 0x60]
lea rcx, [rbp - 8]
call fcn.1400013d0
nop
lea rdx, [rbp - 8]
lea rcx, [rbp + 0x38]
call fcn.140002120
nop
mov r8, rsi
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.1400021e0
nop
cmp qword [rbp + 0x50], 8
jb 0x140001d8b
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp + 0x50], 7
mov qword [rbp + 0x48], r15
mov word [rbp + 0x38], r15w
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r14, rax
test rax, rax
je 0x140001e7b
lea rdx, str.UnInstallPrinterDrv
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
lea rdx, str.PrinterSetup
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
test rax, rax
je 0x140001e6f
test r15, r15
je 0x140001e6f
xor ecx, ecx
call r15
xor r15d, r15d
test eax, eax
jne 0x140001e72
mov qword [rbp + 0x30], 7
mov qword [rbp + 0x28], r15
mov word [rbp + 0x18], r15w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 8]
lea rcx, [rbp + 0x18]
call fcn.140001280
nop
lea r8d, [r15 + 4]
lea rdx, str.x64_
lea rcx, [rbp + 0x18]
call fcn.140001080
lea rdx, [rbp + 0x18]
cmp qword [rbp + 0x30], 8
cmovae rdx, qword [rbp + 0x18]
cmp qword [rbx + 0x18], 8
jb 0x140001e50
mov rcx, qword [rbx]
jmp 0x140001e53
mov rcx, rbx
call r12
test eax, eax
setne r13b
cmp qword [rbp + 0x30], 8
jb 0x140001e72
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
jmp 0x140001e72
xor r15d, r15d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rdx, [rbp - 8]
lea rcx, [rbp + 0x18]
call fcn.140002120
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp - 0x48]
call fcn.1400021e0
nop
cmp qword [rbp + 0x30], 8
jb 0x140001eaa
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
xor edx, edx
lea r8d, [rdx + 0x70]
lea rcx, [rsp + 0x30]
call sub.MSVCR120.dll_memset
mov dword [rsp + 0x30], 0x70
lea rax, str.open
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rax, qword [rbp - 0x48]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x60], r15d
mov dword [rsp + 0x34], 0x40
lea rax, str._uninstall
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x48]
cmovae rcx, qword [rbp - 0x48]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140001fce
cmp qword [rbp - 0x30], 8
jb 0x140001f22
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], r15
mov word [rbp - 0x48], r15w
cmp qword [rbp - 0x10], 8
jb 0x140001f44
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r15
mov word [rbp - 0x28], r15w
cmp qword [rbp + 0x10], 8
jb 0x140001f66
mov rcx, qword [rbp - 8]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp + 0x10], 7
mov qword [rbp + 8], r15
mov word [rbp - 8], r15w
cmp qword [rsi + 0x18], 8
jb 0x140001f87
mov rcx, qword [rsi]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], r15
mov word [rsi], r15w
cmp qword [rdi + 0x18], 8
jb 0x140001fa7
mov rcx, qword [rdi]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r15
mov word [rdi], r15w
cmp qword [rbx + 0x18], 8
jb 0x140001fc7
mov rcx, qword [rbx]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
xor al, al
jmp 0x1400020e6
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x140001fe8
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140001f11
or edx, 0xffffffff
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, str._install
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x140002025
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140001f11
or edx, 0xffffffff
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp - 0x30], 8
jb 0x14000204d
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], r15
mov word [rbp - 0x48], r15w
cmp qword [rbp - 0x10], 8
jb 0x14000206f
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r15
mov word [rbp - 0x28], r15w
cmp qword [rbp + 0x10], 8
jb 0x140002092
mov rcx, qword [rbp - 8]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
nop
cmp qword [rsi + 0x18], 8
jb 0x1400020a2
mov rcx, qword [rsi]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], r15
mov word [rsi], r15w
cmp qword [rdi + 0x18], 8
jb 0x1400020c2
mov rcx, qword [rdi]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r15
mov word [rdi], r15w
cmp qword [rbx + 0x18], 8
jb 0x1400020e2
mov rcx, qword [rbx]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
movzx eax, r13b
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r15
mov word [rbx], r15w
mov rcx, qword [rbp + 0x860]
xor rcx, rsp
call fcn.140002dc0
mov rbx, qword [rsp + 0x9c8]
add rsp, 0x970
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret