Function at 0x476951
Capabilities:
Check if file exists
Delete directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
lea esi, [edi + 0xc8]
push edi
mov dword [esp + 0x1c], esi
call dword [eax + 0x50]
push eax
call fcn.00464c1f
and dword [edi + 0xd0], 0
lea ebx, [edi + 0xc4]
cmp dword [ebx], 0
mov dword [edi + 0xcc], 1
mov dword [esp + 0x30], ebx
je 0x4769aa
mov eax, dword [ebx]
test eax, eax
je 0x4769a4
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
jmp 0x4769a6
xor eax, eax
test eax, eax
jne 0x4769be
mov eax, esi
mov eax, dword [eax]
cmp dword [ebx], eax
je 0x4769be
mov edi, eax
mov esi, ebx
call fcn.0042deb3
mov edi, dword [ebp + 8]
lea esi, [edi + 0x18]
lea ecx, [esp + 0x20]
mov eax, esi
mov dword [esp + 0x1c], esi
call fcn.00435802
mov eax, dword [eax]
mov edx, dword [eax]
lea ecx, [edi + 0xcc]
push ecx
push str.OptionsNotifyWhenDownload
push eax
call dword [edx + 0x10]
lea ecx, [esp + 0x20]
mov eax, esi
call fcn.00435802
mov eax, dword [eax]
mov edx, dword [eax]
lea ecx, [edi + 0xd0]
push ecx
push str.OptionsDelFile1Week
push eax
call dword [edx + 0x10]
mov eax, dword [ebx]
test eax, eax
je 0x476a12
and dword [ebx], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0x38]
mov eax, esi
call fcn.00435802
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov eax, dword [eax]
mov esi, ebx
mov dword [esp + 0x20], eax
call fcn.0044158c
push eax
mov eax, dword [esp + 0x24]
push str.OptionsTaskDlFolder
push dword [esp + 0x1c]
call dword [eax + 0x18]
test eax, eax
jne 0x476a80
mov eax, dword [esp + 0x18]
mov edi, dword [eax]
cmp dword [ebx], edi
je 0x476a54
call fcn.0042deb3
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x38]
call fcn.00435802
mov edi, dword [eax]
mov esi, dword [edi]
push dword [ebp + 0xc]
mov eax, ebx
add esi, 0x1c
call fcn.004415a1
push eax
push str.OptionsTaskDlFolder
push edi
call dword [esi]
jmp 0x476bc5
lea eax, [esp + 0x48]
push eax
call fcn.00454b34
lea ecx, [esp + 0x38]
mov eax, ebx
call fcn.00435802
mov eax, dword [eax]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
push eax
lea ecx, [esp + 0x18]
call fcn.00401f01
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 2
jle 0x476b05
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x476aca
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x4c]
call fcn.0040343f
push 0x5c
lea esi, [esp + 0x18]
call fcn.004116a7
lea ebx, [esp + 0x20]
mov ecx, esi
call fcn.00404af0
push eax
mov ecx, esi
call fcn.00404918
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.0040297c
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 2
jg 0x476ab1
mov ebx, dword [esp + 0x30]
mov edi, dword [ebp + 8]
lea ecx, [esp + 0x38]
mov eax, ebx
call fcn.00435802
mov ecx, dword [edi]
mov eax, dword [eax]
add ecx, 0x68
push 0x32
mov dword [esp + 0x34], ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
push eax
lea ecx, [esp + 0x28]
call fcn.00401f01
mov esi, eax
call fcn.004048da
push eax
mov eax, dword [esp + 0x38]
push edi
call dword [eax]
mov ecx, dword [esp + 0x20]
test eax, eax
setne byte [esp + 0x13]
add ecx, 0xfffffff0
call fcn.0040297c
cmp byte [esp + 0x13], 0
je 0x476bd1
mov eax, dword [ebx]
test eax, eax
je 0x476b65
and dword [ebx], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x38]
call fcn.00435802
mov edi, dword [esp + 0x18]
mov esi, dword [eax]
mov eax, dword [edi]
test eax, eax
je 0x476b86
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
jmp 0x476b8b
mov eax, 0x537290
mov ecx, dword [esi]
push 0
push eax
push str.OptionsTaskDlFolder
push esi
call dword [ecx + 0x1c]
mov edi, dword [edi]
cmp dword [ebx], edi
je 0x476ba6
mov esi, ebx
call fcn.0042deb3
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040297c
lea esi, [esp + 0x48]
call fcn.00403747
push dword [esp + 0x48]
call fcn.004e9044
pop ecx
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [esp + 0x54]
cmp esi, dword [esp + 0x58]
jbe 0x476be0
call fcn.004e9f42
mov eax, dword [esp + 0x48]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x58]
cmp dword [esp + 0x54], esi
jbe 0x476bfb
call fcn.004e9f42
mov eax, dword [esp + 0x30]
test eax, eax
je 0x476c09
cmp eax, dword [esp + 0x48]
je 0x476c0e
call fcn.004e9f42
cmp dword [esp + 0x34], esi
je 0x476ba6
lea esi, [esp + 0x30]
call fcn.00436c29
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea edi, [esp + 0x20]
call fcn.004313f1
jmp 0x476bec