Function at 0x14007e0a0
Capabilities:
Query or enumerate registry key
Set registry value

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x2a8
mov rax, qword [0x14049f3c0]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov r14, r8
mov rdi, rdx
mov dword [rsp + 0x80], r9d
cmp rcx, 0xffffffff80000001
jne 0x14007e183
xor ebx, ebx
mov esi, ebx
nop
mov dword [rsp + 0x88], 0x100
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x90]
mov edx, esi
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14007e176
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x90]
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x14007e176
mov byte [rsp + 0x20], bl
mov r9d, dword [rsp + 0x80]
mov r8, r14
mov rdx, rdi
mov rcx, qword [rsp + 0x70]
call fcn.14007e0a0
test al, al
je 0x14007e29a
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
jmp 0x14007e0e0
cmp eax, 0x103
sete al
jmp 0x14007e3e4
cmp qword [rdx + 0x18], 7
jbe 0x14007e18d
mov rdx, qword [rdx]
xor ebx, ebx
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
je 0x14007e2a1
lea rcx, [rsp + 0x50]
call fcn.14009ece0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 7
jbe 0x14007e1de
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x1404b3c00]
call fcn.140060f60
lea rdx, str.D:JenkinsworkspaceA_MBAM3_UPDATEREXE_srcmbupdatrRegistry.cpp
mov rcx, rax
call fcn.140049e60
mov rcx, rax
lea rdx, [0x14041b3dc]
call fcn.140049e60
mov edx, 0x66
mov rcx, rax
call fcn.1400476f0
mov rcx, rax
lea rdx, [0x14041a458]
call fcn.140049e60
mov rcx, rax
lea rdx, str.Failed_to_create_key
call fcn.140049e60
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 7
jbe 0x14007e244
mov rdi, qword [rdi]
mov rdx, rdi
mov rcx, rax
call fcn.140060f60
lea rdx, [0x14041a458]
mov rcx, rax
call fcn.140049e60
mov edx, ebx
mov rcx, rax
call fcn.1400476f0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.14002fc90
movzx edx, ax
mov rcx, rbx
call fcn.140072fb0
mov rcx, rbx
call fcn.14002eff0
nop
lea rcx, [rsp + 0x50]
call fcn.1400166f0
xor al, al
jmp 0x14007e3e4
mov rdx, r14
cmp qword [r14 + 0x18], 7
jbe 0x14007e2ae
mov rdx, qword [r14]
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x14007e3e2
lea rcx, [rsp + 0x50]
call fcn.14009ece0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 7
jbe 0x14007e2fa
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x1404b3c00]
call fcn.140060f60
lea rdx, str.D:JenkinsworkspaceA_MBAM3_UPDATEREXE_srcmbupdatrRegistry.cpp
mov rcx, rax
call fcn.140049e60
mov rcx, rax
lea rdx, [0x14041b3dc]
call fcn.140049e60
mov edx, WSASetLastError
mov rcx, rax
call fcn.1400476f0
mov rcx, rax
lea rdx, [0x14041a458]
call fcn.140049e60
mov rcx, rax
lea rdx, str.Failed_to_set_value
call fcn.140049e60
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 7
jbe 0x14007e360
mov rdi, qword [rdi]
mov rdx, rdi
mov rcx, rax
call fcn.140060f60
lea rdx, [0x140424150]
mov rcx, rax
call fcn.140049e60
mov r8, qword [r14 + 0x10]
cmp qword [r14 + 0x18], 7
jbe 0x14007e388
mov r14, qword [r14]
mov rdx, r14
mov rcx, rax
call fcn.140060f60
lea rdx, [0x14041a458]
mov rcx, rax
call fcn.140049e60
mov edx, ebx
mov rcx, rax
call fcn.1400476f0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.14002fc90
movzx edx, ax
mov rcx, rbx
call fcn.140072fb0
mov rcx, rbx
call fcn.14002eff0
nop
lea rcx, [rsp + 0x50]
call fcn.1400166f0
xor al, al
jmp 0x14007e3e4
mov al, 1
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1402ba9b0
add rsp, 0x2a8
pop r14
pop rdi
pop rsi
pop rbx
ret