Function at 0x40c4e0
Capabilities:
Check if file exists
Copy file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x450336
push eax
mov dword fs:[0], esp
sub esp, 0x678
push ebx
mov ebx, ecx
push esi
push edi
lea ecx, [ebx + 0x2c]
call fcn.004108b0
mov esi, dword [0x46a018]
mov al, byte [esi + 2]
test al, al
je 0x40c7d5
mov ecx, ebx
call fcn.0040d7e0
cmp byte [esi + 2], 0
mov dword [esp + 0x1c], eax
jne 0x40c537
mov esi, 0x457cf0
jmp 0x40c53a
mov esi, dword [esi + 4]
xor eax, eax
push 0x40e
push eax
mov word [esp + 0x278], ax
lea eax, [esp + 0x27a]
push eax
mov dword [esp + 0x24], esi
call fcn.0043da70
add esp, 0xc
lea eax, [esp + 0x270]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x270]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0x458c1c
lea eax, [esp + 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x24c
lea eax, [esp + 0x28]
push 0
push eax
mov dword [esp + 0x2c], 0
call fcn.0043da70
add esp, 0xc
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [esp + 0xc], edi
cmp edi, 0xffffffff
je 0x40c7d5
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov esi, eax
cmp word [esp + 0x4c], 0x2e
je 0x40c7ba
test byte [esp + 0x20], 0x10
jne 0x40c7ba
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov esi, eax
test esi, esi
je 0x40c7b6
push 0x4582a8
push esi
mov dword [esp + 0x18], 0
call edi
test eax, eax
jne 0x40c625
lea eax, [esp + 0x4c]
push eax
call fcn.0043cd6b
add esp, 4
mov edx, eax
jmp 0x40c650
push str..exe
push esi
call edi
test eax, eax
jne 0x40c7b6
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.0040dfb0
test al, al
je 0x40c7b6
mov edx, dword [esp + 0x10]
test edx, edx
je 0x40c6a1
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x1c]
cmp eax, ecx
je 0x40c6a1
mov edi, edi
mov esi, dword [eax]
cmp dword [esi], edx
je 0x40c66f
add eax, 4
cmp eax, ecx
jne 0x40c660
jmp 0x40c6a1
cmp byte [esi + 4], 0
je 0x40c6a1
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x14]
call eax
test al, al
jne 0x40c7b6
cmp byte [esi + 4], al
je 0x40c7b6
push dword [esi + 0x10]
push dword [esi]
call fcn.00409250
test eax, eax
jns 0x40c7b6
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0x1c]
push str._s_s
push eax
mov dword [esp + 0x69c], 0
call fcn.0040a530
mov eax, dword [section..data]
add esp, 0x10
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
push dword [esp + 0x1c]
lea eax, [esp + 0x14]
push str._s_backup
push eax
mov byte [esp + 0x698], 1
call fcn.0040a530
mov esi, dword [esp + 0x1c]
add esp, 0xc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40c726
lea edx, [eax + 1]
mov ecx, esi
call fcn.00412e00
push 0x458470
lea ecx, [esp + 0x14]
call fcn.0040b8c0
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x14]
call fcn.0040b8c0
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40c769
cmp dword [0x467194], 6
jb 0x40c769
push ecx
mov ecx, esi
call fcn.004134a0
add esi, 0xfffffff0
mov byte [esp + 0x68c], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c78b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov dword [esp + 0x68c], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c7b0
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40c5d4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x684]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret