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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x56d380]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x270], ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx - 0xc]
push ebx
push esi
push edi
test eax, eax
jne 0x45175e
lea eax, [ecx - 0x10]
jmp 0x451acd
mov edx, dword [0x56c260]
mov eax, dword [edx + 0xc]
mov ecx, 0x56c260
call eax
push 0x545c1c
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x260]
add eax, 0x10
push edx
mov dword [ebp - 0x25c], eax
call fcn.00428550
mov eax, dword [0x56c260]
mov edx, dword [eax + 0xc]
add esp, 0xc
mov ecx, 0x56c260
call edx
mov ecx, dword [ebp - 0x260]
add eax, 0x10
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x254]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x264], eax
cmp eax, 0xffffffff
je 0x451a4a
lea ebx, [ebx]
lea eax, [ebp - 0x228]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4517e0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x228]
push edx
lea ecx, [ebp - 0x25c]
call fcn.00403ee0
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x451817
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
jne 0x451827
mov edx, dword [0x56c260]
mov eax, dword [edx + 0x10]
mov ecx, 0x56c260
call eax
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x451af9
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp - 0x25c]
mov edi, dword [ecx - 0xc]
lea esi, [eax + 0x10]
mov eax, dword [ebp + 8]
mov ebx, dword [eax - 0xc]
mov dword [ebp - 0x26c], edi
add edi, ebx
mov dword [ebp - 0x268], esi
mov dword [ebp - 0x274], eax
js 0x451b03
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x45188e
push edi
lea ecx, [ebp - 0x268]
call fcn.00403d60
mov esi, dword [ebp - 0x268]
mov edx, dword [ebp - 0x274]
add ebx, ebx
push ebx
push edx
push ebx
push esi
call fcn.004fe509
mov eax, dword [ebp - 0x26c]
mov ecx, dword [ebp - 0x25c]
add eax, eax
push eax
push ecx
push eax
add ebx, esi
push ebx
call fcn.004fe509
add esp, 0x20
cmp edi, dword [esi - 8]
jg 0x451b03
mov ebx, dword [ebp - 0x258]
xor edx, edx
mov dword [esi - 0xc], edi
mov word [esi + edi*2], dx
lea edi, [esi - 0x10]
add ebx, 0xfffffff0
cmp edi, ebx
je 0x451927
cmp dword [ebx + 0xc], edx
jl 0x451917
mov eax, dword [edi]
cmp eax, dword [ebx]
jne 0x451917
push edi
call fcn.00403b50
mov esi, eax
add esp, 4
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45190c
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
add esi, 0x10
mov dword [ebp - 0x258], esi
jmp 0x451927
mov eax, dword [esi - 0xc]
push eax
push esi
lea ecx, [ebp - 0x258]
call fcn.00403ee0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x451940
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x451962
mov ecx, dword [ebp - 0x258]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp - 0x254], 0x10
je 0x451a0b
mov eax, dword [ebp - 0x25c]
mov ecx, 0x545c18
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4519a6
test dx, dx
je 0x4519a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4519a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x451980
xor eax, eax
jmp 0x4519ab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x451a28
lea edx, [ebp - 0x25c]
push 0x545c10
push edx
call fcn.00441a90
add esp, 8
test al, al
je 0x451a28
push 1
push 0x556338
lea ecx, [ebp - 0x258]
call fcn.004034c0
mov eax, dword [ebp + 0x10]
push eax
push 1
push ecx
mov ecx, dword [ebp - 0x258]
add ecx, 0xfffffff0
mov esi, esp
push ecx
call fcn.00403b50
mov ecx, dword [ebp - 0x270]
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00451730
jmp 0x451a28
mov edx, dword [ebp - 0x258]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 0x10], 0
jbe 0x451a28
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x264]
lea ecx, [ebp - 0x254]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4517d0
mov eax, dword [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0xc], 0
je 0x451a61
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [ebp - 0x258]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x451a83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x260]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x451aa5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x25c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x451ac7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x451ae6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00500397
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00404190
push 0x80070057
call fcn.00404190
int3