Function at 0x4046f0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431e20
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x43ec2c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push str.CControlDatFile_:_GetDriverListFromDat_r_n
push 0x442e1c
call fcn.004013e0
add esp, 8
push 0x4372b0
lea ecx, [ebp - 0x10]
mov edi, 0xffffff9d
call fcn.00401bf0
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00402950
add esp, 4
cmp eax, ebx
je 0x404a43
push str.EPSONSoftwareUpdater
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x1c]
push edx
call fcn.004068c0
push 0x437228
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.004068c0
push str.EPSDNMON.dat
push eax
lea ecx, [ebp - 0x14]
push ecx
mov byte [ebp - 4], 2
call fcn.004068c0
add esp, 0x24
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00401580
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4047c2
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 - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4047e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
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 0x404807
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, ebx
je 0x4049f1
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.Error
call fcn.00401bf0
push ecx
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.DriverList
call fcn.00401bf0
push ecx
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ebp - 0x20], esp
push 0x437598
call fcn.00401bf0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x10]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x24], esp
mov edi, esp
push eax
call fcn.00401610
add eax, 0x10
lea edx, [ebp - 0x1c]
add esp, 4
mov dword [edi], eax
push edx
mov byte [ebp - 4], bl
call fcn.00402f40
add esp, 0x14
push eax
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.00401580
mov byte [ebp - 4], bl
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 0x4048ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.Error
call fcn.00401bf0
push ecx
mov byte [ebp - 4], 8
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.LastCheck
call fcn.00401bf0
push ecx
mov byte [ebp - 4], 9
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x437598
call fcn.00401bf0
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x10]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x14], esp
mov edi, esp
push eax
call fcn.00401610
add eax, 0x10
lea ecx, [ebp - 0x1c]
add esp, 4
mov dword [edi], eax
push ecx
mov byte [ebp - 4], bl
call fcn.00402f40
add esp, 0x14
lea ecx, [esi + 4]
push eax
mov byte [ebp - 4], 0xb
call fcn.00401580
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404940
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0xffffffffffffffff
push str.Monitor
push 0x437598
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.Error
mov dword [esi + 8], eax
call fcn.00401bf0
push ecx
mov byte [ebp - 4], 0xc
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.SelfUpdate
call fcn.00401bf0
push ecx
mov byte [ebp - 4], 0xd
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x437598
call fcn.00401bf0
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x10]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x14], esp
mov edi, esp
push eax
call fcn.00401610
add eax, 0x10
lea edx, [ebp - 0x1c]
add esp, 4
mov dword [edi], eax
push edx
mov byte [ebp - 4], bl
call fcn.00402f40
add esp, 0x14
lea ecx, [esi + 0xc]
push eax
mov byte [ebp - 4], 0xf
call fcn.00401580
mov byte [ebp - 4], bl
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 0x4049ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor edi, edi
jmp 0x404a43
push str.CControlDatFile_:_PathFileExists_FILE_NOT_EXIST__r_n
push 0x442e1c
call fcn.004013e0
add esp, 8
push ebx
push 0x4372b0
mov ecx, esi
call fcn.00401af0
push 1
lea ecx, [esi + 4]
push 0x4372e0
call fcn.00401af0
push 0x4376f8
call fcn.0041902f
add esp, 4
mov dword [esi + 8], eax
push 1
add esi, 0xc
push 0x4372e0
mov ecx, esi
call fcn.00401af0
or edi, 0xffffffff
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 0x404a69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret