Function at 0x41a2c0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

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 0x54add3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x1c0
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
push esi
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0
mov esi, ecx
mov dword [ebp - 0x1c], 0
push edi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
mov dword [ebp - 4], 0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
mov byte [ebp - 4], 2
mov eax, closesocket
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 4
jb 0x41a6d0
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x41a370
mov eax, dword [esi]
push 4
push str..
push ecx
push eax
push ecx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x60]
call fcn.004b92d0
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x14], 4
call fcn.0040fe60
movups xmm0, xmmword [ebp - 0x60]
mov edi, 4
mov byte [ebp - 0x60], 0
movups xmmword [ebp - 0x48], xmm0
movq xmm0, qword [ebp - 0x50]
mov dword [ebp - 0x14], edi
and edi, 0xfffffffb
movq qword [ebp - 0x38], xmm0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.0040fe60
cmp dword [ebp - 0x34], 0x10
lea ecx, [ebp - 0x1d0]
lea eax, [ebp - 0x48]
cmovae eax, dword [ebp - 0x48]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x41a62a
nop word [eax + eax]
lea eax, [ebp - 0x1a4]
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41a410
mov cl, byte [ebp - 0x1a4]
sub eax, edx
cmp eax, 1
jne 0x41a42d
cmp cl, 0x2e
je 0x41a5ae
cmp eax, 2
jne 0x41a443
cmp cl, 0x2e
jne 0x41a443
cmp byte [ebp - 0x1a3], cl
je 0x41a5ae
cmp dword [ebp - 0x1c], 0x10
lea eax, [ebp - 0x30]
mov dword [ebp - 0x20], 0
cmovae eax, dword [ebp - 0x30]
mov byte [eax], 0
mov byte [ebp - 4], 3
mov eax, closesocket
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x41a6d0
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x41a479
mov eax, dword [esi]
push 1
push 0x570488
push ecx
push eax
push ecx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x90]
call fcn.004b92d0
or edi, 1
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1a4]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a4a4
sub ecx, edx
lea eax, [ebp - 0x1a4]
push ecx
push eax
lea ecx, [ebp - 0x90]
call fcn.004b34b0
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x4c], 0
or edi, 2
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x60], xmm0
movups xmmword [ebp - 0x78], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x50], xmm0
movq qword [ebp - 0x68], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov dword [ebp - 0x14], edi
call fcn.0040fe60
movups xmm0, xmmword [ebp - 0x78]
and edi, 0xfffffffd
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
movups xmmword [ebp - 0x30], xmm0
mov byte [ebp - 0x60], 0
movq xmm0, qword [ebp - 0x68]
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x60]
call fcn.0040fe60
and edi, 0xfffffffe
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x90]
call fcn.0040fe60
test byte [ebp - 0x1d0], 0x10
je 0x41a579
push 0
mov dl, 1
lea ecx, [ebp - 0x30]
call fcn.0041a2c0
mov edi, eax
add esp, 4
test edi, edi
jne 0x41a62c
mov edi, dword [ebp - 0x14]
jmp 0x41a5ae
cmp dword [ebp - 0x1c], 0x10
lea eax, [ebp - 0x30]
push 0x80
cmovae eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x41a620
cmp dword [ebp - 0x1c], 0x10
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x41a620
lea eax, [ebp - 0x1d0]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
je 0x41a400
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x12
jne 0x41a62c
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x41a5e7
mov eax, dword [esi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x41a602
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov edi, eax
jmp 0x41a62c
cmp dword [esi + 0x14], 0x10
jb 0x41a60a
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x41a62a
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov edi, eax
jmp 0x41a62c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x41a62c
xor edi, edi
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp ecx, 0x10
jb 0x41a660
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41a656
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a6d5
push ecx
push edx
call fcn.0050d4b1
add esp, 8
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0x10
jb 0x41a6a9
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41a69f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a6d5
push ecx
push edx
call fcn.0050d4b1
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040f7b0
call fcn.005289b0
int3