Function at 0x1000e9f0
Capabilities:
Check if file exists
Copy file
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x688
mov esi, dword [ebp + 0xc]
cmp word [eax], 0
mov dword [ebp - 0x678], edx
mov word [ebp - 0x672], si
je 0x1000eef5
cmp word [ecx], 0
mov ebx, ecx
je 0x1000eef5
mov edx, dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov dword [esp], ecx
mov edi, eax
mov dword [ebp - 0x670], edx
call edx
mov edx, dword [ebp - 0x670]
sub esp, 4
cmp eax, 0xffffffff
je 0x1000ea4b
test al, 0x10
jne 0x1000eae0
mov dword [esp], edi
call edx
sub esp, 4
cmp eax, 0xffffffff
je 0x1000eaa0
test al, 0x10
jne 0x1000ee94
xor eax, eax
test si, si
mov dword [esp + 4], ebx
sete al
mov dword [esp], edi
xor esi, esi
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_CopyFileW]
sub esp, 0xc
test eax, eax
je 0x1000eaa0
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x670]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
nop
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
cmp eax, 5
je 0x1000ee8a
ja 0x1000ee2d
cmp eax, 2
je 0x1000ee94
mov esi, 0x800a004c
cmp eax, 3
je 0x1000ea82
test byte [0x10012028], 1
jne 0x1000ee9e
mov esi, 0x80004005
jmp 0x1000ea82
lea eax, [ebp - 0x25c]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov dword [ebp - 0x670], eax
sub esp, 8
cmp eax, 0xffffffff
je 0x1000ee94
mov esi, dword [ebp - 0x678]
sub esi, 1
jns 0x1000ecc1
lea esi, [esi]
mov dword [ebp - 0x678], 0
mov eax, dword [ebp + 8]
lea edi, [eax + 1]
cmp edi, 0x103
ja 0x1000ee73
mov eax, dword [ebp + 8]
mov dword [esp + 4], ebx
lea esi, [eax + eax]
lea eax, [ebp - 0x464]
mov dword [esp + 8], esi
mov dword [esp], eax
call sym._memcpy
mov eax, dword [ebp + 8]
movzx eax, word [ebp + eax*2 - 0x466]
cmp ax, 0x5c
je 0x1000eb7d
cmp ax, 0x2f
je 0x1000eb7d
mov eax, dword [ebp + 8]
mov edx, 0x5c
mov dword [ebp + 8], edi
add esi, 2
mov word [ebp + eax*2 - 0x464], dx
mov eax, dword [ebp - 0x678]
lea ebx, [ebp + eax*2 - 0x66c]
lea eax, [ebp - 0x464]
add eax, esi
mov esi, 0x800a0035
mov dword [ebp - 0x67c], eax
jmp 0x1000ebc4
lea eax, [ebp - 0x25c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x670]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindNextFileW]
sub esp, 8
test eax, eax
je 0x1000ee57
mov edx, dword [ebp - 0x25c]
and edx, 0x50
jne 0x1000eba0
cmp word [ebp - 0x230], 0
je 0x1000ee50
lea edx, [ebp - 0x230]
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x1000ebe8
sub eax, edx
mov edx, eax
sar edx, 1
mov edi, dword [ebp - 0x678]
lea ecx, [edi + edx + 1]
cmp ecx, 0x103
ja 0x1000ee73
mov edi, dword [ebp + 8]
lea edx, [edx + edi + 1]
cmp edx, 0x103
ja 0x1000ee73
add eax, 2
lea edx, [ebp - 0x230]
cmp eax, 4
jae 0x1000ed78
test eax, eax
je 0x1000ec6b
movzx ecx, byte [ebp - 0x230]
mov byte [ebx], cl
test al, 2
jne 0x1000eee3
cmp eax, 4
jae 0x1000eda9
test eax, eax
je 0x1000ec6b
movzx edx, byte [ebp - 0x230]
mov edi, dword [ebp - 0x67c]
mov byte [edi], dl
test al, 2
jne 0x1000eecb
test byte [0x10012028], 8
jne 0x1000ede4
xor eax, eax
cmp word [ebp - 0x672], 0
sete al
mov dword [esp + 8], eax
lea eax, [ebp - 0x464]
mov dword [esp + 4], eax
lea eax, [ebp - 0x66c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CopyFileW]
sub esp, 0xc
test eax, eax
je 0x1000ea8c
xor esi, esi
jmp 0x1000eba0
sub esi, 1
jb 0x1000eb18
movzx eax, word [edi + esi*2]
cmp ax, 0x2f
je 0x1000ecb8
cmp ax, 0x5c
je 0x1000ecb8
lea esi, [esi]
movzx eax, word [edi + esi*2]
cmp ax, 0x2f
je 0x1000ed01
cmp ax, 0x5c
je 0x1000ed01
sub esi, 1
jae 0x1000ecd8
jmp 0x1000eb18
sub esi, 1
jb 0x1000eb18
movzx eax, word [edi + esi*2]
cmp ax, 0x2f
je 0x1000ecf8
cmp ax, 0x5c
je 0x1000ecf8
cmp word [edi + esi*2], 0x3a
lea eax, [esi + esi]
jne 0x1000ed24
cmp esi, 1
je 0x1000eeff
lea ecx, [esi + 1]
add esi, 2
mov dword [ebp - 0x678], esi
cmp esi, 0x103
ja 0x1000ee73
add eax, 2
lea edx, [ebp - 0x66c]
mov dword [ebp - 0x67c], ecx
mov esi, 0x5c
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], edx
call sym._memcpy
mov ecx, dword [ebp - 0x67c]
mov word [ebp + ecx*2 - 0x66c], si
jmp 0x1000eb22
mov ecx, dword [ebp - 0x230]
lea edi, [ebx + 4]
mov esi, edx
and edi, 0xfffffffc
mov dword [ebx], ecx
mov ecx, dword [ebp + eax - 0x234]
mov dword [ebx + eax - 4], ecx
mov ecx, ebx
sub ecx, edi
sub esi, ecx
add ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
cmp eax, 4
jb 0x1000ec50
mov edi, dword [ebp - 0x67c]
mov ecx, dword [ebp - 0x230]
mov esi, edx
mov dword [edi], ecx
mov ecx, dword [ebp + eax - 0x234]
mov dword [edi + eax - 4], ecx
mov ecx, edi
lea edi, [edi + 4]
and edi, 0xfffffffc
sub ecx, edi
sub esi, ecx
add ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
test byte [0x10012028], 8
je 0x1000ec78
lea eax, [ebp - 0x464]
call sym._wine_dbgstr_wn.constprop.0_1
mov esi, eax
lea eax, [ebp - 0x66c]
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.copying__s_to__s_n
mov dword [esp + 8], str.copy_file
mov dword [esp + 4], 0x10012028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x1000ec78
cmp eax, 0x50
je 0x1000ee3d
cmp eax, 0xb7
jne 0x1000eacb
mov esi, 0x800a003a
jmp 0x1000ea82
xor eax, eax
jmp 0x1000ebf7
mov eax, dword [ebp - 0x670]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
mov eax, esi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x670]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
jmp 0x1000ead8
mov esi, 0x800a0046
jmp 0x1000ea82
mov esi, 0x800a0035
jmp 0x1000ea82
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Unsupported_error_code:__ld_n
mov dword [esp + 8], str.create_error
mov dword [esp + 4], 0x10012028
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x1000ead8
movzx edx, word [ebp + eax - 0x232]
mov edi, dword [ebp - 0x67c]
mov word [edi + eax - 2], dx
jmp 0x1000ec6b
movzx ecx, word [ebp + eax - 0x232]
mov word [ebx + eax - 2], cx
jmp 0x1000ec47
mov esi, 0x80070057
jmp 0x1000ea82
mov dword [ebp - 0x678], 4
mov eax, 6
mov ecx, 3
jmp 0x1000ed3f