Function at 0x40a4f0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431e88
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push esi
push edi
mov eax, dword [0x43ec2c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.CEPSDNMON_:_UpdateAppBase_r_n
push 0x442e1c
call fcn.004013e0
add esp, 8
xor esi, esi
push 0x4372b0
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x28], esi
call fcn.00401bf0
push 0x4372b0
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], esi
call fcn.00401bf0
push 0x4372b0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00401bf0
push 0x4372b0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00401bf0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.004071b0
mov byte [ebp - 4], 4
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx - 8]
mov dword [ebp - 0x30], ecx
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
mov dword [ebp - 0x34], esi
jge 0x40a5b4
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00401a40
mov edx, dword [ebp - 0x10]
push esi
push 0x26
push edx
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.00418b6b
add esp, 8
cmp eax, esi
jl 0x40a93f
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ecx - 8]
jg 0x40a93f
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov word [ecx + eax*2], dx
cmp edi, esi
je 0x40a872
push str.EPSON_SoftwareDownload_Navigator
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x44]
push eax
call fcn.004068c0
add esp, 0xc
push 0x437228
push eax
lea ecx, [ebp - 0x40]
push ecx
mov byte [ebp - 4], 5
call fcn.004068c0
add esp, 0xc
push str.EPSDNAVI.EXE
push eax
lea edx, [ebp - 0x3c]
push edx
mov byte [ebp - 4], 6
call fcn.004068c0
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.00401580
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a66a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a68d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a6b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor edi, edi
cmp dword [ebp - 0x30], esi
mov dword [ebp - 0x14], edi
jle 0x40a872
mov dword [ebp - 0x18], esi
test esi, esi
jl 0x40a93a
cmp edi, dword [ebx + 0x1c]
jge 0x40a93a
mov eax, dword [ebx + 0x18]
add eax, esi
cmp dword [eax + 0x14], 0
je 0x40a851
cmp edi, dword [ebx + 0x1c]
jge 0x40a93a
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax + esi]
add eax, esi
push ecx
lea edx, [ebp - 0x20]
push str._KEY___s_
push edx
call fcn.00402260
add esp, 0xc
cmp edi, dword [ebx + 0x1c]
jge 0x40a93a
mov eax, dword [ebx + 0x18]
add eax, esi
mov eax, dword [eax + 0xc]
push eax
lea ecx, [ebp - 0x1c]
push str._CTI___d_
push ecx
call fcn.00402260
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
add esp, 0xc
push edx
push eax
mov eax, dword [ebx + 0x10]
push 1
push ecx
lea esi, [ebx + 0x10]
sub eax, 0x10
mov dword [ebp - 0x38], esp
mov edi, esp
push eax
call fcn.00401610
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.004022a0
add esp, 0x10
cmp eax, 1
jne 0x40a798
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
push 0x438984
push str._KICK
push ecx
push edx
push str._UPD
lea eax, [ebp - 0x24]
push str._s__s__s__s__s
push eax
call fcn.00402260
add esp, 0x1c
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
call fcn.00401580
lea edi, [ebx + 4]
call fcn.00404db0
jmp 0x40a7bb
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
push str._KICK
push edx
push eax
push str._UPD
lea ecx, [ebp - 0x24]
push str._s__s__s__s
push ecx
call fcn.00402260
add esp, 0x18
mov eax, dword [ebp - 0x24]
push 0
push 1
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x38], esp
mov edi, esp
push eax
lea esi, [ebp - 0x28]
call fcn.00401610
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 0x48], esp
mov edi, esp
push eax
call fcn.00401610
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov byte [ebp - 4], 4
call fcn.00403f00
mov edx, dword [ebp - 0x28]
push edx
mov esi, eax
push str.CEPSDNMON_:_MyShellExecute_dwExitCode____d__r_n
push 0x442e1c
mov dword [ebp - 0x38], esi
call fcn.004013e0
add esp, 0xc
test esi, esi
je 0x40a84b
cmp dword [ebp - 0x28], 0
jne 0x40a84b
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebx + 0x1c]
jge 0x40a93a
mov eax, dword [ebx + 0x18]
add eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x2c]
add eax, 8
push ecx
mov ecx, eax
call fcn.00401580
mov dword [ebp - 0x34], 1
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
inc edi
add esi, 0x18
cmp edi, dword [ebp - 0x30]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], esi
jl 0x40a6c1
cmp dword [ebp - 0x34], 0
je 0x40a872
lea esi, [ebx + 4]
call fcn.00406010
mov byte [ebp - 4], 3
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 0x40a895
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 0x40a8b8
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 0x40a8db
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 - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a8fe
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 0x40a924
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
call fcn.0040d813
push 0x80070057
call fcn.00401cd0
int3