Function at 0x4216c0
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Move file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4e3c2a
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x29c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2b0]
mov edi, dword [esp + 0x2ac]
push esi
mov dword [esp + 0x3c], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42171d
test al, 0x10
jne 0x421752
push esi
call fcn.00421df0
add esp, 4
test eax, eax
jne 0x421752
mov ecx, dword [esp + 0x29c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.004b83ee
add esp, 0x294
ret
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call fcn.00409c00
mov dword [esp + 0x2a4], 0
mov edx, dword [esp + 0x20]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x4217a5
lea ecx, [eax - 1]
test ecx, ecx
jl 0x421de1
cmp ecx, eax
jg 0x421de1
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x4217a5
cmp ax, 0x2f
je 0x4217a5
mov edx, 0x4f09a4
lea edi, [esp + 0x20]
call fcn.004139a0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00409c00
mov byte [esp + 0x2a4], 1
mov edx, dword [esp + 0x1c]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x4217f5
lea ecx, [eax - 1]
test ecx, ecx
jl 0x421de1
cmp ecx, eax
jg 0x421de1
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x4217f5
cmp ax, 0x2f
je 0x4217f5
mov edx, 0x4f09a4
lea edi, [esp + 0x1c]
call fcn.004139a0
mov edx, dword [0x5143cc]
mov eax, dword [edx + 0xc]
mov ecx, 0x5143cc
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x2a4], 2
mov edx, dword [0x5143cc]
mov eax, dword [edx + 0xc]
mov ecx, 0x5143cc
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x30], ebp
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x3c]
mov byte [esp + 0x2a8], 3
call fcn.00409c00
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x2c]
push eax
mov ebx, 0x4f2d44
mov byte [esp + 0x2ac], 4
call fcn.00413a60
add esp, 8
lea edi, [esp + 0x2c]
mov byte [esp + 0x2a4], 5
call fcn.00401410
mov byte [esp + 0x2a4], 4
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421899
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x44]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [esp + 0x28], eax
je 0x421bf6
test byte [esp + 0x44], 0x10
je 0x4219b2
mov ecx, 0x4f09d4
lea eax, [esp + 0x70]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4218f6
test dx, dx
je 0x4218f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4218f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4218d0
xor eax, eax
jmp 0x4218fb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x421a96
mov ecx, 0x4f1128
lea eax, [esp + 0x70]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x421936
test dx, dx
je 0x421932
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x421936
add eax, 4
add ecx, 4
test dx, dx
jne 0x421910
xor eax, eax
jmp 0x42193b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x421a96
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
lea ebx, [esp + 0x78]
call fcn.00413a60
mov esi, eax
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x2b4], 6
call fcn.00413a60
mov ecx, dword [esp + 0x2c4]
mov byte [esp + 0x2b4], 7
mov esi, dword [esi]
mov eax, dword [eax]
push ecx
push esi
push eax
call fcn.004216c0
add esp, 0x1c
lea ecx, [esp + 0x34]
call fcn.004016d0
lea ecx, [esp + 0x24]
mov byte [esp + 0x2a4], 4
call fcn.004016d0
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x421a96
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x28]
push eax
lea ebx, [esp + 0x78]
call fcn.00413a60
add esp, 8
lea edi, [esp + 0x18]
mov byte [esp + 0x2a4], 8
call fcn.00401410
mov byte [esp + 0x2a4], 4
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421a01
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
lea ebx, [esp + 0x78]
call fcn.00413a60
add esp, 8
lea edi, [esp + 0x30]
mov byte [esp + 0x2a4], 9
call fcn.00401410
mov byte [esp + 0x2a4], 4
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421a50
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x30]
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x421a8c
test al, 0x10
jne 0x421a8c
cmp dword [esp + 0x2b4], 0
je 0x421a78
mov ecx, dword [esp + 0x18]
push 5
push ebp
push ecx
jmp 0x421a94
mov edi, dword [esp + 0x18]
push 1
push ebp
push edi
call esi
test eax, eax
jne 0x421a96
push 5
push ebp
push edi
jmp 0x421a94
mov edx, dword [esp + 0x18]
push 1
push ebp
push edx
call esi
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x421beb
mov edi, edi
test byte [esp + 0x44], 0x10
je 0x421cea
mov ecx, 0x4f09d4
lea eax, [esp + 0x70]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x421aea
test dx, dx
je 0x421ae6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x421aea
add eax, 4
add ecx, 4
test dx, dx
jne 0x421ac4
xor eax, eax
jmp 0x421aef
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x421bd3
mov ecx, 0x4f1128
lea eax, [esp + 0x70]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x421b26
test dx, dx
je 0x421b22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x421b26
add eax, 4
add ecx, 4
test dx, dx
jne 0x421b00
xor eax, eax
jmp 0x421b2b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x421bd3
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x38]
push eax
lea ebx, [esp + 0x78]
call fcn.00413a60
mov esi, eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x2b4], 0xa
call fcn.00413a60
mov ecx, dword [esp + 0x2c4]
mov byte [esp + 0x2b4], 0xb
mov esi, dword [esi]
mov eax, dword [eax]
push ecx
push esi
push eax
call fcn.004216c0
mov byte [esp + 0x2c0], 0xa
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
add esp, 0x1c
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x421ba5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2a4], 4
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421bcd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x421ab0
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [esp + 0x38]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x421c19
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x91
jne 0x421c19
push 4
push 0
push edi
call esi
mov byte [esp + 0x2a4], 3
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421c41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x2a4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421c65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2a4], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421c8d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2a4], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421cb5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2a4], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421ce0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x42172a
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x40]
push edx
lea ebx, [esp + 0x78]
call fcn.00413a60
add esp, 8
lea edi, [esp + 0x18]
mov byte [esp + 0x2a4], 0xc
call fcn.00401410
mov byte [esp + 0x2a4], 4
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421d39
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x44]
push edx
lea ebx, [esp + 0x78]
call fcn.00413a60
add esp, 8
lea edi, [esp + 0x30]
mov byte [esp + 0x2a4], 0xd
call fcn.00401410
mov byte [esp + 0x2a4], 4
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421d88
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x30]
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x421dd2
test al, 0x10
jne 0x421dd2
cmp dword [esp + 0x2b4], 0
je 0x421db5
mov ecx, dword [esp + 0x18]
push 5
push ebp
push ecx
call esi
jmp 0x421bd3
mov edi, dword [esp + 0x18]
push 1
push ebp
push edi
call esi
test eax, eax
jne 0x421bcd
push 5
push ebp
push edi
call esi
jmp 0x421bd3
mov edx, dword [esp + 0x18]
push 1
push ebp
push edx
call esi
jmp 0x421bd3
push 0x80070057
call fcn.00401350
int3