Function at 0x4d0fa0
Capabilities:
Delete directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x4d0fa9
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 0x4d1286
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
xor eax, eax
push ebp
push 0x4d123a
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.004280c0
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.0042bfa0
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 0x4d1035
mov eax, dword [0x5dfa4c]
mov eax, dword [eax]
xor ecx, ecx
mov edx, 0x4d12a4
call fcn.0043f350
call fcn.00405dfc
jmp 0x4d1241
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 0x4d12d4
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.00446e60
lea eax, [ebp - 0x40]
lea edx, [ebp - 0x30]
call fcn.004470c0
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.0041d1b8
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.00407404
mov eax, dword [ebp - 0x18]
call fcn.004283d0
test al, al
je 0x4d10ed
cmp dword [ebp - 0x1c], 0x3e8
jle 0x4d10e8
lea eax, [ebp - 0x4c]
mov ecx, dword [ebp - 0x18]
mov edx, 0x4d12e8
call fcn.00407404
mov edx, dword [ebp - 0x4c]
mov eax, dword [0x5dfa4c]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0043f350
call fcn.00405dfc
jmp 0x4d1241
inc dword [ebp - 0x1c]
jmp 0x4d108f
mov eax, dword [ebp - 4]
lea edx, [eax + 0x10]
mov eax, dword [ebp - 0x18]
call fcn.00409c24
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 [0x5eab24]
add esp, 8
test al, al
jne 0x4d115b
push 0x4d1340
push dword [ebp - 0x18]
push 0x4d1384
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 [0x5dfa4c]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0043f350
call fcn.00405dfc
jmp 0x4d1241
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 0x4d139c
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 [0x5eaae0]
add esp, 0xc
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x4d1201
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00406f64
push eax
call sub.kernel32.dll_RemoveDirectoryA
push 0x4d13ac
push dword [ebp - 0x18]
push 0x4d1384
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 [0x5dfa4c]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0043f350
call fcn.00405dfc
jmp 0x4d1241
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1241
cmp byte [ebp - 0xd], 0
jne 0x4d1239
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 0x4d128d
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