Function at 0x140072b40
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x110
mov qword [rsp + 0xf8], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov r12, r9
mov r13, r8
mov rbp, rdx
mov rsi, rcx
lea r15, vtable.StringStorage.0
mov qword [rsp + 0x30], r15
mov ecx, 8
call fcn.1400797fc
xor r14d, r14d
test rax, rax
je 0x140072b9f
lea rcx, [rsp + 0x38]
mov qword [rax], rcx
jmp 0x140072ba2
mov rax, r14
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], r14
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x1400d1b20]
repne scasw ax, word [rdi]
not rcx
mov rdx, rcx
xor r8d, r8d
lea rcx, [rsp + 0x38]
call fcn.14002bfc0
mov rdx, qword [rsp + 0x58]
mov rbx, rdx
mov rdi, qword [rsp + 0x50]
sub rbx, rdi
sar rbx, 1
add rbx, rbx
cmp rdi, rdx
jbe 0x140072bf9
call fcn.1400796a8
mov rax, qword [rsp + 0x38]
test rax, rax
jne 0x140072c0d
call fcn.1400796a8
mov rdx, r14
jmp 0x140072c10
mov rdx, qword [rax]
cmp rdi, qword [rdx + 0x20]
jb 0x140072c1b
call fcn.1400796a8
mov r8, rbx
lea rdx, [0x1400d1b20]
mov rcx, rdi
call fcn.14007ad70
nop
mov qword [rsp + 0xc0], r15
mov ecx, 8
call fcn.1400797fc
test rax, rax
je 0x140072c52
lea rcx, [rsp + 0xc8]
mov qword [rax], rcx
jmp 0x140072c55
mov rax, r14
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xe0], r14
mov qword [rsp + 0xe8], r14
mov qword [rsp + 0xf0], r14
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x1400d1b20]
repne scasw ax, word [rdi]
not rcx
mov rdx, rcx
xor r8d, r8d
lea rcx, [rsp + 0xc8]
call fcn.14002bfc0
mov rdx, qword [rsp + 0xe8]
mov rbx, rdx
mov rdi, qword [rsp + 0xe0]
sub rbx, rdi
sar rbx, 1
add rbx, rbx
cmp rdi, rdx
jbe 0x140072cc1
call fcn.1400796a8
mov rax, qword [rsp + 0xc8]
test rax, rax
jne 0x140072cd8
call fcn.1400796a8
mov rdx, r14
jmp 0x140072cdb
mov rdx, qword [rax]
cmp rdi, qword [rdx + 0x20]
jb 0x140072ce6
call fcn.1400796a8
mov r8, rbx
lea rdx, [0x1400d1b20]
mov rcx, rdi
call fcn.14007ad70
nop
lea r8, [rsp + 0x30]
mov rdx, rbp
mov rcx, rsi
call fcn.140070400
lea r8, [rsp + 0xc0]
mov rdx, rbp
mov rcx, rsi
call fcn.1400705a0
mov rbx, qword [rsp + 0x50]
cmp rbx, qword [rsp + 0x58]
jbe 0x140072d2d
call fcn.1400796a8
mov rax, qword [rsp + 0x38]
test rax, rax
jne 0x140072d41
call fcn.1400796a8
mov rdx, r14
jmp 0x140072d44
mov rdx, qword [rax]
cmp rbx, qword [rdx + 0x20]
jb 0x140072d4f
call fcn.1400796a8
mov rdi, qword [rsi + 8]
lea rsi, vtable.RegistryKey.0
mov qword [rsp + 0x70], rsi
lea rcx, [rsp + 0x88]
call fcn.14002e130
nop
mov rax, qword [rdi + 8]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x78], r14
mov rdx, rbx
lea rcx, [rsp + 0x88]
mov rax, qword [rsp + 0x88]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdx, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xa8]
sub rdx, rdi
sar rdx, 1
cmp rdx, 1
je 0x140072dec
mov edx, 0x5c
lea rcx, [rsp + 0x88]
call fcn.14002e3d0
test al, al
jne 0x140072de4
lea rdx, [0x1400d26a4]
lea rcx, [rsp + 0x88]
call fcn.14002e5d0
mov rdi, qword [rsp + 0xa8]
jmp 0x140072dec
mov rdi, qword [rsp + 0xa8]
cmp rdi, qword [rsp + 0xb0]
jbe 0x140072dfb
call fcn.1400796a8
mov rax, qword [rsp + 0x90]
test rax, rax
jne 0x140072e12
call fcn.1400796a8
mov r11, r14
jmp 0x140072e15
mov r11, qword [rax]
cmp rdi, qword [r11 + 0x20]
jb 0x140072e20
call fcn.1400796a8
lea r8, [rsp + 0x78]
mov rdx, rdi
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
nop
mov rcx, qword [rsp + 0x78]
test rcx, rcx
jne 0x140072e46
xor dil, dil
jmp 0x140072e6d
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r13
mov r9d, 3
xor r8d, r8d
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete dil
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x70], rsi
test rcx, rcx
je 0x140072e8c
cmp rcx, qword [rsp + 0x80]
je 0x140072e87
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x88], r15
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x140072ea6
call fcn.140078e60
mov qword [rsp + 0xa8], r14
mov qword [rsp + 0xb0], r14
mov qword [rsp + 0xb8], r14
mov rcx, qword [rsp + 0x90]
call fcn.140078e60
nop
mov qword [rsp + 0xc0], r15
mov rcx, qword [rsp + 0xe0]
test rcx, rcx
je 0x140072ee6
call fcn.140078e60
mov qword [rsp + 0xe0], r14
mov qword [rsp + 0xe8], r14
mov qword [rsp + 0xf0], r14
mov rcx, qword [rsp + 0xc8]
call fcn.140078e60
nop
mov qword [rsp + 0x30], r15
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140072f20
call fcn.140078e60
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], r14
mov rcx, qword [rsp + 0x38]
call fcn.140078e60
mov al, dil
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret