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

Disassembly:
mov eax, 0x4a57b8
call fcn.00483228
sub esp, 0x180
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], 1
mov edi, dword [esi + 0x30]
test edi, edi
jle 0x4031b2
cmp dword [ebp - 0x1c], 0
je 0x403506
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + ebx*4]
test ecx, ecx
je 0x4031a3
push dword [ebp + 8]
call fcn.0040315f
mov dword [ebp - 0x1c], eax
inc ebx
cmp ebx, edi
jl 0x403184
cmp dword [ebp - 0x1c], 0
je 0x403506
lea ecx, [ebp - 0x4c]
call fcn.0049835d
and dword [ebp - 4], 0
push 0x4e7e70
lea ecx, [ebp - 0x18]
call fcn.0049d946
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.004983f0
lea ebx, [esi + 8]
push str..
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.0049db21
mov eax, dword [eax]
lea ecx, [ebp - 0x18c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.0049d8d8
test esi, esi
jge 0x40322a
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0049d8d8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00498390
xor eax, eax
jmp 0x403509
cmp dword [ebp - 0x18c], 0xffffffff
je 0x40325a
test byte [ebp - 0x18c], 0x10
jne 0x40325a
lea eax, [ebp - 0x160]
lea ecx, [ebp - 0x18]
push eax
call fcn.0049da15
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp - 0x44]
call fcn.00498632
lea eax, [ebp - 0x18c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40322a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x44], 0
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
mov edi, str.Delete_Error
jle 0x4033fb
cmp dword [ebp - 0x1c], 0
je 0x4034ee
push dword [ebp - 0x20]
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x4c]
push eax
call fcn.00401720
mov dword [ebp - 0x10], eax
push 0x4dd1e4
lea eax, [ebp - 0x34]
push ebx
push eax
mov byte [ebp - 4], 2
call fcn.0049db21
push dword [ebp - 0x10]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0049dabb
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.0049d9c5
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.0049d8d8
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.0049d8d8
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.0049d8d8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
mov dword [ebp - 0x1c], eax
jne 0x4033ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x403363
mov eax, dword [0x4e43a4]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 5
push 0xc1e
push eax
call fcn.004a18ba
push edi
lea ecx, [ebp - 0x28]
call fcn.0049d946
push 0x10
push dword [ebp - 0x28]
push dword [ebp - 0x10]
push dword [ebp + 8]
call esi
lea ecx, [ebp - 0x28]
call fcn.0049d8d8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
jmp 0x4033e7
cmp eax, 0x20
jne 0x4033ac
mov eax, dword [0x4e43a4]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 6
push 0xc1f
push eax
call fcn.004a18ba
push edi
lea ecx, [ebp - 0x2c]
call fcn.0049d946
push 0x10
push dword [ebp - 0x2c]
push dword [ebp - 0x10]
push dword [ebp + 8]
call esi
lea ecx, [ebp - 0x2c]
call fcn.0049d8d8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
jmp 0x4033e7
push edi
lea ecx, [ebp - 0x14]
call fcn.0049d946
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x24]
push str.Error:_deleting_the_file:
push eax
call fcn.0049db95
mov eax, dword [eax]
push 0x10
push dword [ebp - 0x14]
push eax
push dword [ebp + 8]
call esi
lea ecx, [ebp - 0x24]
call fcn.0049d8d8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0049d8d8
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x44]
jl 0x40328c
cmp dword [ebp - 0x1c], 0
je 0x4034ee
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
mov dword [ebp - 0x1c], eax
jne 0x4034ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x403469
mov eax, dword [0x4e43a4]
mov dword [ebp - 0x10], eax
push dword [ebx]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 8
push 0xc20
push eax
call fcn.004a18ba
push edi
lea ecx, [ebp - 0x14]
call fcn.0049d946
push 0x10
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push dword [ebp + 8]
call esi
lea ecx, [ebp - 0x14]
call fcn.0049d8d8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
jmp 0x4034e9
cmp eax, 0x20
jne 0x4034b1
mov eax, dword [0x4e43a4]
mov dword [ebp - 0x10], eax
push dword [ebx]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 9
push 0xc21
push eax
call fcn.004a18ba
push edi
lea ecx, [ebp - 0x14]
call fcn.0049d946
push 0x10
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push dword [ebp + 8]
call esi
lea ecx, [ebp - 0x14]
call fcn.0049d8d8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
jmp 0x4034e9
push edi
lea ecx, [ebp - 0x14]
call fcn.0049d946
push ebx
lea eax, [ebp - 0x24]
push str.Error_deleting_the_path:
push eax
mov byte [ebp - 4], 0xa
call fcn.0049db95
mov eax, dword [eax]
push 0x10
push dword [ebp - 0x14]
push eax
push dword [ebp + 8]
call esi
lea ecx, [ebp - 0x24]
call fcn.0049d8d8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0049d8d8
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0049d8d8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00498390
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4