Function at 0x4d0e40
Capabilities:
Delete directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x4d0e49
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 0x4d1126
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
xor eax, eax
push ebp
push 0x4d10da
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.00428160
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.0042c040
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 0x4d0ed5
mov eax, dword [0x5dcb2c]
mov eax, dword [eax]
xor ecx, ecx
mov edx, 0x4d1144
call fcn.0043f790
call fcn.00405dfc
jmp 0x4d10e1
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 0x4d1174
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.004472f0
lea eax, [ebp - 0x40]
lea edx, [ebp - 0x30]
call fcn.00447550
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.0041d248
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.00407404
mov eax, dword [ebp - 0x18]
call fcn.00428470
test al, al
je 0x4d0f8d
cmp dword [ebp - 0x1c], 0x3e8
jle 0x4d0f88
lea eax, [ebp - 0x4c]
mov ecx, dword [ebp - 0x18]
mov edx, 0x4d1188
call fcn.00407404
mov edx, dword [ebp - 0x4c]
mov eax, dword [0x5dcb2c]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0043f790
call fcn.00405dfc
jmp 0x4d10e1
inc dword [ebp - 0x1c]
jmp 0x4d0f2f
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 [0x5e7b20]
add esp, 8
test al, al
jne 0x4d0ffb
push 0x4d11e0
push dword [ebp - 0x18]
push 0x4d1224
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 [0x5dcb2c]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0043f790
call fcn.00405dfc
jmp 0x4d10e1
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 0x4d123c
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 [0x5e7adc]
add esp, 0xc
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x4d10a1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00406f64
push eax
call sub.kernel32.dll_RemoveDirectoryA
push 0x4d124c
push dword [ebp - 0x18]
push 0x4d1224
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 [0x5dcb2c]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0043f790
call fcn.00405dfc
jmp 0x4d10e1
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d10e1
cmp byte [ebp - 0xd], 0
jne 0x4d10d9
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 0x4d112d
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