Function at 0x625cf980
Capabilities:
Check if file exists
Copy file
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, 0x6bc
mov eax, dword [ebp + 0xc]
cmp word [ebx], 0
mov dword [ebp - 0x6a0], eax
mov word [ebp - 0x68e], ax
je 0x625d0286
cmp word [ecx], 0
mov esi, ecx
je 0x625d0286
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp - 0x68c], eax
cmp eax, 0x103
ja 0x625d00d2
mov eax, dword [ebp - 0x68c]
lea ecx, [eax + eax]
mov dword [ebp - 0x688], ecx
cmp ecx, 4
jae 0x625cfa70
test ecx, ecx
je 0x625cf9f7
movzx eax, byte [esi]
mov byte [ebp - 0x470], al
test cl, 2
jne 0x625d0274
mov eax, dword [ebp + 8]
movzx eax, word [ebp + eax*2 - 0x472]
cmp ax, 0x5c
je 0x625cfa38
cmp ax, 0x2f
je 0x625cfa38
mov dword [ebp - 0x67c], edx
mov esi, dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov dword [esp], ebx
call esi
mov edx, dword [ebp - 0x67c]
sub esp, 4
cmp eax, 0xffffffff
je 0x625cfa38
test al, 0x10
jne 0x625cff5a
lea esi, [esi]
mov eax, edx
dec eax
jns 0x625cfa45
jmp 0x625cfa5a
sub eax, 1
jb 0x625cfa5a
movzx edx, word [ebx + eax*2]
cmp dx, 0x2f
je 0x625cfa40
cmp dx, 0x5c
jne 0x625cfa9e
sub eax, 1
jae 0x625cfa45
mov dword [ebp - 0x694], 0
jmp 0x625cfb10
mov edi, dword [ebp - 0x688]
mov eax, dword [esi + edi - 4]
lea ecx, [edi - 1]
shr ecx, 2
mov dword [ebp + edi - 0x474], eax
lea edi, [ebp - 0x470]
rep movsd dword es:[edi], dword [esi]
jmp 0x625cf9f7
cmp dx, 0x5c
je 0x625cfab9
sub eax, 1
jb 0x625cfa5a
movzx edx, word [ebx + eax*2]
cmp dx, 0x2f
jne 0x625cfa98
lea esi, [esi]
sub eax, 1
jb 0x625cfa5a
movzx edx, word [ebx + eax*2]
cmp dx, 0x2f
je 0x625cfab0
cmp dx, 0x5c
je 0x625cfab0
cmp dx, 0x3a
jne 0x625d00c3
cmp eax, 1
jne 0x625d00c3
mov dword [ebp - 0x694], 4
mov esi, 6
mov edx, 3
lea eax, [ebp - 0x678]
cmp esi, 4
jae 0x625cff1e
test esi, esi
jne 0x625cff3a
mov eax, 0x5c
mov word [ebp + edx*2 - 0x678], ax
lea eax, [ebp - 0x268]
mov dword [esp], ebx
xor ebx, ebx
mov dword [ebp - 0x684], eax
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov dword [ebp - 0x680], eax
sub esp, 8
cmp dword [ebp - 0x680], 0xffffffff
je 0x625d013b
mov eax, dword [ebp + 8]
mov edx, 0x5c
mov esi, dword [ebp - 0x694]
xor ecx, ecx
mov word [ebp + eax*2 - 0x470], dx
mov eax, dword [ebp - 0x68c]
mov word [ebp + eax*2 - 0x470], cx
lea eax, [ebp - 0x678]
mov dword [ebp - 0x67c], eax
lea eax, [eax + esi*2]
mov dword [ebp - 0x698], eax
lea eax, [ebp - 0x470]
add eax, dword [ebp - 0x688]
mov dword [ebp - 0x69c], eax
jmp 0x625cfbd4
movzx eax, word [ebp - 0x23a]
test ax, ax
je 0x625cfbb0
cmp ax, 0x2e
jne 0x625cfbf3
cmp word [ebp - 0x238], 0
jne 0x625cfbf3
lea esi, [esi]
mov eax, dword [ebp - 0x684]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x680]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindNextFileW]
sub esp, 8
test eax, eax
je 0x625cfeee
test byte [ebp - 0x268], 0x10
je 0x625cfbb0
movzx eax, word [ebp - 0x23c]
cmp ax, 0x2e
je 0x625cfb90
test ax, ax
je 0x625cfeb0
lea eax, [ebp - 0x23c]
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x625cfc00
lea ecx, [ebp - 0x23c]
sub eax, ecx
mov edx, eax
mov edi, eax
mov eax, dword [ebp - 0x68c]
sar edx, 1
lea esi, [eax + edx]
cmp esi, 0x103
ja 0x625cfecd
add edx, dword [ebp - 0x694]
lea ebx, [edx + 2]
cmp ebx, 0x103
ja 0x625cfecd
lea eax, [ebp - 0x23c]
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x69c]
mov dword [ebp - 0x688], edx
mov dword [esp], eax
call sym._memcpy
lea eax, [ebp - 0x23c]
mov dword [esp + 8], edi
xor ecx, ecx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x698]
mov edi, 0x5c
mov word [ebp + esi*2 - 0x470], cx
mov dword [esp], eax
call sym._memcpy
mov edx, dword [ebp - 0x688]
mov eax, 0x2a
mov word [ebp + edx*2 - 0x676], ax
xor eax, eax
mov word [ebp + edx*2 - 0x678], di
mov word [ebp + ebx*2 - 0x678], ax
test byte [0x625d3028], 8
jne 0x625cfe10
lea eax, [ebp - 0x470]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
je 0x625d00e1
cmp word [ebp - 0x678], 0
movsx edi, word [ebp - 0x68e]
je 0x625d015f
cmp word [ebp - 0x470], 0
je 0x625d015f
mov edx, dword [sym.imp.kernel32.dll_GetFileAttributesW]
lea eax, [ebp - 0x470]
mov dword [esp], eax
mov dword [ebp - 0x688], edx
call edx
mov edx, dword [ebp - 0x688]
sub esp, 4
cmp eax, 0xffffffff
je 0x625cfd32
test al, 0x10
jne 0x625cfdb8
mov eax, dword [ebp - 0x67c]
mov dword [esp], eax
call edx
sub esp, 4
cmp eax, 0xffffffff
je 0x625cfe60
test al, 0x10
jne 0x625cfd82
xor eax, eax
cmp word [ebp - 0x68e], 0
sete al
mov dword [esp + 8], eax
lea eax, [ebp - 0x470]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x67c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CopyFileW]
sub esp, 0xc
test eax, eax
je 0x625cfe60
mov dword [esp + 4], edi
mov eax, dword [ebp - 0x67c]
lea ecx, [ebp - 0x470]
mov edx, ebx
mov dword [esp], esi
call sym._copy_folder
test eax, eax
jns 0x625cfda7
cmp eax, 0x800a004c
jne 0x625cfddd
mov ebx, 1
jmp 0x625cfbb0
mov dword [esp + 4], edi
mov eax, dword [ebp - 0x67c]
lea ecx, [ebp - 0x470]
mov edx, ebx
mov dword [esp], esi
call sym._copy_file.part.0
cmp eax, 0x800a0035
je 0x625cfd82
test eax, eax
jns 0x625cfd82
mov edx, eax
nop
mov eax, dword [ebp - 0x680]
mov dword [ebp - 0x67c], edx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
mov edx, dword [ebp - 0x67c]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x470]
call sym._wine_dbgstr_wn.constprop.0_1
mov edi, eax
mov eax, dword [ebp - 0x67c]
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0x14], edi
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], 0x625d3028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x625cfcc0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
cmp eax, 5
je 0x625d00b9
ja 0x625cfe90
cmp eax, 2
je 0x625cfd82
cmp eax, 3
jne 0x625d00a2
mov edx, 0x800a004c
jmp 0x625cfde0
cmp eax, 0x50
je 0x625cfea0
cmp eax, 0xb7
jne 0x625d00a2
mov edx, 0x800a003a
jmp 0x625cfde0
mov edx, dword [ebp - 0x694]
mov esi, dword [ebp - 0x68c]
xor edi, edi
lea ebx, [edx + 2]
cmp ebx, 0x103
jbe 0x625cfc41
mov eax, dword [ebp - 0x680]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
mov edx, 0x80004005
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x67c], eax
mov eax, dword [ebp - 0x680]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
mov edx, dword [ebp - 0x67c]
sub esp, 4
test ebx, ebx
je 0x625d013b
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebx + esi - 4]
mov edi, eax
mov dword [ebp + esi - 0x67c], ecx
lea ecx, [esi - 1]
mov esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x625cfb03
movzx ecx, byte [ebx]
mov byte [eax], cl
test esi, 2
je 0x625cfb03
movzx ecx, word [ebx + esi - 2]
mov word [eax + esi - 2], cx
jmp 0x625cfb03
lea eax, [ebp - 0x470]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
mov edx, dword [ebp - 0x67c]
sub esp, 8
test eax, eax
je 0x625d0196
lea edi, [edx + 2]
cmp edi, 0x103
ja 0x625d00d2
lea ecx, [ebp - 0x678]
lea eax, [edx + edx]
mov dword [esp + 4], ebx
mov ebx, 0x5c
mov dword [esp], ecx
mov dword [esp + 8], eax
mov dword [ebp - 0x67c], ecx
mov dword [ebp - 0x680], edx
call sym._memcpy
mov edx, dword [ebp - 0x680]
xor ecx, ecx
mov word [ebp + edx*2 - 0x678], bx
lea eax, [edx + 1]
mov edx, 0x2a
mov word [ebp + eax*2 - 0x678], dx
mov word [ebp + edi*2 - 0x678], cx
cmp word [ebp - 0x678], 0
mov dword [ebp - 0x694], eax
je 0x625d0110
cmp word [ebp - 0x470], 0
je 0x625d0110
lea eax, [ebp - 0x470]
mov dword [esp], eax
call esi
sub esp, 4
cmp eax, 0xffffffff
je 0x625d0020
test al, 0x10
jne 0x625d0310
mov eax, dword [ebp - 0x67c]
mov dword [esp], eax
call esi
sub esp, 4
cmp eax, 0xffffffff
je 0x625d0290
test al, 0x10
jne 0x625d0070
xor eax, eax
cmp word [ebp - 0x6a0], 0
sete al
mov dword [esp + 8], eax
lea eax, [ebp - 0x470]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x67c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CopyFileW]
sub esp, 0xc
test eax, eax
je 0x625d0290
lea eax, [ebp - 0x268]
mov ebx, 1
mov dword [ebp - 0x684], eax
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x67c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov dword [ebp - 0x680], eax
sub esp, 8
jmp 0x625cfb34
test byte [0x625d3028], 1
jne 0x625d0169
mov edx, 0x80004005
jmp 0x625cfde0
mov edx, 0x800a0046
jmp 0x625cfde0
lea edx, [eax + 3]
cmp edx, 0x103
jbe 0x625d01e0
lea esp, [ebp - 0xc]
mov edx, 0x80004005
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret
cmp word [ebp - 0x6a0], 0
je 0x625d00fe
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0xb7
je 0x625d01f4
mov eax, dword [ebp - 0x680]
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 0x625d026a
ja 0x625d0145
mov edx, 0x800a0035
cmp eax, 2
je 0x625cfdfe
cmp eax, 3
jne 0x625d0230
mov edx, 0x800a004c
jmp 0x625cfdfe
cmp eax, 0x50
je 0x625d0155
cmp eax, 0xb7
jne 0x625d0230
mov edx, 0x800a003a
jmp 0x625cfdfe
mov edx, 0x80070057
jmp 0x625cfde0
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], 0x625d3028
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x625d00af
cmp word [ebp - 0x6a0], 0
je 0x625d0110
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0xb7
jne 0x625d0110
lea eax, [ebp - 0x470]
mov dword [esp], eax
call esi
sub esp, 4
cmp eax, 0xffffffff
je 0x625d0155
test al, 0x10
mov edx, dword [ebp - 0x67c]
jne 0x625cff82
jmp 0x625d0155
lea edx, [eax + 1]
add eax, 2
mov dword [ebp - 0x694], eax
lea esi, [edx + edx]
jmp 0x625cfaec
lea eax, [ebp - 0x470]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x625d0213
test al, 0x10
jne 0x625d00fe
mov eax, dword [ebp - 0x680]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
push edx
mov edx, 0x800a003a
jmp 0x625cfdfe
test byte [0x625d3028], 1
je 0x625d00d2
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], 0x625d3028
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x625d00d2
mov edx, 0x800a0046
jmp 0x625cfdfe
movzx eax, word [esi + ecx - 2]
mov word [ebp + ecx - 0x472], ax
jmp 0x625cf9f7
mov edx, 0x80070057
jmp 0x625cfdfe
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
cmp eax, 5
je 0x625d0110
ja 0x625d02f0
cmp eax, 2
je 0x625d0070
cmp eax, 3
je 0x625d0110
test byte [0x625d3028], 1
je 0x625d0110
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], 0x625d3028
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x625d0110
cmp eax, 0x50
je 0x625d0110
cmp eax, 0xb7
je 0x625d0110
jmp 0x625d02b6
movsx eax, word [ebp - 0x6a0]
lea ecx, [ebp - 0x470]
mov edx, edi
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [ebp - 0x67c]
call sym._copy_file.part.0
test eax, eax
jns 0x625d0070
cmp eax, 0x800a0035
je 0x625d0070
jmp 0x625d0110