Function at 0x463f20
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x483678
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a0fe0]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov esi, ecx
push 0x4a2be0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov dword [esi + 0x27c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x288], eax
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.0045bdd0
test al, al
jne 0x46403e
push str.UpdateList
lea ebp, [esi + 0x28c]
lea ecx, [esp + 0x20]
push ebp
push ecx
call fcn.00457f10
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x463fc4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x463fd1
push 1
mov ecx, esi
call fcn.00461da0
mov ecx, dword [esi + 0x27c]
push ecx
mov ecx, esi
call fcn.00459f90
test al, al
je 0x46403e
mov edx, dword [0x4a5a34]
mov eax, dword [edx + 0xc]
push 0xffffffffffffffff
push 0
push ecx
mov ecx, 0x4a5a34
mov dword [esp + 0x2c], esp
mov edi, esp
call eax
add eax, 0x10
mov dword [edi], eax
mov ecx, edi
call fcn.0044c970
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.mep.exe
push ebp
push ecx
mov dword [esp + 0x70], 1
call fcn.00457f10
mov edx, dword [esi + 0x27c]
add esp, 0xc
push edx
mov ecx, esi
mov dword [esp + 0x68], 0xffffffff
call fcn.004589b0
lea eax, [esi + 0x28c]
push str.UpdateList
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00457f10
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or ebx, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x464084
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebp, ebp
cmp edi, ebp
je 0x464091
mov byte [esi + 0x284], 1
mov ecx, esi
call fcn.00459870
test al, al
je 0x4640a3
mov ecx, esi
call fcn.00454060
push ebp
push ebp
push ebp
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jle 0x4645cb
cmp dword [esp + 0x34], 0x113
jne 0x464343
mov eax, dword [esp + 0x38]
cmp eax, dword [esi + 0x268]
jne 0x4642c3
mov edx, dword [esi + 0x274]
push eax
push edx
push str.____InTouchService:_TIMER_AutoUpdate._Interrval___d_ID__d___n
call fcn.00401010
push str.InTouchService:_TIMER_AutoUpdate._n
push ebp
call fcn.00448d80
mov eax, dword [esi + 0x268]
add esp, 0x14
push eax
push ebp
call dword [sym.imp.USER32.dll_KillTimer]
push 4
lea ecx, [esp + 0x20]
push ecx
push str.ManualUpdate
push str.SOFTWAREEPSONMyEpson_Portal
mov dword [esp + 0x2c], ebp
call fcn.004487d0
add esp, 0x10
cmp eax, ebp
jne 0x464139
cmp dword [esp + 0x1c], 1
jne 0x464139
mov byte [esi + 0x29d], 0
jmp 0x464596
mov ecx, esi
call fcn.004540b0
cmp eax, ebp
je 0x464159
push ebp
push eax
push ebp
push ebp
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0x268], eax
jmp 0x464596
call fcn.0044c200
test eax, eax
jne 0x4641b6
push 4
lea edx, [esp + 0x20]
push edx
push str.UpdateRetryTimer
push str.SOFTWAREEPSONMyEpson_Portal
mov dword [esp + 0x2c], ebp
call fcn.004487d0
add esp, 0x10
test eax, eax
je 0x46418b
mov dword [esp + 0x1c], 0xea60
mov eax, dword [esp + 0x1c]
push ebp
push eax
push ebp
push ebp
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [esp + 0x1c]
push ecx
push str.____IsConnectReadyNetwork_is_FALSE._SetTimer__d___n
mov dword [esi + 0x268], eax
call fcn.00401010
add esp, 8
jmp 0x464596
cmp byte [esi + 0x284], 0
jne 0x46422a
mov ecx, esi
call fcn.00462320
cmp byte [esi + 0x29e], 1
jne 0x4641d6
mov ecx, esi
call fcn.00453fb0
push str.UpdateList
lea eax, [esi + 0x28c]
push eax
lea edx, [esp + 0x28]
push edx
call fcn.00457f10
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, dword [esp + 0x20]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46421d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x464292
mov byte [esi + 0x284], 0
jmp 0x464292
push str.____InTouchService:_already_updated._n
call fcn.00401010
mov ecx, dword [esi + 0x27c]
add esp, 4
push ecx
mov ecx, esi
call fcn.00459f90
test al, al
je 0x464292
push ebx
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.UPDATE
call fcn.0044c460
push ecx
mov edx, esp
mov dword [esp + 0x38], esp
push str.mepSender.exe
lea eax, [esi + 0x28c]
push eax
push edx
mov dword [esp + 0x70], 2
call fcn.00457f10
mov eax, dword [esi + 0x27c]
add esp, 0xc
push eax
mov ecx, esi
mov dword [esp + 0x68], ebx
call fcn.004589b0
mov ecx, esi
call fcn.00459870
test al, al
je 0x4642a4
mov ecx, esi
call fcn.00454060
mov ecx, dword [esi + 0x278]
xor ebp, ebp
push ebp
push ecx
push ebp
push ebp
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0x268], eax
mov eax, dword [esp + 0x38]
or ebx, 0xffffffff
cmp eax, dword [esi + 0x26c]
jne 0x4642ef
push eax
push str.____InTouchService:_TIMER_UpdateCheck._ID__d___n
call fcn.00401010
push str.InTouchService:_TIMER_UpdateCheck._n
push ebp
call fcn.00448d80
add esp, 0x10
mov ecx, esi
call fcn.00454eb0
mov eax, dword [esp + 0x38]
mov ecx, dword [esi + 0x270]
cmp eax, ecx
jne 0x464343
cmp ecx, ebp
je 0x46430b
push ecx
push ebp
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [esi + 0x270], ebp
mov ecx, esi
call fcn.00457100
push ebp
push 0x36ee80
push ebp
push ebp
call dword [sym.imp.USER32.dll_SetTimer]
mov edx, dword [esp + 0x38]
push edx
push str.____InTouchService:_TIMER_SerialID._ID__d___n
mov dword [esi + 0x270], eax
call fcn.00401010
push str.InTouchService:_TIMER_SerialID._n
push ebp
call fcn.00448d80
add esp, 0x10
cmp dword [esp + 0x34], 0x480
jne 0x4644fd
push str.____InTouchService:_UPDATE._n
call fcn.00401010
push str.InTouchService:_UPDATE._n
push ebp
call fcn.00448d80
add esp, 0xc
push 1
mov ecx, esi
call fcn.00461da0
mov eax, dword [esi + 0x27c]
push eax
mov ecx, esi
call fcn.00459f90
test al, al
je 0x4644ab
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.0045bdd0
test al, al
jne 0x4644ab
mov eax, dword [esp + 0x38]
cmp eax, ebp
jne 0x464404
mov edx, dword [0x4a5a34]
mov eax, dword [edx + 0xc]
push ebx
push ebp
push ecx
mov ecx, 0x4a5a34
mov dword [esp + 0x34], esp
mov edi, esp
call eax
add eax, 0x10
mov dword [edi], eax
mov ecx, edi
call fcn.0044c970
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.mep.exe
lea eax, [esi + 0x28c]
push eax
push ecx
mov dword [esp + 0x70], 4
call fcn.00457f10
mov edx, dword [esi + 0x27c]
add esp, 0xc
push edx
mov ecx, esi
mov dword [esp + 0x68], ebx
call fcn.004589b0
jmp 0x4644ab
cmp eax, 1
jne 0x4644ab
mov eax, dword [0x4a5a34]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a5a34
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
push 0x49544c
lea eax, [esp + 0x20]
push 0x48b788
push eax
mov dword [esp + 0x60], 5
call fcn.00448fb0
mov edi, dword [esp + 0x28]
add esp, 0xc
push ebx
push ebp
push ecx
add edi, 0xfffffff0
mov dword [esp + 0x34], esp
mov ebp, esp
push edi
call fcn.0044c830
add eax, 0x10
mov dword [ebp], eax
mov ecx, esp
mov dword [esp + 0x3c], esp
push str.mep.exe
lea eax, [esi + 0x28c]
push eax
push ecx
mov byte [esp + 0x70], 6
call fcn.00457f10
mov edx, dword [esi + 0x27c]
add esp, 0xc
push edx
mov ecx, esi
mov byte [esp + 0x68], 5
call fcn.004589b0
mov dword [esp + 0x54], ebx
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4644ab
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
push str.UpdateList
lea eax, [esi + 0x28c]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00457f10
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, dword [esp + 0x24]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4644f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4644fd
mov byte [esi + 0x284], 0
cmp dword [esp + 0x34], 0x481
jne 0x464520
push str.____InTouchService:_RESTART._n
call fcn.00401010
push str.InTouchService:_RESTART._n
push 0
call fcn.00448d80
add esp, 0xc
cmp dword [esp + 0x34], 0x48a
jne 0x46454a
push str.____InTouchService:_UPDATEREQUEST._n
call fcn.00401010
push str.InTouchService:_UPDATEREQUEST._n
push 0
call fcn.00448d80
add esp, 0xc
mov ecx, esi
call fcn.00463d60
cmp dword [esp + 0x34], 0x493
jne 0x464574
push str.____InTouchService:_CHECKCONNECTREQUEST._n
call fcn.00401010
push str.InTouchService:_CHECKCONNECTREQUEST._n
push 0
call fcn.00448d80
add esp, 0xc
mov ecx, esi
call fcn.004596b0
cmp dword [esp + 0x34], 0x12
je 0x4645c0
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
or ebx, 0xffffffff
xor ebp, ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jg 0x4640b9
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
push 0x4a2be0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret