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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431d30
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x43ec2c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.CControlDatFile_:_GetAppListFromDat_r_n
push 0x442e1c
call fcn.004013e0
add esp, 8
push 0x4372b0
lea ecx, [ebp - 0x14]
mov esi, 0xffffff9d
call fcn.00401bf0
xor edi, edi
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], edi
call fcn.0040e576
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.0040e61d
lea eax, [ebp - 0x14]
push eax
call fcn.00402950
add esp, 4
cmp eax, edi
je 0x405797
push str.EPSONSoftwareUpdater
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.004068c0
push 0x437228
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 2
call fcn.004068c0
push str.EPSDNMAL.dat
push eax
lea ecx, [ebp - 0x18]
mov bl, 3
push ecx
mov byte [ebp - 4], bl
call fcn.004068c0
add esp, 0x24
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00401580
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 0x405517
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 - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40553a
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 - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40555d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, edi
je 0x405782
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x44]
push eax
call fcn.00402a20
add esp, 8
cmp eax, edi
jle 0x405797
mov eax, dword [ebp - 0x3c]
cmp eax, edi
mov dword [ebp - 0x18], eax
jle 0x405779
lea esi, [ebp - 0x5c]
call fcn.004057e0
mov bl, 5
mov byte [ebp - 4], bl
test edi, edi
jl 0x40577d
cmp edi, dword [ebp - 0x3c]
jge 0x40577d
mov ecx, dword [ebp - 0x40]
lea eax, [ecx + edi*4]
push eax
mov ecx, esi
call fcn.00401580
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.Error
call fcn.00401bf0
push ecx
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.Name
call fcn.00401bf0
mov byte [ebp - 4], 7
cmp edi, dword [ebp - 0x3c]
jge 0x40577d
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + edi*4]
push ecx
sub eax, 0x10
mov dword [ebp - 0x2c], esp
mov esi, esp
push eax
call fcn.00401610
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 0x30], esp
mov esi, esp
push eax
call fcn.00401610
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x20]
add esp, 4
push eax
mov byte [ebp - 4], bl
call fcn.00402f40
add esp, 0x14
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 9
call fcn.00401580
mov byte [ebp - 4], bl
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 0x405667
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 - 0x30], esp
push str.Error
call fcn.00401bf0
push ecx
mov byte [ebp - 4], 0xa
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.LastCheck
call fcn.00401bf0
mov byte [ebp - 4], 0xb
cmp edi, dword [ebp - 0x3c]
jge 0x40577d
push ecx
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx + edi*4]
sub eax, 0x10
mov dword [ebp - 0x28], esp
mov esi, esp
push eax
call fcn.00401610
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 0x24], esp
mov esi, esp
push eax
call fcn.00401610
add eax, 0x10
lea edx, [ebp - 0x1c]
add esp, 4
mov dword [esi], eax
push edx
mov byte [ebp - 4], bl
call fcn.00402f40
add esp, 0x14
push eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0xd
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 0x40570d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, dword [ebp - 0x3c]
jge 0x40577d
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx + edi*4]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edx
push 0xffffffffffffffff
push str.Category
push eax
call esi
cmp edi, dword [ebp - 0x3c]
mov dword [ebp - 0x50], eax
jge 0x40577d
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + edi*4]
push ecx
push 0
push str.Monitor
push eax
call esi
xor edx, edx
cmp eax, 1
mov eax, dword [ebp + 8]
sete dl
add eax, 0x10
lea ebx, [ebp - 0x5c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], edx
call fcn.00406a80
mov esi, ebx
call fcn.00405850
inc edi
cmp edi, dword [ebp - 0x18]
jl 0x405595
xor esi, esi
jmp 0x405797
call fcn.0040d813
push str.CControlDatFile_:_GetAppListFromDat_FILE_NOT_EXIST__r_n
push 0x442e1c
call fcn.004013e0
add esp, 8
or esi, 0xffffffff
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.0040e753
mov dword [ebp - 4], 0xffffffff
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 0x4057c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4