Function at 0x140005df0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
lea rbp, [rsp - 0x9d0]
sub rsp, 0xad0
mov rax, qword [0x14001a128]
xor rax, rsp
mov qword [rbp + 0x9c0], rax
xor r12d, r12d
mov rsi, rcx
lea rcx, [rbp + 0x182]
xor edx, edx
mov r8d, 0x206
mov edi, r12d
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x48], r12
mov word [rbp + 0x180], r12w
call fcn.140007500
lea rcx, [rbp + 0x5a2]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x5a0], r12w
call fcn.140007500
lea rcx, [rbp + 0x7b2]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x7b0], r12w
call fcn.140007500
lea rcx, [rsp + 0x72]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x70], r12w
call fcn.140007500
lea rcx, [rbp + 0x392]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x390], r12w
call fcn.140007500
call fcn.140005b50
lea rdx, str.SOFTWARECanonSateraMFP1ScanGear11.3Devices
neg eax
lea rax, [rsp + 0x58]
mov rcx, 0xffffffff80000002
sbb r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
and r9d, 0x200
or r9d, 0x20019
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, r12d
nop word [rax + rax]
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea r9, [rsp + 0x60]
lea r8, [rbp + 0x390]
mov edx, ebx
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x60], 0x103
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400060ad
lea r9, [rbp + 0x390]
lea r8, str.SOFTWARECanonSateraMFP1ScanGear11.3Devices
lea rdx, str._s_s
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x40], 0x208
call qword [sym.imp.USER32.dll_wsprintfW]
call fcn.140005b50
lea rdx, [rsp + 0x70]
neg eax
lea rax, [rsp + 0x48]
mov rcx, 0xffffffff80000002
sbb r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
and r9d, 0x200
or r9d, 0x20019
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x48]
lea r11, [rsp + 0x40]
lea rax, [rbp + 0x180]
mov qword [rsp + 0x28], r11
lea rdx, str.PortName
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140006046
lea rcx, [rbp + 0x180]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140006046
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
lea rdx, str.CaddisLLDPath
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x5a0]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140006046
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
lea rdx, str.CaddisUIPath
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x7b0]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140006061
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebx
cmp ebx, 0x400
jb 0x140005f00
jmp 0x1400060ad
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x64]
lea rdx, str.ButtonNum
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov edi, 1
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x64], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400060aa
cmp dword [rsp + 0x50], r12d
jne 0x1400060ad
mov edi, r12d
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rbp + 0x9c0]
xor rcx, rsp
call fcn.140007330
lea r11, [rsp + 0xad0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret