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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xea0
mov edi, dword [0x4162c0]
mov dword [edi], 0
mov esi, dword [0x4162c8]
cmp word [esi], 0
je 0x408c44
mov ebx, dword [0x418750]
cmp word [ebx], 0
je 0x408c44
push 0x3a
push ebx
call dword [sym.imp.ucrtbase.dll_wcschr]
add esp, 8
test eax, eax
jne 0x408c30
push 0x5c
push ebx
call dword [sym.imp.ucrtbase.dll_wcschr]
add esp, 8
test eax, eax
je 0x408c6b
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x57
call dbg.WCMD_print_error
jmp 0x408c5a
push 0x3f2
call sym._WCMD_LoadMessage
add esp, 4
push eax
call dbg.WCMD_output_stderr
add esp, 4
mov dword [edi], 1
add esp, 0xea0
pop esi
pop edi
pop ebx
pop ebp
ret
lea edi, [ebp - 0xa9c]
push 0
push edi
push 0x104
push esi
call dbg.WCMD_get_fullpath
add esp, 0x10
test eax, eax
je 0x408c60
test byte [0x41d010], 8
je 0x408ce2
lea ecx, [ebp - 0xa9c]
call dbg.wine_dbgstr_wn
mov ebx, eax
mov ecx, dword [0x4162c8]
call dbg.wine_dbgstr_wn
mov esi, eax
mov ecx, dword [0x418750]
call dbg.wine_dbgstr_wn
sub esp, 0x1c
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.Rename_from__s__s__to__s_n
mov dword [esp + 8], str.WCMD_rename
mov dword [esp], 3
call sym._wine_dbg_log_1
add esp, 0x1c
push 0x2e
push dword [0x418750]
call dword [sym.imp.ucrtbase.dll_wcschr]
add esp, 8
mov esi, eax
lea eax, [ebp - 0xca4]
lea ecx, [ebp - 0xeac]
lea edx, [ebp - 0x894]
lea ebx, [ebp - 0x2c]
push eax
push ecx
push edx
push ebx
push edi
call dword [sym.imp.ucrtbase.dll__wsplitpath]
add esp, 0x14
lea eax, [ebp - 0x68c]
push eax
push edi
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x408c60
mov eax, esi
sub eax, dword [0x418750]
sar eax, 1
mov dword [ebp - 0x14], eax
lea edi, [ebp - 0x43e]
mov dword [ebp - 0x18], esi
jmp 0x408d90
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.kernel32.dll_MoveFileW]
test eax, eax
mov edi, dword [0x4162c0]
je 0x409030
lea eax, [ebp - 0x68c]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.kernel32.dll_FindNextFileW]
test eax, eax
lea edi, [ebp - 0x43e]
je 0x409040
test byte [0x41d010], 8
je 0x408dca
lea ecx, [ebp - 0x660]
call dbg.wine_dbgstr_wn
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Processing_file__s_n
mov dword [esp + 8], str.WCMD_rename
mov dword [esp], 3
call sym._wine_dbg_log_1
add esp, 0x14
xor ebx, ebx
push 0x2e
lea eax, [ebp - 0x660]
push eax
call dword [sym.imp.ucrtbase.dll_wcschr]
add esp, 8
nop
movzx ecx, word [ebp + ebx - 0x2c]
mov word [ebp + ebx - 0x43c], cx
add ebx, 2
test cx, cx
jne 0x408de0
mov ecx, edi
nop word [eax + eax]
cmp word [ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x408e00
xor edx, edx
nop dword [eax]
movzx ebx, word [ebp + edx - 0x894]
mov word [ecx + edx], bx
add edx, 2
test bx, bx
jne 0x408e10
xor ecx, ecx
nop word cs:[eax + eax]
movzx edx, word [ebp + ecx - 0x43c]
mov word [ebp + ecx - 0x234], dx
add ecx, 2
test dx, dx
jne 0x408e30
mov ecx, 0xfffffffe
nop dword [eax]
cmp word [ebp + ecx - 0x43a], 0
lea ecx, [ecx + 2]
jne 0x408e50
mov edx, edi
cmp word [edx + 2], 0
lea edx, [edx + 2]
jne 0x408e60
xor ebx, ebx
nop dword [eax]
movzx edi, word [ebp + ebx - 0x660]
mov word [edx + ebx], di
add ebx, 2
test di, di
jne 0x408e70
sar ecx, 1
mov edx, dword [0x418750]
cmp word [edx], 0x2a
lea edx, [ebp - 0x236]
jne 0x408ef0
nop dword [eax + eax]
cmp word [edx + 2], 0
lea edx, [edx + 2]
jne 0x408ea0
xor ebx, ebx
nop dword [eax]
movzx edi, word [ebp + ebx - 0x660]
mov word [edx + ebx], di
add ebx, 2
test di, di
jne 0x408eb0
test eax, eax
je 0x408ee0
mov edx, eax
lea edi, [ebp - 0x660]
sub edx, edi
shr edx, 1
add ecx, edx
mov word [ebp + ecx*2 - 0x234], 0
test esi, esi
jne 0x408f34
jmp 0x408fa0
cmp word [edx + 2], 0
lea edx, [edx + 2]
jne 0x408ef0
xor ebx, ebx
mov esi, dword [0x418750]
nop word cs:[eax + eax]
movzx edi, word [esi + ebx]
mov word [edx + ebx], di
add ebx, 2
test di, di
jne 0x408f10
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x408fa0
add ecx, dword [ebp - 0x14]
mov word [ebp + ecx*2 - 0x234], 0
cmp word [esi + 2], 0x2a
lea ecx, [ebp - 0x236]
jne 0x408f80
test eax, eax
je 0x408fa0
nop word cs:[eax + eax]
cmp word [ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x408f50
xor edx, edx
nop dword [eax]
movzx edi, word [eax + edx]
mov word [ecx + edx], di
add edx, 2
test di, di
jne 0x408f60
jmp 0x408fa0
cmp word [ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x408f80
xor eax, eax
nop dword [eax]
movzx edx, word [esi + eax]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x408f90
test byte [0x41d010], 8
je 0x408d50
lea ecx, [ebp - 0x43c]
call dbg.wine_dbgstr_wn
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Source__s_n
mov dword [esp + 8], str.WCMD_rename
mov dword [esp], 3
call sym._wine_dbg_log_1
add esp, 0x14
test byte [0x41d010], 8
je 0x408d50
lea ecx, [ebp - 0x234]
call dbg.wine_dbgstr_wn
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Dest____s_n
mov dword [esp + 8], str.WCMD_rename
mov dword [esp], 3
call sym._wine_dbg_log_1
add esp, 0x14
jmp 0x408d50
call dbg.WCMD_print_error
mov dword [edi], 1
jmp 0x408d72
push dword [ebp - 0x10]
call dword [sym.imp.kernel32.dll_FindClose]
jmp 0x408c60