Function at 0x419920
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 0x419eba
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 0x419eb0
cmp word [eax], 0x2f
je 0x419a76
test byte [0x423010], 8
jne 0x419a88
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 0x419d10
mov dword [esp + 4], 0x4359ac
mov dword [esp], 0x430420
call esi
lea esi, [ebp - 0x4018]
test eax, eax
je 0x419e78
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 0x419f60
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x419a40
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 0x419d24
mov eax, dword [ebp - 0x401c]
test eax, eax
je 0x419eb0
mov eax, dword [ebp - 0x402c]
jmp 0x419960
mov eax, dword [ebp - 0x4038]
test eax, eax
je 0x419ee0
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 0x419bb8
movzx eax, word [0x430420]
test ax, ax
je 0x419f6a
lea esi, [esi]
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [edx + edx + 0x430422], 0
jne 0x419ad8
mov ecx, 0x224c
mov dword [ebp - 0x4034], ebx
mov esi, 0x430420
mov word [ebp - 0x4018], cx
lea ecx, [ebp - 0x4016]
jmp 0x419b46
cmp ax, 9
je 0x419d48
cmp ax, 0xa
jne 0x419d66
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea edi, [edx - 1]
test edx, edx
jle 0x419b80
lea eax, [ebp - 0x3ef6]
cmp ecx, eax
ja 0x419b80
movzx eax, word [esi]
mov edx, edi
add esi, 2
cmp ax, 0xd
je 0x419d30
jbe 0x419b10
cmp ax, 0x22
je 0x419dc0
cmp ax, 0x5c
jne 0x419d59
mov ebx, 0x5c5c
add ecx, 2
lea edi, [edx - 1]
mov word [ecx - 2], bx
test edx, edx
jg 0x419b37
lea esi, [esi]
mov byte [ecx], 0x22
mov ebx, dword [ebp - 0x4034]
test edi, edi
jle 0x419f83
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 0x419f0f
mov eax, ebx
shr eax, 0x10
je 0x419f30
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 0x419cd4
cmp word [ebx], 0
je 0x419f8b
lea esi, [esi]
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x419c00
mov edi, 0x224c
mov dword [ebp - 0x403c], ebx
mov esi, ebx
lea ecx, [ebp - 0x4016]
mov word [ebp - 0x4018], di
jmp 0x419c63
cmp ax, 9
je 0x419df0
cmp ax, 0xa
jne 0x419e0e
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [edx - 1]
test edx, edx
jle 0x419ca0
lea ebx, [ebp - 0x3ef6]
cmp ecx, ebx
ja 0x419ca0
mov edx, eax
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x419dd8
jbe 0x419c30
cmp ax, 0x22
je 0x419e60
cmp ax, 0x5c
jne 0x419e01
mov edi, 0x5c5c
add ecx, 2
lea eax, [edx - 1]
mov word [ecx - 2], di
test edx, edx
jg 0x419c57
lea esi, [esi]
mov byte [ecx], 0x22
mov ebx, dword [ebp - 0x403c]
test eax, eax
jle 0x419fa4
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 0x4199b9
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
sub esp, 4
test eax, eax
jne 0x419a68
call sym._WCMD_print_error
jmp 0x419a68
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x419b30
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x419b30
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x419f20
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + 0x438130]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + 0x438130]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + 0x438130]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + 0x438130]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x419b30
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x419b30
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x419c50
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x419c50
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x419f50
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + 0x438130]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + 0x438130]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + 0x438130]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + 0x438130]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x419c50
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x419c50
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 0x4199fd
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x4030]
test eax, eax
jne 0x419ea1
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 0x419bc0
mov edx, 0x4350c4
jmp 0x419cd4
mov byte [ecx], al
inc ecx
jmp 0x419b30
movzx eax, bx
mov dword [esp], 0x4350be
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
mov edx, eax
jmp 0x419cd4
mov byte [ecx], al
inc ecx
jmp 0x419c50
mov eax, 2
jmp 0x419a4e
mov esi, 0x224c
mov byte [ebp - 0x4016], 0x22
lea ecx, [ebp - 0x4016]
mov word [ebp - 0x4018], si
lea eax, [ecx + 1]
jmp 0x419ba1
mov eax, 0x224c
mov byte [ebp - 0x4016], 0x22
lea ecx, [ebp - 0x4016]
mov word [ebp - 0x4018], ax
lea eax, [ecx + 1]
jmp 0x419cc1