Function at 0x140007670
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x150
mov qword [rsp + 0xc0], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov rax, qword [0x140024050]
xor rax, rsp
mov qword [rsp + 0x148], rax
mov r14, rcx
mov qword [rsp + 0xa0], rcx
xor ebp, ebp
mov dword [rsp + 0x50], ebp
mov r15d, ebp
lea rcx, [r11 - 0xf0]
call fcn.140003f00
mov qword [rsp + 0x90], rax
mov byte [rax + 0x89], 1
mov rax, qword [rsp + 0x90]
mov qword [rax + 8], rax
mov rax, qword [rsp + 0x90]
mov qword [rax], rax
mov rax, qword [rsp + 0x90]
mov qword [rax + 0x10], rax
mov qword [rsp + 0x98], rbp
lea r12, [0x14001e448]
mov qword [rsp + 0x80], r12
lea rcx, [rsp + 0x80]
call fcn.140001c70
add r14, 8
mov rax, qword [r14 + 8]
mov rcx, qword [rax]
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x60], r14
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm0
lea rsi, [0x14001e570]
mov r13, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rdi, qword [r14 + 8]
test r13, r13
je 0x140007762
cmp r13, r14
je 0x140007767
call fcn.14000a880
cmp rbx, rdi
je 0x140007beb
mov qword [rsp + 0x100], 7
mov qword [rsp + 0xf8], rbp
mov word [rsp + 0xe8], 0
mov qword [rsp + 0xd8], rsi
mov qword [rsp + 0x108], rbp
test r13, r13
jne 0x1400077a8
call fcn.14000a880
cmp rbx, qword [r13 + 8]
jne 0x1400077b3
call fcn.14000a880
cmp qword [rbx + 0x40], 8
jb 0x1400077c0
mov rbp, qword [rbx + 0x28]
jmp 0x1400077c4
lea rbp, [rbx + 0x28]
mov edx, 7
mov qword [rsp + 0x138], rdx
xor r8d, r8d
mov qword [rsp + 0x130], r8
mov word [rsp + 0x120], r8w
mov qword [rsp + 0x110], rsi
mov qword [rsp + 0x140], r8
lea r12, [0x14001e268]
test rbp, rbp
cmovne r12, rbp
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rsi, rcx
movabs rax, 0x7ffffffffffffffe
cmp rcx, rax
jbe 0x14000783d
call fcn.1400099a0
mov rdx, qword [rsp + 0x138]
mov r8, qword [rsp + 0x130]
cmp rdx, rsi
jae 0x14000785c
mov rdx, rsi
lea rcx, [rsp + 0x118]
call fcn.140005cc0
mov rdx, qword [rsp + 0x138]
jmp 0x140007883
test rsi, rsi
jne 0x140007883
mov qword [rsp + 0x130], rsi
lea rax, [rsp + 0x120]
cmp rdx, 8
cmovae rax, qword [rsp + 0x120]
mov word [rax], si
jmp 0x1400078d7
test rsi, rsi
je 0x1400078d7
lea rcx, [rsp + 0x120]
cmp rdx, 8
cmovae rcx, qword [rsp + 0x120]
lea rdi, [rsi + rsi]
add rdx, rdx
mov r9, rdi
mov r8, r12
call fcn.14000a4c0
mov qword [rsp + 0x130], rsi
lea rax, [rsp + 0x120]
cmp qword [rsp + 0x138], 8
cmovae rax, qword [rsp + 0x120]
mov word [rdi + rax], 0
lea r8, [rsp + 0x110]
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x88]
call fcn.140002cf0
mov rdx, rax
lea rcx, [rsp + 0x70]
mov rax, qword [rax]
mov qword [rcx], rax
mov rax, qword [rdx + 8]
mov qword [rcx + 8], rax
lea rax, [0x14001e570]
mov qword [rsp + 0x110], rax
mov rcx, qword [rsp + 0x140]
test rcx, rcx
je 0x14000792b
call fcn.140009fa0
cmp qword [rsp + 0x138], 8
jb 0x140007943
mov rcx, qword [rsp + 0x120]
call fcn.140009fa0
mov qword [rsp + 0x138], 7
mov qword [rsp + 0x130], 0
mov word [rsp + 0x120], 0
mov r12, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x70]
test rsi, rsi
je 0x140007984
lea rax, [rsp + 0x88]
cmp rsi, rax
je 0x140007989
call fcn.14000a880
mov rdi, qword [rsp + 0x78]
cmp rdi, r12
je 0x140007b17
test rsi, rsi
jne 0x1400079a1
call fcn.14000a880
cmp rdi, qword [rsi + 8]
jne 0x1400079ac
call fcn.14000a880
cmp qword [rdi + 0x78], 8
jb 0x1400079b9
mov rbp, qword [rdi + 0x60]
jmp 0x1400079bd
lea rbp, [rdi + 0x60]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
lea rsi, [rcx - 1]
lea rax, [rsp + 0xe8]
mov rcx, qword [rsp + 0xe8]
mov rdx, qword [rsp + 0x100]
cmp rdx, 8
cmovae rax, rcx
mov r8, qword [rsp + 0xf8]
cmp rbp, rax
jb 0x140007a4e
lea rax, [rsp + 0xe8]
cmp rdx, 8
cmovae rax, rcx
lea rax, [rax + r8*2]
cmp rax, rbp
jbe 0x140007a4e
lea rax, [rsp + 0xe8]
cmp rdx, 8
cmovae rax, rcx
sub rbp, rax
sar rbp, 1
mov r9, rsi
mov r8, rbp
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0xe0]
call fcn.140005ac0
xor ebp, ebp
jmp 0x140007b37
movabs rax, 0x7ffffffffffffffe
cmp rsi, rax
jbe 0x140007a6a
call fcn.1400099a0
mov r8, qword [rsp + 0xf8]
cmp qword [rsp + 0x100], rsi
jae 0x140007a86
mov rdx, rsi
lea rcx, [rsp + 0xe0]
call fcn.140005cc0
jmp 0x140007ab7
test rsi, rsi
jne 0x140007ab7
xor ebp, ebp
mov qword [rsp + 0xf8], rbp
lea rax, [rsp + 0xe8]
cmp qword [rsp + 0x100], 8
cmovae rax, qword [rsp + 0xe8]
mov word [rax], bp
jmp 0x140007b37
test rsi, rsi
je 0x140007b35
lea rcx, [rsp + 0xe8]
mov rdx, qword [rsp + 0x100]
cmp rdx, 8
cmovae rcx, qword [rsp + 0xe8]
lea rdi, [rsi + rsi]
add rdx, rdx
mov r9, rdi
mov r8, rbp
call fcn.14000a4c0
mov qword [rsp + 0xf8], rsi
lea rax, [rsp + 0xe8]
cmp qword [rsp + 0x100], 8
cmovae rax, qword [rsp + 0xe8]
mov word [rax + rdi], 0
xor ebp, ebp
jmp 0x140007b37
mov rdx, rbp
lea rcx, str._s_has_been_removed_r_n
call fcn.140005f00
mov r15d, 1
mov dword [rsp + 0x50], r15d
xor ebp, ebp
jmp 0x140007b37
xor ebp, ebp
cmp byte [rbx + 0x89], 0
je 0x140007b47
call fcn.14000a880
jmp 0x140007ba9
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x89], 0
jne 0x140007b81
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x89], 0
jne 0x140007ba9
nop
nop
nop
nop
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x89], 0
je 0x140007b70
jmp 0x140007ba9
mov rax, qword [rbx + 8]
cmp byte [rax + 0x89], 0
jne 0x140007ba6
nop
cmp rbx, qword [rax + 0x10]
jne 0x140007ba6
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x89], 0
je 0x140007b90
mov rbx, rax
lea rsi, [0x14001e570]
mov qword [rsp + 0xd8], rsi
mov rcx, qword [rsp + 0x108]
test rcx, rcx
je 0x140007bca
call fcn.140009fa0
cmp qword [rsp + 0x100], 8
jb 0x140007754
mov rcx, qword [rsp + 0xe8]
call fcn.140009fa0
jmp 0x140007754
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax]
mov qword [rsp + 0x78], rcx
lea rax, [rsp + 0x88]
mov qword [rsp + 0x70], rax
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x60], xmm0
mov r13, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
nop
mov rdi, qword [rsp + 0x90]
test r13, r13
je 0x140007c3a
lea rax, [rsp + 0x88]
cmp r13, rax
je 0x140007c3f
call fcn.14000a880
cmp rbx, rdi
je 0x1400082db
mov qword [rsp + 0x138], 7
mov qword [rsp + 0x130], rbp
mov word [rsp + 0x120], 0
mov qword [rsp + 0x110], rsi
mov qword [rsp + 0x140], rbp
test r13, r13
jne 0x140007c80
call fcn.14000a880
cmp rbx, qword [r13 + 8]
jne 0x140007c8b
call fcn.14000a880
cmp qword [rbx + 0x40], 8
jb 0x140007c98
mov r12, qword [rbx + 0x28]
jmp 0x140007c9c
lea r12, [rbx + 0x28]
mov edx, 7
mov qword [rsp + 0x100], rdx
mov r8, rbp
mov qword [rsp + 0xf8], rbp
mov word [rsp + 0xe8], 0
mov qword [rsp + 0xd8], rsi
mov qword [rsp + 0x108], rbp
lea rbp, [0x14001e268]
test r12, r12
cmovne rbp, r12
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rsi, rcx
movabs rax, 0x7ffffffffffffffe
cmp rcx, rax
jbe 0x140007d16
call fcn.1400099a0
mov rdx, qword [rsp + 0x100]
mov r8, qword [rsp + 0xf8]
cmp rdx, rsi
jae 0x140007d35
mov rdx, rsi
lea rcx, [rsp + 0xe0]
call fcn.140005cc0
mov rdx, qword [rsp + 0x100]
jmp 0x140007d5c
test rsi, rsi
jne 0x140007d5c
mov qword [rsp + 0xf8], rsi
lea rax, [rsp + 0xe8]
cmp rdx, 8
cmovae rax, qword [rsp + 0xe8]
mov word [rax], si
jmp 0x140007db0
test rsi, rsi
je 0x140007db0
lea rcx, [rsp + 0xe8]
cmp rdx, 8
cmovae rcx, qword [rsp + 0xe8]
lea rdi, [rsi + rsi]
add rdx, rdx
mov r9, rdi
mov r8, rbp
call fcn.14000a4c0
mov qword [rsp + 0xf8], rsi
lea rax, [rsp + 0xe8]
cmp qword [rsp + 0x100], 8
cmovae rax, qword [rsp + 0xe8]
mov word [rax + rdi], 0
lea r8, [rsp + 0xd8]
lea rdx, [rsp + 0xc8]
mov rcx, r14
call fcn.140002cf0
mov rdx, rax
lea rcx, [rsp + 0xb0]
mov rax, qword [rax]
mov qword [rcx], rax
mov rax, qword [rdx + 8]
mov qword [rcx + 8], rax
lea rax, [0x14001e570]
mov qword [rsp + 0xd8], rax
mov rcx, qword [rsp + 0x108]
test rcx, rcx
je 0x140007e02
call fcn.140009fa0
cmp qword [rsp + 0x100], 8
jb 0x140007e1a
mov rcx, qword [rsp + 0xe8]
call fcn.140009fa0
mov qword [rsp + 0x100], 7
mov qword [rsp + 0xf8], 0
mov word [rsp + 0xe8], 0
mov rbp, qword [r14 + 8]
mov rsi, qword [rsp + 0xb0]
test rsi, rsi
je 0x140007e52
cmp rsi, r14
je 0x140007e57
call fcn.14000a880
mov rdi, qword [rsp + 0xb8]
cmp rdi, rbp
je 0x140007fef
test rsi, rsi
jne 0x140007e72
call fcn.14000a880
cmp rdi, qword [rsi + 8]
jne 0x140007e7d
call fcn.14000a880
cmp qword [rdi + 0x78], 8
jb 0x140007e8a
mov rbp, qword [rdi + 0x60]
jmp 0x140007e8e
lea rbp, [rdi + 0x60]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
lea rsi, [rcx - 1]
lea rax, [rsp + 0x120]
mov rcx, qword [rsp + 0x120]
mov rdx, qword [rsp + 0x138]
cmp rdx, 8
cmovae rax, rcx
mov r8, qword [rsp + 0x130]
cmp rbp, rax
jb 0x140007f1f
lea rax, [rsp + 0x120]
cmp rdx, 8
cmovae rax, rcx
lea rax, [rax + r8*2]
cmp rax, rbp
jbe 0x140007f1f
lea rax, [rsp + 0x120]
cmp rdx, 8
cmovae rax, rcx
sub rbp, rax
sar rbp, 1
mov r9, rsi
mov r8, rbp
lea rdx, [rsp + 0x118]
lea rcx, [rsp + 0x118]
call fcn.140005ac0
xor ebp, ebp
jmp 0x140008232
movabs rax, 0x7ffffffffffffffe
cmp rsi, rax
jbe 0x140007f3b
call fcn.1400099a0
mov r8, qword [rsp + 0x130]
cmp qword [rsp + 0x138], rsi
jae 0x140007f57
mov rdx, rsi
lea rcx, [rsp + 0x118]
call fcn.140005cc0
jmp 0x140007f88
test rsi, rsi
jne 0x140007f88
xor ebp, ebp
mov qword [rsp + 0x130], rbp
lea rax, [rsp + 0x120]
cmp qword [rsp + 0x138], 8
cmovae rax, qword [rsp + 0x120]
mov word [rax], bp
jmp 0x140008232
test rsi, rsi
je 0x140008230
lea rcx, [rsp + 0x120]
mov rdx, qword [rsp + 0x138]
cmp rdx, 8
cmovae rcx, qword [rsp + 0x120]
lea rdi, [rsi + rsi]
add rdx, rdx
mov r9, rdi
mov r8, rbp
call fcn.14000a4c0
mov qword [rsp + 0x130], rsi
lea rax, [rsp + 0x120]
cmp qword [rsp + 0x138], 8
cmovae rax, qword [rsp + 0x120]
mov word [rax + rdi], 0
xor ebp, ebp
jmp 0x140008232
mov rdx, r12
lea rcx, str._s_has_been_added_r_n
call fcn.140005f00
cmp rbx, qword [r13 + 8]
jne 0x140008009
call fcn.14000a880
cmp qword [rbx + 0x78], 8
jb 0x140008016
mov rsi, qword [rbx + 0x60]
jmp 0x14000801a
lea rsi, [rbx + 0x60]
xor r9d, r9d
lea r8, [rsp + 0x80]
mov rdx, rsi
mov rcx, r12
call fcn.140006630
mov edi, eax
xor r9d, r9d
lea r8, [rsp + 0x80]
mov rdx, rsi
mov rcx, r12
call fcn.140007320
mov edx, edi
lea rcx, str.__OnAddPort_returned__d_r_n
call fcn.140005f00
xor ebp, ebp
mov r15d, ebp
test edi, edi
sete r15b
mov dword [rsp + 0x50], 1
cmp edi, 0xfffff8fc
jne 0x140008232
mov rdi, rbp
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0xe0], rbp
mov qword [rsp + 0xe8], rbp
mov qword [rsp + 0xf0], rbp
mov qword [rsp + 0x60], rbp
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SOFTWAREWordcraft_International_LtdTTECPrinterPorts
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140008100
mov rdi, qword [rsp + 0x60]
mov qword [rsp + 0x70], rdi
test rdi, rdi
je 0x140008100
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, rbp
mov qword [rsp + 0x70], rbp
cmp rbx, qword [r13 + 8]
jne 0x14000810b
call fcn.14000a880
cmp qword [rbx + 0x78], 8
jb 0x140008118
mov rcx, qword [rbx + 0x60]
jmp 0x14000811c
lea rcx, [rbx + 0x60]
lea rdx, [rsp + 0xd8]
call fcn.1400063d0
cmp rax, 1
jne 0x1400081c9
mov qword [rsp + 0x60], rbp
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SOFTWAREWordcraft_International_LtdTTECPrinterPorts
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400081c9
mov eax, ebp
test rdi, rdi
je 0x140008173
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x60]
mov qword [rsp + 0x70], rdi
test eax, eax
jne 0x1400081c9
cmp rbx, qword [r13 + 8]
jne 0x14000818c
call fcn.14000a880
cmp qword [rbx + 0x78], 8
jb 0x140008199
mov rsi, qword [rbx + 0x60]
jmp 0x14000819d
lea rsi, [rbx + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov r9d, 1
xor r8d, r8d
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
mov rsi, qword [rsp + 0xe0]
test rsi, rsi
je 0x140008208
mov rbp, qword [rsp + 0xe8]
cmp rsi, rbp
je 0x1400081fe
mov rax, qword [rsi]
xor edx, edx
mov rcx, rsi
call qword [rax]
add rsi, 0x38
cmp rsi, rbp
jne 0x1400081e3
mov rsi, qword [rsp + 0xe0]
mov rcx, rsi
call fcn.140009fa0
xor ebp, ebp
mov qword [rsp + 0xe0], rbp
mov qword [rsp + 0xe8], rbp
mov qword [rsp + 0xf0], rbp
test rdi, rdi
je 0x140008232
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140008232
xor ebp, ebp
cmp byte [rbx + 0x89], 0
je 0x140008242
call fcn.14000a880
jmp 0x140008299
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x89], 0
jne 0x140008271
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x89], 0
jne 0x140008299
nop
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x89], 0
je 0x140008260
jmp 0x140008299
mov rax, qword [rbx + 8]
cmp byte [rax + 0x89], 0
jne 0x140008296
nop
cmp rbx, qword [rax + 0x10]
jne 0x140008296
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x89], 0
je 0x140008280
mov rbx, rax
lea rsi, [0x14001e570]
mov qword [rsp + 0x110], rsi
mov rcx, qword [rsp + 0x140]
test rcx, rcx
je 0x1400082ba
call fcn.140009fa0
cmp qword [rsp + 0x138], 8
jb 0x140007c20
mov rcx, qword [rsp + 0x120]
call fcn.140009fa0
jmp 0x140007c20
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x1400082fd
lea rcx, str.Updating_port_list_r_n
call fcn.140005f00
mov rcx, qword [rsp + 0xa0]
call fcn.140001c70
nop
lea rax, [0x14001e448]
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x88]
call fcn.1400033f0
mov eax, r15d
mov rcx, qword [rsp + 0x148]
xor rcx, rsp
call fcn.140009b60
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret