Function at 0x40b070
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x417498
call fcn.0040ef50
mov eax, dword [esp + 0x14]
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp eax, dword [esi + 0xa4]
jne 0x40b32d
push str.CMainFrame::OnTimer___n
call fcn.004024eb
xor ebp, ebp
pop ecx
cmp dword [esi + 0xb0], ebp
jne 0x40b0b0
cmp dword [esi + 0xb4], ebp
je 0x40b100
inc dword [esi + 0xc4]
push dword [esi + 0xc4]
lea edi, [esi + 0xc4]
push str.CMainFrame::OnTimer___EBAPI_SDK_Wait_timer__d_n
call fcn.004024eb
cmp dword [edi], 0x78
pop ecx
pop ecx
jl 0x40b100
cmp dword [esi + 0xb4], ebp
lea eax, [esi + 0xb4]
mov dword [esi + 0x70], 4
je 0x40b0f1
mov dword [esi + 0x74], 0xa
jmp 0x40b0f8
mov dword [esi + 0x74], 2
mov dword [esi + 0xb0], ebp
mov dword [eax], ebp
cmp dword [esi + 0xb8], ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
je 0x40b1c9
inc dword [esi + 0xc0]
push dword [esi + 0xc0]
push str.CMainFrame::OnTimer___STM_Service_Wait_timer__d_n
call fcn.004024eb
cmp dword [esi + 0xc0], 3
pop ecx
pop ecx
jl 0x40b1c9
push str.CMainFrame::OnTimer___Delete_STM_service_n
call fcn.004024eb
pop ecx
lea edi, [esi + 0xc8]
mov ecx, edi
mov dword [esi + 0xb8], ebp
call fcn.00401e04
push eax
call ebx
cmp eax, 0xffffffff
je 0x40b182
test al, 1
je 0x40b172
and al, 0xfe
mov ecx, edi
push eax
call fcn.00401e04
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, edi
call fcn.00401e04
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
jne 0x40b1c7
push str.CMainFrame::OnTimer___Delete_STM_service_error_n
call fcn.004024eb
inc dword [esi + 0xbc]
cmp dword [esi + 0xbc], 5
lea eax, [esi + 0xbc]
pop ecx
jl 0x40b1b6
mov dword [esi + 0x70], 4
mov dword [esi + 0x74], 8
jmp 0x40b1c7
and dword [esi + 0xc0], 0
mov dword [esi + 0xb8], 1
xor ebp, ebp
cmp dword [esi + 0xe8], ebp
je 0x40b300
inc dword [esi + 0xf0]
push dword [esi + 0xf0]
push str.CMainFrame::OnTimer___SIDM_Service_Wait_timer__d_n
call fcn.004024eb
cmp dword [esi + 0xf0], 3
pop ecx
pop ecx
jl 0x40b300
push ebp
lea ecx, [esi + 0xf8]
mov dword [esp + 0x38], ebp
call fcn.00401e04
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x40b340
mov eax, dword [esi + 0x78]
cmp eax, 2
je 0x40b226
cmp eax, 3
jne 0x40b279
push str.CMainFrame::OnTimer___Delete_SIDM_service_n
call fcn.004024eb
pop ecx
lea edi, [esi + 0xfc]
mov ecx, edi
call fcn.00401e04
push eax
call ebx
cmp eax, 0xffffffff
je 0x40b26b
test al, 1
je 0x40b25b
and al, 0xfe
mov ecx, edi
push eax
call fcn.00401e04
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, edi
call fcn.00401e04
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
jne 0x40b277
mov dword [esp + 0x34], 1
xor ebp, ebp
cmp dword [esp + 0x34], ebp
je 0x40b2b2
inc dword [esi + 0xec]
cmp dword [esi + 0xec], 5
lea eax, [esi + 0xec]
jl 0x40b2aa
mov dword [esi + 0x70], 4
mov dword [esi + 0x74], 0xd
mov dword [esi + 0xe8], ebp
jmp 0x40b300
mov dword [esi + 0xf0], ebp
jmp 0x40b300
cmp dword [esi + 0xf4], ebp
mov dword [esi + 0xe8], ebp
je 0x40b300
push 0xf003f
push ebp
push ebp
push str.SoftwareEPSONSTM3
push 0x80000002
lea ecx, [esp + 0x24]
call fcn.0040dc20
cmp dword [esp + 0x18], ebp
mov dword [esp + 0x28], ebp
je 0x40b2f2
push str.SIDMCommon
lea ecx, [esp + 0x14]
call fcn.0040de74
or dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0040dcd0
cmp dword [esi + 0xb0], ebp
jne 0x40b32d
cmp dword [esi + 0xb4], ebp
jne 0x40b32d
cmp dword [esi + 0xb8], ebp
jne 0x40b32d
cmp dword [esi + 0xe8], ebp
jne 0x40b32d
push ebp
push ebp
push 0x10
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
leave
ret 4
mov dword [esp + 0x34], 1
jmp 0x40b279