Function at 0x140119020
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xe0
mov qword [rbp + 0x1f], 0xfffffffffffffffe
mov qword [rsp + 0x128], rbx
mov rsi, rdx
mov rdi, rcx
mov rcx, qword [rcx + 0xb0]
cmp dword [rcx + 4], 0
je 0x14011964a
mov rbx, qword [rcx + 0x10]
add rbx, rcx
mov rcx, rbx
call fcn.140117ff0
test rax, rax
je 0x14011964a
cmp byte [rbx + 0x18], 0
jne 0x14011964a
mov rcx, rbx
call fcn.140117ff0
test rax, rax
je 0x14011964a
mov rcx, qword [rsi]
mov qword [rbp - 0x79], rcx
mov eax, dword [rcx]
inc eax
cmp eax, 1
jbe 0x1401190a5
lock inc dword [rcx]
lea rdx, [rbp - 0x79]
lea rcx, [rbp + 0x67]
call fcn.140117c30
nop
lea rdx, [rbp + 0x67]
lea rcx, [rbp - 0x69]
call fcn.1401183d0
mov r14, rax
mov rcx, qword [rdi + 0xb0]
xor r15d, r15d
cmp dword [rcx + 4], r15d
je 0x1401190fa
mov rbx, qword [rcx + 0x10]
add rbx, rcx
mov rcx, rbx
call fcn.140117ff0
test rax, rax
je 0x1401190fa
cmp byte [rbx + 0x18], r15b
jne 0x1401190fa
mov rcx, rbx
call fcn.140117ff0
mov rsi, rax
jmp 0x1401190fd
mov rsi, r15
mov ebx, dword [rdi + 0xbc]
mov qword [rbp - 0x71], r15
or ebx, 0x2001f
mov rcx, r14
call fcn.140036ca0
mov rdx, rax
lea rax, [rbp - 0x71]
mov qword [rsp + 0x20], rax
mov r9d, ebx
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rbx, r15
test eax, eax
cmove rbx, qword [rbp - 0x71]
mov rcx, qword [rbp - 0x69]
mov eax, dword [rcx]
or esi, 0xffffffff
test eax, eax
je 0x14011915a
cmp eax, esi
je 0x140119168
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140119168
mov rcx, qword [rbp - 0x69]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140039ba0
test rbx, rbx
je 0x1401191c5
lea rdx, [rbp + 0x67]
lea rcx, [rbp - 0x61]
call fcn.140118270
nop
mov rcx, rax
call fcn.140036ca0
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop
mov rcx, qword [rbp - 0x61]
mov eax, dword [rcx]
test eax, eax
je 0x1401191ae
cmp eax, 0xffffffff
je 0x1401191bc
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1401191bc
mov rcx, qword [rbp - 0x61]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140039ba0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rdi + 0xb0]
cmp dword [rcx + 4], 0
je 0x1401191f9
mov rbx, qword [rcx + 0x10]
add rbx, rcx
mov rcx, rbx
call fcn.140117ff0
test rax, rax
je 0x1401191f9
cmp byte [rbx + 0x18], 0
jne 0x1401191f9
mov rcx, rbx
call fcn.140117ff0
mov r14, rax
jmp 0x1401191fc
mov r14, r15
mov ebx, dword [rdi + 0xbc]
mov qword [rbp - 0x59], r15
or ebx, 0x2001f
lea rcx, [rbp + 0x67]
call fcn.140036ca0
mov rdx, rax
lea rax, [rbp - 0x59]
mov qword [rsp + 0x20], rax
mov r9d, ebx
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14011961e
mov r14, qword [rbp - 0x59]
mov qword [rsp + 0x30], r14
test r14, r14
je 0x14011961e
mov edx, dword [rdi + 0xbc]
mov rcx, r14
call fcn.1401176a0
mov rax, qword [rbp + 0x67]
cmp dword [rax + 4], 0
jne 0x1401194f2
mov ebx, 1
mov r8d, ebx
mov rdx, r14
lea rcx, [rbp + 0x77]
call fcn.140116770
nop
mov r12d, r15d
mov rax, qword [rbp + 0x77]
lea rdi, [rax + 0xc]
mov qword [rsp + 0x38], rdi
lea r13, [rax + 8]
mov eax, dword [rdi]
sub eax, dword [r13]
test eax, eax
jle 0x140119470
nop dword [rax]
movsxd rcx, dword [r13]
add rcx, r15
mov rax, qword [rbp + 0x77]
mov rax, qword [rax + rcx*8 + 0x10]
mov qword [rbp + 0x7f], rax
mov ecx, dword [rax]
inc ecx
cmp ecx, 1
jbe 0x1401192c0
lock inc dword [rax]
lea rcx, [rbp + 0x7f]
call fcn.140036ca0
mov rdx, rax
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x14011942f
mov edx, eax
lea rcx, [rbp - 0x41]
call fcn.140117ba0
nop
lea rdx, [rbp - 0x49]
mov rcx, rax
call fcn.140022d80
mov rdi, rax
lea rdx, [rbp - 0x51]
lea rcx, [rbp + 0x7f]
call fcn.140028c70
mov r14, rax
mov rcx, qword [rdi]
cmp dword [rcx], 1
ja 0x140119317
cmp qword [rcx + 0x10], 0x18
je 0x140119332
xor r8d, r8d
cmp dword [rcx + 8], 0x80000000
cmovae r8d, ebx
mov edx, dword [rcx + 4]
inc edx
mov rcx, rdi
call fcn.1400243f0
mov rcx, qword [rdi]
mov rdi, qword [rcx + 0x10]
add rdi, rcx
mov rax, qword [r14]
cmp dword [rax], 1
ja 0x14011934b
cmp qword [rax + 0x10], 0x18
je 0x140119366
xor r8d, r8d
cmp dword [rax + 8], 0x80000000
cmovae r8d, ebx
mov edx, dword [rax + 4]
inc edx
mov rcx, r14
call fcn.1400243f0
mov rcx, qword [r14]
mov r8, qword [rcx + 0x10]
add r8, rcx
mov qword [rbp - 0x21], 2
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x19], xmm0
lea rax, [0x1402b84e0]
mov qword [rbp - 9], rax
mov r9, rdi
lea rdx, [0x1402915f8]
lea rcx, [rbp - 0x21]
call fcn.140028d60
nop
mov rcx, qword [rbp - 0x51]
mov eax, dword [rcx]
test eax, eax
je 0x1401193bd
cmp eax, 0xffffffff
je 0x1401193cc
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1401193cc
mov rcx, qword [rbp - 0x51]
mov r8d, 8
mov rdx, rbx
call fcn.140039ba0
nop
mov rcx, qword [rbp - 0x49]
mov eax, dword [rcx]
test eax, eax
je 0x1401193ea
cmp eax, 0xffffffff
je 0x1401193f9
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1401193f9
mov rcx, qword [rbp - 0x49]
mov r8d, 8
mov rdx, rbx
call fcn.140039ba0
nop
mov rcx, qword [rbp - 0x41]
mov eax, dword [rcx]
test eax, eax
je 0x140119417
cmp eax, 0xffffffff
je 0x140119425
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140119425
mov rcx, qword [rbp - 0x41]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140039ba0
mov r14, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rcx, qword [rbp + 0x7f]
mov eax, dword [rcx]
test eax, eax
je 0x14011944d
cmp eax, 0xffffffff
je 0x14011945b
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14011945b
mov rcx, qword [rbp + 0x7f]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140039ba0
inc r12d
inc r15
mov eax, dword [rdi]
sub eax, dword [r13]
cmp r12d, eax
jl 0x1401192a0
mov rax, qword [rbp + 0x77]
mov ecx, dword [rax]
test ecx, ecx
je 0x14011948a
cmp ecx, 0xffffffff
je 0x1401194ed
mov ecx, esi
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1401194ed
movsxd rbx, dword [rdi]
mov rax, qword [rbp + 0x77]
add rbx, 2
lea rbx, [rax + rbx*8]
movsxd rdi, dword [r13]
add rdi, 2
lea rdi, [rax + rdi*8]
cmp rdi, rbx
je 0x1401194e3
nop word [rax + rax]
sub rbx, 8
mov rcx, qword [rbx]
mov eax, dword [rcx]
test eax, eax
je 0x1401194cd
cmp eax, 0xffffffff
je 0x1401194de
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1401194de
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbx]
call fcn.140039ba0
cmp rbx, rdi
jne 0x1401194b0
mov rcx, qword [rbp + 0x77]
call fcn.14011dbc0
nop
jmp 0x140119614
lea rcx, [rbp + 0x67]
call fcn.140036ca0
mov rbx, rax
mov rcx, rdi
call fcn.14011a0c0
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x140119614
mov edx, eax
lea rcx, [rbp - 0x29]
call fcn.140117ba0
nop
lea rdx, [rbp - 0x31]
mov rcx, rax
call fcn.140022d80
mov rbx, rax
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 0x67]
call fcn.140028c70
mov rdi, rax
mov qword [rbp - 1], 2
xorps xmm0, xmm0
movdqu xmmword [rbp + 7], xmm0
lea rax, [0x1402b84e0]
mov qword [rbp + 0x17], rax
mov rcx, rbx
call fcn.14001f610
mov rbx, rax
mov rcx, rdi
call fcn.14001f610
mov r8, rax
mov r9, rbx
lea rdx, [0x140291630]
lea rcx, [rbp - 1]
call fcn.140028d60
nop
mov rcx, qword [rbp - 0x39]
mov eax, dword [rcx]
mov ebx, 1
test eax, eax
je 0x1401195ac
cmp eax, 0xffffffff
je 0x1401195bb
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, ebx
jne 0x1401195bb
mov rcx, qword [rbp - 0x39]
mov r8d, 8
mov rdx, rbx
call fcn.140039ba0
nop
mov rcx, qword [rbp - 0x31]
mov eax, dword [rcx]
test eax, eax
je 0x1401195d9
cmp eax, 0xffffffff
je 0x1401195e8
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1401195e8
mov rcx, qword [rbp - 0x31]
mov r8d, 8
mov rdx, rbx
call fcn.140039ba0
nop
mov rcx, qword [rbp - 0x29]
mov eax, dword [rcx]
test eax, eax
je 0x140119606
cmp eax, 0xffffffff
je 0x140119614
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140119614
mov rcx, qword [rbp - 0x29]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140039ba0
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [rbp + 0x67]
mov eax, dword [rcx]
test eax, eax
je 0x14011963a
cmp eax, 0xffffffff
je 0x140119657
lock xadd dword [rcx], esi
cmp esi, 1
jne 0x140119657
mov rcx, qword [rbp + 0x67]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140039ba0
jmp 0x140119657
mov edx, 1
mov rcx, rdi
call fcn.1400d3c00
mov rbx, qword [rsp + 0x128]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret