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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a023b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2b0
mov eax, dword [0x4d3040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
push dword [ebx + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
cmp eax, 0x10
je 0x4083d2
mov byte [ebp - 0x281], 1
jmp 0x4087ac
xor ecx, ecx
mov eax, ecx
mov edx, ecx
inc ecx
cmp word [eax*2 + 0x4ac5e8], 0
jne 0x4083d4
mov esi, dword [ebx + 0xc]
cmp edx, esi
ja 0x408416
test edx, edx
je 0x408416
mov ecx, esi
sub ecx, edx
cmp ecx, esi
jae 0x408451
mov edx, 0x4ac5e8
nop dword [eax]
mov eax, dword [ebx + 8]
mov ax, word [eax + ecx*2]
cmp ax, word [edx]
jne 0x408416
inc ecx
add edx, 2
cmp ecx, esi
jb 0x408400
jmp 0x408451
push 0x4ac5e8
lea ecx, [ebp - 0x24]
call fcn.00409a20
xor ecx, ecx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x20], ecx
mov esi, dword [ebp - 0x24]
mov eax, esi
cmove eax, ecx
lea ecx, [ebx + 8]
push eax
call fcn.00409b00
mov byte [ebp - 4], 0
test esi, esi
je 0x40844e
push esi
call fcn.00482102
add esp, 4
mov esi, dword [ebx + 0xc]
mov edi, dword [ebx + 8]
xor eax, eax
test esi, esi
mov dword [ebp - 0x1c], eax
xorps xmm0, xmm0
mov dword [ebp - 0x18], eax
cmove edi, eax
mov esi, edi
mov dword [ebp - 0x28c], edi
movups xmmword [ebp - 0x2c], xmm0
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x408473
sub esi, ecx
sar esi, 1
cmp esi, 0x7ffffffe
ja 0x4087e5
cmp esi, 7
ja 0x4084b9
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x2c]
add esi, esi
mov dword [ebp - 0x18], 7
push esi
push edi
push eax
call fcn.004844a0
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x2c], ax
jmp 0x408561
mov edi, esi
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x4084d9
mov eax, SysReAllocString
mov dword [ebp - 0x288], SysReAllocString
add eax, eax
jmp 0x408500
mov eax, 0xa
cmp edi, eax
cmovb edi, eax
mov dword [ebp - 0x288], edi
lea eax, [edi + 1]
cmp eax, 0x7fffffff
ja 0x4087e0
add eax, eax
cmp eax, 0x1000
jb 0x408527
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4087e0
push ecx
call fcn.00482304
add esp, 4
test eax, eax
je 0x4087ef
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x40853a
test eax, eax
je 0x408538
push eax
call fcn.00482304
add esp, 4
mov edi, eax
jmp 0x40853a
xor edi, edi
mov eax, dword [ebp - 0x288]
mov dword [ebp - 0x1c], esi
add esi, esi
push esi
push dword [ebp - 0x28c]
mov dword [ebp - 0x2c], edi
push edi
mov dword [ebp - 0x18], eax
call fcn.004844a0
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
push 0x4ac654
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2a4]
call fcn.00409c20
add esp, 4
cmp dword [eax + 0x14], 7
jbe 0x408583
mov eax, dword [eax]
lea ecx, [ebp - 0x280]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x290]
mov edi, eax
cmp ecx, 7
jbe 0x4085d3
mov edx, dword [ebp - 0x2a4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4085c9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4087ea
push ecx
push edx
call fcn.00482334
add esp, 8
xor eax, eax
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x290], 7
mov word [ebp - 0x2a4], ax
cmp edi, 0xffffffff
je 0x40876f
nop dword [eax]
test byte [ebp - 0x280], 0x10
lea eax, [ebp - 0x254]
je 0x4086d0
push 0x4ac65c
push eax
call fcn.0048d783
add esp, 8
test eax, eax
je 0x408737
lea eax, [ebp - 0x254]
push 0x4ac660
push eax
call fcn.0048d783
add esp, 8
test eax, eax
je 0x408737
lea eax, [ebp - 0x254]
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x2bc]
call fcn.00409c20
add esp, 4
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 7
jbe 0x408669
mov eax, dword [eax]
sub esp, 0x10
mov ecx, esp
push eax
call fcn.00409a20
call fcn.00408370
mov byte [ebp - 4], 2
add esp, 0x10
mov ecx, dword [ebp - 0x2a8]
mov byte [ebp - 0x281], al
cmp ecx, 7
jbe 0x4086cc
mov edx, dword [ebp - 0x2bc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4086bc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4087ea
push ecx
push edx
call fcn.00482334
mov al, byte [ebp - 0x281]
add esp, 8
test al, al
jmp 0x408735
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x2bc]
call fcn.00409c20
add esp, 4
cmp dword [eax + 0x14], 7
jbe 0x4086ea
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x2a8]
mov esi, eax
cmp ecx, 7
jbe 0x408733
mov edx, dword [ebp - 0x2bc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408729
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4087ea
push ecx
push edx
call fcn.00482334
add esp, 8
test esi, esi
je 0x408768
lea eax, [ebp - 0x280]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x408600
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne byte [ebp - 0x281]
jmp 0x408776
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 0x281], 0
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x4087ac
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4087a2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4087ef
push ecx
push edx
call fcn.00482334
add esp, 8
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x4087bc
push ecx
call fcn.00482102
add esp, 4
mov al, byte [ebp - 0x281]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004820f4
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00401650
call fcn.004016f0
call fcn.0048d4ff
call fcn.0048d4ff
int3