Function at 0x4ed110
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xe
push 0
push 0
dec ecx
jne 0x4ed119
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 0x4ed501
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
xor eax, eax
push ebp
push 0x4ed4a5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
add eax, 0xc
mov edx, dword [ebp - 0xc]
call fcn.00406ee4
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 8]
call fcn.0042e270
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.00432b40
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
add eax, 8
call fcn.00406e48
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jne 0x4ed1a5
mov eax, dword [0x653d30]
mov eax, dword [eax]
xor ecx, ecx
mov edx, 0x4ed520
call fcn.0043ee40
call fcn.00406244
jmp 0x4ed4ac
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0xc]
call fcn.0040a484
mov eax, dword [ebp - 0x34]
push eax
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00432af0
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x1c]
pop ecx
call fcn.0040786c
cmp byte [ebp + 8], 0
jne 0x4ed28b
mov edx, 1
mov eax, dword [ebp - 0x1c]
call fcn.00432ed0
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4ed219
lea eax, [ebp - 0x3c]
mov ecx, dword [ebp - 0x1c]
mov edx, 0x4ed550
call fcn.0040786c
mov edx, dword [ebp - 0x3c]
mov eax, dword [0x653d30]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0043ee40
call fcn.00406244
jmp 0x4ed4ac
xor eax, eax
push ebp
push 0x4ed284
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x4ed23c
cmp eax, 0x400
jae 0x4ed26e
jmp 0x4ed23e
jge 0x4ed26e
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 0x1c]
mov edx, 0x4ed57c
call fcn.0040786c
mov edx, dword [ebp - 0x40]
mov eax, dword [0x653d30]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0043ee40
call fcn.00406244
call fcn.00406244
jmp 0x4ed4ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ed28b
mov eax, dword [ebp - 0x28]
call fcn.004053d8
ret
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 8]
mov dx, word [edx]
call fcn.00407694
push dword [ebp - 0x44]
push 0x4ed598
lea eax, [ebp - 0x5c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 8]
call fcn.00407778
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x58]
call fcn.00447ef0
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
call fcn.00448200
push dword [ebp - 0x48]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004078f4
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x18]
call fcn.00406a84
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0x20]
call fcn.0041b37c
mov ecx, dword [ebp - 0x60]
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.0040786c
mov eax, dword [ebp - 0x18]
call fcn.0042e690
test al, al
je 0x4ed343
cmp dword [ebp - 0x20], 0x3e8
jle 0x4ed33e
lea eax, [ebp - 0x64]
mov ecx, dword [ebp - 0x18]
mov edx, 0x4ed5ac
call fcn.0040786c
mov edx, dword [ebp - 0x64]
mov eax, dword [0x653d30]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0043ee40
call fcn.00406244
jmp 0x4ed4ac
inc dword [ebp - 0x20]
jmp 0x4ed2e5
mov eax, dword [ebp - 4]
lea edx, [eax + 0x10]
mov eax, dword [ebp - 0x18]
call fcn.0040a330
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.0040767c
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.004073e0
push eax
call dword [0x67eec4]
add esp, 8
test al, al
jne 0x4ed3b1
push 0x4ed604
push dword [ebp - 0x18]
push 0x4ed648
mov eax, dword [ebp - 4]
push dword [eax + 8]
lea eax, [ebp - 0x68]
mov edx, 4
call fcn.004078f4
mov edx, dword [ebp - 0x68]
mov eax, dword [0x653d30]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0043ee40
call fcn.00406244
jmp 0x4ed4ac
push 2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.004073e0
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 4]
push dword [eax + 0x10]
push 0x4ed660
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00407240
mov al, byte [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x24]
call fcn.004073e0
push eax
mov eax, dword [ebp + 0x10]
call fcn.004073e0
push eax
call dword [0x67ee80]
add esp, 0xc
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x4ed46c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.004073e0
push eax
call sub.kernel32.dll_RemoveDirectoryA
push 0x4ed670
lea edx, [ebp - 0x70]
mov eax, dword [ebp + 0x10]
call fcn.0040a484
push dword [ebp - 0x70]
push 0x4ed648
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 0x24]
call fcn.0040a484
push dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
mov edx, 4
call fcn.004078f4
mov edx, dword [ebp - 0x6c]
mov eax, dword [0x653d30]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0043ee40
call fcn.00406244
jmp 0x4ed4ac
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ed4ac
cmp byte [ebp - 0xd], 0
jne 0x4ed4a4
mov eax, dword [ebp - 4]
add eax, 8
call fcn.00406a84
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.00406aa8
mov eax, dword [ebp - 4]
add eax, 0x10
call fcn.00406aa8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ed508
lea eax, [ebp - 0x74]
mov edx, 6
call fcn.00406ae4
lea eax, [ebp - 0x5c]
call fcn.00406acc
lea eax, [ebp - 0x48]
mov edx, 6
call fcn.00406ae4
lea eax, [ebp - 0x30]
call fcn.00406a84
lea eax, [ebp - 0x2c]
call fcn.00406a84
lea eax, [ebp - 0x24]
call fcn.00406aa8
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00406ae4
ret