Function at 0x140005b70
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2c0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x308], rbx
mov rax, qword [0x14002e0b0]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov qword [rsp + 0x60], r8
mov edi, edx
mov rbx, rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x90], 7
xor r14d, r14d
mov qword [rsp + 0x88], r14
mov word [rsp + 0x78], r14w
xor r8d, r8d
lea edx, [r14 + 0x13]
lea rcx, [rsp + 0x70]
call fcn.1400053f0
lea rcx, [rsp + 0x78]
mov rdx, qword [rsp + 0x90]
cmp rdx, 8
cmovae rcx, qword [rsp + 0x78]
add rdx, rdx
lea r9d, [r14 + 0x26]
lea r8, str.GetEventInformation
call fcn.1400100b0
mov qword [rsp + 0x88], 0x13
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x90], 8
cmovae rax, qword [rsp + 0x78]
mov word [rax + 0x26], r14w
lea r9, [rsp + 0x78]
cmp qword [rsp + 0x90], 8
cmovae r9, qword [rsp + 0x78]
lea r8, str._s__entering
lea edx, [r14 + 0x65]
lea rcx, [0x14002f750]
call fcn.14000bba0
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x140005cca
lea r8, str.pszModelID_is_invalid_n
lea edx, [rax + 5]
lea rcx, [0x14002f750]
call fcn.14000bba0
nop
lea r9, [rsp + 0x78]
cmp qword [rsp + 0x90], 8
cmovae r9, qword [rsp + 0x78]
lea r8, str._s__leaving
lea edx, [r14 + 0x65]
lea rcx, [0x14002f750]
call fcn.14000bba0
nop
cmp qword [rsp + 0x90], 8
jb 0x140005cc3
mov rcx, qword [rsp + 0x78]
call fcn.14000eef0
xor al, al
jmp 0x140006618
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
mov r15d, 1
cmp edi, 2
jne 0x140005e00
xor eax, eax
or rbp, 0xffffffffffffffff
mov rcx, rbp
lea rdi, str.SOFTWAREWOW6432NodeEPSONEpson_Scan_2
repne scasw ax, word [rdi]
not rcx
sub rcx, r15
mov rdi, rcx
test ecx, ecx
jne 0x140005d72
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140005f0e
cmp dword [rdx + 0x10], eax
jge 0x140005d44
cmp dword [rbx - 0xc], eax
jge 0x140005d38
mov ecx, 0x80070057
call fcn.140004d20
int3
mov dword [rbx - 0x10], r14d
mov word [rbx], ax
jmp 0x140005f0e
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140005d5b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
jmp 0x140005f0e
mov esi, dword [rbx - 0x10]
lea r12, str.SOFTWAREWOW6432NodeEPSONEpson_Scan_2
sub r12, rbx
sar r12, 1
mov ecx, r15d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140005da2
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.1400049e0
mov rbx, qword [rsp + 0x30]
cmp r12, rsi
ja 0x140005dc2
movsxd rax, edi
lea rsi, [rax + rax]
lea r8, [rbx + r12*2]
mov r9, rsi
mov rdx, rsi
mov rcx, rbx
call fcn.140010180
jmp 0x140005dde
movsxd rax, edi
lea rsi, [rax + rax]
mov r9, rsi
lea r8, str.SOFTWAREWOW6432NodeEPSONEpson_Scan_2
mov rdx, rsi
mov rcx, rbx
call fcn.1400100b0
test edi, edi
js 0x140005df5
cmp edi, dword [rbx - 0xc]
jg 0x140005df5
mov dword [rbx - 0x10], edi
mov word [rsi + rbx], 0
jmp 0x140005f0e
mov ecx, 0x80070057
call fcn.140004d20
int3
cmp edi, r15d
jne 0x14000659d
xor eax, eax
or rbp, 0xffffffffffffffff
mov rcx, rbp
lea rdi, str.SOFTWAREWOW6432NodeEPSONEPSON_Scan
repne scasw ax, word [rdi]
not rcx
sub rcx, r15
mov rdi, rcx
test ecx, ecx
jne 0x140005e88
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140005f0e
cmp dword [rdx + 0x10], eax
jge 0x140005e5a
cmp dword [rbx - 0xc], eax
jge 0x140005e4e
mov ecx, 0x80070057
call fcn.140004d20
int3
mov dword [rbx - 0x10], r14d
mov word [rbx], ax
jmp 0x140005f0e
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140005e71
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
jmp 0x140005f0e
mov esi, dword [rbx - 0x10]
lea r12, str.SOFTWAREWOW6432NodeEPSONEPSON_Scan
sub r12, rbx
sar r12, 1
mov ecx, r15d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140005eb8
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.1400049e0
mov rbx, qword [rsp + 0x30]
cmp r12, rsi
ja 0x140005ed8
movsxd rax, edi
lea rsi, [rax + rax]
lea r8, [rbx + r12*2]
mov r9, rsi
mov rdx, rsi
mov rcx, rbx
call fcn.140010180
jmp 0x140005ef4
movsxd rax, edi
lea rsi, [rax + rax]
mov r9, rsi
lea r8, str.SOFTWAREWOW6432NodeEPSONEPSON_Scan
mov rdx, rsi
mov rcx, rbx
call fcn.1400100b0
test edi, edi
js 0x140006592
cmp edi, dword [rbx - 0xc]
jg 0x140006592
mov dword [rbx - 0x10], edi
mov word [rsi + rbx], 0
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
lea rsi, [rax + 0x18]
mov qword [rsp + 0x38], rsi
lea rdx, [0x140026b58]
test rdx, 0xffffffffffff0000
jne 0x140005f62
movzx edi, dx
xor edx, edx
mov ecx, edi
call fcn.140004bf0
test rax, rax
je 0x140006066
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140004840
jmp 0x140006066
xor eax, eax
mov rcx, rbp
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x140005fdf
lea rdx, [rsi - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140006066
cmp dword [rdx + 0x10], eax
jge 0x140005fac
cmp dword [rsi - 0xc], eax
jge 0x140005fa0
mov ecx, 0x80070057
call fcn.140004d20
int3
mov dword [rsi - 0x10], r14d
mov word [rsi], ax
jmp 0x140006066
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140005fc3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
mov rbx, qword [rsp + 0x30]
jmp 0x140006066
mov r12d, dword [rsi - 0x10]
mov r13, rdx
sub r13, rsi
sar r13, 1
mov ecx, r15d
sub ecx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
sub eax, edi
or eax, ecx
jge 0x140006013
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.1400049e0
mov rsi, qword [rsp + 0x38]
lea rdx, [0x140026b58]
cmp r13, r12
ja 0x140006033
movsxd rax, edi
lea r12, [rax + rax]
lea r8, [rsi + r13*2]
mov r9, r12
mov rdx, r12
mov rcx, rsi
call fcn.140010180
jmp 0x14000604b
movsxd rax, edi
lea r12, [rax + rax]
mov r9, r12
mov r8, rdx
mov rdx, r12
mov rcx, rsi
call fcn.1400100b0
test edi, edi
js 0x140006587
cmp edi, dword [rsi - 0xc]
jg 0x140006587
mov dword [rsi - 0x10], edi
mov word [r12 + rsi], 0
mov r8, qword [rsp + 0x50]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.1400091f0
nop
mov r12, qword [rax]
movsxd r15, dword [r12 - 0x10]
mov rsi, r12
sub rsi, rbx
sar rsi, 1
mov r13d, dword [rbx - 0x10]
lea edi, [r13 + r15]
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x1400060b7
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.1400049e0
mov rbx, qword [rsp + 0x30]
cmp rsi, r13
ja 0x1400060c0
lea r12, [rbx + rsi*2]
mov rdx, r15
add rdx, rdx
lea rcx, [rbx + r13*2]
mov r9, rdx
mov r8, r12
call fcn.1400100b0
test edi, edi
js 0x14000657c
cmp edi, dword [rbx - 0xc]
jg 0x14000657c
mov dword [rbx - 0x10], edi
movsxd rax, edi
mov word [rbx + rax*2], 0
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140006113
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140006133
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rsp + 0x30]
mov r9, rdi
lea r8, str.EventInfo_Registry_Path_is_specified:__s_n
mov edx, 2
lea rcx, [0x14002f750]
call fcn.14000bba0
mov r12, qword [rsp + 0x60]
cmp dword [r12], 0
jne 0x14000625a
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400061d6
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x44], 4
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.EventNum
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
cmove r14d, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [r12], r14d
test r14d, r14d
jne 0x14000625a
lea r8, str.Failed_to_get_EventNum_value_from_the_Registry_n
lea edx, [r14 + 5]
lea rcx, [0x14002f750]
call fcn.14000bba0
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x140006211
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
lea r9, [rsp + 0x78]
cmp qword [rsp + 0x90], 8
cmovae r9, qword [rsp + 0x78]
lea r8, str._s__leaving
mov edx, 0x65
lea rcx, [0x14002f750]
call fcn.14000bba0
nop
cmp qword [rsp + 0x90], 8
jb 0x140006253
mov rcx, qword [rsp + 0x78]
call fcn.14000eef0
xor al, al
jmp 0x140006618
lea rcx, [r12 + 4]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x14000630e
mov dword [rsp + 0x20], 0x208
lea r9, [r12 + 4]
lea r8, str.EventAppName
mov rdx, rdi
mov rcx, 0xffffffff80000002
call fcn.14000e650
test eax, eax
jne 0x14000630e
lea r8, str.Failed_to_get_EventAppName_value_from_the_Registry_n
lea edx, [rax + 5]
lea rcx, [0x14002f750]
call fcn.14000bba0
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x1400062c5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
lea r9, [rsp + 0x78]
cmp qword [rsp + 0x90], 8
cmovae r9, qword [rsp + 0x78]
lea r8, str._s__leaving
mov edx, 0x65
lea rcx, [0x14002f750]
call fcn.14000bba0
nop
cmp qword [rsp + 0x90], 8
jb 0x140006307
mov rcx, qword [rsp + 0x78]
call fcn.14000eef0
xor al, al
jmp 0x140006618
lea rcx, [r12 + 0x20c]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x140006487
mov word [rsp + 0xa0], ax
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0xa2]
call fcn.140011570
mov dword [rsp + 0x20], 0x208
lea r9, [rsp + 0xa0]
lea r8, str.EventAppPath
mov rdx, rdi
mov rcx, 0xffffffff80000002
call fcn.14000e650
test eax, eax
jne 0x1400063e5
lea r8, str.Failed_to_get_EventAppPath_value_from_the_Registry_n
lea edx, [rax + 5]
lea rcx, [0x14002f750]
call fcn.14000bba0
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x14000639c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
lea r9, [rsp + 0x78]
cmp qword [rsp + 0x90], 8
cmovae r9, qword [rsp + 0x78]
lea r8, str._s__leaving
mov edx, 0x65
lea rcx, [0x14002f750]
call fcn.14000bba0
nop
cmp qword [rsp + 0x90], 8
jb 0x1400063de
mov rcx, qword [rsp + 0x78]
call fcn.14000eef0
xor al, al
jmp 0x140006618
mov r8d, 0x208
lea rdx, [r12 + 0x20c]
lea rcx, [rsp + 0xa0]
call fcn.1400067d0
test al, al
jne 0x140006448
lea r8, str.ExtractAppPath_Failed_n
mov edx, 5
lea rcx, [0x14002f750]
call fcn.14000bba0
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x140006437
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
lea rcx, [rsp + 0x70]
call fcn.140005110
xor al, al
jmp 0x140006618
mov edx, 0x104
lea rax, [r12 + 0x414]
lea r8, [r12 + 0x20c]
sub r8, rax
movzx ecx, word [rax + r8]
test cx, cx
je 0x140006479
mov word [rax], cx
add rax, 2
sub rdx, 1
jne 0x140006460
jmp 0x14000647e
test rdx, rdx
jne 0x140006482
sub rax, 2
mov word [rax], 0
lea r8, str.__________________________________n
mov edx, 2
lea rcx, [0x14002f750]
call fcn.14000bba0
mov r9d, dword [r12]
lea r8, str.lpEventInfo__dwEventNum:__d_n
mov edx, 2
lea rcx, [0x14002f750]
call fcn.14000bba0
lea r9, [r12 + 4]
lea r8, str.lpEventInfo__szAppName:__s_n
mov edx, 2
lea rcx, [0x14002f750]
call fcn.14000bba0
lea r9, [r12 + 0x20c]
lea r8, str.lpEventInfo__szAppPath:__s_n
mov edx, 2
lea rcx, [0x14002f750]
call fcn.14000bba0
lea r9, [r12 + 0x414]
lea r8, str.lpEventInfo__szIcon:__s_n
mov edx, 2
lea rcx, [0x14002f750]
call fcn.14000bba0
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x140006533
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
lea r9, [rsp + 0x78]
cmp qword [rsp + 0x90], 8
cmovae r9, qword [rsp + 0x78]
lea r8, str._s__leaving
mov edx, 0x65
lea rcx, [0x14002f750]
call fcn.14000bba0
nop
cmp qword [rsp + 0x90], 8
jb 0x140006575
mov rcx, qword [rsp + 0x78]
call fcn.14000eef0
mov al, 1
jmp 0x140006618
mov ecx, 0x80070057
call fcn.140004d20
nop
mov ecx, 0x80070057
call fcn.140004d20
nop
mov ecx, 0x80070057
call fcn.140004d20
int3
lea r8, str.drvType_is_invalid_n
mov edx, 5
lea rcx, [0x14002f750]
call fcn.14000bba0
nop
lea rdx, [rbx - 0x18]
or rbp, 0xffffffffffffffff
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x1400065d4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
lea r9, [rsp + 0x78]
cmp qword [rsp + 0x90], 8
cmovae r9, qword [rsp + 0x78]
lea r8, str._s__leaving
mov edx, 0x65
lea rcx, [0x14002f750]
call fcn.14000bba0
nop
cmp qword [rsp + 0x90], 8
jb 0x140006616
mov rcx, qword [rsp + 0x78]
call fcn.14000eef0
xor al, al
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.14000f470
mov rbx, qword [rsp + 0x308]
add rsp, 0x2c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret