Function at 0x401560
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x678
mov eax, dword [0x51384c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x41c]
push edi
mov dword [ebp - 0x674], esi
mov eax, esi
sub edx, esi
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401590
lea eax, [ebp - 0x41c]
add eax, 0xfffffffe
jmp 0x4015b0
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4015b0
mov ecx, dword [0x4c2f30]
mov dx, word [0x4c2f34]
mov dword [eax], ecx
mov word [eax + 4], dx
lea edx, [ebp - 0x214]
mov eax, esi
sub edx, esi
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4015e0
lea edi, [ebp - 0x214]
add edi, 0xfffffffe
jmp 0x401600
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x401600
mov eax, dword [0x4c2f38]
lea ecx, [ebp - 0x66c]
push ecx
lea edx, [ebp - 0x41c]
push edx
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
xor eax, eax
mov dword [ebp - 0x670], edi
cmp edi, 0xffffffff
je 0x4017de
lea ebx, [ebx]
movzx ecx, word [ebp + eax - 0x214]
mov word [ebp + eax - 0x41c], cx
add eax, 2
test cx, cx
jne 0x401640
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, edi
lea eax, [ebp - 0x66c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4017c9
mov ecx, 0x4c2f24
lea eax, [ebp - 0x640]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4016a7
test dx, dx
je 0x4016a3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4016a7
add eax, 4
add ecx, 4
test dx, dx
jne 0x401681
xor eax, eax
jmp 0x4016ac
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401660
mov ecx, 0x4c2f28
lea eax, [ebp - 0x640]
jmp 0x4016c0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4016e6
test dx, dx
je 0x4016e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4016e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4016c0
xor eax, eax
jmp 0x4016eb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401660
lea eax, [ebp - 0x640]
mov edx, eax
jmp 0x401700
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401700
lea edi, [ebp - 0x214]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x401716
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test byte [ebp - 0x66c], 0x10
rep movsb byte es:[edi], byte [esi]
je 0x401789
lea ecx, [ebp - 0x214]
push ecx
call fcn.00401560
add esp, 4
test eax, eax
je 0x4017ef
lea edx, [ebp - 0x214]
push edx
call ebx
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [ebp + eax - 0x41c]
mov word [ebp + eax - 0x214], cx
add eax, 2
test cx, cx
jne 0x401760
mov edi, dword [ebp - 0x670]
mov esi, dword [ebp - 0x674]
jmp 0x401660
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40180f
xor eax, eax
movzx ecx, word [ebp + eax - 0x41c]
mov word [ebp + eax - 0x214], cx
add eax, 2
test cx, cx
jne 0x4017a0
mov edi, dword [ebp - 0x670]
mov esi, dword [ebp - 0x674]
jmp 0x401660
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x40182f
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00462838
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x670]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00462838
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x670]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00462838
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00462838
mov esp, ebp
pop ebp
ret