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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x6d0
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov qword [rsp + 0x728], rbx
mov rax, qword [0x14002e0b0]
xor rax, rsp
mov qword [rsp + 0x6c0], rax
mov r14, r8
mov r13, rdx
mov rsi, rcx
xor bpl, bpl
mov dword [r8], 1
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x140005723
lea r8, str.Device_Name_is_not_specified_n
lea edx, [rax + 5]
lea rcx, [0x14002f750]
call fcn.14000bba0
xor al, al
jmp 0x140005af8
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREWOW6432NodeEPSONEPSON_Scan
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor r15d, r15d
test eax, eax
jne 0x1400059e1
mov r12d, r15d
mov dword [rsp + 0x40], 0x104
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x2b0]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400059cd
test bpl, bpl
jne 0x1400059cd
mov ebx, r15d
mov edx, 0x104
lea rax, [rsp + 0xa0]
lea rdi, [0x1400266cc]
lea rcx, [rsp + 0xa0]
sub rdi, rcx
movzx ecx, word [rdi + rax]
test cx, cx
je 0x1400057d9
mov word [rax], cx
add rax, 2
sub rdx, 1
jne 0x1400057c1
jmp 0x1400057de
test rdx, rdx
jne 0x1400057e2
sub rax, 2
mov word [rax], bx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0x2b0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000598a
mov dword [rsp + 0x50], 0x200
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x4c0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Supported
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400058a4
mov edx, 0x104
lea rax, [rsp + 0xa0]
lea rdi, [rsp + 0x4c0]
lea rcx, [rsp + 0xa0]
sub rdi, rcx
nop
movzx ecx, word [rdi + rax]
test cx, cx
je 0x140005888
mov word [rax], cx
add rax, 2
sub rdx, 1
jne 0x140005870
jmp 0x14000588d
test rdx, rdx
jne 0x140005891
sub rax, 2
mov word [rax], bx
lea rcx, [rsp + 0xa0]
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 0x14000598a
lea r9, [rsp + 0xa0]
lea r8, str.Supported_Scanner_List:__s_n
mov edx, 2
lea rcx, [0x14002f750]
call fcn.14000bba0
lea r8, [rsp + 0x88]
lea rdx, [0x140026a00]
lea rcx, [rsp + 0xa0]
call fcn.140010570
mov r9, rax
test rax, rax
je 0x14000598a
nop
mov rcx, rsi
mov rdi, r9
sub rdi, rsi
nop
nop
movzx eax, word [rcx]
movzx edx, word [rcx + rdi]
sub eax, edx
jne 0x140005923
add rcx, 2
test edx, edx
jne 0x140005910
test eax, eax
je 0x140005947
lea r8, [rsp + 0x88]
lea rdx, [0x140026a00]
xor ecx, ecx
call fcn.140010570
mov r9, rax
test rax, rax
jne 0x140005900
jmp 0x14000598a
lea r8, str.Supported_Scanner_Found:__s_n
mov edx, 2
lea rcx, [0x14002f750]
call fcn.14000bba0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x2b0]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x2b0]
mov rcx, r13
call fcn.1400046e0
mov bpl, 1
mov dword [rsp + 0x40], 0x208
add r12d, 1
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x2b0]
mov edx, r12d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140005796
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bpl, bpl
jne 0x140005af5
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], r15
mov qword [rsp + 0x80], r15
mov dword [rsp + 0x60], r15d
lea rcx, [rsp + 0x68]
call fcn.14000a280
nop
mov dword [rsp + 0x60], 2
lea rcx, [rsp + 0x68]
call fcn.14000a280
mov edx, dword [rsp + 0x60]
test dl, 1
je 0x140005a33
lea rdx, str.SOFTWAREWOW6432NodeEPSONEPSON_ScanSoftwareInfo
lea rcx, [rsp + 0x60]
call fcn.1400094a0
mov edx, dword [rsp + 0x60]
test dl, 2
je 0x140005a49
lea rdx, str.SOFTWAREWOW6432NodeEPSONEpson_Scan_2SoftwareInfo
lea rcx, [rsp + 0x60]
call fcn.1400094a0
mov r8, r13
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.14000a070
test al, al
je 0x140005a83
mov r9, qword [r13]
lea r8, str.ScannerID_found_from_ESI:__s_n
mov edx, 2
lea rcx, [0x14002f750]
call fcn.14000bba0
mov dword [r14], 2
mov bpl, 1
mov rdi, qword [rsp + 0x70]
test rdi, rdi
je 0x140005af5
mov rbx, qword [rsp + 0x78]
cmp rdi, rbx
je 0x140005aed
nop
nop
nop
mov rdx, qword [rdi + 8]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140005ac0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rdi]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140005adf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
add rdi, 0x10
cmp rdi, rbx
jne 0x140005aa0
mov rdi, qword [rsp + 0x70]
mov rcx, rdi
call fcn.14000eef0
mov al, bpl
mov rcx, qword [rsp + 0x6c0]
xor rcx, rsp
call fcn.14000f470
mov rbx, qword [rsp + 0x728]
add rsp, 0x6d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret