Function at 0x1401294d0
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov r13, rdx
lea rdx, str.CBaseInfoCustomDrv::DeleteCustomCodeOfReg
lea rcx, [rbp + 0x30]
call fcn.14001abe0
nop
lea rsi, [0x1402a8360]
lea r12, [0x1402bbdb0]
mov rax, qword [0x1402a8360]
cmp rax, rsi
je 0x14012956b
test byte [rax + 0x1c], 1
je 0x14012956b
mov r9, r12
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x41
lea r8, [0x140261908]
mov rcx, qword [rax + 0x10]
call fcn.140001ad0
mov rax, qword [0x1402a8360]
xor r15d, r15d
test r13, r13
jne 0x140129588
mov r15d, 0x80010001
mov dword [0x1402bbd98], 1
jmp 0x1401298e7
lea rax, vtable.CMap_class_ATL::CStringT_unsigned_short_int__class_StrTraitMFC_unsigned_short_int__class_ATL::ChTraitsCRT_unsigned_short_int_____unsigned_short_int_const____ptr64__unsigned_char____ptr64__unsigned_char____ptr64_.0
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x58], reloc.COMCTL32.dll_InitCommonControls
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmm1, xmmword [0x14026f400]
movdqa xmmword [rsp + 0x70], xmm1
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x78], r15
lfence
mov ecx, 0x48
call fcn.1401baa78
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbp - 0x80], rax
mov qword [rsp + 0x40], r15
mov rcx, qword [rsp + 0x60]
mov rax, rcx
neg rax
sbb rdi, rdi
test rcx, rcx
je 0x140129747
nop
call fcn.1401bb0c4
mov rcx, rax
test rax, rax
je 0x1401299ce
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
mov r9, qword [rsp + 0x50]
test r9, r9
je 0x1401299c8
mov rsi, rdi
test rdi, rdi
je 0x1401299c8
mov r8d, dword [rsp + 0x58]
cmp rdi, 0xffffffffffffffff
jne 0x14012966f
mov ecx, r15d
test r8d, r8d
je 0x14012966f
mov eax, ecx
mov rsi, qword [r9 + rax*8]
test rsi, rsi
jne 0x14012966f
inc ecx
cmp ecx, r8d
jb 0x140129654
test rsi, rsi
je 0x1401299c8
mov rdi, qword [rsi + 0x10]
test rdi, rdi
jne 0x140129697
xor edx, edx
mov eax, dword [rsi + 0x18]
div r8d
inc edx
cmp edx, r8d
jae 0x140129697
mov rdi, qword [r9 + rdx*8]
test rdi, rdi
jne 0x140129697
inc edx
cmp edx, r8d
jb 0x140129687
mov rdx, qword [rsi]
lea rcx, [rdx - 0x18]
lea r14, [rbx - 0x18]
cmp rcx, r14
je 0x140129702
cmp dword [r14 + 0x10], 0
jl 0x1401296ef
mov rax, qword [r14]
cmp qword [rcx], rax
jne 0x1401296ef
call fcn.140004d00
mov rbx, rax
mov eax, 0xffffffff
lock xadd dword [r14 + 0x10], eax
sub eax, 1
jg 0x1401296e4
lfence
mov rcx, qword [r14]
mov rax, qword [rcx]
mov rdx, r14
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
add rbx, 0x18
mov qword [rsp + 0x30], rbx
jmp 0x140129702
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.140004e60
mov rbx, qword [rsp + 0x30]
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x140129711
call fcn.1400079c0
nop
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140129737
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
test rdi, rdi
jne 0x140129600
lea rsi, [0x1402a8360]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1401297bb
mov edi, r15d
mov edx, dword [rsp + 0x58]
test edx, edx
je 0x1401297b1
nop dword [rax]
mov eax, edi
mov rbx, qword [rcx + rax*8]
test rbx, rbx
je 0x1401297ab
nop dword [rax + rax]
mov rdx, qword [rbx]
sub rdx, 0x18
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140129799
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140129770
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
inc edi
cmp edi, edx
jb 0x140129760
call fcn.1400079c0
mov qword [rsp + 0x50], r15
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
mov rcx, qword [rsp + 0x70]
call fcn.1401bc020
mov qword [rsp + 0x70], r15
mov rbx, qword [rbp - 0x80]
mov r8, qword [rbx + 8]
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x80]
call fcn.140008f00
mov qword [rbx + 8], rbx
mov qword [rbx], rbx
mov qword [rbx + 0x10], rbx
mov qword [rbp - 0x78], r15
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetControlPrintPrinters
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401298d6
lea rcx, [rbp - 0x20]
call fcn.1400079d0
nop
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x1401298cc
lea rcx, [rbp - 0x20]
call fcn.140007b00
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, r13
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401298cc
lea rcx, [rbp - 0x70]
call fcn.1400079d0
nop
mov rbx, qword [rbp - 0x20]
test rbx, rbx
je 0x1401298c2
lea rcx, [rbp - 0x70]
call fcn.140007b00
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.PrinterDriverData
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401298c2
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x1401298c2
lea rdx, str.CustomCode
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop
lea rcx, [rbp - 0x70]
call fcn.140007a90
nop
lea rcx, [rbp - 0x20]
call fcn.140007a90
nop
lea rcx, [rsp + 0x40]
call fcn.140007a90
mov rax, qword [0x1402a8360]
mov cl, 1
mov byte [rbp + 0x38], cl
cmp rax, rsi
je 0x14012992e
test byte [rax + 0x1c], cl
je 0x14012992e
mov r9, r12
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x42
mov dword [rsp + 0x20], r15d
lea r8, [0x140261908]
mov rcx, qword [rax + 0x10]
call fcn.140001b40
movzx ecx, byte [rbp + 0x38]
mov rax, qword [0x1402a8360]
lea rdx, vtable.WppTrace.0
mov qword [rbp + 0x30], rdx
test cl, cl
jne 0x140129983
cmp rax, rsi
je 0x140129983
test byte [rax + 0x1c], 1
je 0x140129983
lea rcx, [rbp + 0x40]
cmp qword [rbp + 0x58], 8
cmovae rcx, qword [rbp + 0x40]
cmp qword [0x1402bbdc8], 8
cmovae r12, qword [0x1402bbdb0]
mov edx, 0xa
mov qword [rsp + 0x20], rcx
mov r9, r12
lea r8, [0x140252818]
mov rcx, qword [rax + 0x10]
call fcn.140006c90
lea rcx, [rbp + 0x60]
call fcn.1400048a0
lea rcx, [rbp + 0x40]
call fcn.1400048a0
mov eax, r15d
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.1401e2900
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1401bb848
nop
mov ecx, 0x80004005
call fcn.140001470
int3