Function at 0x140008750
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 [0x1400230b0]
xor rax, rsp
mov qword [rsp + 0x6c0], rax
mov r14, r8
mov r13, rdx
mov rbp, rcx
xor sil, sil
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 0x140008a4d
mov r12d, r15d
mov dword [rsp + 0x40], 0x208
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 0x140008a35
nop
nop
test sil, sil
jne 0x140008a35
mov ebx, r15d
mov edx, 0x104
lea rcx, [rsp + 0xa0]
lea rdi, [0x14001e6dc]
lea rax, [rsp + 0xa0]
sub rdi, rax
nop
nop
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140008864
movzx eax, word [rdi + rcx]
test ax, ax
je 0x140008864
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140008840
jmp 0x140008869
test rdx, rdx
jne 0x14000886d
sub rcx, 2
mov word [rcx], 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 0x1400089f2
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 0x140008940
mov edx, 0x104
lea rcx, [rsp + 0xa0]
lea rdi, [rsp + 0x4c0]
lea rax, [rsp + 0xa0]
sub rdi, rax
nop
nop
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140008924
movzx eax, word [rdi + rcx]
test ax, ax
je 0x140008924
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140008900
jmp 0x140008929
test rdx, rdx
jne 0x14000892d
sub rcx, 2
mov word [rcx], 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 0x1400089f2
lea r8, [rsp + 0x88]
lea rdx, [0x14001e7a4]
lea rcx, [rsp + 0xa0]
call fcn.14000c010
mov rdi, rax
test rax, rax
je 0x1400089f2
nop
nop
nop
mov rcx, rbp
sub rdi, rbp
nop
nop
nop
movzx eax, word [rcx]
movzx edx, word [rcx + rdi]
sub eax, edx
jne 0x1400089a3
add rcx, 2
test edx, edx
jne 0x140008990
test eax, eax
je 0x1400089c7
lea r8, [rsp + 0x88]
lea rdx, [0x14001e7a4]
xor ecx, ecx
call fcn.14000c010
mov rdi, rax
test rax, rax
jne 0x140008980
jmp 0x1400089f2
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.140005950
mov sil, 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 0x140008810
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test sil, sil
je 0x140008a4d
mov al, sil
jmp 0x140008b4d
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.140006e10
nop
mov dword [rsp + 0x60], 2
lea rcx, [rsp + 0x68]
call fcn.140006e10
mov edx, dword [rsp + 0x60]
test dl, 1
je 0x140008a9f
lea rdx, str.SOFTWAREWOW6432NodeEPSONEPSON_ScanSoftwareInfo
lea rcx, [rsp + 0x60]
call fcn.140005ec0
mov edx, dword [rsp + 0x60]
test dl, 2
je 0x140008ab5
lea rdx, str.SOFTWAREWOW6432NodeEPSONEpson_Scan_2SoftwareInfo
lea rcx, [rsp + 0x60]
call fcn.140005ec0
mov r8, r13
mov rdx, rbp
lea rcx, [rsp + 0x60]
call fcn.140006a90
test al, al
je 0x140008ad3
mov dword [r14], 2
mov sil, 1
mov rdi, qword [rsp + 0x70]
test rdi, rdi
je 0x140008b4a
mov rbx, qword [rsp + 0x78]
cmp rdi, rbx
je 0x140008b3d
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 0x140008b10
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 0x140008b2f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
add rdi, 0x10
cmp rdi, rbx
jne 0x140008af0
mov rdi, qword [rsp + 0x70]
mov rcx, rdi
call fcn.14000a6c0
mov al, sil
jmp 0x140008b4d
mov al, sil
mov rcx, qword [rsp + 0x6c0]
xor rcx, rsp
call fcn.14000a6e0
mov rbx, qword [rsp + 0x728]
add rsp, 0x6d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret