Function at 0x1000f780
Capabilities:
Check if file exists
Create directory
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x6a8
mov eax, dword [ebp + 0xc]
cmp word [ebx], 0
mov dword [ebp - 0x69c], eax
mov word [ebp - 0x692], ax
je 0x1000ff5a
cmp word [ecx], 0
mov esi, ecx
je 0x1000ff5a
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp - 0x68c], eax
cmp eax, 0x103
ja 0x1000fcb7
lea ecx, [eax + eax]
mov dword [ebp - 0x690], ecx
cmp ecx, 4
jae 0x1000f888
test ecx, ecx
je 0x1000f7f3
movzx eax, byte [esi]
mov byte [ebp - 0x464], al
test cl, 2
jne 0x1000ff48
mov eax, dword [ebp + 8]
movzx eax, word [ebp + eax*2 - 0x466]
cmp ax, 0x5c
je 0x1000f838
cmp ax, 0x2f
je 0x1000f838
mov dword [ebp - 0x670], edx
mov esi, dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov dword [esp], ebx
call esi
mov edx, dword [ebp - 0x670]
sub esp, 4
cmp eax, 0xffffffff
je 0x1000f838
test al, 0x10
jne 0x1000fcc8
lea esi, [esi]
sub edx, 1
mov edi, edx
jns 0x1000f84d
jmp 0x1000f875
sub edi, 1
jb 0x1000f875
movzx eax, word [ebx + edi*2]
cmp ax, 0x2f
je 0x1000f848
cmp ax, 0x5c
je 0x1000f848
lea esi, [esi]
movzx eax, word [ebx + edi*2]
cmp ax, 0x2f
je 0x1000f8b5
cmp ax, 0x5c
je 0x1000f8b5
sub edi, 1
jae 0x1000f860
mov dword [ebp - 0x688], 0
jmp 0x1000f919
mov edi, dword [ebp - 0x690]
mov eax, dword [esi + edi - 4]
lea ecx, [edi - 1]
shr ecx, 2
mov dword [ebp + edi - 0x468], eax
lea edi, [ebp - 0x464]
rep movsd dword es:[edi], dword [esi]
jmp 0x1000f7f3
sub edi, 1
jb 0x1000f875
movzx eax, word [ebx + edi*2]
cmp ax, 0x2f
je 0x1000f8b0
cmp ax, 0x5c
je 0x1000f8b0
cmp word [ebx + edi*2], 0x3a
lea eax, [edi + edi]
jne 0x1000f8d8
cmp edi, 1
je 0x1000fdca
lea edx, [edi + 3]
lea esi, [edi + 1]
cmp edx, 0x103
ja 0x1000fcb7
lea edx, [ebp - 0x66c]
add eax, 2
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp], edx
call sym._memcpy
lea eax, [edi + 2]
mov dword [ebp - 0x688], eax
mov ecx, 0x5c
mov word [ebp + esi*2 - 0x66c], cx
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x680], eax
mov dword [esp], ebx
xor ebx, ebx
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov dword [ebp - 0x67c], eax
sub esp, 8
cmp dword [ebp - 0x67c], 0xffffffff
je 0x1000fd96
mov eax, dword [ebp + 8]
mov edi, 0x5c
xor edx, edx
mov word [ebp + eax*2 - 0x464], di
mov eax, dword [ebp - 0x68c]
mov word [ebp + eax*2 - 0x464], dx
mov edx, dword [ebp - 0x688]
lea eax, [ebp - 0x66c]
mov dword [ebp - 0x684], eax
lea eax, [eax + edx*2]
mov dword [ebp - 0x698], eax
jmp 0x1000f9d4
movzx eax, word [ebp - 0x22e]
test ax, ax
je 0x1000f9b0
cmp ax, 0x2e
jne 0x1000f9f3
cmp word [ebp - 0x22c], 0
jne 0x1000f9f3
lea esi, [esi]
mov eax, dword [ebp - 0x680]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x67c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindNextFileW]
sub esp, 8
test eax, eax
je 0x1000fc7f
test byte [ebp - 0x25c], 0x10
je 0x1000f9b0
movzx eax, word [ebp - 0x230]
cmp ax, 0x2e
je 0x1000f990
test ax, ax
je 0x1000fc60
lea edx, [ebp - 0x230]
mov eax, edx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x1000fa00
sub eax, edx
mov ebx, dword [ebp - 0x68c]
mov edx, eax
sar edx, 1
add ebx, edx
mov dword [ebp - 0x670], ebx
cmp ebx, 0x103
ja 0x1000fca5
mov esi, dword [ebp - 0x688]
add edx, esi
mov dword [ebp - 0x678], edx
mov ebx, dword [ebp - 0x678]
lea esi, [ebx + 2]
mov dword [ebp - 0x674], esi
cmp esi, 0x103
ja 0x1000fca5
mov edx, dword [ebp - 0x690]
lea ecx, [ebp - 0x464]
add ecx, edx
lea edx, [ebp - 0x230]
cmp eax, 4
jae 0x1000fba8
test eax, eax
je 0x1000fa84
movzx ebx, byte [ebp - 0x230]
mov byte [ecx], bl
test al, 2
jne 0x1000fdb8
mov ecx, dword [ebp - 0x670]
xor esi, esi
mov word [ebp + ecx*2 - 0x464], si
cmp eax, 4
jae 0x1000fbd8
test eax, eax
je 0x1000fab8
movzx edx, byte [ebp - 0x230]
mov ebx, dword [ebp - 0x698]
mov byte [ebx], dl
test al, 2
jne 0x1000fda0
mov eax, dword [ebp - 0x678]
mov edx, 0x5c
mov ecx, 0x2a
xor ebx, ebx
mov word [ebp + eax*2 - 0x66c], dx
mov word [ebp + eax*2 - 0x66a], cx
mov eax, dword [ebp - 0x674]
mov word [ebp + eax*2 - 0x66c], bx
test byte [0x10012028], 8
jne 0x1000fc10
lea eax, [ebp - 0x464]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
je 0x1000fd38
movsx ebx, word [ebp - 0x692]
lea ecx, [ebp - 0x464]
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x670]
mov dword [esp], eax
mov edx, dword [ebp - 0x674]
mov eax, dword [ebp - 0x684]
call sym._copy_file
test eax, eax
js 0x1000fb80
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x670]
lea ecx, [ebp - 0x464]
mov dword [esp], eax
mov edx, dword [ebp - 0x674]
mov eax, dword [ebp - 0x684]
call sym._copy_folder
test eax, eax
jns 0x1000fb75
cmp eax, 0x800a004c
jne 0x1000fb87
mov ebx, 1
jmp 0x1000f9b0
cmp eax, 0x800a0035
je 0x1000fb46
mov edi, eax
mov eax, dword [ebp - 0x67c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [ebp - 0x230]
lea edi, [ecx + 4]
and edi, 0xfffffffc
mov dword [ecx], esi
mov esi, dword [ebp + eax - 0x234]
mov dword [ecx + eax - 4], esi
sub ecx, edi
mov esi, edx
sub esi, ecx
add ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x1000fa84
mov esi, dword [ebp - 0x698]
mov ecx, dword [ebp - 0x230]
mov dword [esi], ecx
mov ecx, dword [ebp + eax - 0x234]
lea edi, [esi + 4]
and edi, 0xfffffffc
mov dword [esi + eax - 4], ecx
mov ecx, esi
sub ecx, edi
sub edx, ecx
add ecx, eax
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x1000fab8
lea eax, [ebp - 0x464]
call sym._wine_dbgstr_wn.constprop.0_1
mov ebx, eax
mov eax, dword [ebp - 0x684]
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.copying__s_to__s_n
mov dword [esp + 8], str.copy_folder
mov dword [esp + 4], 0x10012028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x1000faf5
mov eax, dword [ebp - 0x688]
mov dword [ebp - 0x678], eax
mov eax, dword [ebp - 0x68c]
mov dword [ebp - 0x670], eax
xor eax, eax
jmp 0x1000fa37
mov edi, eax
mov eax, dword [ebp - 0x67c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
test ebx, ebx
je 0x1000fd96
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x67c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
mov edi, 0x80004005
jmp 0x1000fb9b
lea eax, [ebp - 0x464]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
mov edx, dword [ebp - 0x670]
sub esp, 8
test eax, eax
jne 0x1000fdf1
cmp word [ebp - 0x69c], 0
je 0x1000fd67
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0xb7
jne 0x1000fd67
lea eax, [ebp - 0x464]
mov dword [esp], eax
call esi
sub esp, 4
cmp eax, 0xffffffff
je 0x1000fd2a
test al, 0x10
mov edx, dword [ebp - 0x670]
jne 0x1000fdf1
mov edi, 0x800a003a
jmp 0x1000fb9b
cmp word [ebp - 0x69c], 0
je 0x1000fd55
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0xb7
je 0x1000ff11
mov eax, dword [ebp - 0x67c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
cmp eax, 5
je 0x1000ff07
ja 0x1000feb9
mov edi, 0x800a0035
cmp eax, 2
je 0x1000fb9b
cmp eax, 3
jne 0x1000fecd
mov edi, 0x800a004c
jmp 0x1000fb9b
movzx edx, word [ebp + eax - 0x232]
mov ebx, dword [ebp - 0x698]
mov word [ebx + eax - 2], dx
jmp 0x1000fab8
movzx esi, word [ebp + eax - 0x232]
mov word [ecx + eax - 2], si
jmp 0x1000fa84
mov eax, dword [ebx]
mov esi, 3
mov dword [ebp - 0x688], 4
mov dword [ebp - 0x66c], eax
movzx eax, word [ebx + 4]
mov word [ebp - 0x668], ax
jmp 0x1000f90c
lea esi, [edx + 2]
cmp esi, 0x103
ja 0x1000fcb7
lea edi, [ebp - 0x66c]
lea eax, [edx + edx]
mov dword [ebp - 0x670], edx
mov dword [ebp - 0x684], edi
mov dword [esp + 4], ebx
mov ebx, 0x5c
mov dword [esp + 8], eax
mov dword [esp], edi
call sym._memcpy
mov edx, dword [ebp - 0x670]
xor ecx, ecx
mov word [ebp + edx*2 - 0x66c], bx
lea eax, [edx + 1]
mov edx, 0x2a
mov word [ebp + eax*2 - 0x66c], dx
mov edx, esi
mov dword [ebp - 0x688], eax
movsx eax, word [ebp - 0x69c]
mov word [ebp + esi*2 - 0x66c], cx
lea ecx, [ebp - 0x464]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, edi
call sym._copy_file
test eax, eax
jns 0x1000fe87
cmp eax, 0x800a0035
jne 0x1000fd67
lea eax, [ebp - 0x25c]
mov ebx, 1
mov dword [ebp - 0x680], eax
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x684]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov dword [ebp - 0x67c], eax
sub esp, 8
jmp 0x1000f93d
cmp eax, 0x50
je 0x1000fd2a
cmp eax, 0xb7
je 0x1000fd2a
test byte [0x10012028], 1
je 0x1000fcb7
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 0x1000fcb7
mov edi, 0x800a0046
jmp 0x1000fb9b
lea eax, [ebp - 0x464]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x1000ff30
test al, 0x10
jne 0x1000fd55
mov eax, dword [ebp - 0x67c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
push eax
jmp 0x1000fd2a
movzx eax, word [esi + ecx - 2]
mov word [ebp + ecx - 0x466], ax
jmp 0x1000f7f3
mov edi, 0x80070057
jmp 0x1000fb9b