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

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 0x53b985
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2c0
mov eax, dword [0x577018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0x10]
mov eax, bind
sub eax, ecx
cmp eax, 1
jb 0x408b43
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4086e0
mov eax, dword [edi]
push 1
push 0x559288
push ecx
push eax
push ecx
push dword [ebp - 0x29c]
lea ecx, [ebp - 0x44]
call fcn.004097f0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x298]
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push ecx
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2a0], eax
cmp eax, 0xffffffff
jne 0x408737
cmp dword [edi + 0x14], 8
jb 0x40872b
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x408aef
xor eax, eax
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
lea edx, [ecx + 2]
mov word [ebp - 0x2c], ax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408760
sub ecx, edx
lea eax, [ebp - 0x26c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408270
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
mov esi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
cmovae eax, esi
cmp edx, 1
jne 0x4087d2
mov ecx, 0x55928c
test edx, edx
je 0x4088bf
sub eax, ecx
mov dword [ebp - 0x29c], eax
nop
mov ax, word [eax + ecx]
cmp ax, word [ecx]
jne 0x4087cc
mov eax, dword [ebp - 0x29c]
add ecx, 2
sub edx, 1
jne 0x4087b0
jmp 0x4088bf
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
cmp ecx, 8
lea eax, [ebp - 0x2c]
cmovae eax, esi
cmp edx, 2
jne 0x408817
mov ecx, 0x559290
test edx, edx
je 0x4088bf
sub eax, ecx
mov dword [ebp - 0x29c], eax
mov ax, word [eax + ecx]
cmp ax, word [ecx]
jne 0x408811
mov eax, dword [ebp - 0x29c]
add ecx, 2
sub edx, 1
jne 0x4087f5
jmp 0x4088bf
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov eax, bind
sub eax, dword [edi + 0x10]
cmp eax, edx
jb 0x408b48
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x29c], edi
jb 0x40883b
mov eax, dword [edi]
mov dword [ebp - 0x29c], eax
cmp ecx, 8
lea eax, [ebp - 0x2c]
push edx
cmovae eax, esi
push eax
push dword [edi + 0x10]
push dword [ebp - 0x29c]
push ecx
push dword [ebp - 0x29c]
lea ecx, [ebp - 0x2b8]
call fcn.004097f0
cmp dword [ebp - 0x2a4], 8
lea eax, [ebp - 0x2b8]
cmovae eax, dword [ebp - 0x2b8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x2a4]
cmp ecx, 8
jb 0x4088bc
mov edx, dword [ebp - 0x2b8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4088b2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408b4d
push ecx
push edx
call fcn.00517162
add esp, 8
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x298]
push eax
push dword [ebp - 0x2a0]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x408aa1
nop word [eax + eax]
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x2b8], 0
mov dword [ebp - 0x2a8], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x2a4], 7
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408907
sub ecx, edx
lea eax, [ebp - 0x26c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2b8]
call fcn.00408270
lea ecx, [ebp - 0x2c]
call fcn.00408210
movups xmm1, xmmword [ebp - 0x2b8]
cmp dword [ebp - 0x2a4], 8
lea esi, [ebp - 0x2c]
movq xmm0, qword [ebp - 0x2a8]
movd eax, xmm1
movups xmmword [ebp - 0x2c], xmm1
cmovae esi, eax
mov dword [ebp - 0x29c], eax
mov eax, dword [ebp - 0x2a8]
movq qword [ebp - 0x1c], xmm0
cmp eax, 1
jne 0x40899c
mov edx, eax
mov ecx, 0x55928c
test edx, edx
je 0x408a83
sub esi, ecx
nop dword [eax]
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x408996
add ecx, 2
sub edx, 1
jne 0x408980
jmp 0x408a83
mov eax, dword [ebp - 0x2a8]
cmp dword [ebp - 0x2a4], 8
lea esi, [ebp - 0x2c]
cmovae esi, dword [ebp - 0x29c]
cmp eax, 2
jne 0x4089d5
mov edx, eax
mov ecx, 0x559290
test edx, edx
je 0x4089d1
sub esi, ecx
nop
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x4089d5
add ecx, 2
sub edx, 1
jne 0x4089c0
mov al, 1
jmp 0x4089d7
xor al, al
test al, al
jne 0x408a83
mov edx, dword [edi + 0x10]
mov eax, bind
mov esi, dword [ebp - 0x2a8]
sub eax, edx
cmp eax, esi
jb 0x408b43
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x408a01
mov ecx, dword [edi]
cmp dword [ebp - 0x2a4], 8
lea eax, [ebp - 0x2c]
push esi
cmovae eax, dword [ebp - 0x29c]
push eax
push edx
push ecx
push ecx
push dword [ebp - 0x29c]
lea ecx, [ebp - 0x2d0]
call fcn.004097f0
cmp dword [ebp - 0x2bc], 8
lea eax, [ebp - 0x2d0]
cmovae eax, dword [ebp - 0x2d0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x2bc]
cmp ecx, 8
jb 0x408a83
mov edx, dword [ebp - 0x2d0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408a79
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408b4d
push ecx
push edx
call fcn.00517162
add esp, 8
lea eax, [ebp - 0x298]
push eax
push dword [ebp - 0x2a0]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4088e0
mov esi, dword [ebp - 0x2c]
push dword [ebp - 0x2a0]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [edi + 0x14], 8
jb 0x408ab5
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x408aef
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x408ae5
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408b52
push ecx
push esi
call fcn.00517162
add esp, 8
mov ecx, dword [ebp - 0x30]
cmp ecx, 8
jb 0x408b25
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408b1b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408b52
push ecx
push edx
call fcn.00517162
add esp, 8
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.00517154
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00401640
call fcn.00401640
call fcn.0051eb64
call fcn.0051eb64
int3