Function at 0x1000ad50
Capabilities:
Delete file

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x28c
mov eax, dword [ecx]
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x25c], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x260], eax
test byte [0x100471c4], 8
jne 0x1000b290
lea eax, [ebx - 1]
cmp eax, 0x63
ja 0x1000b270
mov dword [ebp - 0x250], 0
mov eax, dword [ebp - 0x25c]
test eax, eax
je 0x1000adeb
cmp word [eax], 0
je 0x1000b452
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x1000adb8
sub eax, dword [ebp - 0x25c]
mov edi, eax
sub eax, 2
sar edi, 1
mov dword [ebp - 0x250], edi
mov edi, dword [ebp - 0x25c]
cmp word [edi + eax], 0x5c
sete al
movzx eax, al
sub dword [ebp - 0x250], eax
mov esi, dword [ebp - 0x260]
cmp ebx, 0x64
sete dl
test esi, esi
mov esi, dword [0x100470cc]
sete al
and dl, al
mov byte [ebp - 0x258], dl
jne 0x1000af00
cmp esi, 0x100470cc
je 0x1000aee8
mov eax, dword [ebp - 0x250]
add eax, eax
mov dword [ebp - 0x278], eax
mov eax, 0x64
sub eax, ebx
mov dword [ebp - 0x27c], eax
jmp 0x1000aec3
mov eax, dword [ebp - 0x250]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x25c]
mov dword [esp + 4], eax
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsnicmp]
test eax, eax
jne 0x1000aeb9
mov eax, dword [esi + 0xc]
mov edi, dword [ebp - 0x278]
movzx eax, word [eax + edi]
test ax, ax
je 0x1000ae7c
cmp ax, 0x5c
jne 0x1000aeb9
mov dword [esp + 4], 0xffffffff
mov eax, dword [esi + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov dword [ebp - 0x264], eax
call eax
mov ecx, dword [esi + 0x10]
sub esp, 8
test ecx, ecx
jne 0x1000b0c8
mov edx, pe_nt_image_headers32
mov eax, esi
call sym._cache_container_open_index.part.0
test eax, eax
je 0x1000b0d7
mov esi, dword [esi]
cmp esi, 0x100470cc
je 0x1000aee8
mov ebx, dword [ebp - 0x250]
test ebx, ebx
jne 0x1000ae40
mov eax, dword [esi + 8]
cmp byte [eax], 0
je 0x1000ae7c
mov esi, dword [esi]
cmp esi, 0x100470cc
jne 0x1000aec3
lea esi, cs:[esi]
mov eax, 1
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov eax, dword [ebp - 0x250]
add eax, eax
mov dword [ebp - 0x260], eax
cmp esi, 0x100470cc
jne 0x1000af6e
jmp 0x1000aee8
mov eax, dword [ebp - 0x250]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x25c]
mov dword [esp + 4], eax
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsnicmp]
test eax, eax
jne 0x1000af60
mov eax, dword [esi + 0xc]
mov ebx, dword [ebp - 0x260]
movzx eax, word [eax + ebx]
test ax, ax
je 0x1000af80
cmp ax, 0x5c
je 0x1000af80
lea esi, [esi]
mov esi, dword [esi]
cmp esi, 0x100470cc
je 0x1000aee8
mov ebx, dword [ebp - 0x250]
test ebx, ebx
jne 0x1000af20
mov eax, dword [esi + 8]
cmp byte [eax], 0
jne 0x1000af60
mov dword [esp + 4], 0xffffffff
mov eax, dword [esi + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x10]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edi, dword [esi + 0xc]
mov dword [esi + 0x10], 0
sub esp, 4
movzx ecx, word [edi]
mov eax, edi
test cx, cx
je 0x1000b3c0
nop
add eax, 2
cmp word [eax], 0
jne 0x1000afc0
sub eax, edi
cmp eax, 0x206
ja 0x1000b065
sar eax, 1
xor edx, edx
lea ebx, [ebp - 0x21c]
inc eax
jmp 0x1000afec
movzx ecx, word [edi + edx]
mov word [ebx + edx], cx
add edx, 2
test cx, cx
jne 0x1000afe8
xor edx, edx
mov ecx, 0x10
mov dword [ebp - 0x23c], 0
mov word [ebp + eax*2 - 0x21c], dx
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x238], 3
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x230], 0
mov word [ebp - 0x22c], cx
mov dword [ebp - 0x22a], 0
mov dword [esp], eax
call dword [sym.imp.shell32.dll_SHFileOperationW]
sub esp, 4
mov edi, eax
test eax, eax
je 0x1000b260
test byte [0x100471c4], 2
jne 0x1000b3e0
movzx ebx, byte [ebp - 0x258]
mov dword [esp + 4], 0xffffffff
mov eax, dword [esi + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov edi, dword [esi + 0x10]
sub esp, 8
test edi, edi
jne 0x1000b240
mov edx, pe_nt_image_headers32
mov eax, esi
call sym._cache_container_open_index.part.0
mov edi, dword [sym.imp.kernel32.dll_ReleaseMutex]
test eax, eax
setne al
or ebx, eax
mov eax, dword [esi + 0x18]
mov dword [esp], eax
call edi
sub esp, 4
test bl, bl
je 0x1000af60
xor eax, eax
jmp 0x1000aeed
mov eax, dword [esi + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReleaseMutex]
sub esp, 4
mov eax, esi
call sym._cache_container_lock_index
mov ebx, eax
test eax, eax
je 0x1000aeb9
mov edi, dword [ebx + 0x224]
lea eax, [eax + 0x224]
test edi, edi
je 0x1000b142
mov ecx, edi
mov dword [ebp - 0x258], esi
mov edi, eax
jmp 0x1000b112
mov ecx, dword [esi + 0x2c]
lea edi, [esi + 0x2c]
test ecx, ecx
je 0x1000b13c
lea esi, [ebx + ecx]
mov eax, dword [ebp - 0x258]
mov edx, ebx
mov ecx, esi
call sym._urlcache_delete_file
test eax, eax
js 0x1000b108
mov eax, dword [esi + 0x2c]
mov edx, esi
mov dword [edi], eax
mov eax, ebx
call sym._urlcache_entry_free.isra.0
mov ecx, dword [edi]
test ecx, ecx
jne 0x1000b112
mov esi, dword [ebp - 0x258]
mov ecx, dword [ebx + 0x34]
mov edi, dword [ebp - 0x27c]
imul ecx, edi
mov eax, edi
mul dword [ebx + 0x30]
mov dword [esp + 8], 0x64
mov dword [esp + 0xc], 0
add edx, ecx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym.___udivdi3
mov dword [ebp - 0x258], eax
mov eax, dword [ebx + 0x40]
mov dword [ebp - 0x254], edx
mov edx, dword [ebx + 0x44]
mov ecx, edx
mov edx, eax
mov eax, dword [ebp - 0x254]
add edx, dword [ebx + 0x38]
adc ecx, dword [ebx + 0x3c]
cmp dword [ebp - 0x258], edx
mov dword [ebp - 0x26c], edx
sbb eax, ecx
mov dword [ebp - 0x268], ecx
jae 0x1000b217
mov eax, dword [ebp - 0x26c]
mov ecx, 0x64
sub eax, dword [ebp - 0x258]
mov edx, dword [ebp - 0x268]
sbb edx, dword [ebp - 0x254]
imul edi, edx, 0x64
mul ecx
mov dword [ebp - 0x270], edx
mov edx, dword [ebp - 0x268]
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x26c]
add dword [ebp - 0x270], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x274]
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x270]
mov dword [esp], eax
mov dword [esp + 4], edx
call sym.___udivdi3
mov dword [ebp - 0x26c], eax
test eax, eax
jne 0x1000b2e0
mov eax, dword [esi + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReleaseMutex]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
sub esp, 4
jmp 0x1000aeb9
mov eax, dword [esi + 0x18]
mov edi, dword [sym.imp.kernel32.dll_ReleaseMutex]
mov dword [esp], eax
call edi
sub esp, 4
jmp 0x1000b0a7
mov edx, dword [ebp - 0x22a]
test edx, edx
setne bl
jmp 0x1000b06c
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x57
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov eax, dword [ebp - 0x25c]
call sym._wine_dbgstr_wn.constprop.0_2
mov edi, dword [ebp - 0x260]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0xc], str.__s___lx___lx__n
mov dword [esp + 8], str.FreeUrlCacheSpaceW
mov dword [esp + 4], 0x100471c4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x1000ad88
lea eax, [ebp - 0x23c]
xor edi, edi
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetSystemTimeAsFileTime]
sub esp, 4
jmp 0x1000b322
test byte [0x100471c4], 4
jne 0x1000b390
cmp edi, 0x64
je 0x1000b45c
lea eax, [ebp - 0x248]
lea ecx, [ebp - 0x240]
mov dword [esp + 4], eax
lea eax, [ebp - 0x24c]
lea edx, [ebp - 0x244]
mov dword [esp], eax
mov eax, ebx
call sym._urlcache_next_entry
test eax, eax
je 0x1000b418
mov eax, dword [ebp - 0x248]
cmp dword [eax], 0x204c5255
jne 0x1000b310
mov edx, dword [ebp - 0x260]
and edx, dword [eax + 0x40]
jne 0x1000b319
lea edx, [ebp - 0x23c]
call sym._urlcache_rate_entry
cmp eax, 0xffffffff
mov dword [ebp + edi*4 - 0x21c], eax
setne al
movzx eax, al
add edi, eax
jmp 0x1000b319
mov dword [esp + 0xc], str.only_url_entries_are_currently_supported_n
mov dword [esp + 8], str.FreeUrlCacheSpaceW
mov dword [esp + 4], 0x100471c4
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_7
jmp 0x1000b319
xor eax, eax
lea ebx, [ebp - 0x21c]
mov word [ebp - 0x21c], ax
mov eax, 1
jmp 0x1000aff8
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0_2
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.SHFileOperationW_on__s_returned__i_n
mov dword [esp + 8], str.cache_container_delete_dir
mov dword [esp + 4], 0x100471c4
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_7
jmp 0x1000b065
test edi, edi
jne 0x1000b45c
test byte [0x100471c4], 8
je 0x1000b217
mov dword [esp + 0xc], str.nothing_to_delete_n
mov dword [esp + 8], str.FreeUrlCacheSpaceW
mov dword [esp + 4], 0x100471c4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x1000b217
mov eax, 0xfffffffe
jmp 0x1000add4
lea eax, [ebp - 0x21c]
mov dword [esp + 0xc], sym._dword_cmp
mov dword [esp], eax
mov dword [esp + 8], 4
mov dword [esp + 4], edi
call dword [sym.imp.ucrtbase.dll_qsort]
mov eax, dword [ebp - 0x26c]
mov edx, 0x51eb851f
imul eax, edi
mul edx
shr edx, 5
mov eax, dword [ebp + edx*4 - 0x21c]
mov dword [ebp - 0x26c], eax
test byte [0x100471c4], 8
jne 0x1000b625
mov dword [ebp - 0x244], 0
mov eax, dword [sym.imp.kernel32.dll_ReleaseMutex]
mov dword [ebp - 0x274], eax
lea esi, [esi]
lea eax, [ebp - 0x248]
lea ecx, [ebp - 0x240]
mov dword [esp + 4], eax
lea eax, [ebp - 0x24c]
lea edx, [ebp - 0x244]
mov dword [esp], eax
mov eax, ebx
call sym._urlcache_next_entry
test eax, eax
je 0x1000b5fa
mov edi, dword [ebp - 0x248]
cmp dword [edi], 0x204c5255
jne 0x1000b4c8
mov eax, dword [ebp - 0x260]
and eax, dword [edi + 0x40]
jne 0x1000b4c8
lea edx, [ebp - 0x23c]
mov eax, edi
call sym._urlcache_rate_entry
cmp eax, dword [ebp - 0x26c]
ja 0x1000b4c8
test byte [0x100471c4], 8
jne 0x1000b5be
mov ecx, dword [ebp - 0x24c]
mov edx, ebx
mov eax, esi
call sym._urlcache_entry_delete
mov edi, dword [ebp - 0x254]
mov eax, dword [ebx + 0x40]
mov edx, dword [ebx + 0x44]
add eax, dword [ebx + 0x38]
adc edx, dword [ebx + 0x3c]
cmp dword [ebp - 0x258], eax
sbb edi, edx
jae 0x1000b5fa
mov eax, dword [esi + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x274]
call eax
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov eax, dword [0x100472e8]
sub esp, 4
mov dword [esp], eax
mov eax, dword [ebp - 0x264]
mov dword [esp + 4], 0
call eax
sub esp, 8
test eax, eax
je 0x1000b6ed
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_Sleep]
mov eax, esi
sub esp, 4
call sym._cache_container_lock_index
mov ebx, eax
jmp 0x1000b4c8
mov eax, dword [edi + 0x3c]
mov edx, 0xffffffff
add eax, edi
call sym._wine_dbgstr_an_2
mov dword [esp + 0xc], str.deleting_file:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.FreeUrlCacheSpaceW
mov dword [esp + 4], 0x100471c4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x1000b531
test byte [0x100471c4], 8
jne 0x1000b652
mov eax, dword [esi + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x274]
call eax
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
sub esp, 4
jmp 0x1000aeb9
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.deleting_files_with_rating__ld_or_less_n
mov dword [esp + 8], str.FreeUrlCacheSpaceW
mov dword [esp + 4], 0x100471c4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x1000b4ac
mov edx, dword [ebx + 0x34]
mov eax, dword [ebx + 0x30]
test edx, edx
je 0x1000b6c7
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], str._lx_08lx
call sym._wine_dbg_sprintf
mov edi, eax
mov eax, dword [ebx + 0x40]
mov edx, dword [ebx + 0x44]
add eax, dword [ebx + 0x38]
adc edx, dword [ebx + 0x3c]
test edx, edx
je 0x1000b6db
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], str._lx_08lx
call sym._wine_dbg_sprintf
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.cache_size_after_cleaning_0x_s_0x_s_n
mov dword [esp + 8], str.FreeUrlCacheSpaceW
mov dword [esp + 4], 0x100471c4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x1000b603
mov dword [esp + 4], eax
mov dword [esp], 0x1004e3d3
call sym._wine_dbg_sprintf
mov edi, eax
jmp 0x1000b672
mov dword [esp + 4], eax
mov dword [esp], 0x1004e3d3
call sym._wine_dbg_sprintf
jmp 0x1000b696
test byte [0x100471c4], 8
je 0x1000aee8
mov dword [esp + 0xc], str.got_dll_unload_event___finishing_n
mov dword [esp + 8], str.FreeUrlCacheSpaceW
mov dword [esp + 4], 0x100471c4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x1000aee8