Function at 0x408760
Capabilities:
Copy file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x684
mov eax, dword [0x44c044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push ebx
mov dword [ebp - 0x674], edi
mov dword [ebp - 0x670], ebx
mov dword [ebp - 0x66c], eax
mov dword [ebp - 0x680], ecx
call fcn.00423c16
add esp, 4
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x416]
push eax
mov word [ebp - 0x418], dx
call fcn.00428450
add esp, 0xc
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20e]
push edx
mov word [ebp - 0x210], cx
call fcn.00428450
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push edi
lea eax, [ebp - 0x418]
push str._s.
push eax
call esi
add esp, 0xc
lea ecx, [ebp - 0x668]
push ecx
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x67c], eax
cmp eax, 0xffffffff
je 0x408b61
jmp 0x408832
mov edi, dword [ebp - 0x674]
mov ebx, dword [ebp - 0x670]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x63c]
push eax
push edi
lea ecx, [ebp - 0x418]
push 0x43bff0
push ecx
call esi
lea edx, [ebp - 0x63c]
push edx
push ebx
lea eax, [ebp - 0x210]
push 0x43bff0
push eax
call esi
add esp, 0x20
mov ecx, 0x43c7f8
lea eax, [ebp - 0x63c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408896
test dx, dx
je 0x408892
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408896
add eax, 4
add ecx, 4
test dx, dx
jne 0x408870
xor esi, esi
jmp 0x40889b
sbb esi, esi
sbb esi, 0xffffffff
test esi, esi
je 0x408b3d
mov ecx, 0x43e410
lea eax, [ebp - 0x63c]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4088d6
test dx, dx
je 0x4088d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4088d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4088b0
xor eax, eax
jmp 0x4088db
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408ab7
test byte [ebp - 0x668], 0x10
jne 0x408ab7
mov esi, 1
xor edi, edi
cmp dword [0x489424], esi
jne 0x408919
lea ecx, [ebp - 0x63c]
push 0x438808
push ecx
call fcn.00422d63
add esp, 8
test eax, eax
jne 0x408919
mov edi, esi
cmp dword [0x489428], esi
jne 0x40893b
lea edx, [ebp - 0x63c]
push 0x4387e4
push edx
call fcn.00422d63
add esp, 8
test eax, eax
jne 0x40893b
mov edi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
lea eax, [ebp - 0x210]
push eax
call ebx
push edi
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x678], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 0x80
lea eax, [ebp - 0x210]
push eax
call ebx
cmp edi, 1
jne 0x40898e
cmp esi, 0x50
je 0x408a56
cmp dword [ebp - 0x678], 0
jne 0x408a4d
push esi
lea ecx, [ebp - 0x63c]
push ecx
push 0x43e418
push 0x486150
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x486150
call fcn.00406870
lea edx, [ebp - 0x63c]
add esp, 0x14
push edx
call fcn.0041a450
add esp, 4
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x80
lea edx, [ebp - 0x210]
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp edi, 1
jne 0x408a15
cmp esi, 0x50
je 0x408a56
test ebx, ebx
jne 0x408a4d
mov eax, dword [0x486950]
inc eax
push eax
mov dword [0x486950], eax
push esi
lea eax, [ebp - 0x63c]
push eax
push str.___s
push 0x486150
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0x486150
call fcn.00406870
add esp, 4
cmp edi, 1
jne 0x408b3d
lea ecx, [ebp - 0x63c]
push 0x438808
push ecx
call fcn.00422d63
add esp, 8
test eax, eax
jne 0x408a80
cmp esi, 0x50
jne 0x408a80
push 0x43e4c0
call fcn.00406870
add esp, 4
lea edx, [ebp - 0x63c]
push 0x4387e4
push edx
call fcn.00422d63
add esp, 8
test eax, eax
jne 0x408b3d
cmp esi, 0x50
jne 0x408b3d
push 0x43e510
call fcn.00406870
add esp, 4
jmp 0x408b3d
test esi, esi
je 0x408b3d
mov ecx, 0x43e410
lea eax, [ebp - 0x63c]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408af6
test dx, dx
je 0x408af2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408af6
add eax, 4
add ecx, 4
test dx, dx
jne 0x408ad0
xor eax, eax
jmp 0x408afb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408b3d
push 0x80
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x680]
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp - 0x66c]
push edx
push eax
push ecx
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x418]
push eax
call fcn.00408760
add esp, 0x18
mov esi, dword [ebp - 0x67c]
lea ecx, [ebp - 0x668]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x408820
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, dword [0x486950]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004217a4
mov esp, ebp
pop ebp
ret