Function at 0x402a70
Capabilities:
Check if file exists
Copy file
Enumerate files on windows
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x8d0
mov edi, dword [0x4162c0]
mov dword [edi], 0
mov eax, dword [0x4162c8]
cmp word [eax], 0
je 0x403136
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x4c]
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 1
mov dword [esp + 4], 0
call sym._WCMD_parameter
mov esi, eax
movzx eax, word [eax]
test ax, ax
je 0x403328
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x18], 1
mov ecx, dword [sym.imp.ucrtbase.dll_towupper]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0
xor ebx, ebx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
jmp 0x402b67
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x4c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 1
call sym._WCMD_parameter
mov ecx, dword [sym.imp.ucrtbase.dll_towupper]
mov esi, eax
mov dword [ebp - 0x14], edi
movzx eax, word [esi]
test ax, ax
je 0x403155
test byte [0x41d010], 8
je 0x402ba0
mov ecx, esi
call dbg.wine_dbgstr_wn
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Working_on_parameter__s_n
mov dword [esp + 8], str.WCMD_copy
mov dword [esp], 3
call sym._wine_dbg_log_1
mov ecx, dword [sym.imp.ucrtbase.dll_towupper]
movzx eax, word [esi]
cmp ax, 0x2b
je 0x402f00
movzx eax, ax
cmp eax, 0x2f
jne 0x402f30
add esi, 2
jmp 0x402be8
mov dword [esp + 8], str.WCMD_copy
mov dword [esp], 0
call sym._wine_dbg_log_1
mov ecx, dword [sym.imp.ucrtbase.dll_towupper]
cmp word [esi + 2], 0x2f
lea esi, [esi + 4]
jne 0x402b20
movzx eax, word [esi]
mov dword [esp], eax
mov edi, ecx
call ecx
cmp ax, 0x44
jne 0x402c10
test byte [0x41d010], 1
je 0x402bd4
mov dword [esp + 0xc], str.copy__D_support_not_implemented_yet_n
jmp 0x402bc0
movzx eax, word [esi]
mov dword [esp], eax
call edi
cmp ax, 0x59
jne 0x402c30
mov dword [ebp - 0x30], 1
mov ecx, edi
jmp 0x402bda
movzx eax, word [esi]
mov dword [esp], eax
call edi
cmp ax, 0x2d
jne 0x402c58
movzx eax, word [esi + 2]
mov dword [esp], eax
call edi
cmp ax, 0x59
jne 0x402c58
mov dword [ebp - 0x28], 1
mov ecx, edi
jmp 0x402bda
movzx eax, word [esi]
mov dword [esp], eax
call edi
cmp ax, 0x56
jne 0x402c80
test byte [0x41d010], 1
je 0x402bd4
mov dword [esp + 0xc], str.copy__V_support_not_implemented_yet_n
jmp 0x402bc0
movzx eax, word [esi]
mov dword [esp], eax
call edi
cmp ax, 0x4e
jne 0x402ca8
test byte [0x41d010], 1
je 0x402bd4
mov dword [esp + 0xc], str.copy__N_support_not_implemented_yet_n
jmp 0x402bc0
movzx eax, word [esi]
mov dword [esp], eax
call edi
cmp ax, 0x5a
jne 0x402cd0
test byte [0x41d010], 1
je 0x402bd4
mov dword [esp + 0xc], str.copy__Z_support_not_implemented_yet_n
jmp 0x402bc0
movzx eax, word [esi]
mov dword [esp], eax
call edi
cmp ax, 0x41
jne 0x402d63
cmp dword [ebp - 0x1c], 0
je 0x402da8
test byte [0x41d010], 8
je 0x402d11
mov dword [esp + 0xc], str.Subsequent_files_will_be_handled_as_ASCII_n
mov dword [esp + 8], str.WCMD_copy
mov dword [esp], 3
call sym._wine_dbg_log_1
cmp dword [ebp - 0x10], 0
mov ecx, dword [sym.imp.ucrtbase.dll_towupper]
je 0x402e2b
test byte [0x41d010], 8
je 0x402d5b
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
call dbg.wine_dbgstr_wn
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.file__s_will_be_written_as_ASCII_n
mov dword [esp + 8], str.WCMD_copy
mov dword [esp], 3
call sym._wine_dbg_log_1
mov ecx, dword [sym.imp.ucrtbase.dll_towupper]
mov eax, dword [ebp - 0x10]
jmp 0x402e72
movzx eax, word [esi]
mov dword [esp], eax
call edi
cmp ax, 0x42
jne 0x402d83
cmp dword [ebp - 0x1c], 1
jne 0x402db4
mov dword [ebp - 0x1c], 1
jmp 0x402bd4
test byte [0x41d010], 1
je 0x402bd4
mov ecx, esi
call dbg.wine_dbgstr_wn
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Unexpected_copy_switch__s_n
jmp 0x402bc0
mov dword [ebp - 0x1c], 0
jmp 0x402bd4
test byte [0x41d010], 8
je 0x402dd9
mov dword [esp + 0xc], str.Subsequent_files_will_be_handled_as_binary_n
mov dword [esp + 8], str.WCMD_copy
mov dword [esp], 3
call sym._wine_dbg_log_1
cmp dword [ebp - 0x10], 0
mov ecx, dword [sym.imp.ucrtbase.dll_towupper]
je 0x402e85
test byte [0x41d010], 8
je 0x402e23
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
call dbg.wine_dbgstr_wn
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.file__s_will_be_written_as_binary_n
mov dword [esp + 8], str.WCMD_copy
mov dword [esp], 3
call sym._wine_dbg_log_1
mov ecx, dword [sym.imp.ucrtbase.dll_towupper]
mov eax, dword [ebp - 0x10]
jmp 0x402ec8
cmp dword [ebp - 0x14], 0
je 0x402edb
test byte [0x41d010], 8
je 0x402e6f
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 8]
call dbg.wine_dbgstr_wn
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.file__s_will_be_read_as_ASCII_n
mov dword [esp + 8], str.WCMD_copy
mov dword [esp], 3
call sym._wine_dbg_log_1
mov ecx, dword [sym.imp.ucrtbase.dll_towupper]
mov eax, dword [ebp - 0x14]
mov dword [eax + 0xc], 0
mov dword [ebp - 0x1c], 0
jmp 0x402bda
cmp dword [ebp - 0x14], 0
je 0x402ee7
test byte [0x41d010], 8
je 0x402ec5
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 8]
call dbg.wine_dbgstr_wn
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.file__s_will_be_read_as_binary_n
mov dword [esp + 8], str.WCMD_copy
mov dword [esp], 3
call sym._wine_dbg_log_1
mov ecx, dword [sym.imp.ucrtbase.dll_towupper]
mov eax, dword [ebp - 0x14]
mov dword [eax + 0xc], 1
mov dword [ebp - 0x1c], 1
jmp 0x402bda
mov dword [ebp - 0x1c], 0
jmp 0x402bda
mov dword [ebp - 0x1c], 1
jmp 0x402bda
cmp dword [ebp - 0x14], 0
je 0x403353
mov dword [ebp - 0x24], 1
cmp word [esi + 2], 0
je 0x4030f8
add esi, 2
mov dword [ebp - 0x2c], 1
jmp 0x402b5b
mov dword [esp + 4], 0x10
mov dword [esp], 0
call sym._xrealloc
mov edi, eax
test byte [0x41d010], 8
je 0x402f76
mov ecx, esi
call dbg.wine_dbgstr_wn
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Not_a_switch__but_probably_a_filename_list__s_n
mov dword [esp + 8], str.WCMD_copy
mov dword [esp], 3
call sym._wine_dbg_log_1
mov dword [ebp - 0x3c], ebx
mov eax, dword [ebp - 0x2c]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0xc], eax
mov dword [ebp - 0x20], edi
mov dword [edi], 0
mov edi, 0xfffffffe
nop word cs:[eax + eax]
cmp word [esi + edi + 2], 0
lea edi, [edi + 2]
jne 0x402fa0
sar edi, 1
lea eax, [edi*2 + 0x14]
add edi, 0xa
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._xrealloc
mov ebx, eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 8], ebx
mov dword [esp + 8], edi
mov dword [esp], ebx
mov dword [esp + 4], 0
call sym._memset
movzx ecx, word [esi]
test cx, cx
je 0x40304b
xor eax, eax
mov edi, dword [ebp - 0x20]
jmp 0x403012
mov word [ebx], cx
add ebx, 2
movzx ecx, word [esi + 2]
add esi, 2
test cx, cx
je 0x40304e
test eax, eax
je 0x403020
cmp cx, 0x22
jne 0x403000
jmp 0x403040
cmp cx, 0x22
je 0x403040
movzx edx, cx
cmp edx, 0x2b
je 0x40304e
cmp edx, 0x2f
jne 0x403000
jmp 0x40304e
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
jmp 0x403006
mov edi, dword [ebp - 0x20]
mov word [ebx], 0
test byte [0x41d010], 8
je 0x403084
mov ecx, dword [edi + 8]
call dbg.wine_dbgstr_wn
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Calculated_file_name__s_n
mov dword [esp + 8], str.WCMD_copy
mov dword [esp], 3
call sym._wine_dbg_log_1
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x4030c9
cmp dword [ebp - 0x2c], 0
mov ecx, dword [sym.imp.ucrtbase.dll_towupper]
je 0x403107
test byte [0x41d010], 8
je 0x4030c2
mov dword [esp + 0xc], str.Adding_to_source_file_list_to_be_concatenated_n
mov dword [esp + 8], str.WCMD_copy
mov dword [esp], 3
call sym._wine_dbg_log_1
mov ecx, dword [sym.imp.ucrtbase.dll_towupper]
mov eax, dword [ebp - 0x14]
mov dword [eax], edi
jmp 0x40311b
test byte [0x41d010], 8
je 0x4030ee
mov dword [esp + 0xc], str.Adding_as_first_source_part_n
mov dword [esp + 8], str.WCMD_copy
mov dword [esp], 3
call sym._wine_dbg_log_1
mov ebx, edi
mov ecx, dword [sym.imp.ucrtbase.dll_towupper]
jmp 0x40311b
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x2c], 1
jmp 0x402b23
mov ebx, dword [ebp - 0x10]
test ebx, ebx
jne 0x403d23
mov dword [ebp - 0x10], edi
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x3c]
movzx eax, word [esi]
mov dword [ebp - 0x2c], 0
or eax, 4
cmp eax, 0x2f
je 0x402b58
jmp 0x402b23
mov dword [esp], 0x3f2
call sym._WCMD_LoadMessage
mov dword [esp], eax
call dbg.WCMD_output_stderr
mov dword [edi], 1
jmp 0x4033bf
test ebx, ebx
je 0x403331
mov dword [ebp - 0x40], 1
cmp dword [ebp - 0x28], 0
jne 0x4031dc
mov dword [ebp - 0x40], 0
cmp dword [ebp - 0x30], 0
jne 0x4031dc
mov eax, dword [0x41874c]
mov esi, dword [eax]
lea edi, [ebp - 0x54]
mov dword [esp + 4], edi
mov dword [esp + 8], 4
mov dword [esp], str.COPYCMD
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
sub esp, 0xc
dec eax
cmp eax, 2
ja 0x4031d9
mov dword [esp], edi
mov dword [esp + 4], 0x417224
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
je 0x4031dc
mov dword [esp], edi
mov dword [esp + 4], 0x41722a
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
mov eax, 1
cmove esi, eax
mov dword [ebp - 0x40], esi
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x4033ca
test byte [0x41d010], 8
je 0x40320c
mov dword [esp + 0xc], str.Destination_supplied__processing_to_see_if_file_or_directory_n
mov dword [esp + 8], str.WCMD_copy
mov dword [esp], 3
call sym._wine_dbg_log_1
mov eax, dword [edi + 8]
lea ecx, [ebp - 0x8bc]
mov dword [esp + 0xc], ecx
lea esi, [ebp - 0x66c]
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], 0x104
call dbg.WCMD_get_fullpath
test eax, eax
je 0x4033bf
test byte [0x41d010], 8
je 0x40326f
lea ecx, [ebp - 0x66c]
call dbg.wine_dbgstr_wn
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Full_dest_name_is__s_n
mov dword [esp + 8], str.WCMD_copy
mov dword [esp], 3
call sym._wine_dbg_log_1
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
sub esp, 4
movzx ecx, word [ebp - 0x66c]
test cx, cx
je 0x4032a0
lea edx, [ebp - 0x66a]
nop dword [eax]
cmp word [edx], 0
lea edx, [edx + 2]
jne 0x403290
cmp word [edx - 4], 0x5c
je 0x4032b2
cmp eax, 0xffffffff
je 0x403488
and eax, 0x10
je 0x403488
test cx, cx
je 0x4032d0
lea eax, [ebp - 0x66a]
nop dword [eax]
cmp word [eax], 0
lea eax, [eax + 2]
jne 0x4032c0
cmp word [eax - 4], 0x5c
je 0x4032e0
cmp word [esi], 0
lea esi, [esi + 2]
jne 0x4032d0
mov dword [esi - 2], 0x5c
test byte [0x41d010], 8
je 0x403314
lea ecx, [ebp - 0x66c]
call dbg.wine_dbgstr_wn
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Directory__so_full_name_is_now__s_n
mov dword [esp + 8], str.WCMD_copy
mov dword [esp], 3
call sym._wine_dbg_log_1
mov eax, 1
cmp dword [ebp - 0x24], 0
jne 0x403494
jmp 0x40345c
mov dword [ebp - 0x10], 0
jmp 0x403337
mov edi, dword [0x4162c0]
mov dword [esp], 0x3f3
call sym._WCMD_LoadMessage
mov dword [esp], eax
call dbg.WCMD_output_stderr
mov dword [edi], 1
jmp 0x4033a5
mov esi, ebx
mov dword [esp], 0x3f3
call sym._WCMD_LoadMessage
mov dword [esp], eax
call dbg.WCMD_output_stderr
mov edi, dword [0x4162c0]
mov dword [edi], 1
mov ebx, dword [ebp - 0x10]
test esi, esi
je 0x4033a8
mov dword [ebp - 0x10], ebx
mov edi, esi
mov ebx, dword [sym.imp.ucrtbase.dll_free]
nop word [eax + eax]
mov esi, dword [edi]
mov eax, dword [edi + 8]
mov dword [esp], eax
call ebx
mov dword [esp], edi
call ebx
mov edi, esi
test esi, esi
jne 0x403390
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4033bf
mov eax, dword [ebx + 8]
mov dword [esp], eax
mov esi, dword [sym.imp.ucrtbase.dll_free]
call esi
mov dword [esp], ebx
call esi
add esp, 0x8d0
pop esi
pop edi
pop ebx
pop ebp
ret
test byte [0x41d010], 8
je 0x4033ef
mov dword [esp + 0xc], str.No_destination_supplied__so_need_to_calculate_it_n
mov dword [esp + 8], str.WCMD_copy
mov dword [esp], 3
call sym._wine_dbg_log_1
mov dword [ebp - 0x66c], 0x2e
lea eax, [ebp - 0x66a]
mov esi, dword [ebp - 0x1c]
nop word cs:[eax + eax]
cmp word [eax], 0
lea eax, [eax + 2]
jne 0x403410
mov dword [eax - 2], 0x5c
mov dword [esp + 4], 0x10
mov dword [esp], 0
call sym._xrealloc
test eax, eax
je 0x40347f
mov edi, eax
mov dword [eax + 4], 0
mov dword [eax + 0xc], esi
mov dword [eax], 0
mov dword [eax + 8], 0
mov eax, 1
cmp dword [ebp - 0x24], 0
jne 0x403497
mov cl, 1
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x38], 0
jmp 0x4034c7
mov esi, ebx
xor ebx, ebx
jmp 0x403378
xor eax, eax
cmp dword [ebp - 0x24], 0
je 0x403d8c
mov esi, dword [edi + 0xc]
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], 0
mov cl, 1
mov dword [ebp - 0x20], ecx
cmp esi, 0xffffffff
jne 0x4034bd
mov dword [edi + 0xc], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x10], edi
mov eax, dword [edi + 8]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
xor edi, edi
nop dword [eax + eax]
cmp word [ebp + edi - 0x66c], 0
lea edi, [edi + 2]
jne 0x4034e0
mov dword [esp + 4], edi
mov dword [esp], 0
call sym._xrealloc
mov esi, eax
mov dword [esp + 8], edi
lea eax, [ebp - 0x66c]
mov dword [esp + 4], eax
mov dword [esp], esi
call sym._memcpy
mov edi, dword [ebp - 0x10]
mov dword [edi + 8], esi
test byte [0x41d010], 8
je 0x40355a
lea ecx, [ebp - 0x66c]
call dbg.wine_dbgstr_wn
mov ecx, dword [ebp - 0x18]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Resolved_destination_is__s__calc_later__d__n
mov dword [esp + 8], str.WCMD_copy
mov dword [esp], 3
call sym._wine_dbg_log_1
mov esi, dword [edi + 8]
mov dword [esp], esi
mov dword [esp + 8], 4
mov dword [esp + 4], str.._
call dword [sym.imp.ucrtbase.dll_wcsncmp]
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x40359f
test byte [0x41d010], 8
je 0x40359f
mov dword [esp + 0xc], str.Destination_is_a_device_n
mov dword [esp + 8], str.WCMD_copy
mov dword [esp], 3
call sym._wine_dbg_log_1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x3c], ebx
mov ecx, ebx
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp - 0x18]
jmp 0x4035dc
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
test ecx, ecx
je 0x403d0d
cmp dword [ecx + 0xc], 0xffffffff
jne 0x4035e8
mov eax, dword [ebp - 0x34]
mov dword [ecx + 0xc], eax
mov dword [ebp - 0x28], ecx
mov eax, dword [ecx + 8]
lea ecx, [ebp - 0x44]
mov dword [esp + 0xc], ecx
lea ecx, [ebp - 0x25c]
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [esp + 4], 0x104
call dbg.WCMD_get_fullpath
test eax, eax
je 0x4033bf
mov dword [ebp - 0x18], edi
test byte [0x41d010], 8
je 0x40364e
lea ecx, [ebp - 0x25c]
call dbg.wine_dbgstr_wn
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Full_src_name_is__s_n
mov dword [esp + 8], str.WCMD_copy
mov dword [esp], 3
call sym._wine_dbg_log_1
lea eax, [ebp - 0x25c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
sub esp, 4
mov edi, eax
cmp word [ebp - 0x25c], 0
je 0x4036c0
lea eax, [ebp - 0x25a]
nop word cs:[eax + eax]
cmp word [eax], 0
lea eax, [eax + 2]
jne 0x403680
cmp word [eax - 4], 0x5c
jne 0x4036c0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + 8]
nop word cs:[eax + eax]
cmp word [eax], 0
lea eax, [eax + 2]
jne 0x4036a0
mov dword [eax - 2], 0x2a
jmp 0x403716
lea eax, [ebp - 0x25c]
mov dword [esp], eax
mov dword [esp + 4], 0x4172e4
call dword [sym.imp.ucrtbase.dll_wcspbrk]
test eax, eax
jne 0x403776
cmp edi, 0xffffffff
je 0x403776
and edi, 0x10
je 0x403776
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + 8]
nop word [eax + eax]
cmp word [eax], 0
lea eax, [eax + 2]
jne 0x403700
mov dword [eax - 2], 0x2a005c
mov word [eax + 2], 0
mov eax, dword [ecx + 8]
lea ecx, [ebp - 0x44]
mov dword [esp + 0xc], ecx
lea ecx, [ebp - 0x25c]
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [esp + 4], 0x104
call dbg.WCMD_get_fullpath
test eax, eax
je 0x4033bf
test byte [0x41d010], 8
je 0x403776
lea ecx, [ebp - 0x25c]
call dbg.wine_dbgstr_wn
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Directory__so_full_name_is_now__s_n
mov dword [esp + 8], str.WCMD_copy
mov dword [esp], 3
call sym._wine_dbg_log_1
test byte [0x41d010], 8
je 0x4037b1
lea ecx, [ebp - 0x25c]
call dbg.wine_dbgstr_wn
mov ecx, dword [ebp - 0x38]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Copy_source__calculated_:_path:__s__Concats:__d__n
mov dword [esp + 8], str.WCMD_copy
mov dword [esp], 3
call sym._wine_dbg_log_1
lea eax, [ebp - 0x25c]
mov dword [esp], eax
mov dword [esp + 8], 4
mov dword [esp + 4], str.._
call dword [sym.imp.ucrtbase.dll_wcsncmp]
movzx ecx, byte [0x41d010]
mov dword [ebp - 0x30], eax
test eax, eax
mov edi, dword [ebp - 0x18]
je 0x403870
test cl, 8
je 0x403815
lea ecx, [ebp - 0x25c]
call dbg.wine_dbgstr_wn
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Searching_for:__s_n
mov dword [esp + 8], str.WCMD_copy
mov dword [esp], 3
call sym._wine_dbg_log_1
lea eax, [ebp - 0x8bc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x25c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
sub esp, 8
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
lea eax, [ebp - 0x890]
cmovne ebx, eax
jne 0x4038eb
cmp dword [ebp - 0x14], 0
setne al
mov dword [ebp - 0x1c], 0xffffffff
test byte [ebp - 0x20], al
je 0x403cf8
mov dword [ebp - 0x14], 1
jmp 0x4035cf
test cl, 8
jne 0x40387d
lea ebx, [ebp - 0x254]
jmp 0x4038eb
mov dword [esp + 0xc], str.Source_is_a_device_n
mov dword [esp + 8], str.WCMD_copy
mov dword [esp], 3
call sym._wine_dbg_log_1
lea ebx, [ebp - 0x254]
jmp 0x4038eb
call dbg.WCMD_print_error
mov eax, dword [0x4162c0]
mov dword [eax], 1
nop word cs:[eax + eax]
cmp dword [ebp - 0x30], 0
je 0x4035cf
lea eax, [ebp - 0x8bc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindNextFileW]
sub esp, 8
test eax, eax
je 0x4035c0
cmp dword [ebp - 0x30], 0
je 0x4038fe
test byte [ebp - 0x8bc], 0x10
jne 0x403bd0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
xor ecx, ecx
nop word cs:[eax + eax]
movzx edx, word [eax + ecx]
mov word [ebp + ecx - 0x464], dx
add ecx, 2
test dx, dx
jne 0x403910
mov eax, esi
or eax, edi
je 0x403950
lea eax, [ebp - 0x466]
cmp word [eax + 2], 0
lea eax, [eax + 2]
jne 0x403930
xor ecx, ecx
nop dword [eax]
movzx edx, word [ebx + ecx]
mov word [eax + ecx], dx
add ecx, 2
test dx, dx
jne 0x403940
mov dword [ebp - 0x18], edi
mov edi, esi
cmp dword [ebp - 0x30], 0
je 0x403970
xor eax, eax
mov ecx, dword [ebp - 0x44]
movzx edx, word [ebx + eax]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x403960
cmp dword [ebp - 0x40], 0
sete al
cmp dword [ebp - 0x48], 0
sete cl
cmp dword [ebp - 0x14], 0
setne dl
or cl, al
and dl, byte [ebp - 0x20]
or cl, dl
movzx esi, cl
test byte [0x41d010], 8
je 0x403a40
lea ecx, [ebp - 0x25c]
call dbg.wine_dbgstr_wn
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Copying_from_:__s_n
mov dword [esp + 8], str.WCMD_copy
mov dword [esp], 3
call sym._wine_dbg_log_1
test byte [0x41d010], 8
je 0x403a40
lea ecx, [ebp - 0x464]
call dbg.wine_dbgstr_wn
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Copying_to_:__s_n
mov dword [esp + 8], str.WCMD_copy
mov dword [esp], 3
call sym._wine_dbg_log_1
test byte [0x41d010], 8
je 0x403a40
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0xc]
mov edx, dword [ebp - 0x40]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Flags:_srcbinary__d___dstbinary__d___over__d___prompt__d__n
mov dword [esp + 8], str.WCMD_copy
mov dword [esp], 3
call sym._wine_dbg_log_1
nop
cmp dword [ebp - 0x14], 0
setne al
or al, byte [ebp - 0x24]
je 0x403a50
xor eax, eax
jmp 0x403a66
lea ecx, [ebp - 0x25c]
lea edx, [ebp - 0x464]
call dbg.WCMD_IsSameFile
test eax, eax
setne al
mov dword [ebp - 0x2c], 1
test al, al
jne 0x403ae0
mov eax, esi
test al, al
jne 0x403ae0
lea eax, [ebp - 0x464]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
mov esi, edi
mov edi, dword [ebp - 0x18]
je 0x403ae5
mov dword [esp], 0x3ee
call sym._WCMD_LoadMessage
lea ecx, [ebp - 0x464]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dbg.WCMD_format_string
mov edi, esi
mov esi, eax
mov ecx, eax
xor edx, edx
call dbg.WCMD_ask_confirm
mov dword [ebp - 0x2c], eax
mov dword [esp], esi
mov esi, edi
mov edi, dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_LocalFree]
sub esp, 4
jmp 0x403ae5
mov esi, edi
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x403b80
cmp dword [ebp - 0x2c], 0
je 0x403b80
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
xor edi, edi
nop dword [eax + eax]
cmp word [ebp + edi - 0x464], 0
lea edi, [edi + 2]
jne 0x403b10
mov dword [esp + 4], edi
mov dword [esp], 0
call sym._xrealloc
mov esi, eax
mov dword [esp + 8], edi
lea edi, [ebp - 0x464]
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._memcpy
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], esi
xor esi, esi
test byte [0x41d010], 8
je 0x403b7e
mov ecx, edi
call dbg.wine_dbgstr_wn
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Final_resolved_destination_name_:__s_n
mov dword [esp + 8], str.WCMD_copy
mov dword [esp], 3
call sym._wine_dbg_log_1
xor edi, edi
cmp dword [ebp - 0x2c], 0
je 0x4038c0
cmp byte [ebp - 0x20], 0
je 0x403c00
lea ecx, [ebp - 0x25c]
lea edx, [ebp - 0x464]
call dbg.WCMD_IsSameFile
test eax, eax
jne 0x403c75
cmp dword [ebp - 0x14], 0
je 0x403c00
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0xc], 0
je 0x403ce4
mov dword [esp + 4], 1
jmp 0x403c55
test byte [0x41d010], 8
je 0x4038ca
mov dword [esp + 0xc], str.Skipping_directories_n
mov dword [esp + 8], str.WCMD_copy
mov dword [esp], 3
call sym._wine_dbg_log_1
jmp 0x4038ca
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0xc], 0
je 0x403c3c
cmp dword [ebp - 0x30], 0
je 0x403c4d
lea eax, [ebp - 0x464]
mov dword [esp + 4], eax
lea eax, [ebp - 0x25c]
mov dword [esp], eax
mov dword [esp + 8], 0
call dword [sym.imp.kernel32.dll_CopyFileW]
sub esp, 0xc
test eax, eax
jne 0x403c75
jmp 0x4038a1
mov dword [esp + 4], 0
mov dword [esp], 1
jmp 0x403c5c
mov dword [esp + 4], 0
mov dword [esp], 0
lea ecx, [ebp - 0x25c]
lea edx, [ebp - 0x464]
call dbg.WCMD_ManualCopy
test eax, eax
je 0x4038a1
test byte [0x41d010], 8
je 0x403c9a
mov dword [esp + 0xc], str.Copied_successfully_n
mov dword [esp + 8], str.WCMD_copy
mov dword [esp], 3
call sym._wine_dbg_log_1
mov ecx, dword [ebp - 0x20]
test cl, cl
mov eax, dword [ebp - 0x14]
mov edx, 1
cmovne eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xc], 0
setne al
or al, cl
jne 0x4038c0
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0xc], 0
jne 0x4038c0
lea ecx, [ebp - 0x464]
call dbg.WCMD_AppendEOF
test eax, eax
jne 0x4038c0
jmp 0x4038a1
mov dword [esp + 4], 1
mov dword [esp], 1
jmp 0x403c5c
call dbg.WCMD_print_error
mov eax, dword [0x4162c0]
mov dword [eax], 1
jmp 0x4035cf
mov edi, dword [0x4162c0]
cmp dword [edi], 0
je 0x403d4a
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x3c]
jmp 0x403378
mov dword [esp], 0x3f3
call sym._WCMD_LoadMessage
mov dword [esp], eax
call dbg.WCMD_output_stderr
mov eax, dword [0x4162c0]
mov dword [eax], 1
mov esi, dword [ebp - 0x3c]
jmp 0x40337c
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xc], 0
setne al
mov ecx, dword [ebp - 0x20]
xor cl, 1
or cl, al
mov esi, dword [ebp - 0x3c]
jne 0x403375
cmp dword [ebp - 0x14], 0
je 0x403375
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
call dbg.WCMD_AppendEOF
test eax, eax
jne 0x403375
call dbg.WCMD_print_error
jmp 0x40336f
mov eax, dword [ebx + 8]
mov dword [esp], eax
mov dword [esp + 4], 0x4172e4
call dword [sym.imp.ucrtbase.dll_wcspbrk]
mov ecx, dword [edi + 0xc]
test eax, eax
je 0x403dd6
mov dword [ebp - 0x38], 1
mov al, 1
mov dword [ebp - 0x20], eax
xor eax, eax
cmp ecx, 0xffffffff
jne 0x403dc3
mov dword [edi + 0xc], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x34], 0
jmp 0x4034c0
mov al, 1
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 1
xor eax, eax
cmp ecx, 0xffffffff
jne 0x403df2
mov dword [edi + 0xc], 1
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
jmp 0x403476