Function at 0x402210
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427a61
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x442060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.isafepxy.dll_ISAFE_WriteProgramLogString]
push str.iSafeTaskHelper::RemoveDelayAdw__Begin_Check_DelayAdw
push 0xffffffffffffffff
call esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0x20
lea eax, [ebp - 0x420]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4022ca
push str.isafe_
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str.delayadw.xml
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ebx, dword [sym.imp.isafepxy.dll_ISAFE_WriteProgramLog]
lea eax, [ebp - 0x218]
push eax
push str.iSafeTaskHelper::RemoveDelayAdw__Open_DelayAdw_xml_file:_s
push 0xffffffffffffffff
call ebx
add esp, 0xc
cmp word [ebp - 0x218], 0
je 0x4025a4
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4025a4
push str.iSafeTaskHelper::RemoveDelayAdw__Create_Module.iAdwCleaner.Controller_
push 0xffffffffffffffff
call esi
push str.isafemadwc.dll
push str.Module.iAdwCleaner.Controller
call dword [sym.imp.isafemc.dll_long_int___cdecl_DefineDllModule_wchar_t_const___wchar_t_const__]
lea eax, [ebp - 0x46c]
push eax
push str.Module.iAdwCleaner.Controller
mov dword [ebp - 0x46c], 0
call dword [sym.imp.isafemc.dll_long_int___cdecl_CreateDllObject_wchar_t_const___void___]
add esp, 0x18
test eax, eax
jne 0x402596
cmp dword [ebp - 0x46c], eax
je 0x402596
sub esp, 8
lea ecx, [ebp - 0x44c]
mov dword [ebp - 0x44c], eax
mov dword [ebp - 0x444], eax
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x43c], eax
call fcn.00404460
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x46c]
lea edx, [ebp - 0x44c]
mov eax, dword [ecx]
push edx
call dword [eax + 0x2c]
mov ecx, dword [ebp - 0x46c]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x44c]
mov ebx, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov esi, dword [edi]
cmp esi, edi
je 0x4024b2
mov eax, dword [esi + 8]
mov dword [ebp - 0x468], eax
xor eax, eax
push 0xffffffffffffffff
push eax
mov word [ebp - 0x464], ax
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x464]
mov dword [ebp - 0x450], 7
mov dword [ebp - 0x454], 0
call fcn.00406d50
mov byte [ebp - 4], 2
movq xmm0, qword [ebp - 0x464]
sub esp, 0x18
mov eax, esp
push str.iSafeTaskHelper::RemoveDelayAdw__call_CreateItemFromString_to__s
movq qword [eax], xmm0
movq xmm0, qword [ebp - 0x45c]
movq qword [eax + 8], xmm0
movq xmm0, qword [ebp - 0x454]
push 0xffffffffffffffff
movq qword [eax + 0x10], xmm0
call dword [sym.imp.isafepxy.dll_ISAFE_WriteProgramLog]
mov ecx, dword [ebp - 0x46c]
add esp, 0x20
lea edx, [ebp - 0x470]
mov dword [ebp - 0x470], 0
mov eax, dword [ecx]
push edx
mov eax, dword [eax + 0x24]
lea edx, [ebp - 0x464]
push edx
call eax
test al, al
je 0x402490
cmp dword [ebp - 0x470], 0
je 0x402490
lea eax, [ebp - 0x470]
push eax
lea ecx, [ebp - 0x42c]
call fcn.00404040
mov byte [ebp - 4], 1
cmp dword [ebp - 0x450], 8
jb 0x4024a8
push dword [ebp - 0x464]
call ebx
add esp, 4
mov esi, dword [esi]
cmp esi, edi
jne 0x4023d5
mov ecx, dword [ebp - 0x46c]
push 0
mov eax, dword [ecx]
lea edx, [ebp - 0x42c]
push edx
call dword [eax + 0x1c]
mov esi, dword [ebp - 0x42c]
mov edi, dword [ebp - 0x428]
cmp esi, edi
je 0x4024ea
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, edi
jne 0x4024d6
mov esi, dword [ebp - 0x42c]
mov ecx, dword [ebp - 0x46c]
mov dword [ebp - 0x428], esi
test ecx, ecx
je 0x402514
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x46c]
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x46c], 0
push str.Module.iAdwCleaner.Controller
call dword [sym.imp.isafemc.dll_long_int___cdecl_UnloadDllByModule_wchar_t_const__]
mov eax, dword [ebp - 0x42c]
add esp, 4
test eax, eax
je 0x402550
push eax
call ebx
add esp, 4
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
mov eax, dword [ebp - 0x444]
test eax, eax
je 0x40257e
push eax
call ebx
add esp, 4
mov dword [ebp - 0x444], 0
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0
lea ecx, [ebp - 0x44c]
call fcn.00404c40
push dword [ebp - 0x44c]
call ebx
add esp, 4
jmp 0x4025b7
push str.iSafeTaskHelper::RemoveDelayAdw__Create_Create_Module.iAdwCleaner.Controller_Failed_
push 0xffffffffffffffff
call esi
add esp, 8
jmp 0x4025b7
lea eax, [ebp - 0x218]
push eax
push str.iSafeTaskHelper::RemoveDelayAdw__xml_file_not_exist
push 0xffffffffffffffff
call ebx
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004258f6
mov esp, ebp
pop ebp
ret