Function at 0x1400014e0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov r15, rdx
mov rbx, rcx
mov rdx, qword [rdx]
lea rdi, [rdx - 0x18]
mov rbp, qword [rcx + 8]
sub rbp, 0x18
or rsi, 0xffffffffffffffff
cmp rdi, rbp
je 0x1400015cf
cmp dword [rbp + 0x10], 0
jl 0x1400015c2
mov rcx, qword [rdi]
cmp rcx, qword [rbp]
jne 0x1400015c2
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi + 0x10], 0
jl 0x14000155a
cmp rax, qword [rdi]
jne 0x14000155a
mov r12, rdi
lock add dword [rdi + 0x10], 1
jmp 0x14000159c
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi + 8]
call qword [rax]
mov r12, rax
test rax, rax
jne 0x140001576
call fcn.140003050
int3
mov eax, dword [rdi + 8]
mov dword [r12 + 8], eax
mov eax, dword [rdi + 8]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
lea r8, [rdi + 0x18]
add rdx, rdx
lea rcx, [r12 + 0x18]
call fcn.1400525a0
mov eax, esi
lock xadd dword [rbp + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400015b7
mov rcx, qword [rbp]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [r12 + 0x18]
mov qword [rbx + 8], rax
jmp 0x1400015cf
mov r8d, dword [rdx - 0x10]
lea rcx, [rbx + 8]
call fcn.1400036f0
mov rdx, qword [rsp + 0xa0]
mov rdx, qword [rdx]
lea rdi, [rdx - 0x18]
mov rbp, qword [rbx + 0x10]
sub rbp, 0x18
cmp rdi, rbp
je 0x140001699
cmp dword [rbp + 0x10], 0
jl 0x14000168c
mov rcx, qword [rdi]
cmp rcx, qword [rbp]
jne 0x14000168c
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi + 0x10], 0
jl 0x140001624
cmp rax, qword [rdi]
jne 0x140001624
mov r12, rdi
lock add dword [rdi + 0x10], 1
jmp 0x140001666
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi + 8]
call qword [rax]
mov r12, rax
test rax, rax
jne 0x140001640
call fcn.140003050
int3
mov eax, dword [rdi + 8]
mov dword [r12 + 8], eax
mov eax, dword [rdi + 8]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
lea r8, [rdi + 0x18]
add rdx, rdx
lea rcx, [r12 + 0x18]
call fcn.1400525a0
mov eax, esi
lock xadd dword [rbp + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140001681
mov rcx, qword [rbp]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [r12 + 0x18]
mov qword [rbx + 0x10], rax
jmp 0x140001699
mov r8d, dword [rdx - 0x10]
lea rcx, [rbx + 0x10]
call fcn.1400036f0
mov rax, qword [rbx + 8]
cmp dword [rax - 0x10], 0
je 0x14000195d
mov rdi, qword [r15]
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi - 8], 0
jl 0x1400016ce
cmp rax, qword [rdi - 0x18]
jne 0x1400016ce
lea rbp, [rdi - 0x18]
lock add dword [rdi - 8], 1
jmp 0x14000170c
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rbp, rax
test rax, rax
jne 0x1400016ea
call fcn.140003050
int3
mov eax, dword [rdi - 0x10]
mov dword [rbp + 8], eax
mov eax, dword [rdi - 0x10]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rdi
add rdx, rdx
lea rcx, [rbp + 0x18]
call fcn.1400525a0
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140001a20
nop
mov rax, qword [rsp + 0x20]
cmp dword [rax - 0x10], 0
je 0x14000193d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbx + 0x40], rax
test rax, rax
je 0x140001933
lea rdx, str.CreateLogFile
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x48], rax
lea rdx, str.IncrementLogFile
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x50], rax
lea rdx, str.IncrementMultiLog
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x58], rax
lea rdx, str.SetLogValue
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x60], rax
lea rdx, str.SetMultiLogValue
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x68], rax
lea rdx, str.ReadLog
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x70], rax
lea rdx, str.GetExtEscapeDeviceID
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x78], rax
xor r12d, r12d
mov dword [rsp + 0x90], r12d
lea r8, [rsp + 0x90]
xor edx, edx
mov rcx, qword [rbx + 8]
call rax
mov edx, dword [rsp + 0x90]
test edx, edx
je 0x140001936
mov rax, qword [rbx + 0x28]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, edx
or eax, ecx
jge 0x140001827
lea rcx, [rbx + 0x28]
call fcn.140003380
lea r8, [rsp + 0x90]
mov rdx, qword [rbx + 0x28]
mov rcx, qword [rbx + 8]
call qword [rbx + 0x78]
mov rdx, qword [rbx + 0x28]
test rdx, rdx
jne 0x140001848
mov ecx, r12d
jmp 0x140001862
xor eax, eax
mov rcx, rsi
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
test ecx, ecx
js 0x140001928
cmp ecx, dword [rdx - 0xc]
jg 0x140001928
mov dword [rdx - 0x10], ecx
movsxd rcx, ecx
mov rax, qword [rbx + 0x28]
mov word [rax + rcx*2], r12w
xor eax, eax
mov rcx, rsi
lea rdi, str.EpsonSoftwareUpdate
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, str.EpsonSoftwareUpdate
lea rcx, [rbx + 0x30]
call fcn.1400036f0
xor eax, eax
mov rcx, rsi
lea rdi, [0x14007e020]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x14007e020]
lea rcx, [rbx + 0x38]
call fcn.1400036f0
cmp qword [rbx + 0x48], r12
je 0x140001936
cmp qword [rbx + 0x50], r12
je 0x140001936
cmp qword [rbx + 0x58], r12
je 0x140001936
cmp qword [rbx + 0x60], r12
je 0x140001936
cmp qword [rbx + 0x68], r12
je 0x140001936
cmp qword [rbx + 0x70], r12
je 0x140001936
cmp qword [rbx + 0x78], r12
je 0x140001936
mov rax, qword [rbx + 0x28]
cmp dword [rax - 0x10], r12d
je 0x140001936
mov rax, qword [rbx + 0x30]
cmp dword [rax - 0x10], r12d
je 0x140001936
mov rax, qword [rbx + 0x38]
cmp dword [rax - 0x10], r12d
je 0x140001936
mov dword [rsp + 0xa8], 1
mov rax, qword [rsp + 0x20]
mov r12d, dword [rsp + 0xa8]
jmp 0x140001940
mov ecx, 0x80070057
call fcn.140003280
int3
xor r12d, r12d
mov rax, qword [rsp + 0x20]
jmp 0x140001940
xor r12d, r12d
lea rdx, [rax - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140001960
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140001960
xor r12d, r12d
mov rdx, qword [r15]
sub rdx, 0x18
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14000197f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rax, qword [rsp + 0xa0]
mov rdx, qword [rax]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x1400019a3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r12d
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret