Function at 0x4d1350
Capabilities:
Delete directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x4d1359
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 0x4d1636
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
xor eax, eax
push ebp
push 0x4d15ea
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
add eax, 0xc
mov edx, dword [ebp - 0xc]
call fcn.00406a70
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 8]
call fcn.004280f0
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.0042bfd0
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
add eax, 8
call fcn.004069d4
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jne 0x4d13e5
mov eax, dword [0x5ddb4c]
mov eax, dword [eax]
xor ecx, ecx
mov edx, 0x4d1654
call fcn.0043f720
call fcn.00405dfc
jmp 0x4d15f1
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 8]
mov dx, word [edx]
call fcn.0040722c
push dword [ebp - 0x2c]
push 0x4d1684
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 8]
call fcn.00407310
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
call fcn.00447280
lea eax, [ebp - 0x40]
lea edx, [ebp - 0x30]
call fcn.004474e0
push dword [ebp - 0x30]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.0040748c
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
call fcn.00406610
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x1c]
call fcn.0041d1d8
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.00407404
mov eax, dword [ebp - 0x18]
call fcn.00428400
test al, al
je 0x4d149d
cmp dword [ebp - 0x1c], 0x3e8
jle 0x4d1498
lea eax, [ebp - 0x4c]
mov ecx, dword [ebp - 0x18]
mov edx, 0x4d1698
call fcn.00407404
mov edx, dword [ebp - 0x4c]
mov eax, dword [0x5ddb4c]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0043f720
call fcn.00405dfc
jmp 0x4d15f1
inc dword [ebp - 0x1c]
jmp 0x4d143f
mov eax, dword [ebp - 4]
lea edx, [eax + 0x10]
mov eax, dword [ebp - 0x18]
call fcn.00409c70
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00407214
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00406f64
push eax
call dword [0x5e8b24]
add esp, 8
test al, al
jne 0x4d150b
push 0x4d16f0
push dword [ebp - 0x18]
push 0x4d1734
mov eax, dword [ebp - 4]
push dword [eax + 8]
lea eax, [ebp - 0x50]
mov edx, 4
call fcn.0040748c
mov edx, dword [ebp - 0x50]
mov eax, dword [0x5ddb4c]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0043f720
call fcn.00405dfc
jmp 0x4d15f1
push 2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00406f64
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 4]
push dword [eax + 0x10]
push 0x4d174c
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00406dc4
push 1
mov eax, dword [ebp - 0x20]
call fcn.00406f64
push eax
mov eax, dword [ebp + 8]
call fcn.00406f64
push eax
call dword [0x5e8ae0]
add esp, 0xc
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x4d15b1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00406f64
push eax
call sub.kernel32.dll_RemoveDirectoryA
push 0x4d175c
push dword [ebp - 0x18]
push 0x4d1734
mov eax, dword [ebp - 4]
push dword [eax + 8]
lea eax, [ebp - 0x54]
mov edx, 4
call fcn.0040748c
mov edx, dword [ebp - 0x54]
mov eax, dword [0x5ddb4c]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0043f720
call fcn.00405dfc
jmp 0x4d15f1
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d15f1
cmp byte [ebp - 0xd], 0
jne 0x4d15e9
mov eax, dword [ebp - 4]
add eax, 8
call fcn.00406610
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.00406634
mov eax, dword [ebp - 4]
add eax, 0x10
call fcn.00406634
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d163d
lea eax, [ebp - 0x54]
mov edx, 4
call fcn.00406670
lea eax, [ebp - 0x44]
call fcn.00406658
lea eax, [ebp - 0x30]
mov edx, 4
call fcn.00406670
lea eax, [ebp - 0x20]
call fcn.00406634
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00406670
ret