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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa7c
mov eax, dword [0x5f4900]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0xa75], 1
mov dword [ebp - 0xa7c], 0xffffffff
push 0x58abe4
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x61c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x58abe8
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0xa74]
push ecx
lea edx, [ebp - 0x61c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xa7c], eax
cmp dword [ebp - 0xa7c], 0xffffffff
jne 0x40b05f
mov byte [ebp - 0xa75], 0
jmp 0x40b2ea
mov eax, dword [ebp + 8]
push eax
call fcn.00409900
mov ecx, dword [ebp + 0xc]
push ecx
push 0x104
lea edx, [ebp - 0x414]
push edx
call fcn.005508be
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
call fcn.005508be
add esp, 0xc
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x414]
push ecx
push 0x104
lea edx, [ebp - 0x61c]
push edx
call fcn.005508be
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea ecx, [ebp - 0x824]
push ecx
call fcn.005508be
add esp, 0xc
mov byte [ebp - 0xa76], 1
movzx edx, byte [ebp - 0xa76]
test edx, edx
je 0x40b2d4
lea eax, [ebp - 0xa74]
push eax
mov ecx, dword [ebp - 0xa7c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40b29b
mov edx, 2
imul eax, edx, 0
movzx ecx, word [ebp + eax - 0xa48]
cmp ecx, 0x2e
jne 0x40b16d
mov edx, 2
shl edx, 0
movzx eax, word [ebp + edx - 0xa48]
test eax, eax
je 0x40b16b
mov ecx, 2
shl ecx, 0
movzx edx, word [ebp + ecx - 0xa48]
cmp edx, 0x2e
jne 0x40b16d
mov eax, 2
shl eax, 1
movzx ecx, word [ebp + eax - 0xa48]
test ecx, ecx
jne 0x40b16d
jmp 0x40b0ef
lea edx, [ebp - 0xa48]
push edx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0xa48]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [ebp - 0xa74]
and eax, 0x10
je 0x40b227
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x20c]
push edx
call fcn.0040afe0
movzx eax, al
test eax, eax
jne 0x40b1e3
mov ecx, dword [ebp - 0xa7c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0xa7c], 0xffffffff
mov byte [ebp - 0xa75], 0
jmp 0x40b2d4
lea edx, [ebp - 0x20c]
push edx
call fcn.00409900
lea eax, [ebp - 0x61c]
push eax
push 0x104
lea ecx, [ebp - 0x414]
push ecx
call fcn.005508be
add esp, 0xc
lea edx, [ebp - 0x824]
push edx
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.005508be
add esp, 0xc
jmp 0x40b299
push 0
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40b263
mov eax, dword [ebp - 0xa7c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0xa7c], 0xffffffff
mov byte [ebp - 0xa75], 0
jmp 0x40b2d4
lea ecx, [ebp - 0x61c]
push ecx
push 0x104
lea edx, [ebp - 0x414]
push edx
call fcn.005508be
add esp, 0xc
lea eax, [ebp - 0x824]
push eax
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
call fcn.005508be
add esp, 0xc
jmp 0x40b2cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x40b2af
mov byte [ebp - 0xa76], 0
jmp 0x40b2cf
mov edx, dword [ebp - 0xa7c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0xa7c], 0xffffffff
mov byte [ebp - 0xa75], 0
jmp 0x40b2d4
jmp 0x40b0ef
cmp dword [ebp - 0xa7c], 0xffffffff
je 0x40b2ea
mov eax, dword [ebp - 0xa7c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, byte [ebp - 0xa75]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005502f8
mov esp, ebp
pop ebp
ret 8