Function at 0x4046d0
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x10b0
call sym.__alloca
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], 0
push 0x417b22
push dword [0x418754]
call dword [sym.imp.ucrtbase.dll_wcsstr]
add esp, 8
mov ecx, 0
mov dword [ebp - 0x14], 0
test eax, eax
je 0x4047d7
xor ecx, ecx
mov dword [ebp - 0x14], 0
jmp 0x40473a
push 0x417b22
push esi
call dword [sym.imp.ucrtbase.dll_wcsstr]
mov ecx, dword [ebp - 0x10]
add esp, 8
test eax, eax
je 0x4047d7
mov dword [ebp - 0x10], ecx
lea esi, [eax + 4]
lea ecx, [eax + 6]
cmp word [eax + 4], 0x3a
cmove esi, ecx
jmp 0x40477c
mov eax, 2
cmp di, 0x2d
mov esi, dword [ebp - 0x10]
mov ecx, esi
mov edx, dword [ebp - 0x14]
cmove ecx, edx
or ecx, eax
cmp di, 0x2d
cmovne esi, ecx
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0x18]
lea esi, [esi + ebx*2]
cmove edx, ecx
mov dword [ebp - 0x14], edx
add esi, 2
movzx edi, word [esi]
test edi, edi
je 0x404720
cmp edi, 0x2f
je 0x404720
xor ebx, ebx
cmp di, 0x2d
sete bl
mov dword [ebp - 0x18], esi
movzx ecx, word [esi + ebx*2]
add ecx, 0xffffffbf
cmp ecx, 0x12
ja case.0x4047a5.66
mov eax, 1
jmp dword [ecx*4 + 0x416350]
mov eax, 0x20
jmp case.0x4047a5.82
mov eax, 4
jmp case.0x4047a5.82
push 0x3f3
call sym._WCMD_LoadMessage
add esp, 4
push eax
call dbg.WCMD_output_stderr
add esp, 4
xor eax, eax
jmp case.0x4047a5.82
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x20]
xor edx, edx
nop
movzx eax, word [ecx + edx]
mov word [ebp + edx - 0x89c], ax
add edx, 2
test ax, ax
jne 0x4047e0
test byte [0x41d010], 8
je 0x40483f
lea ecx, [ebp - 0x89c]
call dbg.wine_dbgstr_wn
mov esi, eax
mov ecx, dword [0x418754]
call dbg.wine_dbgstr_wn
sub esp, 0x18
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.del:_Processing_arg__s__quals:_s__n
mov dword [esp + 8], str.WCMD_delete_one
mov dword [esp], 3
call sym._wine_dbg_log_1
add esp, 0x18
lea esi, [ebp - 0x89c]
lea edx, [ebp - 0x1c]
mov ecx, esi
call dbg.WCMD_delete_confirm_wildcard
xor ecx, ecx
test eax, eax
je 0x404ea8
lea edi, [ebp - 0x284]
push edi
push esi
call dword [sym.imp.kernel32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x404a6d
mov esi, eax
mov dword [ebp - 0x1c], 1
push 0x2a
lea eax, [ebp - 0x89c]
push eax
call dword [sym.imp.ucrtbase.dll_wcschr]
add esp, 8
test eax, eax
jne 0x4048b2
push 0x3f
lea eax, [ebp - 0x89c]
push eax
call dword [sym.imp.ucrtbase.dll_wcschr]
add esp, 8
test eax, eax
jne 0x4048b2
test byte [ebp - 0x284], 0x10
jne 0x404eb5
xor eax, eax
nop word cs:[eax + eax]
movzx ecx, word [ebp + eax - 0x89c]
mov word [ebp + eax - 0x48c], cx
add eax, 2
test cx, cx
jne 0x4048c0
lea ebx, [ebp - 0x48e]
jmp 0x404920
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x48c]
push eax
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
lea eax, [ebp - 0x48c]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
je 0x404a5c
nop word cs:[eax + eax]
push edi
push esi
call dword [sym.imp.kernel32.dll_FindNextFileW]
test eax, eax
je 0x404a66
push 0x5c
lea eax, [ebp - 0x48c]
push eax
call dword [sym.imp.ucrtbase.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x404970
mov word [eax + 2], 0
mov eax, ebx
nop
cmp word [eax + 2], 0
lea eax, [eax + 2]
jne 0x404940
xor ecx, ecx
nop dword [eax]
movzx edx, word [ebp + ecx - 0x258]
mov word [eax + ecx], dx
add ecx, 2
test dx, dx
jne 0x404950
jmp 0x404998
xor eax, eax
nop word cs:[eax + eax]
movzx ecx, word [ebp + eax - 0x258]
mov word [ebp + eax - 0x48c], cx
add eax, 2
test cx, cx
jne 0x404980
mov eax, dword [ebp - 0x284]
test al, 0x10
jne 0x404910
mov ecx, eax
not ecx
test dword [ebp - 0x10], ecx
jne 0x404910
and eax, dword [ebp - 0x14]
jne 0x404910
push 0x417ac8
push dword [0x418754]
call dword [sym.imp.ucrtbase.dll_wcsstr]
add esp, 8
test eax, eax
je 0x404a1d
push 0x3ff
call sym._WCMD_LoadMessage
add esp, 4
lea ecx, [ebp - 0x48c]
push ecx
push eax
call dbg.WCMD_format_string
add esp, 8
mov edi, eax
mov ecx, eax
xor edx, edx
call dbg.WCMD_ask_confirm
mov ebx, esi
mov esi, eax
push edi
lea edi, [ebp - 0x284]
call dword [sym.imp.kernel32.dll_LocalFree]
test esi, esi
mov esi, ebx
lea ebx, [ebp - 0x48e]
je 0x404910
mov eax, dword [ebp - 0x284]
test al, 1
je 0x4048f1
test byte [ebp - 0x10], 1
jne 0x4048e0
push 0x417ef4
push dword [0x418754]
call dword [sym.imp.ucrtbase.dll_wcsstr]
add esp, 8
test eax, eax
je 0x4048f1
mov eax, dword [ebp - 0x284]
jmp 0x4048e0
call dbg.WCMD_print_error
jmp 0x404910
push esi
call dword [sym.imp.kernel32.dll_FindClose]
push 0x41790e
push dword [0x418754]
call dword [sym.imp.ucrtbase.dll_wcsstr]
add esp, 8
test eax, eax
je 0x404ea1
lea esi, [ebp - 0x694]
push 0
push esi
push 0x104
lea eax, [ebp - 0x89c]
push eax
call dbg.WCMD_get_fullpath
add esp, 0x10
test eax, eax
je 0x404ea6
lea edx, [ebp - 0xcac]
lea ebx, [ebp - 0xeb4]
lea eax, [ebp - 0x10bc]
lea ecx, [ebp - 0x34]
push edx
push ebx
push eax
push ecx
push esi
call dword [sym.imp.ucrtbase.dll__wsplitpath]
add esp, 0x14
xor eax, eax
nop word cs:[eax + eax]
movzx ecx, word [ebp + eax - 0x34]
mov word [ebp + eax - 0x694], cx
add eax, 2
test cx, cx
jne 0x404ae0
nop word cs:[eax + eax]
cmp word [esi], 0
lea esi, [esi + 2]
jne 0x404b00
xor eax, eax
nop dword [eax + eax]
movzx ecx, word [ebp + eax - 0x10bc]
mov word [esi + eax - 2], cx
add eax, 2
test cx, cx
jne 0x404b10
mov esi, 0xfffffffe
nop word [eax + eax]
cmp word [ebp + esi - 0x692], 0
lea esi, [esi + 2]
jne 0x404b30
sar esi, 1
test byte [0x41d010], 8
je 0x404b7a
lea ecx, [ebp - 0x694]
call dbg.wine_dbgstr_wn
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Searching_recursively_in__s_n
mov dword [esp + 8], str.WCMD_delete_one
mov dword [esp], 3
call sym._wine_dbg_log_1
add esp, 0x14
mov dword [ebp + esi*2 - 0x694], 0x2a
lea eax, [ebp - 0x694]
push edi
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov word [ebp + esi*2 - 0x694], 0
cmp eax, 0xffffffff
je 0x404ea1
mov esi, eax
mov ebx, edi
lea edi, [ebp - 0x258]
mov dword [ebp - 0x18], 0
mov eax, dword [sym.imp.kernel32.dll_lstrcmpW]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], esi
jmp 0x404bef
mov edi, ebx
mov ebx, edi
push edi
push esi
call dword [sym.imp.kernel32.dll_FindNextFileW]
test eax, eax
lea edi, [ebp - 0x258]
mov eax, dword [sym.imp.kernel32.dll_lstrcmpW]
je 0x404e63
test byte [ebp - 0x284], 0x10
je 0x404bd0
push 0x417596
push edi
mov esi, eax
call eax
test eax, eax
je 0x404ce0
push 0x417264
push edi
call esi
test eax, eax
je 0x404ce0
lea eax, [ebp - 0x694]
push eax
mov ebx, dword [sym.imp.ucrtbase.dll_wcslen]
call ebx
add esp, 4
mov dword [ebp - 0x14], eax
push edi
call ebx
add esp, 4
mov edi, eax
lea eax, [ebp - 0xeb4]
push eax
call ebx
add esp, 4
mov esi, eax
lea eax, [ebp - 0xcac]
push eax
call ebx
add esp, 4
add edi, dword [ebp - 0x14]
add edi, esi
add eax, edi
inc eax
cmp eax, 0x103
jbe 0x404ce7
test byte [0x41d010], 8
je 0x404e55
lea ecx, [ebp - 0x694]
call dbg.wine_dbgstr_wn
mov ebx, eax
lea ecx, [ebp - 0x258]
call dbg.wine_dbgstr_wn
mov edi, eax
lea ecx, [ebp - 0xeb4]
call dbg.wine_dbgstr_wn
mov esi, eax
lea ecx, [ebp - 0xcac]
call dbg.wine_dbgstr_wn
sub esp, 0x20
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.Skipping_path_too_long__s_s_s_s_n
mov dword [esp + 8], str.WCMD_delete_one
mov dword [esp], 3
call sym._wine_dbg_log_1
add esp, 0x20
jmp 0x404e55
mov edi, ebx
jmp 0x404e5b
xor eax, eax
mov esi, dword [ebp - 0x18]
lea edi, [ebp - 0xaa6]
lea ebx, [ebp - 0xaa4]
nop dword [eax + eax]
movzx ecx, word [ebp + eax - 0x694]
mov word [ebp + eax - 0xaa4], cx
add eax, 2
test cx, cx
jne 0x404d00
mov eax, edi
nop word [eax + eax]
cmp word [eax + 2], 0
lea eax, [eax + 2]
jne 0x404d20
xor ecx, ecx
nop dword [eax]
movzx edx, word [ebp + ecx - 0x258]
mov word [eax + ecx], dx
add ecx, 2
test dx, dx
jne 0x404d30
mov eax, ebx
nop word cs:[eax + eax]
cmp word [eax], 0
lea eax, [eax + 2]
jne 0x404d50
mov dword [eax - 2], 0x5c
mov eax, edi
nop word cs:[eax + eax]
cmp word [eax + 2], 0
lea eax, [eax + 2]
jne 0x404d70
xor ecx, ecx
nop dword [eax]
movzx edx, word [ebp + ecx - 0xeb4]
mov word [eax + ecx], dx
add ecx, 2
test dx, dx
jne 0x404d80
mov eax, edi
nop word cs:[eax + eax]
cmp word [eax + 2], 0
lea eax, [eax + 2]
jne 0x404da0
xor ecx, ecx
nop dword [eax]
movzx edx, word [ebp + ecx - 0xcac]
mov word [eax + ecx], dx
add ecx, 2
test dx, dx
jne 0x404db0
test byte [0x41d010], 8
je 0x404dfa
mov ecx, ebx
call dbg.wine_dbgstr_wn
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x417f3b
mov dword [esp + 8], str.WCMD_delete_one
mov dword [esp], 3
call sym._wine_dbg_log_1
add esp, 0x14
push 0xc
push 0
call sym._xrealloc
add esp, 8
test esi, esi
cmove esi, eax
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x404e14
mov dword [ecx], eax
mov ebx, eax
mov dword [eax], 0
xor edi, edi
nop
cmp word [ebp + edi - 0xaa4], 0
lea edi, [edi + 2]
jne 0x404e20
mov dword [ebp - 0x18], esi
push edi
push 0
call sym._xrealloc
add esp, 8
mov esi, eax
push edi
lea eax, [ebp - 0xaa4]
push eax
push esi
call sym._memcpy
add esp, 0xc
mov dword [ebx + 4], esi
mov dword [ebp - 0x20], ebx
lea edi, [ebp - 0x284]
mov esi, dword [ebp - 0x10]
jmp 0x404bd2
push esi
call dword [sym.imp.kernel32.dll_FindClose]
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x404ea1
mov esi, dword [sym.imp.ucrtbase.dll_free]
nop word [eax + eax]
mov edi, dword [ebx]
mov ecx, dword [ebx + 4]
call dbg.WCMD_delete_one
or dword [ebp - 0x1c], eax
push dword [ebx + 4]
call esi
add esp, 4
push ebx
call esi
add esp, 4
mov ebx, edi
test edi, edi
jne 0x404e80
mov ecx, dword [ebp - 0x1c]
jmp 0x404ea8
xor ecx, ecx
mov eax, ecx
add esp, 0x10b0
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
nop word [eax + eax]
movzx ecx, word [ebp + eax - 0x89c]
mov word [ebp + eax - 0x48c], cx
add eax, 2
test cx, cx
jne 0x404ec0
lea eax, [ebp - 0x48c]
nop
cmp word [eax], 0
lea eax, [eax + 2]
jne 0x404ee0
mov word [eax + 2], 0
mov dword [eax - 2], 0x2a005c
push esi
call dword [sym.imp.kernel32.dll_FindClose]
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 0x48c]
call dbg.WCMD_delete_one
jmp 0x404a6d