Function at 0x14002e900
Capabilities:
Delete registry key

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1fc0]
mov eax, 0x20c0
call fcn.1401945e0
sub rsp, rax
mov qword [rbp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x2118], rbx
mov rax, qword [0x14027bbd0]
xor rax, rsp
mov qword [rbp + 0x1fb0], rax
mov edi, r8d
mov r15, rdx
mov rsi, rcx
mov qword [rbp - 0x38], rcx
xor r8d, r8d
lea rdx, str.Tool_DeletePrinterStd
lea rcx, [rsp + 0x48]
call fcn.140017fc0
nop
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r15
mov r9, rsi
lea r8, str.hWnd___08x__lpszPrinter___s__bJob___d
mov r12d, 1
mov edx, r12d
lea rcx, [rsp + 0x48]
call fcn.140017c80
xor r13d, r13d
mov qword [rsp + 0x60], r13
mov dword [rsp + 0x40], r13d
mov r14d, r13d
mov word [rbp + 0x1750], r13w
xor edx, edx
mov r8d, 0x85e
lea rcx, [rbp + 0x1752]
call fcn.140192cb0
mov dword [rbp - 0x50], r12d
mov word [rbp + 0x500], r13w
xor edx, edx
mov r8d, 0x40e
lea rcx, [rbp + 0x502]
call fcn.140192cb0
mov qword [rbp - 0x40], r13
mov dword [rsp + 0x44], r13d
mov word [rbp + 0xf0], r13w
xor edx, edx
mov r8d, 0x40e
lea rcx, [rbp + 0xf2]
call fcn.140192cb0
mov dword [rsp + 0x58], r13d
mov dword [rsp + 0x70], r12d
mov dword [rbp - 0x58], r12d
mov dword [rbp - 0x70], r12d
call fcn.140054cb8
mov rbx, qword [rax + 8]
mov qword [rbp - 0x78], rbx
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp + 0x500]
call fcn.140192cb0
call fcn.14000c310
mov dword [rsp + 0x68], eax
mov dword [rbp - 0x54], r13d
mov rcx, qword [rbx + 0x40]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1004
mov rcx, qword [rcx + 0x158]
call qword [sym.imp.USER32.dll_SendMessageW]
mov qword [rbp - 0x28], rax
test eax, eax
jle 0x14002eec7
xor r9d, r9d
xor r8d, r8d
mov edx, r12d
mov rcx, r15
call fcn.140019ad0
cmp eax, r12d
jne 0x14002eaa9
test edi, edi
jne 0x14002eaa9
lea r9d, [r12 + 2]
lea r8, str.return___08x
lea edx, [rdi + 2]
lea rcx, [rsp + 0x48]
call fcn.140017c80
nop
lea rcx, [rsp + 0x48]
call fcn.140018150
lea eax, [rdi + 3]
jmp 0x14002fe10
lea rcx, [rbx + 0x798]
mov rdx, r15
call fcn.14004a7b0
mov dword [rbp - 0x54], eax
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp + 0xf0]
call fcn.140192cb0
lea rdx, [rsp + 0x44]
mov qword [rsp + 0x30], rdx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor edx, edx
lea ecx, [rdx + 6]
lea r8d, [r9 + 2]
call sub.WINSPOOL.DRV_EnumPrintersW
test eax, eax
jne 0x14002eb27
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x14002eb27
mov r9d, r12d
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x48]
call fcn.140017c80
nop
jmp 0x14002fe03
mov edx, dword [rsp + 0x40]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
jne 0x14002eb5b
mov r9d, r12d
lea r8, str.return___08x
lea edx, [rax + 2]
lea rcx, [rsp + 0x48]
call fcn.140017c80
nop
jmp 0x14002fe03
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], eax
mov r9, rbx
xor edx, edx
lea ecx, [rdx + 6]
lea r8d, [rdx + 2]
call sub.WINSPOOL.DRV_EnumPrintersW
test eax, eax
je 0x14002ebf8
mov edi, r13d
cmp dword [rsp + 0x44], r13d
jbe 0x14002ebf8
lea rsi, [rbx + 8]
nop word [rax + rax]
mov rdx, r15
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14002ebc1
inc edi
add rsi, 0x88
cmp edi, dword [rsp + 0x44]
jb 0x14002eba0
jmp 0x14002ebf8
imul rdi, rdi, 0x88
mov rax, qword [rdi + rbx + 8]
cmp word [rax], 0x5c
jne 0x14002ebf8
mov rcx, qword [rdi + rbx]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x14002ebf8
mov dword [rsp + 0x58], r12d
mov rdx, qword [rdi + rbx + 0x20]
lea rcx, [rbp + 0xf0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov edi, dword [rsp + 0x58]
test edi, edi
jne 0x14002eda9
mov qword [rbp + 0x48], r13
mov qword [rbp + 0x50], r13
mov dword [rbp + 0x58], 0xf000c
lea r8, [rbp + 0x48]
lea rdx, [rsp + 0x60]
mov rcx, r15
call sub.WINSPOOL.DRV_OpenPrinterW
mov dword [rsp + 0x70], eax
test eax, eax
jne 0x14002ec79
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.return___08x
lea edx, [rdi + 2]
lea rcx, [rsp + 0x48]
cmp eax, 5
jne 0x14002ec6b
lea r9d, [rdi + 4]
call fcn.140017c80
nop
lea rcx, [rsp + 0x48]
call fcn.140018150
lea eax, [rdi + 4]
jmp 0x14002fe10
mov r9d, r12d
call fcn.140017c80
nop
jmp 0x14002fe03
lea rdx, [rbp + 0x500]
mov rcx, r15
call fcn.14001f6b0
mov rcx, qword [rsp + 0x60]
cmp eax, 0xffffffff
jne 0x14002ecb6
call sub.WINSPOOL.DRV_ClosePrinter
mov r9d, r12d
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x48]
call fcn.140017c80
nop
jmp 0x14002fe03
mov dword [rsp + 0x40], r13d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 3]
call sub.WINSPOOL.DRV_GetPrinterDriverW
test eax, eax
jne 0x14002ed10
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x14002ed10
mov rcx, qword [rsp + 0x60]
call sub.WINSPOOL.DRV_ClosePrinter
mov r9d, r12d
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x48]
call fcn.140017c80
nop
jmp 0x14002fe03
mov edx, dword [rsp + 0x40]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r14, rax
mov rcx, qword [rsp + 0x60]
test rax, rax
jne 0x14002ed4f
call sub.WINSPOOL.DRV_ClosePrinter
mov r9d, r12d
lea r8, str.return___08x
lea edx, [r14 + 2]
lea rcx, [rsp + 0x48]
call fcn.140017c80
nop
jmp 0x14002fe03
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], eax
mov r9, r14
xor edx, edx
lea r8d, [rdx + 3]
call sub.WINSPOOL.DRV_GetPrinterDriverW
test eax, eax
jne 0x14002f059
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rsp + 0x60]
call sub.WINSPOOL.DRV_ClosePrinter
mov r9d, r12d
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x48]
call fcn.140017c80
nop
jmp 0x14002fe03
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor edx, edx
xor ecx, ecx
lea r8d, [r9 + 3]
call sub.WINSPOOL.DRV_EnumPrinterDriversW
test eax, eax
jne 0x14002ee00
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x14002ee00
mov r9d, r12d
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x48]
call fcn.140017c80
nop
jmp 0x14002fe03
mov edx, dword [rsp + 0x40]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
mov qword [rbp - 0x40], rax
test rax, rax
jne 0x14002ee38
mov r9d, r12d
lea r8, str.return___08x
lea edx, [rax + 2]
lea rcx, [rsp + 0x48]
call fcn.140017c80
nop
jmp 0x14002fe03
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], eax
mov r9, rbx
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 3]
call sub.WINSPOOL.DRV_EnumPrinterDriversW
test eax, eax
je 0x14002f061
mov edi, r13d
cmp dword [rsp + 0x44], r13d
jbe 0x14002eebe
lea rsi, [rbx + 8]
nop word [rax + rax]
lea rdx, [rbp + 0xf0]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14002eea9
inc edi
add rsi, 0x50
cmp edi, dword [rsp + 0x44]
jb 0x14002ee80
mov edi, dword [rsp + 0x58]
jmp 0x14002f061
mov word [rbp + 0x500], r13w
mov eax, edi
lea r14, [rax + rax*4]
shl r14, 4
add r14, rbx
mov edi, dword [rsp + 0x58]
jmp 0x14002f061
xor eax, eax
lea rdi, [0x1401cf0a0]
mov rsi, qword [rbx + 0x1c8]
mov ecx, 2
repe cmpsw word [rsi], word [rdi]
je 0x14002eee6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x14002fde9
mov rax, qword [rbx + 0x260]
cmp dword [rax + 0x4c], r13d
je 0x14002fde9
cmp dword [rax + 0x6c], r13d
je 0x14002fde9
mov r8, r15
mov edx, 0x208
lea rcx, [rbp + 0xf0]
call fcn.140195e58
lea rdx, [rsp + 0x44]
mov qword [rsp + 0x30], rdx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor edx, edx
xor ecx, ecx
lea r8d, [r9 + 3]
call sub.WINSPOOL.DRV_EnumPrinterDriversW
test eax, eax
jne 0x14002ef8a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x14002ef8a
mov r9d, 6
lea r8, str.return___08x
lea edx, [r9 - 4]
lea rcx, [rsp + 0x48]
call fcn.140017c80
nop
lea rcx, [rsp + 0x48]
call fcn.140018150
mov eax, 6
jmp 0x14002fe10
mov edx, dword [rsp + 0x40]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
mov qword [rbp - 0x40], rax
test rax, rax
jne 0x14002efd0
lea r9d, [rax + 6]
lea r8, str.return___08x
lea edx, [rax + 2]
lea rcx, [rsp + 0x48]
call fcn.140017c80
nop
lea rcx, [rsp + 0x48]
call fcn.140018150
lea eax, [rbx + 6]
jmp 0x14002fe10
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], eax
mov r9, rbx
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 3]
call sub.WINSPOOL.DRV_EnumPrinterDriversW
test eax, eax
je 0x14002fdc2
mov edi, r13d
cmp dword [rsp + 0x44], r13d
jbe 0x14002fdc2
lea rsi, [rbx + 8]
nop word [rax + rax]
lea rdx, [rbp + 0xf0]
mov rcx, qword [rsi]
call fcn.1401936c8
test eax, eax
je 0x14002f044
inc edi
add rsi, 0x50
cmp edi, dword [rsp + 0x44]
jb 0x14002f020
jmp 0x14002fdc2
mov eax, edi
lea r14, [rax + rax*4]
shl r14, 4
add r14, rbx
je 0x14002fdc2
jmp 0x14002f05e
mov rbx, r13
jmp 0x14002f061
mov edi, r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
mov r8, qword [r14 + 8]
mov rdx, r15
mov rcx, qword [r14 + 0x38]
call fcn.140010e90
cmp eax, r12d
jne 0x14002f228
test edi, edi
je 0x14002f091
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x14002f0a4
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rsp + 0x60]
call sub.WINSPOOL.DRV_ClosePrinter
call fcn.140054cb8
mov rbx, qword [rax + 8]
call fcn.140051e58
mov rdx, rax
mov ecx, r13d
test rax, rax
setne cl
test ecx, ecx
jne 0x14002f0cd
mov ecx, 0x80004005
call fcn.140001010
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rsi, [rax + 0x18]
mov qword [rbp - 0x68], rsi
call fcn.140051e58
mov rcx, rax
test rax, rax
setne r13b
test r13d, r13d
jne 0x14002f0fd
mov ecx, 0x80004005
call fcn.140001010
int3
mov rax, qword [rax]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rbp - 0x18], rdi
mov ecx, 2
call fcn.140051c2c
test rax, rax
je 0x14002f130
mov r8d, 2
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.140001b00
mov rsi, qword [rbp - 0x68]
mov ecx, 3
call fcn.140051c2c
test rax, rax
je 0x14002f155
mov r8d, 3
mov rdx, rax
lea rcx, [rbp - 0x18]
call fcn.140001b00
mov rdi, qword [rbp - 0x18]
mov rax, qword [rbx + 0x260]
cmp dword [rax + 0x4c], 0
je 0x14002f1a8
mov rdx, rdi
mov rcx, qword [rbx + 0x268]
call fcn.140007c90
mov edx, 0xa
lea r8d, [rdx + 0x16]
lea rcx, [rbp - 0x68]
call fcn.140009e00
mov rdx, qword [rbp - 0x68]
mov rcx, qword [rbx + 0x268]
call fcn.140007c90
lea rdx, [0x1401c7948]
mov rcx, qword [rbx + 0x268]
call fcn.140007c90
jmp 0x14002f1be
mov r9d, 0x30
mov r8, rdi
mov rdx, rsi
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.USER32.dll_MessageBoxW]
mov r9d, 2
lea r8, str.return___08x
mov edx, r9d
lea rcx, [rsp + 0x48]
call fcn.140017c80
nop
lea rdx, [rdi - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002f1f7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x68]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x14002f214
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x48]
call fcn.140018150
mov eax, 2
jmp 0x14002fe10
mov r9d, r12d
mov r8d, 0x40
lea rdx, [rbp + 0x70]
mov rcx, qword [r14 + 0x18]
call fcn.14000fd10
test eax, eax
jne 0x14002f283
test edi, edi
je 0x14002f251
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x14002f264
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rsp + 0x60]
call sub.WINSPOOL.DRV_ClosePrinter
mov r9d, r12d
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x48]
call fcn.140017c80
nop
jmp 0x14002fe03
xor eax, eax
mov dword [rbp + 0x68], eax
mov byte [rbp + 0x6c], al
lea rdx, [rbp + 0x68]
mov rcx, r15
call fcn.14000b8f0
xor edx, edx
mov r8d, 0x820
lea rcx, [rbp + 0x910]
call fcn.140192cb0
mov dword [rsp + 0x78], r13d
lea r9, [rsp + 0x78]
mov r8d, 0x410
lea rdx, [rbp + 0x910]
mov rcx, r15
call fcn.14000baf0
mov rsi, qword [rbp - 0x78]
cmp dword [rbp - 0x28], r13d
jle 0x14002f3f5
test edi, edi
jne 0x14002f382
mov edi, dword [rsi + 0x7b0]
mov rcx, qword [rsp + 0x60]
cmp dword [rsp + 0x68], 0xa
jne 0x14002f325
call fcn.140021eb0
mov edi, eax
mov rcx, qword [rsp + 0x60]
call sub.WINSPOOL.DRV_ClosePrinter
test edi, edi
jne 0x14002f30c
xor r8d, r8d
jmp 0x14002f32d
lea rdx, [rbp + 0x910]
mov rcx, r15
call fcn.14001a750
mov rcx, r15
call fcn.14000b770
jmp 0x14002f34b
call sub.WINSPOOL.DRV_ClosePrinter
mov r8d, edi
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
lea r9, [rbp + 0x910]
mov rdx, r15
lea rcx, [rsi + 0x798]
call fcn.14004a940
cmp dword [rsp + 0x70], r13d
je 0x14002f35a
test eax, eax
je 0x14002f3f5
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov r9d, r12d
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x48]
call fcn.140017c80
nop
jmp 0x14002fe03
lea rcx, [rsi + 0x798]
mov dword [rsp + 0x20], r13d
xor r9d, r9d
mov r8d, dword [rsi + 0x7b0]
mov rdx, r15
call fcn.14004a940
test eax, eax
je 0x14002f3f5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x48]
cmp eax, 5
jne 0x14002f3e7
lea r9d, [rdx + 2]
call fcn.140017c80
nop
lea rcx, [rsp + 0x48]
call fcn.140018150
mov eax, 4
jmp 0x14002fe10
mov r9d, r12d
call fcn.140017c80
nop
jmp 0x14002fe03
mov rdx, qword [r14 + 8]
lea rcx, [rbp - 0x48]
call fcn.1400020c0
nop
call fcn.140051e58
mov rdx, rax
mov ecx, r13d
test rax, rax
setne cl
test ecx, ecx
jne 0x14002f423
mov ecx, 0x80004005
call fcn.140001010
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x38], rax
mov rcx, qword [rbp - 0x48]
add rcx, 0xffffffffffffffe8
call fcn.140001950
add rax, 0x18
mov qword [rbp + 0x30], rax
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 0x30]
call fcn.14001de40
or ebx, 0xffffffff
cmp dword [rbp - 0x28], 0
jle 0x14002fa70
call fcn.140051e58
mov rdx, rax
mov ecx, r13d
test rax, rax
setne cl
test ecx, ecx
jne 0x14002f483
mov ecx, 0x80004005
call fcn.140001010
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x68], rax
call fcn.140051e58
mov rdx, rax
mov ecx, r13d
test rax, rax
setne cl
test ecx, ecx
jne 0x14002f4b5
mov ecx, 0x80004005
call fcn.140001010
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x70], rax
call fcn.140051e58
mov rdx, rax
mov ecx, r13d
test rax, rax
setne cl
test ecx, ecx
jne 0x14002f4e7
mov ecx, 0x80004005
call fcn.140001010
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 8], rax
call fcn.140051e58
mov rdx, rax
mov ecx, r13d
test rax, rax
setne cl
test ecx, ecx
jne 0x14002f518
mov ecx, 0x80004005
call fcn.140001010
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp + 0x20], rax
mov rdx, qword [r14 + 8]
lea rcx, [rbp - 0x60]
call fcn.1400020c0
nop
mov r8d, 5
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x60]
call fcn.140017e80
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rdi, qword [rbp - 0x60]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x14002f5ab
cmp dword [rdi + 0x10], 0
jl 0x14002f59d
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14002f59d
call fcn.140001950
mov qword [rbp - 0x80], rax
mov ecx, ebx
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14002f593
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbp - 0x80]
add rax, 0x18
mov qword [rbp - 0x60], rax
jmp 0x14002f5ab
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x60]
call fcn.140001c20
nop
mov rdx, qword [rbp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002f5c9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, r15
lea rcx, [rbp - 0x30]
call fcn.1400020c0
nop
mov r8d, 2
lea rdx, [0x1401cceb8]
mov rcx, r15
call fcn.140194830
test eax, eax
jne 0x14002f7c4
mov rax, qword [rbp - 0x30]
mov r8d, dword [rax - 0x10]
dec r8d
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x30]
call fcn.140017e80
nop
mov r8, rax
lea rdx, [rsi + 0x1d8]
lea rcx, [rbp + 0x18]
call fcn.1400182c0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rdi, qword [rsp + 0x68]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x14002f683
cmp dword [rdi + 0x10], 0
jl 0x14002f674
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14002f674
call fcn.140001950
mov qword [rbp - 0x80], rax
mov ecx, ebx
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14002f669
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbp - 0x80]
add rax, 0x18
mov qword [rsp + 0x68], rax
jmp 0x14002f683
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x68]
call fcn.140001c20
nop
mov rdx, qword [rbp + 0x18]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002f6a2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 0x10]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002f6c0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsi + 0x1d8]
lea rcx, [rdx - 0x18]
mov rdi, qword [rsp + 0x70]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x14002f726
cmp dword [rdi + 0x10], 0
jl 0x14002f718
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14002f718
call fcn.140001950
mov qword [rbp - 0x80], rax
mov ecx, ebx
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14002f70d
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbp - 0x80]
add rax, 0x18
mov qword [rsp + 0x70], rax
jmp 0x14002f726
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x70]
call fcn.140001c20
mov rdi, qword [rsp + 0x68]
mov rdx, rdi
mov rcx, 0xffffffff80000001
call fcn.140018e80
mov rdx, rdi
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edx, 0x5c
mov rcx, rdi
call fcn.140193dc0
test rax, rax
jne 0x14002f760
mov eax, ebx
jmp 0x14002f766
sub rax, rdi
sar rax, 1
mov r8d, eax
lea rdx, [rbp + 0x38]
lea rcx, [rsp + 0x68]
call fcn.140017f20
nop
mov rdi, qword [rbp + 0x38]
mov rdx, rdi
mov rcx, 0xffffffff80000001
call fcn.140019030
cmp eax, 1
jne 0x14002f7a1
mov rdx, rdi
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop
lea rdx, [rdi - 0x18]
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002f95f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14002f95f
mov rdx, r15
lea rcx, [rbp + 8]
call fcn.1400020c0
nop
lea rdx, [rsi + 0x1d0]
mov r8, rax
lea rcx, [rbp + 0x28]
call fcn.1400182c0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rdi, qword [rsp + 0x68]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x14002f848
cmp dword [rdi + 0x10], 0
jl 0x14002f839
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14002f839
call fcn.140001950
mov qword [rbp - 0x80], rax
mov ecx, ebx
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14002f82e
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbp - 0x80]
add rax, 0x18
mov qword [rsp + 0x68], rax
jmp 0x14002f848
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x68]
call fcn.140001c20
nop
mov rdx, qword [rbp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002f867
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 8]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002f885
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsi + 0x1d8]
lea rcx, [rdx - 0x18]
mov rdi, qword [rsp + 0x70]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x14002f8eb
cmp dword [rdi + 0x10], 0
jl 0x14002f8dd
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14002f8dd
call fcn.140001950
mov qword [rbp - 0x80], rax
mov ecx, ebx
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14002f8d2
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbp - 0x80]
add rax, 0x18
mov qword [rsp + 0x70], rax
jmp 0x14002f8eb
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x70]
call fcn.140001c20
mov rdi, qword [rsp + 0x68]
mov rdx, rdi
mov rcx, 0xffffffff80000001
call fcn.140018e80
mov rdx, rdi
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor eax, eax
lea rdi, str.CAPT
mov rsi, qword [rsi + 0x790]
mov ecx, 5
repe cmpsw word [rsi], word [rdi]
je 0x14002f92e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x14002f95b
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rsi, qword [rbp - 0x78]
test eax, eax
je 0x14002f95f
cmp dword [rsi + 0x818], 0
je 0x14002f95f
mov rcx, r15
call fcn.140025e10
jmp 0x14002f95f
mov rsi, qword [rbp - 0x78]
mov rdi, qword [rsp + 0x70]
mov rdx, rdi
mov rcx, 0xffffffff80000001
call fcn.140019030
cmp eax, 1
jne 0x14002f9b5
mov rdx, rdi
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea rdx, str.SOFTWARECANON_
mov rcx, 0xffffffff80000001
call fcn.140019030
cmp eax, 1
jne 0x14002f9b5
lea rdx, str.SOFTWARECANON_
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002f9d4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x60]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002f9f3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002fa12
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 8]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002fa31
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002fa51
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002fa70
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, r15
mov rcx, qword [r14 + 8]
call fcn.140018ad0
test eax, eax
je 0x14002fa88
mov eax, r13d
jmp 0x14002fbde
xor eax, eax
lea rdi, str.CAPT
mov rsi, qword [rsi + 0x790]
mov ecx, 5
repe cmpsw word [rsi], word [rdi]
je 0x14002faa7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
mov rsi, qword [rbp - 0x78]
test al, al
je 0x14002face
cmp dword [rsi + 0x818], 0
je 0x14002face
call fcn.140027b00
mov ecx, dword [rbp - 0x70]
test eax, eax
cmove ecx, r13d
mov dword [rbp - 0x70], ecx
mov r8d, dword [rsp + 0x78]
lea rdx, [rbp + 0x910]
mov rcx, r14
call fcn.14002dcd0
mov dword [rbp - 0x58], eax
mov rcx, qword [rsi + 0x260]
cmp dword [rcx + 0x88], 0
jne 0x14002fbdb
xor edx, edx
mov rcx, qword [r14 + 8]
call fcn.1400100b0
test eax, eax
je 0x14002fb4a
call fcn.140011b00
mov qword [rbp - 0x10], r13
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 0x2011f
xor r8d, r8d
lea rdx, str.SOFTWARECanonVDCSETUPVDCUser
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002fb4a
mov r15d, r13d
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14002fb4e
mov r15d, dword [rbp - 0x50]
call fcn.1400107c0
test eax, eax
je 0x14002fbe5
call fcn.140014ee0
mov qword [rbp - 0x20], r13
mov word [rbp + 0x1130], r13w
xor edx, edx
mov r8d, 0x616
lea rcx, [rbp + 0x1132]
call fcn.140192cb0
lea r9, str.DIASUser
lea r8, str.SOFTWARECanonDIASSETUP
lea rdx, str._s_s
lea rcx, [rbp + 0x1130]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rbp - 0x20]
mov qword [rsp + 0x20], rdx
mov r9d, 0x2011f
xor r8d, r8d
lea rdx, [rbp + 0x1130]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002fbe5
mov r12d, r13d
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14002fbe5
mov eax, r12d
mov r15d, r12d
test eax, eax
je 0x14002fbef
call fcn.14001b550
mov r13d, eax
jmp 0x14002fbf2
mov r13d, r12d
mov rdi, qword [rbp - 0x28]
test edi, edi
jle 0x14002fc0f
mov r11d, dword [rsp + 0x58]
test r11d, r11d
je 0x14002fc0a
mov rcx, qword [rbp - 0x40]
jmp 0x14002fc18
mov rcx, r14
jmp 0x14002fc18
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x14002fc1e
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rsi + 0x844], 0
je 0x14002fc2c
call fcn.14000fae0
test edi, edi
jle 0x14002fc5a
cmp dword [rbp - 0x54], 1
jne 0x14002fc5a
lea rcx, [rbp + 0x1750]
call fcn.140019fd0
cmp eax, 1
jne 0x14002fc5a
lea rcx, [rsi + 0x798]
lea rdx, [rbp + 0x1750]
call fcn.14004a790
mov rdi, qword [rbp - 0x38]
add rdi, 0xffffffffffffffe8
mov rcx, rdi
call fcn.140001950
add rax, 0x18
mov qword [rbp], rax
lea rcx, [rbp]
call fcn.14001ce10
cmp dword [rbp - 0x58], 0
jne 0x14002fce8
mov r9d, 6
lea r8, str.return___08x
lea edx, [r9 - 4]
lea rcx, [rsp + 0x48]
call fcn.140017c80
nop
mov eax, ebx
lock xadd dword [rdi + 0x10], eax
dec eax
test eax, eax
jg 0x14002fcb7
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x14002fcd4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x48]
call fcn.140018150
mov eax, 6
jmp 0x14002fe10
test r15d, r15d
je 0x14002fd5e
test r12d, r12d
je 0x14002fd5e
test r13d, r13d
je 0x14002fd5e
cmp dword [rbp - 0x70], 0
je 0x14002fd5e
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x48]
call fcn.140017c80
nop
mov eax, ebx
lock xadd dword [rdi + 0x10], eax
dec eax
test eax, eax
jg 0x14002fd30
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x14002fd4d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x48]
call fcn.140018150
xor eax, eax
jmp 0x14002fe10
mov r9d, 5
lea r8, str.return___08x
lea edx, [r9 - 3]
lea rcx, [rsp + 0x48]
call fcn.140017c80
nop
mov eax, ebx
lock xadd dword [rdi + 0x10], eax
dec eax
test eax, eax
jg 0x14002fd94
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x14002fdb1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x48]
call fcn.140018150
mov eax, 5
jmp 0x14002fe10
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x48]
call fcn.140017c80
nop
lea rcx, [rsp + 0x48]
call fcn.140018150
xor eax, eax
jmp 0x14002fe10
mov r9d, r12d
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x48]
call fcn.140017c80
nop
lea rcx, [rsp + 0x48]
call fcn.140018150
mov eax, r12d
mov rcx, qword [rbp + 0x1fb0]
xor rcx, rsp
call fcn.1401945b0
mov rbx, qword [rsp + 0x2118]
add rsp, 0x20c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret