Function at 0x4040a0
Capabilities:
Copy file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4abff7
mov eax, dword fs:[0]
push eax
sub esp, 0x47c
mov eax, dword [0x4e52d0]
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 dword [ebp - 0x10], esp
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 8]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x404409
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0
je 0x404409
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 5
mov ecx, dword [ebp + 0xc]
dec esi
call fcn.00403510
mov ecx, dword [ebp + 0xc]
push ecx
call edi
test eax, eax
jne 0x40411f
push 0x64
call ebx
test esi, esi
jne 0x404104
mov edx, dword [ebp + 8]
push 0x4bb1a8
push edx
push 0x4bb17c
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.00492772
add esp, 0x14
lea ecx, [ebp - 0x470]
push ecx
lea edx, [ebp - 0x220]
push edx
mov ebx, 1
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x47c], eax
cmp eax, 0xffffffff
jne 0x404178
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
jmp 0x404410
cmp word [ebp - 0x444], 0x2e
je 0x404361
test byte [ebp - 0x470], 0x10
mov ecx, 0x4e4f18
je 0x40429a
mov edx, dword [0x4e4f18]
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x474], eax
mov byte [ebp - 4], 3
mov edx, dword [0x4e4f18]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e4f18
call eax
add eax, 0x10
mov dword [ebp - 0x478], eax
lea ecx, [ebp - 0x444]
mov byte [ebp - 4], 4
mov edx, dword [ebp + 8]
push ecx
push edx
push str._s_s_
lea edi, [ebp - 0x474]
call fcn.00402360
mov ecx, dword [ebp + 0xc]
add esp, 0xc
lea eax, [ebp - 0x444]
push eax
push ecx
push str._s_s_
lea edi, [ebp - 0x478]
call fcn.00402360
mov edi, dword [ebp - 0x478]
add esp, 0xc
push ecx
add edi, 0xfffffff0
mov eax, edi
mov dword [ebp - 0x480], esp
mov esi, esp
call fcn.004046f0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x474]
push ecx
add esi, 0xfffffff0
mov eax, esi
mov dword [ebp - 0x484], esp
mov ebx, esp
call fcn.004046f0
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 4
call fcn.004040a0
mov ebx, eax
add esp, 8
mov byte [ebp - 4], 3
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x404274
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov byte [ebp - 4], 2
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404361
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x404361
mov eax, dword [0x4e4f18]
mov edx, dword [eax + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x478], eax
mov byte [ebp - 4], 6
mov eax, dword [0x4e4f18]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e4f18
call edx
add eax, 0x10
mov dword [ebp - 0x474], eax
lea eax, [ebp - 0x444]
mov byte [ebp - 4], 7
mov ecx, dword [ebp + 8]
push eax
push ecx
push 0x4bb17c
lea edi, [ebp - 0x478]
call fcn.00402360
mov eax, dword [ebp + 0xc]
add esp, 0xc
lea edx, [ebp - 0x444]
push edx
push eax
push 0x4bb17c
lea edi, [ebp - 0x474]
call fcn.00402360
mov esi, dword [ebp - 0x474]
mov edi, dword [ebp - 0x478]
add esp, 0xc
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404341
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404361
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x47c]
lea ecx, [ebp - 0x470]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404178
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 1
jmp 0x4043bc
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4043df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404405
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
jmp 0x404451
mov byte [ebp - 4], 0
lea eax, [ecx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404429
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40444f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
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.004912db
mov esp, ebp
pop ebp
ret