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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44de40
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x45fbf0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x2dc], ecx
xor edi, edi
xor ecx, ecx
push edi
mov dword [ebp - 0x2d8], eax
mov word [ebp - 0x48], cx
push eax
mov ebx, 7
or eax, 0xffffffff
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x2e0], esi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], edi
call fcn.00408750
mov dword [ebp - 4], edi
push edi
xor edx, edx
push esi
or eax, 0xffffffff
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], dx
call fcn.00408750
mov ebx, 8
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], ebx
jb 0x405d82
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x405dd1
mov ecx, esi
call fcn.00405b70
cmp eax, edi
jne 0x405dd1
cmp dword [ebp - 0x18], ebx
jb 0x405da9
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0043bc47
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x34], ebx
jb 0x405dca
mov edx, dword [ebp - 0x48]
push edx
call fcn.0043bc47
add esp, 4
xor eax, eax
jmp 0x40609e
push 4
mov eax, 0x458860
lea ecx, [ebp - 0x48]
call fcn.00409140
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], ebx
jae 0x405deb
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x2d0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x2d4], esi
cmp esi, 0xffffffff
je 0x406060
lea ebx, [ebx]
cmp word [ebp - 0x2a4], 0x2e
jne 0x405e34
mov ax, word [ebp - 0x2a2]
cmp ax, 0x2e
je 0x406044
cmp ax, di
je 0x406044
mov edx, dword [ebp - 0x2d8]
push 0x4580e8
push edx
lea eax, [ebp - 0x80]
push eax
call fcn.0040ab30
add esp, 0xc
push eax
lea eax, [ebp - 0x2a4]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.0040ac20
add esp, 4
mov esi, eax
lea ecx, [ebp - 0x48]
cmp ecx, esi
je 0x405ec1
cmp dword [ebp - 0x34], ebx
jb 0x405e7c
mov edx, dword [ebp - 0x48]
push edx
call fcn.0043bc47
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], ax
cmp dword [esi + 0x14], ebx
jae 0x405ea8
mov eax, dword [esi + 0x10]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebp - 0x48]
push esi
push edx
call fcn.0043c010
add esp, 0xc
jmp 0x405eaf
mov eax, dword [esi]
mov dword [ebp - 0x48], eax
mov dword [esi], edi
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x38], ecx
mov edx, dword [esi + 0x14]
mov dword [ebp - 0x34], edx
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
cmp dword [ebp - 0x50], ebx
jb 0x405ed2
mov eax, dword [ebp - 0x64]
push eax
call fcn.0043bc47
add esp, 4
xor ecx, ecx
mov byte [ebp - 4], 1
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], cx
cmp dword [ebp - 0x6c], ebx
jb 0x405ef7
mov edx, dword [ebp - 0x80]
push edx
call fcn.0043bc47
add esp, 4
mov eax, dword [ebp - 0x2e0]
push 0x4580e8
push eax
lea ecx, [ebp - 0x80]
push ecx
call fcn.0040ab30
add esp, 0xc
push eax
lea eax, [ebp - 0x2a4]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 4
call fcn.0040ac20
add esp, 4
mov esi, eax
lea edx, [ebp - 0x2c]
cmp edx, esi
je 0x405f84
cmp dword [ebp - 0x18], ebx
jb 0x405f3f
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0043bc47
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], cx
cmp dword [esi + 0x14], ebx
jae 0x405f6b
mov eax, dword [esi + 0x10]
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.0043c010
add esp, 0xc
jmp 0x405f72
mov ecx, dword [esi]
mov dword [ebp - 0x2c], ecx
mov dword [esi], edi
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x18], eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
cmp dword [ebp - 0x50], ebx
jb 0x405f95
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.0043bc47
add esp, 4
xor edx, edx
mov byte [ebp - 4], 1
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], dx
cmp dword [ebp - 0x6c], ebx
jb 0x405fba
mov eax, dword [ebp - 0x80]
push eax
call fcn.0043bc47
add esp, 4
test byte [ebp - 0x2d0], 0x10
je 0x406021
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x2dc]
lea edx, [ebp - 0x48]
push edx
call fcn.00405cf0
test eax, eax
jne 0x406044
mov ecx, dword [ebp - 0x2d4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x18], ebx
jb 0x405ff8
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0043bc47
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], ax
cmp dword [ebp - 0x34], ebx
jb 0x405dca
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0043bc47
add esp, 4
xor eax, eax
jmp 0x40609e
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x40602c
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], ebx
jae 0x406037
lea eax, [ebp - 0x48]
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4060bc
mov esi, dword [ebp - 0x2d4]
lea eax, [ebp - 0x2d0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405e10
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x18], ebx
jb 0x406078
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0043bc47
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x34], ebx
jb 0x406099
mov edx, dword [ebp - 0x48]
push edx
call fcn.0043bc47
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043bc52
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp - 0x2d4]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x405d98