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

Disassembly:
push ebp
mov eax, 0xffc
mov ebp, esp
push edi
push esi
push ebx
call fcn.00401050
sub esp, eax
cmp word [0x428560], 0
mov dword [0x423344], 0
je 0x41a180
cmp word [0x42c560], 0
jne 0x41a1b0
mov dword [esp], 0x3f2
call sym._WCMD_LoadMessage
mov dword [esp], eax
call sym._WCMD_output_stderr
mov dword [0x423344], 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], 0x42c560
mov dword [ebp - 0xfd0], eax
call eax
test eax, eax
je 0x41a1f8
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x57
call sym._WCMD_print_error
mov dword [0x423344], 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0x5c
mov eax, dword [ebp - 0xfd0]
mov dword [esp], 0x42c560
call eax
test eax, eax
jne 0x41a1d0
lea ebx, [ebp - 0xe8c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x104
mov dword [esp], 0x428560
call sym._WCMD_get_fullpath
test eax, eax
je 0x41a19e
test byte [0x423010], 8
jne 0x41acbb
mov dword [esp + 4], 0x2e
mov eax, dword [ebp - 0xfd0]
mov dword [esp], 0x42c560
call eax
mov dword [esp], ebx
mov dword [ebp - 0xfd8], eax
mov esi, eax
lea eax, [ebp - 0x874]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0xa7c]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0xc84]
mov dword [esp + 8], eax
lea eax, [ebp - 0xfcc]
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll__wsplitpath]
lea eax, [ebp - 0x25c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov dword [ebp - 0xfdc], eax
sub esp, 8
cmp eax, 0xffffffff
je 0x41a19e
lea eax, [ebp - 0x230]
shr eax, 0x10
mov dword [ebp - 0xfe4], eax
mov eax, esi
lea esi, [ebp - 0x464]
sub eax, 0x42c560
sar eax, 1
mov dword [ebp - 0xfe0], eax
mov eax, esi
shr eax, 0x10
mov dword [ebp - 0xfe8], eax
lea eax, [ebp - 0x66c]
shr eax, 0x10
mov dword [ebp - 0xfec], eax
lea esi, [esi]
test byte [0x423010], 8
jne 0x41a570
lea eax, [ebp - 0x230]
mov dword [esp + 4], 0x2e
mov dword [esp], eax
mov eax, dword [ebp - 0xfd0]
call eax
mov edi, eax
xor eax, eax
lea esi, [esi]
movzx edx, word [ebp + eax - 0xfcc]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x41a338
cmp word [ebp - 0x464], 0
mov edx, esi
je 0x41a369
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x41a360
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [ebp + eax - 0xc84]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x41a370
xor eax, eax
lea esi, [esi]
lea esi, [esi]
movzx edx, word [esi + eax]
mov word [ebp + eax - 0x66c], dx
add eax, 2
test dx, dx
jne 0x41a390
cmp word [ebp - 0x464], 0
je 0x41ac20
mov ecx, esi
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x41a3b8
sub ecx, esi
mov edx, esi
sar ecx, 1
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x41a3d0
xor eax, eax
lea esi, [esi]
nop
movzx ebx, word [ebp + eax - 0x230]
mov word [edx + eax], bx
add eax, 2
test bx, bx
jne 0x41a3e0
movzx ebx, word [0x42c560]
movzx eax, word [ebp - 0x66c]
lea edx, [ebp - 0x66c]
cmp bx, 0x2a
je 0x41a510
test ax, ax
je 0x41a429
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x41a420
xor eax, eax
jmp 0x41a437
movzx ebx, word [eax + 0x42c560]
mov word [edx + eax], bx
add eax, 2
test bx, bx
jne 0x41a430
mov ebx, dword [ebp - 0xfd8]
test ebx, ebx
je 0x41a4a8
add ecx, dword [ebp - 0xfe0]
xor edx, edx
mov word [ebp + ecx*2 - 0x66c], dx
mov eax, dword [ebp - 0xfd8]
cmp word [eax + 2], 0x2a
je 0x41a978
cmp word [ebp - 0x66c], 0
lea edx, [ebp - 0x66c]
je 0x41a489
nop
add edx, 2
cmp word [edx], 0
jne 0x41a480
mov ebx, dword [ebp - 0xfd8]
xor eax, eax
lea esi, [esi]
movzx ecx, word [ebx + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x41a498
test byte [0x423010], 8
jne 0x41a6e0
lea eax, [ebp - 0x66c]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_MoveFileW]
sub esp, 8
test eax, eax
je 0x41a6c8
lea eax, [ebp - 0x25c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xfdc]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindNextFileW]
sub esp, 8
test eax, eax
jne 0x41a308
mov eax, dword [ebp - 0xfdc]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
jmp 0x41a19e
test ax, ax
je 0x41a521
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x41a518
xor eax, eax
lea esi, [esi]
nop
movzx ebx, word [ebp + eax - 0x230]
mov word [edx + eax], bx
add eax, 2
test bx, bx
jne 0x41a528
test edi, edi
je 0x41a558
mov eax, edi
lea ebx, [ebp - 0x230]
sub eax, ebx
sar eax, 1
add ecx, eax
xor eax, eax
mov word [ebp + ecx*2 - 0x66c], ax
mov eax, dword [ebp - 0xfd8]
test eax, eax
jne 0x41a45d
jmp 0x41a4a8
mov eax, dword [ebp - 0xfe4]
test eax, eax
je 0x41aba8
lea eax, [ebp - 0x230]
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 0x41a694
movzx eax, word [ebp - 0x230]
test ax, ax
je 0x41ac79
lea esi, [esi]
nop
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebp + edx*2 - 0x22e], 0
jne 0x41a5c0
mov ecx, 0x224c
lea ebx, [ebp - 0x230]
mov word [ebp - 0xfb8], cx
lea ecx, [ebp - 0xfb6]
mov dword [ebp - 0xfd4], ebx
jmp 0x41a62c
cmp ax, 9
je 0x41ab20
cmp ax, 0xa
jne 0x41ab3e
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea edi, [edx - 1]
test edx, edx
jle 0x41a668
lea eax, [ebp - 0xe96]
cmp ecx, eax
ja 0x41a668
mov eax, dword [ebp - 0xfd4]
mov edx, edi
movzx eax, word [eax]
add dword [ebp - 0xfd4], 2
cmp ax, 0xd
je 0x41ab08
jbe 0x41a5f0
cmp ax, 0x22
je 0x41ab90
cmp ax, 0x5c
jne 0x41ab31
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x41a610
mov byte [ecx], 0x22
test edi, edi
jle 0x41ac92
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0xfb8]
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 0x41a315
call sym._WCMD_print_error
mov dword [0x423344], 1
jmp 0x41a4d3
mov eax, dword [ebp - 0xfe8]
test eax, eax
je 0x41abd0
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 0x41a7f4
movzx eax, word [ebp - 0x464]
test ax, ax
je 0x41ac58
lea esi, [esi]
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [esi + edx*2 + 2], 0
jne 0x41a728
mov ecx, 0x224c
mov dword [ebp - 0xfd4], esi
mov word [ebp - 0xfb8], cx
lea ecx, [ebp - 0xfb6]
jmp 0x41a78c
cmp ax, 9
je 0x41aa78
cmp ax, 0xa
jne 0x41aa96
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [ebp - 0xe96]
lea edi, [edx - 1]
cmp ecx, eax
ja 0x41a7c8
test edx, edx
jle 0x41a7c8
mov eax, dword [ebp - 0xfd4]
mov edx, edi
movzx eax, word [eax]
add dword [ebp - 0xfd4], 2
cmp ax, 0xd
je 0x41a9d0
jbe 0x41a750
cmp ax, 0x22
je 0x41aaf0
cmp ax, 0x5c
jne 0x41aa89
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x41a770
mov byte [ecx], 0x22
test edi, edi
jle 0x41ac71
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0xfb8]
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 0x41a4b5
mov eax, dword [ebp - 0xfec]
test eax, eax
je 0x41abf0
lea eax, [ebp - 0x66c]
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 0x41a944
movzx eax, word [ebp - 0x66c]
test ax, ax
je 0x41ac9a
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebp + edx*2 - 0x66a], 0
jne 0x41a870
mov edi, 0x224c
lea ebx, [ebp - 0x66c]
lea ecx, [ebp - 0xfb6]
mov word [ebp - 0xfb8], di
mov dword [ebp - 0xfd4], ebx
jmp 0x41a8dc
cmp ax, 9
je 0x41a9e8
cmp ax, 0xa
jne 0x41aa06
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [ebp - 0xe96]
lea edi, [edx - 1]
cmp ecx, eax
ja 0x41a918
test edx, edx
jle 0x41a918
mov eax, dword [ebp - 0xfd4]
mov edx, edi
movzx eax, word [eax]
add dword [ebp - 0xfd4], 2
cmp ax, 0xd
je 0x41a9b8
jbe 0x41a8a0
cmp ax, 0x22
je 0x41aa60
cmp ax, 0x5c
jne 0x41a9f9
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x41a8c0
mov byte [ecx], 0x22
test edi, edi
jle 0x41acb3
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0xfb8]
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 0x41a4b5
test edi, edi
je 0x41a4a8
cmp word [ebp - 0x66c], 0
lea edx, [ebp - 0x66c]
je 0x41a999
add edx, 2
cmp word [edx], 0
jne 0x41a990
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [edi + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x41a9a0
jmp 0x41a4a8
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x41a8c0
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x41a770
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x41a8c0
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x41ac50
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 0x41a8c0
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x41a8c0
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x41a770
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x41ac40
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 0x41a770
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x41a770
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 0x41a610
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x41ac30
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 0x41a610
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x41a610
lea eax, [ebp - 0x230]
mov dword [esp], 0x4350be
mov dword [ebp - 0xfd4], eax
movzx eax, word [ebp - 0xfd4]
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x41a694
movzx eax, si
mov dword [esp], 0x4350be
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x41a7f4
lea eax, [ebp - 0x66c]
mov dword [esp], 0x4350be
mov dword [ebp - 0xfd4], eax
movzx eax, word [ebp - 0xfd4]
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x41a944
xor ecx, ecx
mov edx, esi
jmp 0x41a3d9
mov byte [ecx], al
inc ecx
jmp 0x41a610
mov byte [ecx], al
inc ecx
jmp 0x41a770
mov byte [ecx], al
inc ecx
jmp 0x41a8c0
mov edi, 0x224c
mov byte [ebp - 0xfb6], 0x22
lea ecx, [ebp - 0xfb6]
mov word [ebp - 0xfb8], di
lea eax, [ecx + 1]
jmp 0x41a7e3
mov ebx, 0x224c
mov byte [ebp - 0xfb6], 0x22
lea ecx, [ebp - 0xfb6]
mov word [ebp - 0xfb8], bx
lea eax, [ecx + 1]
jmp 0x41a683
mov ebx, 0x224c
mov byte [ebp - 0xfb6], 0x22
lea ecx, [ebp - 0xfb6]
mov word [ebp - 0xfb8], bx
lea eax, [ecx + 1]
jmp 0x41a933
mov eax, 0x42c560
call sym._wine_dbgstr_wn.constprop.0
mov edi, eax
mov eax, 0x428560
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 0x41a24e