Function at 0x419ac0
Capabilities:
Delete directory

Disassembly:
push ebp
mov eax, 0x4030
mov ebp, esp
push edi
push esi
push ebx
call fcn.00401050
sub esp, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4010], eax
test eax, eax
je 0x41a05a
mov dword [ebp - 0x4018], 0
mov eax, 0x430580
shr eax, 0x10
mov dword [ebp - 0x4020], eax
xor eax, eax
lea esi, [esi]
lea edi, [eax + 1]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4014], edi
lea edi, [ebp - 0x4010]
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 - 0x4010]
test eax, eax
je 0x41a050
cmp word [eax], 0x2f
je 0x419c16
test byte [0x423010], 8
jne 0x419c28
inc dword [ebp - 0x4018]
mov esi, dword [sym.imp.ucrtbase.dll_wcsstr]
mov dword [esp + 4], 0x4359d6
mov dword [esp], 0x430580
call esi
test eax, eax
je 0x419eb0
mov dword [esp + 4], 0x4359ac
mov dword [esp], 0x430580
call esi
lea esi, [ebp - 0x400c]
test eax, eax
je 0x41a018
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 0x41a100
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x419be0
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 0x419ec4
mov eax, dword [ebp - 0x4010]
test eax, eax
je 0x41a050
mov eax, dword [ebp - 0x4014]
jmp 0x419b00
mov eax, dword [ebp - 0x4020]
test eax, eax
je 0x41a080
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0x430580
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [ebp - 0x401c], 0x4350cb
sub esp, 8
mov ecx, eax
test eax, eax
jne 0x419d58
movzx eax, word [0x430580]
test ax, ax
je 0x41a10a
lea esi, [esi]
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [edx + edx + 0x430582], 0
jne 0x419c78
mov ecx, 0x224c
mov dword [ebp - 0x401c], ebx
mov esi, 0x430580
mov word [ebp - 0x400c], cx
lea ecx, [ebp - 0x400a]
jmp 0x419ce6
cmp ax, 9
je 0x419ee8
cmp ax, 0xa
jne 0x419f06
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea edi, [edx - 1]
test edx, edx
jle 0x419d20
lea eax, [ebp - 0x3eea]
cmp ecx, eax
ja 0x419d20
movzx eax, word [esi]
mov edx, edi
add esi, 2
cmp ax, 0xd
je 0x419ed0
jbe 0x419cb0
cmp ax, 0x22
je 0x419f60
cmp ax, 0x5c
jne 0x419ef9
mov ebx, 0x5c5c
add ecx, 2
lea edi, [edx - 1]
mov word [ecx - 2], bx
test edx, edx
jg 0x419cd7
lea esi, [esi]
mov byte [ecx], 0x22
mov ebx, dword [ebp - 0x401c]
test edi, edi
jle 0x41a123
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
lea esi, [ebp - 0x400c]
mov byte [eax], 0
mov dword [esp], esi
call sym.___wine_dbg_strdup
mov dword [ebp - 0x401c], eax
test ebx, ebx
je 0x41a0af
mov eax, ebx
shr eax, 0x10
je 0x41a0d0
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 0x419e74
cmp word [ebx], 0
je 0x41a12b
lea esi, [esi]
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x419da0
mov edi, 0x224c
mov dword [ebp - 0x4024], ebx
mov esi, ebx
lea ecx, [ebp - 0x400a]
mov word [ebp - 0x400c], di
jmp 0x419e03
cmp ax, 9
je 0x419f90
cmp ax, 0xa
jne 0x419fae
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [edx - 1]
test edx, edx
jle 0x419e40
lea ebx, [ebp - 0x3eea]
cmp ecx, ebx
ja 0x419e40
mov edx, eax
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x419f78
jbe 0x419dd0
cmp ax, 0x22
je 0x41a000
cmp ax, 0x5c
jne 0x419fa1
mov edi, 0x5c5c
add ecx, 2
lea eax, [edx - 1]
mov word [ecx - 2], di
test edx, edx
jg 0x419df7
lea esi, [esi]
mov byte [ecx], 0x22
mov ebx, dword [ebp - 0x4024]
test eax, eax
jle 0x41a144
mov esi, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], si
lea esi, [ebp - 0x400c]
mov byte [eax], 0
mov dword [esp], esi
call sym.___wine_dbg_strdup
mov edx, eax
mov eax, dword [ebp - 0x401c]
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 0x419b59
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
sub esp, 4
test eax, eax
jne 0x419c08
call sym._WCMD_print_error
jmp 0x419c08
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x419cd0
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x419cd0
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x41a0c0
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + 0x438310]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + 0x438310]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + 0x438310]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + 0x438310]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x419cd0
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x419cd0
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x419df0
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x419df0
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x41a0f0
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + 0x438310]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + 0x438310]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + 0x438310]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + 0x438310]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x419df0
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x419df0
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 0x419b9d
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x4018]
test eax, eax
jne 0x41a041
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 - 0x401c], 0x430580
movzx eax, word [ebp - 0x401c]
mov dword [esp], 0x4350be
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
mov dword [ebp - 0x401c], eax
test ebx, ebx
jne 0x419d60
mov edx, 0x4350c4
jmp 0x419e74
mov byte [ecx], al
inc ecx
jmp 0x419cd0
movzx eax, bx
mov dword [esp], 0x4350be
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
mov edx, eax
jmp 0x419e74
mov byte [ecx], al
inc ecx
jmp 0x419df0
mov eax, 2
jmp 0x419bee
mov esi, 0x224c
mov byte [ebp - 0x400a], 0x22
lea ecx, [ebp - 0x400a]
mov word [ebp - 0x400c], si
lea eax, [ecx + 1]
jmp 0x419d41
mov eax, 0x224c
mov byte [ebp - 0x400a], 0x22
lea ecx, [ebp - 0x400a]
mov word [ebp - 0x400c], ax
lea eax, [ecx + 1]
jmp 0x419e61