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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
or edi, 0xffffffff
cmp dword [eax - 0xc], 0
je 0x40766d
push 0x419310
lea ecx, [ebp + 8]
call fcn.00403c30
push 1
push 0x419310
lea ecx, [ebp + 8]
call fcn.004015c0
call fcn.00402700
mov ecx, eax
test ecx, ecx
je 0x407698
mov eax, dword [ecx]
call dword [eax + 0xc]
push dword [ebp + 8]
add eax, 0x10
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x258]
push 0x419eb8
push eax
call fcn.00402620
mov esi, dword [ebp - 0x258]
lea eax, [ebp - 0x254]
add esp, 0xc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, edi
jne 0x4073ad
add esi, 0xfffffff0
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40766d
mov ecx, dword [esi]
push esi
jmp 0x407668
push 0x419ec0
lea ecx, [ebp - 0x258]
call fcn.00403c30
call fcn.00402700
mov ecx, eax
test ecx, ecx
je 0x4076a2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x25c], eax
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 0x4073f0
sub eax, edx
lea ecx, [ebp - 0x25c]
sar eax, 1
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00403af0
mov esi, dword [ebp - 0x25c]
mov ecx, 0x419448
mov eax, esi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407446
test dx, dx
je 0x407442
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407446
add eax, 4
add ecx, 4
test dx, dx
jne 0x407420
xor eax, eax
jmp 0x40744b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4075ae
mov ecx, 0x419ec4
mov eax, esi
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407486
test dx, dx
je 0x407482
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407486
add eax, 4
add ecx, 4
test dx, dx
jne 0x407460
xor eax, eax
jmp 0x40748b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4075ae
mov eax, dword [ebp - 0x254]
and eax, 0x10
cmp eax, 1
jb 0x407553
push ecx
mov eax, esp
lea ecx, [ebp - 0x25c]
push ecx
lea ecx, [ebp - 0x258]
push ecx
push eax
call fcn.00407290
add esp, 0xc
call fcn.00407300
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.00407290
add esp, 0x10
push 0x80
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [ebp - 0x264]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40750d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.00407290
add esp, 0xc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edx, dword [ebp - 0x268]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4075ae
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4075ae
test eax, eax
jne 0x4075ae
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00407290
add esp, 0xc
lea ecx, [ebp - 0x25c]
push eax
call fcn.004012c0
mov edx, dword [ebp - 0x260]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40759f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x25c]
push esi
call fcn.004076b0
add esp, 4
lea eax, [ebp - 0x254]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4073e0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x5c
push dword [ebp + 8]
call fcn.0040afcb
add esp, 8
test eax, eax
jne 0x4075e1
or eax, 0xffffffff
jmp 0x4075e6
sub eax, dword [ebp + 8]
sar eax, 1
push eax
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp + 8]
call fcn.004089f0
push eax
lea ecx, [ebp + 8]
call fcn.004012c0
mov edx, dword [ebp - 0x260]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40761e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
add esi, 0xfffffff0
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40764e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x258]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40766d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x407687
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a5e0
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004017a0
push 0x80004005
call fcn.004017a0
int3