Function at 0x419fb0
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 0x419fe0
cmp word [0x42c400], 0
jne 0x41a010
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 0x41a058
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 0x41a030
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 0x419ffe
test byte [0x423010], 8
jne 0x41ab1b
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 0x419ffe
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 0x41a3d0
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 0x41a198
cmp word [ebp - 0x470], 0
mov edx, esi
je 0x41a1c9
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x41a1c0
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 0x41a1d0
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 0x41a1f0
cmp word [ebp - 0x470], 0
je 0x41aa80
mov ecx, esi
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x41a218
sub ecx, esi
mov edx, esi
sar ecx, 1
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x41a230
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 0x41a240
movzx ebx, word [0x42c400]
movzx eax, word [ebp - 0x678]
lea edx, [ebp - 0x678]
cmp bx, 0x2a
je 0x41a370
test ax, ax
je 0x41a289
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x41a280
xor eax, eax
jmp 0x41a297
movzx ebx, word [eax + 0x42c400]
mov word [edx + eax], bx
add eax, 2
test bx, bx
jne 0x41a290
mov ebx, dword [ebp - 0xfe4]
test ebx, ebx
je 0x41a308
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 0x41a7d8
cmp word [ebp - 0x678], 0
lea edx, [ebp - 0x678]
je 0x41a2e9
nop
add edx, 2
cmp word [edx], 0
jne 0x41a2e0
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 0x41a2f8
test byte [0x423010], 8
jne 0x41a540
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 0x41a528
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 0x41a168
mov eax, dword [ebp - 0xfe8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
jmp 0x419ffe
test ax, ax
je 0x41a381
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x41a378
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 0x41a388
test edi, edi
je 0x41a3b8
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 0x41a2bd
jmp 0x41a308
mov eax, dword [ebp - 0xff0]
test eax, eax
je 0x41aa08
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 0x41a4f4
movzx eax, word [ebp - 0x23c]
test ax, ax
je 0x41aad9
lea esi, [esi]
nop
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebp + edx*2 - 0x23a], 0
jne 0x41a420
mov ecx, 0x224c
lea ebx, [ebp - 0x23c]
mov word [ebp - 0xfc4], cx
lea ecx, [ebp - 0xfc2]
mov dword [ebp - 0xfe0], ebx
jmp 0x41a48c
cmp ax, 9
je 0x41a980
cmp ax, 0xa
jne 0x41a99e
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea edi, [edx - 1]
test edx, edx
jle 0x41a4c8
lea eax, [ebp - 0xea2]
cmp ecx, eax
ja 0x41a4c8
mov eax, dword [ebp - 0xfe0]
mov edx, edi
movzx eax, word [eax]
add dword [ebp - 0xfe0], 2
cmp ax, 0xd
je 0x41a968
jbe 0x41a450
cmp ax, 0x22
je 0x41a9f0
cmp ax, 0x5c
jne 0x41a991
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x41a470
mov byte [ecx], 0x22
test edi, edi
jle 0x41aaf2
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 0x41a175
call sym._WCMD_print_error
mov dword [0x4231f0], 1
jmp 0x41a333
mov eax, dword [ebp - 0xff4]
test eax, eax
je 0x41aa30
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 0x41a654
movzx eax, word [ebp - 0x470]
test ax, ax
je 0x41aab8
lea esi, [esi]
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [esi + edx*2 + 2], 0
jne 0x41a588
mov ecx, 0x224c
mov dword [ebp - 0xfe0], esi
mov word [ebp - 0xfc4], cx
lea ecx, [ebp - 0xfc2]
jmp 0x41a5ec
cmp ax, 9
je 0x41a8d8
cmp ax, 0xa
jne 0x41a8f6
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [ebp - 0xea2]
lea edi, [edx - 1]
cmp ecx, eax
ja 0x41a628
test edx, edx
jle 0x41a628
mov eax, dword [ebp - 0xfe0]
mov edx, edi
movzx eax, word [eax]
add dword [ebp - 0xfe0], 2
cmp ax, 0xd
je 0x41a830
jbe 0x41a5b0
cmp ax, 0x22
je 0x41a950
cmp ax, 0x5c
jne 0x41a8e9
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x41a5d0
mov byte [ecx], 0x22
test edi, edi
jle 0x41aad1
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 0x41a315
mov eax, dword [ebp - 0xff8]
test eax, eax
je 0x41aa50
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 0x41a7a4
movzx eax, word [ebp - 0x678]
test ax, ax
je 0x41aafa
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebp + edx*2 - 0x676], 0
jne 0x41a6d0
mov edi, 0x224c
lea ebx, [ebp - 0x678]
lea ecx, [ebp - 0xfc2]
mov word [ebp - 0xfc4], di
mov dword [ebp - 0xfe0], ebx
jmp 0x41a73c
cmp ax, 9
je 0x41a848
cmp ax, 0xa
jne 0x41a866
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [ebp - 0xea2]
lea edi, [edx - 1]
cmp ecx, eax
ja 0x41a778
test edx, edx
jle 0x41a778
mov eax, dword [ebp - 0xfe0]
mov edx, edi
movzx eax, word [eax]
add dword [ebp - 0xfe0], 2
cmp ax, 0xd
je 0x41a818
jbe 0x41a700
cmp ax, 0x22
je 0x41a8c0
cmp ax, 0x5c
jne 0x41a859
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x41a720
mov byte [ecx], 0x22
test edi, edi
jle 0x41ab13
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 0x41a315
test edi, edi
je 0x41a308
cmp word [ebp - 0x678], 0
lea edx, [ebp - 0x678]
je 0x41a7f9
add edx, 2
cmp word [edx], 0
jne 0x41a7f0
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [edi + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x41a800
jmp 0x41a308
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x41a720
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x41a5d0
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x41a720
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x41aab0
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 0x41a720
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x41a720
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x41a5d0
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x41aaa0
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 0x41a5d0
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x41a5d0
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x41a470
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x41a470
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x41aa90
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 0x41a470
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x41a470
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 0x41a4f4
movzx eax, si
mov dword [esp], 0x4350be
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x41a654
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 0x41a7a4
xor ecx, ecx
mov edx, esi
jmp 0x41a239
mov byte [ecx], al
inc ecx
jmp 0x41a470
mov byte [ecx], al
inc ecx
jmp 0x41a5d0
mov byte [ecx], al
inc ecx
jmp 0x41a720
mov edi, 0x224c
mov byte [ebp - 0xfc2], 0x22
lea ecx, [ebp - 0xfc2]
mov word [ebp - 0xfc4], di
lea eax, [ecx + 1]
jmp 0x41a643
mov ebx, 0x224c
mov byte [ebp - 0xfc2], 0x22
lea ecx, [ebp - 0xfc2]
mov word [ebp - 0xfc4], bx
lea eax, [ecx + 1]
jmp 0x41a4e3
mov ebx, 0x224c
mov byte [ebp - 0xfc2], 0x22
lea ecx, [ebp - 0xfc2]
mov word [ebp - 0xfc4], bx
lea eax, [ecx + 1]
jmp 0x41a793
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 0x41a0ae