Function at 0x14007cd00
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov rax, qword [0x1404680d8]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rbx, r8
mov rdi, rdx
mov r15, rcx
xor r14b, r14b
call fcn.14007c970
xor r12d, r12d
mov qword [rbp - 0x21], r12
mov qword [rbp - 0x11], r12
mov qword [rbp - 0x19], r12
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14007cd5a
mov rdx, qword [rdi]
lea rax, [rbp - 0x21]
mov qword [rsp + 0x20], rax
mov r9d, 0x2021f
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp eax, 2
jne 0x14007cdae
cmp qword [rdi + 0x18], 8
jb 0x14007cd8a
mov rdi, qword [rdi]
lea rax, [rbp - 0x21]
mov qword [rsp + 0x20], rax
mov r9d, 0x2011f
xor r8d, r8d
mov rdx, rdi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x14007cff3
mov qword [rsp + 0x40], r12
lea rax, [rbp - 0x11]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea rdx, str.NativeMessagingHosts
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test eax, eax
jne 0x14007cfa3
mov qword [rsp + 0x40], r12
lea rax, [rbp - 0x19]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea rdx, str.mbambgnativemsg.exe
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test eax, eax
jne 0x14007cf46
cmp qword [rbx + 0x18], 8
jb 0x14007ce42
mov rbx, qword [rbx]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x39], xmm0
movdqa xmm1, xmmword [0x1403e1a30]
movdqu xmmword [rbp - 0x39], xmm1
mov word [rbp - 0x49], r12w
mov r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], r12w
jne 0x14007ce63
mov rdx, rbx
lea rcx, [rbp - 0x49]
call fcn.14000d3a0
nop
lea r8, [rbp - 0x49]
mov rdx, r15
lea rcx, [rbp - 9]
call fcn.140082ed0
nop
lea rcx, [rbp - 0x49]
call fcn.14000c340
mov eax, dword [rbp + 7]
lea eax, [rax*2 + 2]
lea rcx, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rcx, qword [rbp - 9]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jne 0x14007ced5
mov r14b, 1
jmp 0x14007cf19
lea rdx, str.:_RegSetValueEx_Error
lea rcx, [0x14047aa00]
call fcn.140036d30
mov rcx, rax
mov edx, ebx
call fcn.140028560
mov rbx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.14002c400
movzx edx, al
mov rcx, rbx
call fcn.14003af60
mov rcx, rbx
call fcn.14000bf70
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rbp - 9]
call fcn.14000c340
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14007d03c
lea rdx, str.:_RegCreateKeyEx_2__Error
lea rcx, [0x14047aa00]
call fcn.140036d30
mov rcx, rax
mov edx, edi
call fcn.140028560
mov rbx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.14002c400
movzx edx, al
mov rcx, rbx
call fcn.14003af60
mov rcx, rbx
call fcn.14000bf70
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14007d03c
lea rdx, str.:_RegCreateKeyEx_1__Error
lea rcx, [0x14047aa00]
call fcn.140036d30
mov rcx, rax
mov edx, edi
call fcn.140028560
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.14002c400
movzx edx, al
mov rcx, rbx
call fcn.14003af60
mov rcx, rbx
call fcn.14000bf70
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14007d03c
cmp esi, 2
je 0x14007d03c
lea rdx, str.:_RegOpenKeyEx_Error
lea rcx, [0x14047aa00]
call fcn.140036d30
mov rcx, rax
mov edx, esi
call fcn.140028560
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.14002c400
movzx edx, al
mov rcx, rbx
call fcn.14003af60
mov rcx, rbx
call fcn.14000bf70
movzx eax, r14b
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140282c10
add rsp, 0xc0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret