Function at 0x4d21a0
Capabilities:
Delete directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x4d21a9
xchg dword [ebp - 4], ecx
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d2496
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
xor eax, eax
push ebp
push 0x4d243a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
add eax, 0xc
mov edx, dword [ebp - 0xc]
call fcn.00406a8c
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 8]
call fcn.00427dd0
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.0042bd20
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
add eax, 8
call fcn.004069f0
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jne 0x4d2235
mov eax, dword [0x5eba70]
mov eax, dword [eax]
xor ecx, ecx
mov edx, 0x4d24b4
call fcn.0043f530
call fcn.00405e18
jmp 0x4d2441
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 8]
mov dx, word [edx]
call fcn.00407248
push dword [ebp - 0x2c]
push 0x4d24e4
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 8]
call fcn.0040732c
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
call fcn.00447120
lea eax, [ebp - 0x40]
lea edx, [ebp - 0x30]
call fcn.00447380
push dword [ebp - 0x30]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004074a8
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
call fcn.0040662c
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x1c]
call fcn.0041d1ac
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.00407420
mov eax, dword [ebp - 0x18]
call fcn.004280e0
test al, al
je 0x4d22ed
cmp dword [ebp - 0x1c], 0x3e8
jle 0x4d22e8
lea eax, [ebp - 0x4c]
mov ecx, dword [ebp - 0x18]
mov edx, 0x4d24f8
call fcn.00407420
mov edx, dword [ebp - 0x4c]
mov eax, dword [0x5eba70]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0043f530
call fcn.00405e18
jmp 0x4d2441
inc dword [ebp - 0x1c]
jmp 0x4d228f
mov eax, dword [ebp - 4]
lea edx, [eax + 0x10]
mov eax, dword [ebp - 0x18]
call fcn.00409c40
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00407230
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00406f80
push eax
call dword [0x5f6b34]
add esp, 8
test al, al
jne 0x4d235b
push 0x4d2550
push dword [ebp - 0x18]
push 0x4d2594
mov eax, dword [ebp - 4]
push dword [eax + 8]
lea eax, [ebp - 0x50]
mov edx, 4
call fcn.004074a8
mov edx, dword [ebp - 0x50]
mov eax, dword [0x5eba70]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0043f530
call fcn.00405e18
jmp 0x4d2441
push 2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00406f80
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 4]
push dword [eax + 0x10]
push 0x4d25ac
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00406de0
push 1
mov eax, dword [ebp - 0x20]
call fcn.00406f80
push eax
mov eax, dword [ebp + 8]
call fcn.00406f80
push eax
call dword [0x5f6af0]
add esp, 0xc
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x4d2401
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00406f80
push eax
call sub.kernel32.dll_RemoveDirectoryA
push 0x4d25bc
push dword [ebp - 0x18]
push 0x4d2594
mov eax, dword [ebp - 4]
push dword [eax + 8]
lea eax, [ebp - 0x54]
mov edx, 4
call fcn.004074a8
mov edx, dword [ebp - 0x54]
mov eax, dword [0x5eba70]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0043f530
call fcn.00405e18
jmp 0x4d2441
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d2441
cmp byte [ebp - 0xd], 0
jne 0x4d2439
mov eax, dword [ebp - 4]
add eax, 8
call fcn.0040662c
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.00406650
mov eax, dword [ebp - 4]
add eax, 0x10
call fcn.00406650
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d249d
lea eax, [ebp - 0x54]
mov edx, 4
call fcn.0040668c
lea eax, [ebp - 0x44]
call fcn.00406674
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.0040668c
lea eax, [ebp - 0x28]
call fcn.0040662c
lea eax, [ebp - 0x24]
call fcn.0040662c
lea eax, [ebp - 0x20]
call fcn.00406650
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.0040668c
ret