Function at 0x140018114
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov r13d, r9d
mov rbp, r8
mov r10, qword [0x140148ea8]
mov r12d, dword [rsp + 0xc8]
mov r14, qword [rsp + 0xc0]
lea rbx, [0x140148ea8]
mov eax, 5
cmp r10, rbx
je 0x140018190
test byte [r10 + 0x1c], 1
je 0x140018190
cmp byte [r10 + 0x19], al
jb 0x140018190
mov eax, dword [r14]
mov rcx, qword [r10 + 0x10]
mov dword [r11 - 0x58], r12d
mov dword [rsp + 0x38], eax
mov dword [r11 - 0x68], r9d
mov qword [r11 - 0x70], r8
call fcn.140017b30
mov r10, qword [0x140148ea8]
xor edx, edx
mov rcx, 0xffffffff80000002
mov edi, edx
mov r8d, edx
mov esi, edx
mov r15, rcx
test rbp, rbp
je 0x140018383
cmp dx, word [rbp]
je 0x140018383
lea r10, [0x140005590]
mov dword [r14], r13d
test r10, r10
je 0x1400181f6
lea rax, [rsp + 0x58]
mov qword [rsp + 0x58], rdx
mov r9d, 0x2011f
mov rdx, r10
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor edx, edx
mov r8d, eax
test eax, eax
jne 0x1400181fc
mov rsi, qword [rsp + 0x58]
mov r8d, edx
jmp 0x1400181fc
mov r15, rdx
mov rsi, rcx
test r8d, r8d
jne 0x140018280
lea rax, [rsp + 0xa0]
mov dword [rsp + 0xa8], edx
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa8]
xor r8d, r8d
mov rdx, rbp
mov rcx, rsi
mov dword [rsp + 0xa0], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor edx, edx
mov r8d, eax
test eax, eax
jne 0x14001825a
mov eax, dword [rsp + 0x50]
sub eax, 4
neg eax
sbb r8d, r8d
and r8d, 0xd
test r8d, r8d
jne 0x140018269
mov eax, dword [rsp + 0xa8]
mov dword [r14], eax
cmp r12d, 1
jne 0x140018280
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor edx, edx
mov r8d, eax
mov ebx, 2
cmp r8d, 0x490
je 0x140018293
cmp r8d, ebx
jne 0x140018296
mov r8d, edx
test r8d, r8d
je 0x140018306
movzx edi, r8w
or edi, 0x80070000
test r8d, r8d
cmovle edi, r8d
mov r10, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp r10, rax
je 0x14001834d
mov r8d, 5
test byte [r10 + 0x1c], bl
je 0x140018313
movzx ecx, byte [r10 + 0x19]
test edi, edi
mov eax, ebx
cmovns eax, r8d
cmp ecx, eax
jl 0x140018313
lea edx, [r8 + 0x19]
mov eax, dword [r14]
mov rcx, qword [r10 + 0x10]
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x40], eax
mov r9d, edi
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x30], rbp
call fcn.140017880
mov r10, qword [0x140148ea8]
mov r8d, 5
lea rbp, [0x140148ea8]
cmp r10, rbp
je 0x14001834d
test byte [r10 + 0x1c], 1
je 0x14001834d
movzx eax, byte [r10 + 0x19]
test edi, edi
cmovns ebx, r8d
cmp eax, ebx
jl 0x14001834d
mov rcx, qword [r10 + 0x10]
lea r8, [0x140005d50]
mov edx, 0x1f
mov r9d, edi
call fcn.14000fd64
test r15, r15
je 0x14001835b
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rsi, rsi
je 0x140018369
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov edi, 0x80070057
cmp r10, rbx
je 0x140018352
mov ebx, 2
test byte [r10 + 0x1c], bl
je 0x14001830d
cmp byte [r10 + 0x19], bl
jb 0x14001830d
lea edx, [rbx + 0x1b]
jmp 0x1400182e4