Function at 0x1400049d0
Capabilities:
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2f8
lea rbp, [rsp + 0x60]
mov qword [rbp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x1400163a0]
xor rax, rbp
mov qword [rbp + 0x280], rax
mov dword [rbp + 8], r9d
mov qword [rbp + 0x10], r8
mov rsi, rdx
mov r12, rcx
xor r14d, r14d
mov ebx, r14d
mov qword [rbp + 0x60], rbx
mov r15d, r14d
mov qword [rbp + 0x40], r14
mov qword [rbp + 0x48], r14
mov qword [rbp + 0x50], r14
mov r13d, r14d
mov dword [rbp + 0x18], 1
mov eax, dword [rbp + 0x300]
mov dword [rbp + 0x38], eax
call fcn.1400047f8
mov edi, eax
test eax, eax
js 0x1400051bc
cmp word [rsi], 0x7d
je 0x1400051bc
lea rdx, str.Delete
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
nop dword [rax + rax]
test eax, eax
sete r14b
lea rdx, str.ForceRemove
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
nop dword [rax + rax]
test eax, eax
je 0x140004a94
test r14d, r14d
je 0x140004b68
mov rdx, rsi
mov rcx, r12
call fcn.1400047f8
mov edi, eax
xor edx, edx
test eax, eax
js 0x1400051bc
cmp dword [rbp + 8], edx
je 0x140004b68
mov qword [rbp + 0x20], rdx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], rdx
mov rcx, rsi
movzx eax, word [rsi]
jmp 0x140004ae0
cmp ax, 0x5c
je 0x140004ae7
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
nop dword [rax + rax]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140004ac8
jmp 0x140004af0
test rcx, rcx
jne 0x1400051b7
lea rdi, str.CLSID
mov rdx, qword [rdi]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
nop dword [rax + rax]
test eax, eax
je 0x140004b31
add rdi, 8
lea rax, [0x140010600]
cmp rdi, rax
jl 0x140004af7
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x20], rax
mov rdx, rsi
lea rcx, [rbp + 0x20]
call fcn.1400044b0
test r14d, r14d
je 0x140004b68
mov rdx, rsi
mov rcx, r12
call fcn.1400047f8
mov edi, eax
xor r14d, r14d
test eax, eax
js 0x1400051d3
mov rdx, rsi
mov rcx, r12
call fcn.140004728
mov edi, eax
test eax, eax
js 0x1400051bc
jmp 0x14000515d
lea rdx, str.NoRemove
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
nop dword [rax + rax]
xor r14d, r14d
test eax, eax
jne 0x140004b9e
mov dword [rbp + 0x18], r14d
mov rdx, rsi
mov rcx, r12
call fcn.1400047f8
mov edi, eax
test eax, eax
js 0x1400051bc
lea rdx, [0x140010ff0]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
nop dword [rax + rax]
test eax, eax
jne 0x140004cb3
lea rdx, [rbp + 0x70]
mov rcx, r12
call fcn.1400047f8
mov edi, eax
test eax, eax
js 0x1400051bc
mov rdx, rsi
mov rcx, r12
call fcn.1400047f8
mov edi, eax
test eax, eax
js 0x1400051bc
cmp word [rsi], 0x3d
jne 0x1400051b7
cmp dword [rbp + 8], r14d
je 0x140004c26
mov qword [rbp + 0x28], r14
mov qword [rbp + 0x30], r14
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x20], rax
mov byte [rsp + 0x20], r14b
mov r9, rsi
lea r8, [rbp + 0x70]
lea rdx, [rbp + 0x20]
mov rcx, r12
call fcn.140003c24
mov edi, eax
jmp 0x140004b5b
xor edi, edi
cmp dword [rbp + 0x300], edi
jne 0x140004ca0
mov qword [rbp], rdi
lea rax, [rbp]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400051d5
mov eax, edi
mov r14, qword [rbp]
test eax, eax
jne 0x1400051d5
lea rdx, [rbp + 0x70]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
test eax, 0xfffffffd
jne 0x1400051d5
test r14, r14
je 0x140004ca0
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rdx, rsi
mov rcx, r12
call fcn.140004728
xor r14d, r14d
jmp 0x140004a41
mov rcx, rsi
movzx eax, word [rsi]
jmp 0x140004cd3
cmp ax, 0x5c
je 0x140004cda
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
nop dword [rax + rax]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140004cbb
jmp 0x140004ce3
test rcx, rcx
jne 0x1400051b7
cmp dword [rbp + 8], r14d
je 0x140004e76
mov qword [rbp], r14
lea rax, [rbp]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, rsi
mov rdi, qword [rbp + 0x10]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140004d44
mov eax, r14d
test r15, r15
je 0x140004d34
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov r15, qword [rbp]
mov qword [rbp + 0x40], r15
test eax, eax
je 0x140004e02
mov qword [rbp], r14
lea rax, [rbp]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140004d93
mov eax, r14d
test r15, r15
je 0x140004d87
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov r15, qword [rbp]
mov qword [rbp + 0x40], r15
test eax, eax
je 0x140004e02
mov qword [rbp], r14
lea rax, [rbp + 0x58]
mov qword [rsp + 0x40], rax
lea rax, [rbp]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400051b7
mov eax, r14d
test r15, r15
je 0x140004df2
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov r15, qword [rbp]
mov qword [rbp + 0x40], r15
test eax, eax
jne 0x1400051b7
movzx eax, word [rsi]
sub ax, 0x4c
mov ecx, 0xffdf
test cx, ax
jne 0x140004e38
lea rdx, str.LocalServer32
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
nop dword [rax + rax]
movzx r14d, r14b
test eax, eax
mov eax, 1
cmove r14d, eax
mov rdx, rsi
mov rcx, r12
call fcn.1400047f8
mov edi, eax
test eax, eax
js 0x1400051bc
cmp word [rsi], 0x3d
jne 0x14000515a
mov byte [rsp + 0x20], r14b
mov r9, rsi
xor r8d, r8d
lea rdx, [rbp + 0x40]
mov rcx, r12
call fcn.140003c24
xor r14d, r14d
jmp 0x140004c1f
mov r14d, dword [rbp + 0x300]
xor edi, edi
test r14d, r14d
jne 0x140004ee1
mov qword [rbp], rdi
lea rax, [rbp]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140004ed3
mov eax, edi
test r15, r15
je 0x140004ec7
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov r15, qword [rbp]
mov qword [rbp + 0x40], r15
test eax, eax
je 0x140004ee1
mov eax, 1
mov r14d, eax
mov dword [rbp + 0x300], eax
test r13, r13
jne 0x140004f3c
mov ecx, 0x208
call fcn.140004334
test al, al
je 0x140004f0a
mov eax, dword [rsp]
mov eax, 0x210
sub rsp, rax
lea r13, [rsp + 0x60]
mov eax, dword [r13]
jmp 0x140004f33
mov ecx, 0x218
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
test rax, rax
jne 0x140004f25
mov r13, rdi
jmp 0x140004f33
mov qword [rax], rbx
mov rbx, rax
mov qword [rbp + 0x60], rax
lea r13, [rax + 0x10]
test r13, r13
je 0x1400051f9
mov r8d, 0x104
mov rdx, rsi
mov rcx, r13
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcpynW]
nop dword [rax + rax]
test r14d, r14d
jne 0x140004fb8
mov dword [rbp], edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
lea rax, [rbp]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
test eax, eax
js 0x140004fa8
cmp dword [rbp], edi
ja 0x140004fb8
mov rdx, r15
call fcn.1400043ac
test eax, eax
je 0x1400050f0
mov rdx, rsi
mov rcx, r12
call fcn.1400047f8
mov edi, eax
test eax, eax
js 0x1400051bc
mov rdx, rsi
mov rcx, r12
call fcn.140004728
mov edi, eax
xor eax, eax
test edi, edi
js 0x1400051bc
cmp word [rsi], 0x7b
jne 0x140005042
mov dword [rsp + 0x20], r14d
xor r9d, r9d
mov r8, r15
mov rdx, rsi
mov rcx, r12
call fcn.1400049d0
mov edi, eax
xor eax, eax
test edi, edi
js 0x1400051bc
test r14d, r14d
je 0x14000504b
mov eax, dword [rbp + 0x38]
mov dword [rbp + 0x300], eax
mov rdx, rsi
mov rcx, r12
call fcn.1400047f8
mov edi, eax
xor r14d, r14d
test eax, eax
js 0x1400051bc
mov rdx, rsi
mov rcx, r12
call fcn.140004728
jmp 0x140004a41
test r14d, r14d
jne 0x1400051af
mov dword [rbp], eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
lea rax, [rbp]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
xor ecx, ecx
test eax, eax
js 0x1400050e7
cmp dword [rbp], ecx
jbe 0x1400050e7
lea rdi, str.CLSID
xor r14d, r14d
mov rdx, qword [rdi]
mov rcx, r13
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
nop dword [rax + rax]
test eax, eax
je 0x1400050dc
add rdi, 8
lea rax, [0x140010600]
cmp rdi, rax
jl 0x1400050a6
mov rdx, r13
lea rcx, [rbp + 0x40]
call fcn.1400044b0
mov r15, qword [rbp + 0x40]
mov rdx, rsi
mov rcx, r12
jmp 0x140004a3c
test r14d, r14d
jne 0x1400051af
xor r14d, r14d
test r15, r15
je 0x140005116
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov r15d, r14d
mov qword [rbp + 0x40], r14
test eax, eax
jne 0x1400051b7
cmp dword [rbp + 0x18], r14d
je 0x140005139
mov qword [rbp + 0x28], r14
mov qword [rbp + 0x30], r14
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x20], rax
mov rdx, r13
lea rcx, [rbp + 0x20]
call fcn.14000464c
nop
mov rdx, rsi
mov rcx, r12
call fcn.1400047f8
mov edi, eax
test eax, eax
js 0x1400051bc
mov rdx, rsi
mov rcx, r12
call fcn.140004728
jmp 0x140004c1f
xor r14d, r14d
mov ecx, dword [rbp + 8]
test ecx, ecx
je 0x140004a4b
cmp word [rsi], 0x7b
jne 0x140004a4b
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x140005176
mov edx, 1
cmp rax, rdx
jne 0x140004a4b
mov dword [rsp + 0x20], r14d
mov r9d, ecx
mov r8, r15
mov rdx, rsi
mov rcx, r12
call fcn.1400049d0
mov edi, eax
test eax, eax
js 0x1400051bc
jmp 0x1400050dc
xor r14d, r14d
jmp 0x140004a4b
mov edi, 0x80020009
test r15, r15
je 0x1400051d1
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
nop
jmp 0x140005212
jmp 0x1400051bc
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test r14, r14
je 0x1400051bc
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x1400051bc
mov edi, 0x8007000e
jmp 0x1400051bc
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
test rbx, rbx
jne 0x140005200
mov eax, edi
mov rcx, qword [rbp + 0x280]
xor rcx, rbp
call fcn.14000d8d0
lea rsp, [rbp + 0x298]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret