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

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x6a0
mov rax, qword [0x1400151a0]
xor rax, rsp
mov qword [rsp + 0x690], rax
mov rbp, rdx
lea rax, [rsp + 0x48]
mov rsi, rcx
lea rdx, str.SOFTWAREWOW6432NodeEPSONEPSON_Scan
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
xor dil, dil
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001c6b
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x6d0], r12
mov qword [rsp + 0x6d8], r13
xor r13d, r13d
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x280]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
xor edx, edx
mov qword [rsp + 0x28], r13
mov r12d, r13d
mov dword [rsp + 0x40], 0x208
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140001c50
mov qword [rsp + 0x6c0], rbx
test dil, dil
jne 0x140001c48
lea r8, [0x1400122bc]
lea rax, [rsp + 0x70]
mov ebx, r13d
mov edx, 0x104
lea rcx, [rsp + 0x70]
sub r8, rax
nop
nop
nop
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140001a65
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140001a65
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140001a40
jmp 0x140001a6a
test rdx, rdx
jne 0x140001a6e
sub rcx, 2
mov word [rcx], bx
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
lea rdx, [rsp + 0x280]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001c05
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
lea rdx, str.Supported
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x490]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x50], 0x200
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140001b32
lea r8, [rsp + 0x490]
lea rax, [rsp + 0x70]
mov edx, 0x104
sub r8, rax
lea rcx, [rsp + 0x70]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140001b19
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140001b19
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140001af4
jmp 0x140001b1e
test rdx, rdx
jne 0x140001b22
sub rcx, 2
mov word [rcx], bx
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x140001c05
lea r8, [rsp + 0x60]
lea rdx, [0x140012134]
lea rcx, [rsp + 0x70]
call fcn.1400031a0
test rax, rax
je 0x140001c05
nop
nop
nop
mov rcx, rsi
sub rax, rsi
nop
nop
nop
movzx r8d, word [rcx]
movzx edx, word [rcx + rax]
sub r8d, edx
jne 0x140001b95
add rcx, 2
test edx, edx
jne 0x140001b80
test r8d, r8d
je 0x140001bb4
lea r8, [rsp + 0x60]
lea rdx, [0x140012134]
xor ecx, ecx
call fcn.1400031a0
test rax, rax
jne 0x140001b70
jmp 0x140001c05
lea r8, [rsp + 0x280]
mov edx, 8
mov rcx, rbp
sub r8, rbp
nop
nop
nop
lea rax, [rdx + 0x7ffffff6]
test rax, rax
je 0x140001bf5
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140001bf5
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140001bd0
jmp 0x140001bfa
test rdx, rdx
jne 0x140001bfe
sub rcx, 2
mov word [rcx], r13w
mov dil, 1
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
add r12d, 1
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x280]
mov edx, r12d
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x40], 0x208
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140001a11
mov rbx, qword [rsp + 0x6c0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r13, qword [rsp + 0x6d8]
mov r12, qword [rsp + 0x6d0]
mov al, dil
mov rcx, qword [rsp + 0x690]
xor rcx, rsp
call fcn.140002be0
add rsp, 0x6a0
pop rdi
pop rsi
pop rbp
ret