Function at 0x40a2f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x588119
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x5ef60c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
push str.CMonitoringExe::GetDrvListDat_r_n
mov dword [ebp - 4], edi
push 0x5f80f8
mov dword [ebp - 0x14], edi
call fcn.00403a70
add esp, 8
push 0x5b95a8
mov ecx, esi
call fcn.00401a30
mov dword [ebp - 4], edi
push 0x5b95a8
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], 1
call fcn.00401a30
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 1
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
cmp eax, edi
je 0x40a4cc
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
cmp dword [eax - 0xc], edi
je 0x40a4cc
lea ecx, [ebp - 0x10]
push ecx
call fcn.00413290
add esp, 4
cmp eax, edi
jne 0x40a396
push str.MakeProgDataFolderPath_Error_r_n
jmp 0x40a4d1
push str.EPSONSoftwareUpdater
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.0040afd0
push 0x5b93a4
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov byte [ebp - 4], 2
call fcn.0040afd0
push str.EPSDNMON.dat
push eax
lea edx, [ebp - 0x18]
push edx
mov byte [ebp - 4], 3
call fcn.0040afd0
add esp, 0x24
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.00401f40
mov byte [ebp - 4], 3
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 0x40a401
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 0x40a424
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 0x40a447
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
mov edi, dword [ebp - 0x10]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x100
or eax, ecx
jge 0x40a46f
push 0x100
mov ecx, esi
call fcn.00401de0
mov eax, dword [esi]
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
push edi
push 0x100
push eax
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, eax
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40a4a5
push ecx
push eax
call fcn.005581e8
add esp, 8
test eax, eax
jl 0x40a4c2
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x40a4c2
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
test edi, edi
ja 0x40a4de
push str.GetDrvListDat_Error_r_n
jmp 0x40a4d1
push 0x80070057
call fcn.00401fd0
push str.GetDrvListDat_ParamErrorr_n
push 0x5f80f8
call fcn.00403a70
add esp, 8
mov byte [ebp - 4], 0
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 0x40a501
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
mov esp, ebp
pop ebp
ret 0xc