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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x465f64
mov eax, dword fs:[0]
push eax
sub esp, 0x314
mov eax, dword [0x47f5dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x411895
sub edx, ecx
xor eax, eax
sar edx, 1
cmp edx, 5
jbe 0x411ef6
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], eax
mov word [ebp - 0x58], ax
cmp word [esi], ax
jne 0x4118c6
xor ecx, ecx
jmp 0x4118df
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x4118d0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4118d0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x58]
call fcn.00409960
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
mov eax, dword [ebp - 0x48]
cmovae ecx, dword [ebp - 0x58]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x411915
push 1
push 0x46f0d0
lea ecx, [ebp - 0x58]
call fcn.00405980
push 8
mov dword [ebp - 0x2ec], 0
mov dword [ebp - 0x2e8], 0
mov dword [ebp - 0x2e4], 0
mov dword [ebp - 0x2e0], 0
mov dword [ebp - 0x2dc], 0
call fcn.0044afbe
add esp, 4
test eax, eax
jne 0x41195a
call fcn.0044a609
mov dword [ebp - 0x2ec], eax
lea ecx, [ebp - 0x2ec]
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x2ec]
mov dword [eax], ecx
mov byte [ebp - 4], 1
push 8
mov dword [ebp - 0x314], 0
mov dword [ebp - 0x310], 0
mov dword [ebp - 0x30c], 0
mov dword [ebp - 0x308], 0
mov dword [ebp - 0x304], 0
call fcn.0044afbe
add esp, 4
test eax, eax
jne 0x4119c4
call fcn.0044a609
mov dword [ebp - 0x314], eax
lea ecx, [ebp - 0x314]
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x314]
mov dword [eax], ecx
mov byte [ebp - 4], 2
push 8
mov dword [ebp - 0x300], 0
mov dword [ebp - 0x2fc], 0
mov dword [ebp - 0x2f8], 0
mov dword [ebp - 0x2f4], 0
mov dword [ebp - 0x2f0], 0
call fcn.0044afbe
add esp, 4
test eax, eax
jne 0x411a2e
call fcn.0044a609
mov dword [ebp - 0x300], eax
lea ecx, [ebp - 0x300]
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x300]
mov dword [eax], ecx
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x2ec]
call fcn.00412f00
cmp dword [ebp - 0x2dc], 0
je 0x411c97
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x411a80
lea eax, [ebp - 0x320]
push eax
lea ecx, [ebp - 0x2ec]
call fcn.00413060
mov edx, eax
mov ecx, dword [edx]
test ecx, ecx
jne 0x411a9e
xor eax, eax
jmp 0x411aa0
mov eax, dword [ecx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
push 0xffffffffffffffff
mov eax, dword [eax + ecx*4]
xor ecx, ecx
push ecx
mov word [ebp - 0x28], cx
lea ecx, [ebp - 0x28]
push eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
call fcn.00409dd0
push 0x474050
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.00413220
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2d8]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x411c05
lea esp, [esp]
lea eax, [ebp - 0x2ac]
push 0x474058
push eax
call fcn.0044d262
add esp, 8
test eax, eax
je 0x411bf0
lea eax, [ebp - 0x2ac]
push 0x47405c
push eax
call fcn.0044d262
add esp, 8
test eax, eax
je 0x411bf0
test byte [ebp - 0x2d8], 0x10
lea eax, [ebp - 0x2ac]
lea edx, [ebp - 0x28]
push eax
je 0x411bbd
lea ecx, [ebp - 0x88]
call fcn.00413220
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x70]
call fcn.00413310
add esp, 4
mov byte [ebp - 4], 8
cmp dword [ebp - 0x74], 8
jb 0x411b8f
push dword [ebp - 0x88]
call fcn.0044a77c
add esp, 4
xor eax, eax
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
lea ecx, [ebp - 0x2ec]
lea eax, [ebp - 0x70]
mov dword [ebp - 0x78], 0
push eax
call fcn.00412f00
lea ecx, [ebp - 0x300]
jmp 0x411bd2
lea ecx, [ebp - 0x70]
call fcn.00413220
add esp, 4
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x314]
lea eax, [ebp - 0x70]
push eax
call fcn.00412f00
mov byte [ebp - 4], 5
cmp dword [ebp - 0x5c], 8
jb 0x411bf0
push dword [ebp - 0x70]
call fcn.0044a77c
add esp, 4
lea eax, [ebp - 0x2d8]
push eax
push esi
call edi
test eax, eax
jne 0x411b10
push esi
call ebx
mov ecx, dword [ebp - 0x2e4]
mov eax, dword [ebp - 0x2e8]
dec ecx
and ecx, dword [ebp - 0x2e0]
mov esi, dword [eax + ecx*4]
cmp dword [esi + 0x14], 8
jb 0x411c2b
push dword [esi]
call fcn.0044a77c
add esp, 4
mov dword [esi + 0x14], 7
xor eax, eax
mov dword [esi + 0x10], 0
mov word [esi], ax
dec dword [ebp - 0x2dc]
jne 0x411c4e
mov dword [ebp - 0x2e0], eax
jmp 0x411c54
inc dword [ebp - 0x2e0]
cmp dword [ebp - 0x2c], 8
jb 0x411c65
push dword [ebp - 0x40]
call fcn.0044a77c
add esp, 4
mov byte [ebp - 4], 3
xor eax, eax
cmp dword [ebp - 0x14], 8
mov word [ebp - 0x40], ax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
jb 0x411c8a
push dword [ebp - 0x28]
call fcn.0044a77c
add esp, 4
cmp dword [ebp - 0x2dc], 0
jne 0x411a80
cmp dword [ebp - 0x304], 0
mov edi, 1
je 0x411d8a
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
lea eax, [ebp - 0x320]
push eax
lea ecx, [ebp - 0x314]
call fcn.00413060
mov edx, eax
mov ecx, dword [edx]
test ecx, ecx
jne 0x411cce
xor eax, eax
jmp 0x411cd0
mov eax, dword [ecx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
push 0xffffffffffffffff
mov eax, dword [eax + ecx*4]
xor ecx, ecx
push ecx
mov word [ebp - 0x28], cx
lea ecx, [ebp - 0x28]
push eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
call fcn.00409dd0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
mov ecx, dword [ebp - 0x30c]
neg eax
sbb eax, eax
dec ecx
and ecx, dword [ebp - 0x308]
and edi, eax
mov eax, dword [ebp - 0x310]
mov esi, dword [eax + ecx*4]
cmp dword [esi + 0x14], 8
jb 0x411d37
push dword [esi]
call fcn.0044a77c
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov eax, dword [ebp - 0x304]
dec eax
mov dword [ebp - 0x304], eax
jne 0x411d65
mov dword [ebp - 0x308], 0
jmp 0x411d6b
inc dword [ebp - 0x308]
cmp dword [ebp - 0x14], 8
jb 0x411d82
push dword [ebp - 0x28]
call fcn.0044a77c
mov eax, dword [ebp - 0x304]
add esp, 4
test eax, eax
jne 0x411cb0
cmp dword [ebp - 0x2f0], 0
je 0x411e7a
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ecx]
lea eax, [ebp - 0x320]
push eax
lea ecx, [ebp - 0x300]
call fcn.00413060
mov edx, eax
mov ecx, dword [edx]
test ecx, ecx
jne 0x411dbe
xor eax, eax
jmp 0x411dc0
mov eax, dword [ecx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
push 0xffffffffffffffff
mov eax, dword [eax + ecx*4]
xor ecx, ecx
push ecx
mov word [ebp - 0x28], cx
lea ecx, [ebp - 0x28]
push eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
call fcn.00409dd0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
mov ecx, dword [ebp - 0x2f8]
neg eax
sbb eax, eax
dec ecx
and ecx, dword [ebp - 0x2f4]
and edi, eax
mov eax, dword [ebp - 0x2fc]
mov esi, dword [eax + ecx*4]
cmp dword [esi + 0x14], 8
jb 0x411e27
push dword [esi]
call fcn.0044a77c
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov eax, dword [ebp - 0x2f0]
dec eax
mov dword [ebp - 0x2f0], eax
jne 0x411e55
mov dword [ebp - 0x2f4], 0
jmp 0x411e5b
inc dword [ebp - 0x2f4]
cmp dword [ebp - 0x14], 8
jb 0x411e72
push dword [ebp - 0x28]
call fcn.0044a77c
mov eax, dword [ebp - 0x2f0]
add esp, 4
test eax, eax
jne 0x411da0
lea ecx, [ebp - 0x300]
call fcn.00412fc0
push dword [ebp - 0x300]
call fcn.0044a77c
add esp, 4
mov dword [ebp - 0x300], 0
lea ecx, [ebp - 0x314]
call fcn.00412fc0
push dword [ebp - 0x314]
call fcn.0044a77c
add esp, 4
mov dword [ebp - 0x314], 0
lea ecx, [ebp - 0x2ec]
call fcn.00412fc0
push dword [ebp - 0x2ec]
call fcn.0044a77c
add esp, 4
mov dword [ebp - 0x2ec], 0
cmp dword [ebp - 0x44], 8
jb 0x411ef4
push dword [ebp - 0x58]
call fcn.0044a77c
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044a781
mov esp, ebp
pop ebp
ret