Function at 0x419960
Capabilities:
Delete directory

Disassembly:
push ebp
mov eax, 0x405c
mov ebp, esp
push edi
push esi
push ebx
call fcn.00401050
sub esp, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x401c], eax
test eax, eax
je 0x419efa
mov dword [ebp - 0x4030], 0
mov eax, 0x430420
shr eax, 0x10
mov dword [ebp - 0x4038], eax
xor eax, eax
lea esi, [esi]
lea edi, [eax + 1]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x402c], edi
lea edi, [ebp - 0x401c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp], eax
call sym._WCMD_parameter
mov ebx, eax
mov eax, dword [ebp - 0x401c]
test eax, eax
je 0x419ef0
cmp word [eax], 0x2f
je 0x419ab6
test byte [0x423010], 8
jne 0x419ac8
inc dword [ebp - 0x4030]
mov esi, dword [sym.imp.ucrtbase.dll_wcsstr]
mov dword [esp + 4], 0x4359d6
mov dword [esp], 0x430420
call esi
test eax, eax
je 0x419d50
mov dword [esp + 4], 0x4359ac
mov dword [esp], 0x430420
call esi
lea esi, [ebp - 0x4018]
test eax, eax
je 0x419eb8
mov ecx, 0x414
mov dword [ebp - 0x4010], ebx
mov dword [ebp - 0x4018], 0
mov dword [ebp - 0x400c], 0
mov word [ebp - 0x4008], cx
mov dword [ebp - 0x4014], 3
cmp word [ebx], 0
je 0x419fa0
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x419a80
sub eax, ebx
add 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 0x419d64
mov eax, dword [ebp - 0x401c]
test eax, eax
je 0x419ef0
mov eax, dword [ebp - 0x402c]
jmp 0x4199a0
mov eax, dword [ebp - 0x4038]
test eax, eax
je 0x419f20
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0x430420
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [ebp - 0x4034], 0x4350cb
sub esp, 8
mov ecx, eax
test eax, eax
jne 0x419bf8
movzx eax, word [0x430420]
test ax, ax
je 0x419faa
lea esi, [esi]
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [edx + edx + 0x430422], 0
jne 0x419b18
mov ecx, 0x224c
mov dword [ebp - 0x4034], ebx
mov esi, 0x430420
mov word [ebp - 0x4018], cx
lea ecx, [ebp - 0x4016]
jmp 0x419b86
cmp ax, 9
je 0x419d88
cmp ax, 0xa
jne 0x419da6
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea edi, [edx - 1]
test edx, edx
jle 0x419bc0
lea eax, [ebp - 0x3ef6]
cmp ecx, eax
ja 0x419bc0
movzx eax, word [esi]
mov edx, edi
add esi, 2
cmp ax, 0xd
je 0x419d70
jbe 0x419b50
cmp ax, 0x22
je 0x419e00
cmp ax, 0x5c
jne 0x419d99
mov ebx, 0x5c5c
add ecx, 2
lea edi, [edx - 1]
mov word [ecx - 2], bx
test edx, edx
jg 0x419b77
lea esi, [esi]
mov byte [ecx], 0x22
mov ebx, dword [ebp - 0x4034]
test edi, edi
jle 0x419fc3
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
lea esi, [ebp - 0x4018]
mov byte [eax], 0
mov dword [esp], esi
call sym.___wine_dbg_strdup
mov dword [ebp - 0x4034], eax
test ebx, ebx
je 0x419f4f
mov eax, ebx
shr eax, 0x10
je 0x419f70
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x4350cb
sub esp, 8
test eax, eax
jne 0x419d14
cmp word [ebx], 0
je 0x419fcb
lea esi, [esi]
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x419c40
mov edi, 0x224c
mov dword [ebp - 0x403c], ebx
mov esi, ebx
lea ecx, [ebp - 0x4016]
mov word [ebp - 0x4018], di
jmp 0x419ca3
cmp ax, 9
je 0x419e30
cmp ax, 0xa
jne 0x419e4e
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [edx - 1]
test edx, edx
jle 0x419ce0
lea ebx, [ebp - 0x3ef6]
cmp ecx, ebx
ja 0x419ce0
mov edx, eax
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x419e18
jbe 0x419c70
cmp ax, 0x22
je 0x419ea0
cmp ax, 0x5c
jne 0x419e41
mov edi, 0x5c5c
add ecx, 2
lea eax, [edx - 1]
mov word [ecx - 2], di
test edx, edx
jg 0x419c97
lea esi, [esi]
mov byte [ecx], 0x22
mov ebx, dword [ebp - 0x403c]
test eax, eax
jle 0x419fe4
mov esi, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], si
lea esi, [ebp - 0x4018]
mov byte [eax], 0
mov dword [esp], esi
call sym.___wine_dbg_strdup
mov edx, eax
mov eax, dword [ebp - 0x4034]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.rd:_Processing_arg__s__quals:_s__n
mov dword [esp + 0x14], eax
mov dword [esp + 8], str.WCMD_remove_dir
mov dword [esp + 4], 0x423010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x4199f9
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
sub esp, 4
test eax, eax
jne 0x419aa8
call sym._WCMD_print_error
jmp 0x419aa8
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x419b70
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x419b70
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x419f60
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + 0x4382d0]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + 0x4382d0]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + 0x4382d0]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + 0x4382d0]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x419b70
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x419b70
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x419c90
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x419c90
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x419f90
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + 0x4382d0]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + 0x4382d0]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + 0x4382d0]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + 0x4382d0]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x419c90
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x419c90
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x4359bc
mov dword [esp], esi
call dword [sym.imp.user32.dll_wsprintfW]
mov edx, 1
mov eax, esi
call sym._WCMD_ask_confirm.constprop.0
test eax, eax
jne 0x419a3d
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x4030]
test eax, eax
jne 0x419ee1
mov dword [esp], 0x3f2
call sym._WCMD_LoadMessage
mov dword [esp], eax
call sym._WCMD_output_stderr
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x4034], 0x430420
movzx eax, word [ebp - 0x4034]
mov dword [esp], 0x4350be
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
mov dword [ebp - 0x4034], eax
test ebx, ebx
jne 0x419c00
mov edx, 0x4350c4
jmp 0x419d14
mov byte [ecx], al
inc ecx
jmp 0x419b70
movzx eax, bx
mov dword [esp], 0x4350be
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
mov edx, eax
jmp 0x419d14
mov byte [ecx], al
inc ecx
jmp 0x419c90
mov eax, 2
jmp 0x419a8e
mov esi, 0x224c
mov byte [ebp - 0x4016], 0x22
lea ecx, [ebp - 0x4016]
mov word [ebp - 0x4018], si
lea eax, [ecx + 1]
jmp 0x419be1
mov eax, 0x224c
mov byte [ebp - 0x4016], 0x22
lea ecx, [ebp - 0x4016]
mov word [ebp - 0x4018], ax
lea eax, [ecx + 1]
jmp 0x419d01