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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4165bc
mov eax, dword fs:[0]
push eax
mov eax, 0x1568
call fcn.00413ef0
mov eax, dword [0x41d490]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
xor edi, edi
mov eax, ecx
mov dword [ebp - 0x13a4], 0xf
mov dword [ebp - 0x13a8], edi
mov byte [ebp - 0x13b8], 0
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401863
sub eax, esi
push eax
push ecx
lea ecx, [ebp - 0x13b8]
call fcn.00405650
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 0x13a8]
lea eax, [ecx - 1]
cmp ecx, eax
ja 0x401893
push str.invalid_string_position
call fcn.00406c1e
mov ecx, dword [ebp - 0x13b8]
mov ebx, 0x10
cmp dword [ebp - 0x13a4], ebx
jae 0x4018ac
lea ecx, [ebp - 0x13b8]
cmp byte [ecx + eax], 0x5c
je 0x4018bd
lea esi, [ebp - 0x13b8]
call fcn.00403c20
push 0x41a0f8
lea eax, [ebp - 0x13b8]
push eax
lea ecx, [ebp - 0x140c]
push ecx
call fcn.00405e90
add esp, 0xc
cmp dword [eax + 0x14], ebx
jb 0x4018df
mov eax, dword [eax]
lea edx, [ebp - 0x156c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 0x1570], esi
cmp dword [ebp - 0x13f8], ebx
jb 0x40190c
mov eax, dword [ebp - 0x140c]
push eax
call fcn.0040715b
add esp, 4
mov dword [ebp - 0x13f8], 0xf
mov dword [ebp - 0x13fc], edi
mov byte [ebp - 0x140c], 0
cmp esi, 0xffffffff
jne 0x401950
cmp dword [ebp - 0x13a4], ebx
jb 0x40193f
mov ecx, dword [ebp - 0x13b8]
push ecx
call fcn.0040715b
add esp, 4
xor al, al
jmp 0x401bea
test byte [ebp - 0x156c], bl
je 0x4019e1
lea edx, [ebp - 0x1540]
push 0x41a0fc
push edx
call fcn.00414bd0
add esp, 8
test eax, eax
je 0x401bae
lea eax, [ebp - 0x1540]
push 0x41a100
push eax
call fcn.00414bd0
add esp, 8
test eax, eax
je 0x401bae
lea ecx, [ebp - 0x1540]
push ecx
lea edx, [ebp - 0x13b8]
push edx
lea eax, [ebp - 0x13d4]
push eax
call fcn.00405e90
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], ebx
jb 0x4019bc
mov eax, dword [eax]
push eax
call fcn.00401810
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x13c0], ebx
jb 0x401bae
mov ecx, dword [ebp - 0x13d4]
push ecx
jmp 0x401ba6
push 0x1388
lea edx, [ebp - 0x139c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x1540]
push eax
lea ecx, [ebp - 0x13b8]
push ecx
lea edx, [ebp - 0x13d4]
push edx
call fcn.00405e90
add esp, 0xc
cmp dword [ebp - 0x13c0], ebx
jb 0x401a28
mov eax, dword [ebp - 0x13d4]
push eax
call fcn.0040715b
add esp, 4
lea eax, [ebp - 0x1540]
mov dword [ebp - 0x13dc], 0xf
mov dword [ebp - 0x13e0], edi
mov byte [ebp - 0x13f0], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401a48
sub eax, edx
push eax
lea ecx, [ebp - 0x1540]
push ecx
lea ecx, [ebp - 0x13f0]
call fcn.00405650
push 4
lea edx, [ebp - 0x13f0]
push edx
mov byte [ebp - 4], 2
call fcn.00404f80
cmp eax, 0xffffffff
je 0x401ac6
lea eax, [ebp - 0x1540]
push eax
lea ecx, [ebp - 0x13b8]
push ecx
lea edx, [ebp - 0x13d4]
push edx
call fcn.00405e90
add esp, 0xc
cmp dword [eax + 0x14], ebx
jb 0x401a9f
mov eax, dword [eax]
push edi
push eax
lea eax, [ebp - 0x139c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp dword [ebp - 0x13c0], ebx
jb 0x401b93
mov ecx, dword [ebp - 0x13d4]
push ecx
jmp 0x401b8b
lea edx, [ebp - 0x1540]
push edx
lea eax, [ebp - 0x13b8]
push eax
lea ecx, [ebp - 0x13d4]
push ecx
call fcn.00405e90
add esp, 0xc
cmp dword [eax + 0x14], ebx
jb 0x401aea
mov eax, dword [eax]
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [ebp - 0x13c0], ebx
jb 0x401b0a
mov edx, dword [ebp - 0x13d4]
push edx
call fcn.0040715b
add esp, 4
lea eax, [ebp - 0x1540]
push eax
lea ecx, [ebp - 0x13b8]
push ecx
lea edx, [ebp - 0x1428]
push edx
call fcn.00405e90
add esp, 0xc
mov ecx, eax
lea esi, [ebp - 0x13d4]
mov byte [ebp - 4], 3
call fcn.00405f70
cmp dword [eax + 0x14], ebx
jb 0x401b3f
mov eax, dword [eax]
push edi
push eax
lea eax, [ebp - 0x139c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp dword [ebp - 0x13c0], ebx
jb 0x401b65
mov ecx, dword [ebp - 0x13d4]
push ecx
call fcn.0040715b
add esp, 4
mov dword [ebp - 0x13c0], 0xf
mov dword [ebp - 0x13c4], edi
mov byte [ebp - 0x13d4], 0
cmp dword [ebp - 0x1414], ebx
jb 0x401b93
mov edx, dword [ebp - 0x1428]
push edx
call fcn.0040715b
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x13dc], ebx
jb 0x401bae
mov eax, dword [ebp - 0x13f0]
push eax
call fcn.0040715b
add esp, 4
mov esi, dword [ebp - 0x1570]
lea ecx, [ebp - 0x156c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401950
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x13a4], ebx
jb 0x401be8
mov edx, dword [ebp - 0x13b8]
push edx
call fcn.0040715b
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00407166
mov esp, ebp
pop ebp
ret