Function at 0x419ff0
Capabilities:
Enumerate files on windows
Move file

Disassembly:
push ebp
mov eax, 0x100c
mov ebp, esp
push edi
push esi
push ebx
call fcn.00401050
sub esp, eax
cmp word [0x428400], 0
mov dword [0x4231f0], 0
je 0x41a020
cmp word [0x42c400], 0
jne 0x41a050
mov dword [esp], 0x3f2
call sym._WCMD_LoadMessage
mov dword [esp], eax
call sym._WCMD_output_stderr
mov dword [0x4231f0], 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [sym.imp.ucrtbase.dll_wcschr]
mov dword [esp + 4], 0x3a
mov dword [esp], 0x42c400
mov dword [ebp - 0xfdc], eax
call eax
test eax, eax
je 0x41a098
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x57
call sym._WCMD_print_error
mov dword [0x4231f0], 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0x5c
mov eax, dword [ebp - 0xfdc]
mov dword [esp], 0x42c400
call eax
test eax, eax
jne 0x41a070
lea ebx, [ebp - 0xe98]
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x104
mov dword [esp], 0x428400
call sym._WCMD_get_fullpath
test eax, eax
je 0x41a03e
test byte [0x423010], 8
jne 0x41ab5b
mov dword [esp + 4], 0x2e
mov eax, dword [ebp - 0xfdc]
mov dword [esp], 0x42c400
call eax
mov dword [esp], ebx
mov dword [ebp - 0xfe4], eax
mov esi, eax
lea eax, [ebp - 0x880]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0xa88]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0xc90]
mov dword [esp + 8], eax
lea eax, [ebp - 0xfd8]
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll__wsplitpath]
lea eax, [ebp - 0x268]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov dword [ebp - 0xfe8], eax
sub esp, 8
cmp eax, 0xffffffff
je 0x41a03e
lea eax, [ebp - 0x23c]
shr eax, 0x10
mov dword [ebp - 0xff0], eax
mov eax, esi
lea esi, [ebp - 0x470]
sub eax, 0x42c400
sar eax, 1
mov dword [ebp - 0xfec], eax
mov eax, esi
shr eax, 0x10
mov dword [ebp - 0xff4], eax
lea eax, [ebp - 0x678]
shr eax, 0x10
mov dword [ebp - 0xff8], eax
lea esi, [esi]
test byte [0x423010], 8
jne 0x41a410
lea eax, [ebp - 0x23c]
mov dword [esp + 4], 0x2e
mov dword [esp], eax
mov eax, dword [ebp - 0xfdc]
call eax
mov edi, eax
xor eax, eax
lea esi, [esi]
movzx edx, word [ebp + eax - 0xfd8]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x41a1d8
cmp word [ebp - 0x470], 0
mov edx, esi
je 0x41a209
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x41a200
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [ebp + eax - 0xc90]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x41a210
xor eax, eax
lea esi, [esi]
lea esi, [esi]
movzx edx, word [esi + eax]
mov word [ebp + eax - 0x678], dx
add eax, 2
test dx, dx
jne 0x41a230
cmp word [ebp - 0x470], 0
je 0x41aac0
mov ecx, esi
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x41a258
sub ecx, esi
mov edx, esi
sar ecx, 1
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x41a270
xor eax, eax
lea esi, [esi]
nop
movzx ebx, word [ebp + eax - 0x23c]
mov word [edx + eax], bx
add eax, 2
test bx, bx
jne 0x41a280
movzx ebx, word [0x42c400]
movzx eax, word [ebp - 0x678]
lea edx, [ebp - 0x678]
cmp bx, 0x2a
je 0x41a3b0
test ax, ax
je 0x41a2c9
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x41a2c0
xor eax, eax
jmp 0x41a2d7
movzx ebx, word [eax + 0x42c400]
mov word [edx + eax], bx
add eax, 2
test bx, bx
jne 0x41a2d0
mov ebx, dword [ebp - 0xfe4]
test ebx, ebx
je 0x41a348
add ecx, dword [ebp - 0xfec]
xor edx, edx
mov word [ebp + ecx*2 - 0x678], dx
mov eax, dword [ebp - 0xfe4]
cmp word [eax + 2], 0x2a
je 0x41a818
cmp word [ebp - 0x678], 0
lea edx, [ebp - 0x678]
je 0x41a329
nop
add edx, 2
cmp word [edx], 0
jne 0x41a320
mov ebx, dword [ebp - 0xfe4]
xor eax, eax
lea esi, [esi]
movzx ecx, word [ebx + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x41a338
test byte [0x423010], 8
jne 0x41a580
lea eax, [ebp - 0x678]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_MoveFileW]
sub esp, 8
test eax, eax
je 0x41a568
lea eax, [ebp - 0x268]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xfe8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindNextFileW]
sub esp, 8
test eax, eax
jne 0x41a1a8
mov eax, dword [ebp - 0xfe8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
jmp 0x41a03e
test ax, ax
je 0x41a3c1
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x41a3b8
xor eax, eax
lea esi, [esi]
nop
movzx ebx, word [ebp + eax - 0x23c]
mov word [edx + eax], bx
add eax, 2
test bx, bx
jne 0x41a3c8
test edi, edi
je 0x41a3f8
mov eax, edi
lea ebx, [ebp - 0x23c]
sub eax, ebx
sar eax, 1
add ecx, eax
xor eax, eax
mov word [ebp + ecx*2 - 0x678], ax
mov eax, dword [ebp - 0xfe4]
test eax, eax
jne 0x41a2fd
jmp 0x41a348
mov eax, dword [ebp - 0xff0]
test eax, eax
je 0x41aa48
lea eax, [ebp - 0x23c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, 0x4350cb
test ecx, ecx
jne 0x41a534
movzx eax, word [ebp - 0x23c]
test ax, ax
je 0x41ab19
lea esi, [esi]
nop
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebp + edx*2 - 0x23a], 0
jne 0x41a460
mov ecx, 0x224c
lea ebx, [ebp - 0x23c]
mov word [ebp - 0xfc4], cx
lea ecx, [ebp - 0xfc2]
mov dword [ebp - 0xfe0], ebx
jmp 0x41a4cc
cmp ax, 9
je 0x41a9c0
cmp ax, 0xa
jne 0x41a9de
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea edi, [edx - 1]
test edx, edx
jle 0x41a508
lea eax, [ebp - 0xea2]
cmp ecx, eax
ja 0x41a508
mov eax, dword [ebp - 0xfe0]
mov edx, edi
movzx eax, word [eax]
add dword [ebp - 0xfe0], 2
cmp ax, 0xd
je 0x41a9a8
jbe 0x41a490
cmp ax, 0x22
je 0x41aa30
cmp ax, 0x5c
jne 0x41a9d1
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x41a4b0
mov byte [ecx], 0x22
test edi, edi
jle 0x41ab32
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0xfc4]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Processing_file__s_n
mov dword [esp + 8], str.WCMD_rename
mov dword [esp + 4], 0x423010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x41a1b5
call sym._WCMD_print_error
mov dword [0x4231f0], 1
jmp 0x41a373
mov eax, dword [ebp - 0xff4]
test eax, eax
je 0x41aa70
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, 0x4350cb
test ecx, ecx
jne 0x41a694
movzx eax, word [ebp - 0x470]
test ax, ax
je 0x41aaf8
lea esi, [esi]
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [esi + edx*2 + 2], 0
jne 0x41a5c8
mov ecx, 0x224c
mov dword [ebp - 0xfe0], esi
mov word [ebp - 0xfc4], cx
lea ecx, [ebp - 0xfc2]
jmp 0x41a62c
cmp ax, 9
je 0x41a918
cmp ax, 0xa
jne 0x41a936
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [ebp - 0xea2]
lea edi, [edx - 1]
cmp ecx, eax
ja 0x41a668
test edx, edx
jle 0x41a668
mov eax, dword [ebp - 0xfe0]
mov edx, edi
movzx eax, word [eax]
add dword [ebp - 0xfe0], 2
cmp ax, 0xd
je 0x41a870
jbe 0x41a5f0
cmp ax, 0x22
je 0x41a990
cmp ax, 0x5c
jne 0x41a929
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x41a610
mov byte [ecx], 0x22
test edi, edi
jle 0x41ab11
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0xfc4]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Source__s_n
mov dword [esp + 8], str.WCMD_rename
mov dword [esp + 4], 0x423010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
test byte [0x423010], 8
je 0x41a355
mov eax, dword [ebp - 0xff8]
test eax, eax
je 0x41aa90
lea eax, [ebp - 0x678]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, 0x4350cb
test ecx, ecx
jne 0x41a7e4
movzx eax, word [ebp - 0x678]
test ax, ax
je 0x41ab3a
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebp + edx*2 - 0x676], 0
jne 0x41a710
mov edi, 0x224c
lea ebx, [ebp - 0x678]
lea ecx, [ebp - 0xfc2]
mov word [ebp - 0xfc4], di
mov dword [ebp - 0xfe0], ebx
jmp 0x41a77c
cmp ax, 9
je 0x41a888
cmp ax, 0xa
jne 0x41a8a6
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [ebp - 0xea2]
lea edi, [edx - 1]
cmp ecx, eax
ja 0x41a7b8
test edx, edx
jle 0x41a7b8
mov eax, dword [ebp - 0xfe0]
mov edx, edi
movzx eax, word [eax]
add dword [ebp - 0xfe0], 2
cmp ax, 0xd
je 0x41a858
jbe 0x41a740
cmp ax, 0x22
je 0x41a900
cmp ax, 0x5c
jne 0x41a899
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x41a760
mov byte [ecx], 0x22
test edi, edi
jle 0x41ab53
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0xfc4]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Dest____s_n
mov dword [esp + 8], str.WCMD_rename
mov dword [esp + 4], 0x423010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x41a355
test edi, edi
je 0x41a348
cmp word [ebp - 0x678], 0
lea edx, [ebp - 0x678]
je 0x41a839
add edx, 2
cmp word [edx], 0
jne 0x41a830
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [edi + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x41a840
jmp 0x41a348
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x41a760
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x41a610
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x41a760
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x41aaf0
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 0x41a760
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x41a760
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x41a610
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x41aae0
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 0x41a610
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x41a610
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x41a4b0
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x41a4b0
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x41aad0
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 0x41a4b0
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x41a4b0
lea eax, [ebp - 0x23c]
mov dword [esp], 0x4350be
mov dword [ebp - 0xfe0], eax
movzx eax, word [ebp - 0xfe0]
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x41a534
movzx eax, si
mov dword [esp], 0x4350be
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x41a694
lea eax, [ebp - 0x678]
mov dword [esp], 0x4350be
mov dword [ebp - 0xfe0], eax
movzx eax, word [ebp - 0xfe0]
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x41a7e4
xor ecx, ecx
mov edx, esi
jmp 0x41a279
mov byte [ecx], al
inc ecx
jmp 0x41a4b0
mov byte [ecx], al
inc ecx
jmp 0x41a610
mov byte [ecx], al
inc ecx
jmp 0x41a760
mov edi, 0x224c
mov byte [ebp - 0xfc2], 0x22
lea ecx, [ebp - 0xfc2]
mov word [ebp - 0xfc4], di
lea eax, [ecx + 1]
jmp 0x41a683
mov ebx, 0x224c
mov byte [ebp - 0xfc2], 0x22
lea ecx, [ebp - 0xfc2]
mov word [ebp - 0xfc4], bx
lea eax, [ecx + 1]
jmp 0x41a523
mov ebx, 0x224c
mov byte [ebp - 0xfc2], 0x22
lea ecx, [ebp - 0xfc2]
mov word [ebp - 0xfc4], bx
lea eax, [ecx + 1]
jmp 0x41a7d3
mov eax, 0x42c400
call sym._wine_dbgstr_wn.constprop.0
mov edi, eax
mov eax, 0x428400
call sym._wine_dbgstr_wn.constprop.0
mov esi, eax
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Rename_from__s__s__to__s_n
mov dword [esp + 8], str.WCMD_rename
mov dword [esp + 4], 0x423010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x41a0ee