Function at 0x409df0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5881c0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
mov eax, dword [0x5ef60c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.CMonitoringExe::InitDrvListDat_r_n
push 0x5f80f8
call fcn.00403a70
add esp, 8
push 0x5b95a8
lea ecx, [ebp - 0x10]
call fcn.00401a30
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x14], 0
call fcn.00413290
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x409fd7
push str.EPSONSoftwareUpdater
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.0040afd0
push 0x5b93a4
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 1
call fcn.0040afd0
push str.EPSDNMON.dat
push eax
lea ecx, [ebp - 0x18]
mov bl, 2
push ecx
mov byte [ebp - 4], bl
call fcn.0040afd0
add esp, 0x24
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00401f40
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409ec5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409ee8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409f0b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, eax
test ebx, ebx
jne 0x409fd2
push str.DAT_FILE_NOT_EXIST_r_n
push 0x5f80f8
call fcn.00403a70
mov edx, dword [ebp - 0x10]
push str.a__ccsUTF_16LE
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.005584c9
mov eax, dword [ebp - 0x14]
add esp, 0x14
test eax, eax
jne 0x409f5e
push str.ERROR__wfopen_s_r_n
push 0x5f80f8
call fcn.00403a70
add esp, 8
jmp 0x409fd7
push eax
call fcn.005586d9
mov ecx, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esp, 4
push ecx
push 0x5b95a8
push str.DriverList
push str.EPSDNMON
call esi
test eax, eax
je 0x409fd7
mov edx, dword [ebp - 0x10]
push edx
push 0x5bab58
push 0x5bab5c
push str.EPSDNMON
call esi
test eax, eax
je 0x409fd7
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ecx
push eax
push str.Monitor
push str.EPSDNMON
call esi
test eax, eax
je 0x409fd7
mov edx, dword [ebp - 0x10]
push edx
push 0x5bab58
push str.SelfUpdate
push str.EPSDNMON
call esi
test eax, eax
je 0x409fd7
mov ebx, 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409ffd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4