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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [0x42613c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0
push esi
mov dword [ebp - 0x46c], edi
mov dword [ebp - 0x470], esi
mov dword [ebp - 0x464], 0
call dword [sym.imp.MSVCR100.dll__access]
add esp, 8
test eax, eax
jne 0x409e7c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x409e87
push 1
push esi
call fcn.00409d50
add esp, 8
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x104
lea eax, [ebp - 0x320]
push 0
push eax
call sub.MSVCR100.dll_memset
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0xc
push edi
lea ecx, [ebp - 0x320]
push ecx
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str..
lea edx, [ebp - 0x320]
push edx
call esi
lea eax, [ebp - 0x460]
push eax
lea ecx, [ebp - 0x320]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x468], eax
cmp eax, 0xffffffff
jne 0x409f00
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414976
mov esp, ebp
pop ebp
ret
push 0x4203ec
lea edx, [ebp - 0x434]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40a071
push 0x4203f0
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40a071
push 0x104
lea ecx, [ebp - 0x110]
push 0
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push 0
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
push edi
lea eax, [ebp - 0x110]
push eax
call ebx
push 0x4203f4
lea ecx, [ebp - 0x110]
push ecx
call esi
lea edx, [ebp - 0x434]
push edx
lea eax, [ebp - 0x110]
push eax
call esi
mov ecx, dword [ebp - 0x470]
push ecx
lea edx, [ebp - 0x218]
push edx
call ebx
push 0x4203f4
lea eax, [ebp - 0x218]
push eax
call esi
lea ecx, [ebp - 0x434]
push ecx
lea edx, [ebp - 0x218]
push edx
call esi
test byte [ebp - 0x460], 0x10
je 0x409ff0
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40a071
push eax
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x110]
push edx
call fcn.00409e30
add esp, 0x10
mov dword [ebp - 0x464], eax
jmp 0x40a071
xor eax, eax
cmp dword [ebp + 0x10], eax
lea ecx, [ebp - 0x218]
sete al
lea edx, [ebp - 0x110]
mov edi, eax
push edi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40a04f
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40a04f
inc dword [ebp - 0x464]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
lea ecx, [ebp - 0x110]
push ecx
call edi
push 0
lea edx, [ebp - 0x218]
push edx
call edi
mov edi, dword [ebp - 0x46c]
mov ecx, dword [ebp - 0x468]
lea eax, [ebp - 0x460]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x409f00
mov edx, dword [ebp - 0x468]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x464]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414976
mov esp, ebp
pop ebp
ret