Function at 0x4216e0
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 0x4e3d7a
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 0x42173d
test al, 0x10
jne 0x421772
push esi
call fcn.00421e10
add esp, 4
test eax, eax
jne 0x421772
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.004b84de
add esp, 0x294
ret
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call fcn.004099e0
mov dword [esp + 0x2a4], 0
mov edx, dword [esp + 0x20]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x4217c5
lea ecx, [eax - 1]
test ecx, ecx
jl 0x421e01
cmp ecx, eax
jg 0x421e01
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x4217c5
cmp ax, 0x2f
je 0x4217c5
mov edx, 0x4f09a4
lea edi, [esp + 0x20]
call fcn.00413750
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.004099e0
mov byte [esp + 0x2a4], 1
mov edx, dword [esp + 0x1c]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x421815
lea ecx, [eax - 1]
test ecx, ecx
jl 0x421e01
cmp ecx, eax
jg 0x421e01
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x421815
cmp ax, 0x2f
je 0x421815
mov edx, 0x4f09a4
lea edi, [esp + 0x1c]
call fcn.00413750
mov edx, dword [0x5143ac]
mov eax, dword [edx + 0xc]
mov ecx, 0x5143ac
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x2a4], 2
mov edx, dword [0x5143ac]
mov eax, dword [edx + 0xc]
mov ecx, 0x5143ac
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.004099e0
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x2c]
push eax
mov ebx, 0x4f2d44
mov byte [esp + 0x2ac], 4
call fcn.00413810
add esp, 8
lea edi, [esp + 0x2c]
mov byte [esp + 0x2a4], 5
call fcn.004013f0
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 0x4218b9
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 0x421c16
test byte [esp + 0x44], 0x10
je 0x4219d2
mov ecx, 0x4f09d4
lea eax, [esp + 0x70]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x421916
test dx, dx
je 0x421912
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x421916
add eax, 4
add ecx, 4
test dx, dx
jne 0x4218f0
xor eax, eax
jmp 0x42191b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x421ab6
mov ecx, 0x4f1128
lea eax, [esp + 0x70]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x421956
test dx, dx
je 0x421952
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x421956
add eax, 4
add ecx, 4
test dx, dx
jne 0x421930
xor eax, eax
jmp 0x42195b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x421ab6
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
lea ebx, [esp + 0x78]
call fcn.00413810
mov esi, eax
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x2b4], 6
call fcn.00413810
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.004216e0
add esp, 0x1c
lea ecx, [esp + 0x34]
call fcn.00416ce0
lea ecx, [esp + 0x24]
mov byte [esp + 0x2a4], 4
call fcn.00416ce0
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x421ab6
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x28]
push eax
lea ebx, [esp + 0x78]
call fcn.00413810
add esp, 8
lea edi, [esp + 0x18]
mov byte [esp + 0x2a4], 8
call fcn.004013f0
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 0x421a21
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.00413810
add esp, 8
lea edi, [esp + 0x30]
mov byte [esp + 0x2a4], 9
call fcn.004013f0
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 0x421a70
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 0x421aac
test al, 0x10
jne 0x421aac
cmp dword [esp + 0x2b4], 0
je 0x421a98
mov ecx, dword [esp + 0x18]
push 5
push ebp
push ecx
jmp 0x421ab4
mov edi, dword [esp + 0x18]
push 1
push ebp
push edi
call esi
test eax, eax
jne 0x421ab6
push 5
push ebp
push edi
jmp 0x421ab4
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 0x421c0b
mov edi, edi
test byte [esp + 0x44], 0x10
je 0x421d0a
mov ecx, 0x4f09d4
lea eax, [esp + 0x70]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x421b0a
test dx, dx
je 0x421b06
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x421b0a
add eax, 4
add ecx, 4
test dx, dx
jne 0x421ae4
xor eax, eax
jmp 0x421b0f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x421bf3
mov ecx, 0x4f1128
lea eax, [esp + 0x70]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x421b46
test dx, dx
je 0x421b42
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x421b46
add eax, 4
add ecx, 4
test dx, dx
jne 0x421b20
xor eax, eax
jmp 0x421b4b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x421bf3
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x38]
push eax
lea ebx, [esp + 0x78]
call fcn.00413810
mov esi, eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x2b4], 0xa
call fcn.00413810
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.004216e0
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 0x421bc5
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 0x421bed
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 0x421ad0
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 0x421c39
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x91
jne 0x421c39
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 0x421c61
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 0x421c85
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 0x421cad
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 0x421cd5
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 0x421d00
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x42174a
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x40]
push edx
lea ebx, [esp + 0x78]
call fcn.00413810
add esp, 8
lea edi, [esp + 0x18]
mov byte [esp + 0x2a4], 0xc
call fcn.004013f0
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 0x421d59
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.00413810
add esp, 8
lea edi, [esp + 0x30]
mov byte [esp + 0x2a4], 0xd
call fcn.004013f0
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 0x421da8
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 0x421df2
test al, 0x10
jne 0x421df2
cmp dword [esp + 0x2b4], 0
je 0x421dd5
mov ecx, dword [esp + 0x18]
push 5
push ebp
push ecx
call esi
jmp 0x421bf3
mov edi, dword [esp + 0x18]
push 1
push ebp
push edi
call esi
test eax, eax
jne 0x421bed
push 5
push ebp
push edi
call esi
jmp 0x421bf3
mov edx, dword [esp + 0x18]
push 1
push ebp
push edx
call esi
jmp 0x421bf3
push 0x80070057
call fcn.00401340
int3