Function at 0x404db0
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431968
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x43ec2c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.CControlDatFile_:_UpdateDriverList_r_n
push 0x442e1c
call fcn.004013e0
add esp, 8
xor esi, esi
push 0x4372b0
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x1c], esi
call fcn.00401bf0
push 0x4372b0
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.00401bf0
push 0x4372b0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00401bf0
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
mov dword [ebp - 0x20], esi
call fcn.00402950
add esp, 4
cmp eax, esi
je 0x4050e0
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00401580
push str.EPSONSoftwareUpdater
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.004068c0
push 0x437228
push eax
lea ecx, [ebp - 0x28]
push ecx
mov byte [ebp - 4], 3
call fcn.004068c0
push str.EPSDNMON.dat
push eax
lea edx, [ebp - 0x24]
mov bl, 4
push edx
mov byte [ebp - 4], bl
call fcn.004068c0
add esp, 0x24
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.00401580
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404eae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404ed1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404ef4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.EPSONSoftwareUpdater
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.004068c0
push 0x437228
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 6
call fcn.004068c0
push str.EPSDNMON_backup_.dat
push eax
lea ecx, [ebp - 0x2c]
mov bl, 7
push ecx
mov byte [ebp - 4], bl
call fcn.004068c0
add esp, 0x24
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.00401580
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404f5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404f82
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404fa5
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]
cmp eax, esi
jne 0x404fef
mov edx, dword [ebp - 0x10]
push str.a__ccsUTF_16LE
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.004187a1
mov eax, dword [ebp - 0x20]
add esp, 0xc
cmp eax, esi
jne 0x404fe6
push str.CControlDatFile_:_ERROR__wfopen_s_r_n
push 0x442e1c
call fcn.004013e0
add esp, 8
jmp 0x4050e0
push eax
call fcn.004189b1
add esp, 4
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
push esi
push ecx
push edx
call ebx
mov eax, dword [edi]
push str.Error
push eax
call fcn.00418d73
add esp, 8
cmp eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
je 0x405035
mov ecx, dword [ebp - 0x10]
mov eax, dword [edi]
push ecx
push eax
push str.DriverList
push 0x437598
call esi
test eax, eax
je 0x4050ca
mov eax, dword [edi + 4]
push str.Error
push eax
call fcn.00418d73
add esp, 8
test eax, eax
je 0x405062
mov edx, dword [ebp - 0x10]
mov eax, dword [edi + 4]
push edx
push eax
push str.LastCheck
push 0x437598
call esi
test eax, eax
je 0x4050ca
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x405094
push eax
lea eax, [ebp - 0x18]
push 0x437b9c
push eax
call fcn.00402260
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
add esp, 0xc
push ecx
push edx
push str.Monitor
push 0x437598
call esi
test eax, eax
je 0x4050ca
mov eax, dword [edi + 0xc]
push str.Error
push eax
call fcn.00418d73
add esp, 8
test eax, eax
je 0x4050c1
mov ecx, dword [ebp - 0x10]
mov eax, dword [edi + 0xc]
push ecx
push eax
push str.SelfUpdate
push 0x437598
call esi
test eax, eax
je 0x4050ca
mov dword [ebp - 0x1c], 1
jmp 0x4050d6
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
push 0
push edx
push eax
call ebx
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 1
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 0x405103
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 - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405126
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x40514c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret