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

Disassembly:
push 0xffffffffffffffff
push 0x519421
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x56a260]
xor eax, esp
mov dword [esp + 0x264], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56a260]
xor eax, esp
push eax
lea eax, [esp + 0x27c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x28c]
push 0x531630
lea eax, [esp + 0x24]
push ebx
push eax
call fcn.0040bf20
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov eax, dword [esp + 0x20]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x24], esi
je 0x49de17
sub eax, 8
push eax
mov dword [esp + 0x24], eax
call fcn.004d37ab
add esp, 4
mov dword [esp + 0x20], edi
cmp esi, 0xffffffff
je 0x49e065
lea eax, [esp + 0x54]
mov dword [esp + 0x18], edi
lea edx, [eax + 2]
jmp 0x49de30
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x49de30
sub eax, edx
sar eax, 1
mov esi, eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00402700
cmp eax, 1
mov ebp, dword [esp + 0x18]
jne 0x49de69
lea edx, [esp + 0x54]
push edx
lea eax, [esi + 1]
push eax
push ebp
call fcn.004f2e08
add esp, 0xc
mov dword [ebp - 4], esi
mov esi, dword [esp + 0x28]
push 0x54e4a8
lea ecx, [esp + 0x20]
push ebx
shr esi, 4
push ecx
mov dword [esp + 0x290], edi
and esi, 1
call fcn.0040bf20
lea edx, [esp + 0x24]
push edx
push eax
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x29c], 1
call fcn.0040bfd0
add esp, 0x18
mov eax, dword [esp + 0x1c]
cmp eax, edi
mov byte [esp + 0x284], 3
je 0x49dec9
sub eax, 8
push eax
mov dword [esp + 0x20], eax
call fcn.004d37ab
add esp, 4
mov dword [esp + 0x1c], edi
cmp esi, edi
mov ecx, 0x53162c
mov eax, ebp
je 0x49df62
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x49defe
cmp dx, di
je 0x49defa
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x49defe
add eax, 4
add ecx, 4
cmp dx, di
jne 0x49ded8
xor eax, eax
jmp 0x49df03
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x49dfe2
mov ecx, 0x531624
mov eax, ebp
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x49df38
cmp dx, di
je 0x49df34
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x49df38
add eax, 4
add ecx, 4
cmp dx, di
jne 0x49df12
xor eax, eax
jmp 0x49df3d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x49dfe2
lea ecx, [esp + 0x14]
push ecx
call fcn.0049dd90
mov edx, dword [esp + 0x18]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x49dfe2
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x49df88
cmp dx, di
je 0x49df84
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x49df88
add eax, 4
add ecx, 4
cmp dx, di
jne 0x49df62
xor eax, eax
jmp 0x49df8d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x49dfe2
mov ecx, 0x531624
mov eax, ebp
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x49dfbe
cmp dx, di
je 0x49dfba
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x49dfbe
add eax, 4
add ecx, 4
cmp dx, di
jne 0x49df98
xor eax, eax
jmp 0x49dfc3
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x49dfe2
mov eax, dword [esp + 0x14]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x24]
lea edx, [esp + 0x28]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov eax, dword [esp + 0x14]
je 0x49e036
cmp eax, edi
je 0x49e012
sub eax, 8
push eax
mov dword [esp + 0x18], eax
call fcn.004d37ab
add esp, 4
mov dword [esp + 0x14], edi
cmp ebp, edi
mov dword [esp + 0x284], 0xffffffff
je 0x49de20
add ebp, 0xfffffff8
push ebp
call fcn.004d37ab
add esp, 4
jmp 0x49de20
cmp eax, edi
je 0x49e04e
sub eax, 8
push eax
mov dword [esp + 0x18], eax
call fcn.004d37ab
add esp, 4
mov dword [esp + 0x14], edi
cmp ebp, edi
je 0x49e05e
add ebp, 0xfffffff8
push ebp
call fcn.004d37ab
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x27c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x264]
xor ecx, esp
call fcn.004f2ac1
add esp, 0x274
ret