Function at 0x40f600
Capabilities:
Delete directory

Disassembly:
push ebp
mov eax, 0x4034
mov ebp, esp
push edi
push esi
push ebx
call fcn.004246d8
xor edx, edx
sub esp, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x401c], 0
mov dword [ebp - 0x4010], eax
mov eax, 0x438700
shr eax, 0x10
mov dword [ebp - 0x4024], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x40f760
lea eax, [edx + 1]
mov dword [esp + 0x10], 0
mov dword [ebp - 0x4014], eax
lea eax, [ebp - 0x4010]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._WCMD_parameter
mov ebx, eax
mov eax, dword [ebp - 0x4010]
test eax, eax
je 0x40f760
cmp word [eax], 0x2f
je 0x40f751
test byte [0x425010], 8
jne 0x40f780
add dword [ebp - 0x401c], 1
mov dword [esp + 4], 0x42751a
mov dword [esp], 0x438700
call dword [sym.imp.ucrtbase.dll_wcsstr]
test eax, eax
je 0x40fa10
mov dword [esp + 4], 0x4274f0
lea esi, [ebp - 0x400c]
mov dword [esp], 0x438700
call dword [sym.imp.ucrtbase.dll_wcsstr]
test eax, eax
je 0x40fb80
mov ecx, 0x414
mov dword [ebp - 0x4004], ebx
mov dword [ebp - 0x400c], 0
mov dword [ebp - 0x4000], 0
mov word [ebp - 0x3ffc], cx
mov dword [ebp - 0x4008], 3
cmp word [ebx], 0
je 0x40fc30
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x40f720
sub eax, ebx
sar eax, 1
lea eax, [eax + eax + 2]
xor edx, edx
mov word [ebx + eax], dx
mov dword [esp], esi
call dword [sym.imp.shell32.dll_SHFileOperationW]
sub esp, 4
test eax, eax
jne 0x40fa24
mov eax, dword [ebp - 0x4010]
mov edx, dword [ebp - 0x4014]
test eax, eax
jne 0x40f640
nop
mov eax, dword [ebp - 0x401c]
test eax, eax
je 0x40fc3a
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp - 0x4024]
test ecx, ecx
je 0x40fbb0
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0x438700
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [ebp - 0x4020], 0x427175
sub esp, 8
test eax, eax
jne 0x40f883
cmp word [0x438700], 0
je 0x40f7d0
add eax, 1
cmp word [eax + eax + 0x438700], 0
jne 0x40f7c2
mov edx, 0x224c
lea edi, [ebp - 0x3eea]
mov ecx, 0x438700
mov dword [ebp - 0x4020], ebx
mov word [ebp - 0x400c], dx
lea esi, [eax - 1]
lea edx, [ebp - 0x400a]
mov dword [ebp - 0x4018], edi
cmp edx, dword [ebp - 0x4018]
ja 0x40f84c
test eax, eax
jle 0x40f84c
add ecx, 2
movzx eax, word [ecx - 2]
cmp ax, 0xd
je 0x40fa43
ja 0x40f9b3
cmp ax, 9
je 0x40fac0
cmp ax, 0xa
jne 0x40fa60
mov eax, 0x6e5c
add edx, 2
mov word [edx - 2], ax
mov eax, esi
lea esi, [eax - 1]
cmp edx, dword [ebp - 0x4018]
jbe 0x40f804
mov ebx, dword [ebp - 0x4020]
mov byte [edx], 0x22
lea eax, [edx + 1]
test esi, esi
jle 0x40f86c
mov ecx, 0x2e2e
mov byte [edx + 3], 0x2e
lea eax, [edx + 4]
mov word [edx + 1], cx
lea esi, [ebp - 0x400c]
mov byte [eax], 0
mov dword [esp], esi
call dbg.__wine_dbg_strdup
mov dword [ebp - 0x4020], eax
test ebx, ebx
je 0x40fbdf
mov eax, ebx
shr eax, 0x10
je 0x40fc00
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edi, eax
sub esp, 8
mov eax, 0x427175
test edi, edi
jne 0x40f97c
cmp word [ebx], 0
je 0x40f8ca
nop
add edi, 1
cmp word [ebx + edi*2], 0
jne 0x40f8c0
mov eax, 0x224c
mov ecx, ebx
mov dword [ebp - 0x4028], ebx
lea esi, [edi - 1]
mov word [ebp - 0x400c], ax
lea eax, [ebp - 0x3eea]
lea edx, [ebp - 0x400a]
mov dword [ebp - 0x4018], eax
cmp edx, dword [ebp - 0x4018]
ja 0x40f94b
lea esi, [esi]
nop
test edi, edi
jle 0x40f94b
add ecx, 2
movzx eax, word [ecx - 2]
cmp ax, 0xd
je 0x40fad3
ja 0x40f9e0
cmp ax, 9
je 0x40fb50
cmp ax, 0xa
jne 0x40faf0
mov eax, 0x6e5c
add edx, 2
mov edi, esi
mov word [edx - 2], ax
lea esi, [esi]
lea esi, [edi - 1]
cmp edx, dword [ebp - 0x4018]
jbe 0x40f900
mov ebx, dword [ebp - 0x4028]
mov byte [edx], 0x22
lea eax, [edx + 1]
test esi, esi
jle 0x40f96b
mov esi, 0x2e2e
mov byte [edx + 3], 0x2e
lea eax, [edx + 4]
mov word [edx + 1], si
lea esi, [ebp - 0x400c]
mov byte [eax], 0
mov dword [esp], esi
call dbg.__wine_dbg_strdup
mov ecx, dword [ebp - 0x4020]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.rd:_Processing_arg__s__quals:_s__n
mov dword [esp + 0x14], ecx
mov dword [esp + 8], str.WCMD_remove_dir
mov dword [esp + 4], 0x425010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.6
jmp 0x40f699
cmp ax, 0x22
je 0x40fa30
cmp ax, 0x5c
jne 0x40fa60
mov ebx, 0x5c5c
add edx, 2
mov eax, esi
mov word [edx - 2], bx
jmp 0x40f841
cmp ax, 0x22
je 0x40fb63
cmp ax, 0x5c
jne 0x40faf0
mov edi, 0x5c5c
add edx, 2
mov word [edx - 2], di
mov edi, esi
jmp 0x40f940
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
sub esp, 4
test eax, eax
jne 0x40f74b
call dbg.WCMD_print_error
jmp 0x40f74b
mov edi, 0x225c
add edx, 2
mov eax, esi
mov word [edx - 2], di
jmp 0x40f841
mov eax, 0x725c
add edx, 2
mov word [edx - 2], ax
mov eax, esi
jmp 0x40f841
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x40fbf0
mov edi, eax
mov byte [edx], 0x5c
add edx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefWCMD_choice]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [edx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefWCMD_choice]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefWCMD_choice]
and edi, 0xf
mov byte [edx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefWCMD_choice]
mov byte [edx - 1], al
mov eax, esi
mov byte [edx - 2], bl
jmp 0x40f841
mov eax, 0x745c
add edx, 2
mov word [edx - 2], ax
mov eax, esi
jmp 0x40f841
mov eax, 0x725c
add edx, 2
mov edi, esi
mov word [edx - 2], ax
jmp 0x40f940
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x40fc20
mov edi, eax
mov byte [edx], 0x5c
add edx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefWCMD_choice]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [edx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefWCMD_choice]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefWCMD_choice]
and edi, 0xf
mov byte [edx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefWCMD_choice]
mov byte [edx - 1], al
mov edi, esi
mov byte [edx - 2], bl
jmp 0x40f940
mov eax, 0x745c
add edx, 2
mov edi, esi
mov word [edx - 2], ax
jmp 0x40f940
mov eax, 0x225c
add edx, 2
mov edi, esi
mov word [edx - 2], ax
jmp 0x40f940
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x427500
mov dword [esp], esi
call dword [sym.imp.user32.dll_wsprintfW]
mov edx, 1
mov eax, esi
call sym._WCMD_ask_confirm.constprop.4
test eax, eax
jne 0x40f6e0
jmp 0x40f76e
mov dword [ebp - 0x4018], 0x438700
movzx eax, word [ebp - 0x4018]
mov dword [esp], 0x427168
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.9
mov dword [ebp - 0x4020], eax
test ebx, ebx
jne 0x40f88b
mov eax, 0x42716e
jmp 0x40f97c
mov byte [edx], al
add edx, 1
mov eax, esi
jmp 0x40f841
movzx eax, bx
mov dword [esp], 0x427168
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.9
jmp 0x40f97c
mov byte [edx], al
mov edi, esi
add edx, 1
jmp 0x40f940
mov eax, 2
jmp 0x40f731
mov dword [esp], 0x3f2
call sym._WCMD_LoadMessage
mov dword [esp], eax
call dbg.WCMD_output_stderr
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret