Function at 0x140031240
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x3f]
sub rsp, 0xb8
mov qword [rbp + 0x1f], 0xfffffffffffffffe
mov rbx, rdx
mov rdi, rcx
xor r8d, r8d
lea rdx, str.Tool_RemoveRegistry
lea rcx, [rbp - 0x11]
call fcn.140001190
nop
mov r9, rbx
lea r8, str.szRegPath___s
mov edx, 1
lea rcx, [rbp - 0x11]
call fcn.140001370
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
xor r11d, r11d
mov qword [rbp - 0x19], r11
mov dword [rbp - 1], r11d
mov dword [rbp + 0x7f], r11d
mov dword [rbp + 0x77], r11d
mov dword [rbp + 3], r11d
mov dword [rbp + 0xf], r11d
mov dword [rbp + 0x17], r11d
mov dword [rbp + 0x1b], r11d
mov dword [rbp + 0x13], r11d
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140031518
lea rax, [rbp + 0x27]
mov qword [rsp + 0x58], rax
lea rax, [rbp + 0x13]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x1b]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x17]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0xf]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 3]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x77]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x140031375
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r9d, 1
lea r8, str.return___08x
lea edx, [r9 + 1]
lea rcx, [rbp - 0x11]
call fcn.140001370
nop
jmp 0x140031562
cmp dword [rbp + 0x7f], 0
jne 0x140031396
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x1400314f3
mov ecx, dword [rbp + 0x77]
inc ecx
add rcx, rcx
call fcn.14019c5cc
mov rsi, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [rbp + 0x77]
lea ecx, [rax + rdi + 2]
add rcx, rcx
call fcn.14019c5cc
mov qword [rbp + 7], rax
mov ebx, dword [rbp + 0x7f]
test ebx, ebx
je 0x1400314ca
nop dword [rax]
lea ecx, [rdi + 1]
mov dword [rbp - 1], ecx
lea edx, [rbx - 1]
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
lea r9, [rbp - 1]
mov r8, rsi
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140031431
mov r9, rsi
mov r8, qword [rbp + 0x6f]
lea rdx, str._s_s
mov rdi, qword [rbp + 7]
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, rdi
mov rcx, qword [rbp + 0x67]
call fcn.140031240
test eax, eax
je 0x140031445
jmp 0x140031438
cmp eax, 0x103
jne 0x140031487
dec ebx
je 0x1400314ca
mov edi, dword [rbp + 0x77]
jmp 0x1400313d0
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rsi
call fcn.14019c58c
mov rcx, rdi
call fcn.14019c58c
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rbp - 0x11]
call fcn.140001370
nop
lea rcx, [rbp - 0x11]
call fcn.140001320
xor eax, eax
jmp 0x140031570
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rsi
call fcn.14019c58c
mov rcx, qword [rbp + 7]
call fcn.14019c58c
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rbp - 0x11]
call fcn.140001370
nop
lea rcx, [rbp - 0x11]
call fcn.140001320
xor eax, eax
jmp 0x140031570
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbp + 0x6f]
mov rcx, qword [rbp + 0x67]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, rsi
call fcn.14019c58c
mov rcx, qword [rbp + 7]
call fcn.14019c58c
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rbp - 0x11]
call fcn.140001370
nop
lea rcx, [rbp - 0x11]
call fcn.140001320
xor eax, eax
jmp 0x140031570
cmp eax, 2
je 0x140031547
cmp eax, 3
je 0x140031547
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rbp - 0x11]
call fcn.140001370
nop
lea rcx, [rbp - 0x11]
call fcn.140001320
xor eax, eax
jmp 0x140031570
mov r9d, 1
lea r8, str.return___08x
lea edx, [r9 + 1]
lea rcx, [rbp - 0x11]
call fcn.140001370
nop
lea rcx, [rbp - 0x11]
call fcn.140001320
mov eax, 1
add rsp, 0xb8
pop rdi
pop rsi
pop rbx
pop rbp
ret