Function at 0x140021de0
Capabilities:
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10d8]
mov eax, 0x11d8
call fcn.14005dd10
sub rsp, rax
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov rax, qword [0x14009b3d0]
xor rax, rsp
mov qword [rbp + 0x10c0], rax
mov dword [rsp + 0x64], r9d
mov r15, r8
mov qword [rsp + 0x68], r8
mov rdi, rdx
mov r12, rcx
xor r14d, r14d
mov qword [rbp - 0x78], r14
and dword [rbp - 0x70], r14d
and qword [rbp - 0x68], r14
call fcn.140020a24
test eax, eax
mov ebx, eax
js 0x140022411
cmp byte [rdi], 0x7d
je 0x140022411
mov eax, 1
mov r13d, eax
lea rdx, [0x140069260]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
xor esi, esi
test eax, eax
sete sil
lea rdx, [0x140069230]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x140021e91
test esi, esi
je 0x140021f5e
mov rdx, rdi
mov rcx, r12
call fcn.140020a24
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140022411
cmp dword [rsp + 0x64], edx
je 0x140021f5e
mov qword [rsp + 0x70], rdx
mov dword [rsp + 0x78], edx
mov qword [rbp - 0x80], rdx
mov rcx, rdi
mov al, byte [rdi]
jmp 0x140021ed5
cmp al, 0x5c
je 0x140021edb
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
mov al, byte [rax]
test al, al
jne 0x140021ec6
jmp 0x140021ee4
test rcx, rcx
jne 0x140022472
lea rbx, str.AppID
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x140021f27
add rbx, 8
lea rax, [0x1400710f0]
cmp rbx, rax
jl 0x140021eeb
mov qword [rsp + 0x70], r15
and dword [rsp + 0x78], 0
and qword [rbp - 0x80], 0
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.140021170
test esi, esi
je 0x140021f5e
mov rdx, rdi
mov rcx, r12
call fcn.140020a24
mov ebx, eax
test eax, eax
js 0x140022411
mov rdx, rdi
mov rcx, r12
call fcn.140023b1c
mov ebx, eax
test eax, eax
js 0x140022411
mov esi, dword [rsp + 0x64]
jmp 0x140022158
lea rdx, [0x140069248]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140021f8a
xor r13d, r13d
mov rdx, rdi
mov rcx, r12
call fcn.140020a24
mov ebx, eax
test eax, eax
js 0x140022411
lea rdx, [0x140069220]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x14002208c
lea rdx, [rbp + 0xc0]
mov rcx, r12
call fcn.140020a24
mov ebx, eax
test eax, eax
js 0x140022411
mov rdx, rdi
mov rcx, r12
call fcn.140020a24
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140022411
cmp byte [rdi], 0x3d
jne 0x140022472
mov esi, dword [rsp + 0x64]
test esi, esi
je 0x140022016
mov qword [rsp + 0x70], r15
mov dword [rsp + 0x78], edx
mov qword [rbp - 0x80], rdx
mov r9, rdi
lea r8, [rbp + 0xc0]
lea rdx, [rsp + 0x70]
mov rcx, r12
call fcn.14001c908
mov ebx, eax
test eax, eax
js 0x140022411
jmp 0x140022158
cmp dword [rbp + 0x1140], edx
jne 0x14002207c
test r13d, r13d
je 0x14002207c
mov qword [rsp + 0x70], rdx
mov dword [rsp + 0x78], edx
mov qword [rbp - 0x80], rdx
mov r9d, 0x20006
xor r8d, r8d
mov rdx, r15
lea rcx, [rsp + 0x70]
call fcn.140020bac
test eax, eax
jne 0x140022457
lea rdx, [rbp + 0xc0]
mov rsi, qword [rsp + 0x70]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, 0xfffffffd
jne 0x140022444
test rsi, rsi
je 0x14002207c
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, r12
call fcn.140023b1c
jmp 0x140021e42
mov rcx, rdi
mov al, byte [rdi]
jmp 0x1400220a2
cmp al, 0x5c
je 0x1400220a8
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
mov al, byte [rax]
test al, al
jne 0x140022093
jmp 0x1400220b1
test rcx, rcx
jne 0x140022472
mov esi, dword [rsp + 0x64]
test esi, esi
je 0x1400221a2
mov ebx, 0x2001f
mov r9d, ebx
mov r8, rdi
mov rdx, r15
lea rcx, [rbp - 0x78]
call fcn.140020bac
test eax, eax
je 0x14002211e
lea r9d, [rbx - 6]
mov r8, rdi
mov rdx, r15
lea rcx, [rbp - 0x78]
call fcn.140020bac
test eax, eax
je 0x14002211e
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], ebx
and dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rdi
mov rdx, r15
lea rcx, [rbp - 0x78]
call fcn.14001ee74
test eax, eax
jne 0x140022479
mov rdx, rdi
mov rcx, r12
call fcn.140020a24
mov ebx, eax
test eax, eax
js 0x140022482
cmp byte [rdi], 0x3d
jne 0x140022154
mov r9, rdi
xor r8d, r8d
lea rdx, [rbp - 0x78]
mov rcx, r12
call fcn.14001c908
mov ebx, eax
test eax, eax
js 0x140022482
mov r14, qword [rbp - 0x78]
cmp byte [rdi], 0x7b
jne 0x140021e4c
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov ecx, 1
cmp rax, rcx
jne 0x140021e4c
and dword [rsp + 0x20], 0
mov r9d, esi
mov r8, r14
mov rdx, rdi
mov rcx, r12
call fcn.140021de0
mov ebx, eax
test eax, eax
js 0x140022411
mov rdx, rdi
mov rcx, r12
jmp 0x140021e3d
mov ebx, dword [rbp + 0x1140]
test ebx, ebx
jne 0x1400221c9
mov r9d, 0x20019
mov r8, rdi
mov rdx, r15
lea rcx, [rbp - 0x78]
call fcn.140020bac
mov esi, eax
mov r14, qword [rbp - 0x78]
jmp 0x1400221ce
mov esi, 2
mov r15d, ebx
test esi, esi
mov eax, 1
cmovne r15d, eax
or r9, 0xffffffffffffffff
mov r8, rdi
mov edx, Ordinal_262
lea rcx, [rbp - 0x50]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcpy_s]
test eax, eax
je 0x14002221a
cmp eax, 0xc
je 0x14002249b
cmp eax, 0x16
je 0x140022495
cmp eax, 0x22
je 0x140022495
cmp eax, 0x50
jne 0x14002248f
mov rdx, rdi
mov rcx, r12
call fcn.140020a24
mov ebx, eax
test eax, eax
js 0x140022411
mov rdx, rdi
mov rcx, r12
call fcn.140023b1c
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140022411
cmp byte [rdi], 0x7b
jne 0x14002229d
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov ecx, 1
cmp rax, rcx
jne 0x14002229b
mov dword [rsp + 0x20], r15d
xor r9d, r9d
mov r8, r14
mov rdx, rdi
mov rcx, r12
call fcn.140021de0
mov ebx, eax
test eax, eax
jns 0x140022282
test r15d, r15d
je 0x140022411
mov rdx, rdi
mov rcx, r12
call fcn.140020a24
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140022411
jmp 0x14002229d
xor edx, edx
cmp esi, 2
je 0x1400222b2
test esi, esi
je 0x1400222bc
cmp dword [rbp + 0x1140], edx
je 0x140022488
mov r15, qword [rsp + 0x68]
jmp 0x140021e4c
cmp dword [rbp + 0x1140], edx
je 0x14002235d
mov dword [rsp + 0x60], edx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
test eax, eax
jne 0x14002235d
cmp dword [rsp + 0x60], edx
jbe 0x14002235d
lea rsi, str.AppID
mov rdx, qword [rsi]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1400222b2
add rsi, 8
lea rax, [0x1400710f0]
cmp rsi, rax
jl 0x14002231d
test r13d, r13d
je 0x1400222b2
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x78]
call fcn.140021170
mov r14, qword [rbp - 0x78]
jmp 0x1400222b2
mov dword [rsp + 0x60], edx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
mov esi, edx
test eax, eax
jne 0x1400223af
cmp dword [rsp + 0x60], edx
seta sil
mov eax, edx
test r14, r14
je 0x1400223c8
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov r14d, edx
mov qword [rbp - 0x78], rdx
mov dword [rbp - 0x70], edx
test eax, eax
jne 0x140022408
mov r15, qword [rsp + 0x68]
test r13d, r13d
je 0x140021e4c
test esi, esi
jne 0x140021e4c
mov qword [rsp + 0x70], r15
mov dword [rsp + 0x78], edx
mov qword [rbp - 0x80], rdx
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x70]
call fcn.14001f36c
test eax, eax
je 0x140021e4c
mov ecx, eax
call fcn.14001ddb8
mov ebx, eax
test r14, r14
je 0x14002241f
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x10c0]
xor rcx, rsp
call fcn.14005d930
add rsp, 0x11d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, eax
call fcn.14001ddb8
mov ebx, eax
test rsi, rsi
je 0x140022411
mov rcx, rsi
jmp 0x14002246a
mov ecx, eax
call fcn.14001ddb8
mov ebx, eax
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140022411
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140022411
mov ebx, 0x80020009
jmp 0x140022411
mov ecx, eax
call fcn.14001ddb8
mov ebx, eax
mov r14, qword [rbp - 0x78]
jmp 0x140022411
mov ecx, esi
jmp 0x14002240a
call sub.mfc140.dll_Ordinal_2342
int3
call sub.mfc140.dll_Ordinal_2342
int3
call sub.mfc140.dll_Ordinal_2344
int3