Function at 0x4e2bc8
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x4e2bd0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, dword [0x4e95c8]
xor eax, eax
push ebp
push 0x4e317f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 1
call fcn.00402bdc
call fcn.004a55ec
push ebp
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x14]
mov eax, dword [0x4e972c]
mov eax, dword [eax]
or ecx, 0xffffffff
call fcn.00409f68
mov eax, dword [ebp - 0x14]
call fcn.004e2b44
pop ecx
call fcn.004a4940
push ebp
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x14]
mov eax, dword [0x4e9784]
mov eax, dword [eax]
or ecx, 0xffffffff
call fcn.00409f68
mov eax, dword [ebp - 0x18]
call fcn.004e2b44
pop ecx
call fcn.0049b6c0
test al, al
je 0x4e2c72
call fcn.004a72f0
push ebp
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x14]
mov eax, dword [0x4e9784]
mov eax, dword [eax]
or ecx, 0xffffffff
call fcn.00409f68
mov eax, dword [ebp - 0x1c]
call fcn.004e2b44
pop ecx
push 0x4e3198
xor ecx, ecx
mov edx, 0x4e31ac
xor eax, eax
call fcn.0049c2bc
push ebp
lea eax, [ebp - 0x20]
push eax
mov eax, 0x4e31ac
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
lea edx, [ebp - 0x28]
mov eax, dword [0x4e9aa0]
mov eax, dword [eax]
xor ecx, ecx
call fcn.00409f68
mov eax, dword [ebp - 0x20]
call fcn.004e2b44
pop ecx
lea edx, [ebp - 0x10]
mov eax, 2
call fcn.004ca8b8
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
call fcn.0049be54
push dword [ebp - 0x2c]
push 0x4e31e4
push 0x4e31f8
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0040465c
mov eax, dword [ebp - 0x10]
call fcn.00409318
test al, al
je 0x4e2d2e
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004e3af0
test al, al
jne 0x4e2d05
mov eax, dword [ebp - 0x10]
call fcn.0049c45c
push ebp
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
lea edx, [ebp - 0x28]
mov eax, dword [0x4e98b0]
mov eax, dword [eax]
xor ecx, ecx
call fcn.00409f68
mov eax, dword [ebp - 0x30]
call fcn.004e2b44
pop ecx
lea edx, [ebp - 0x10]
mov eax, 0x17
call fcn.004ca8b8
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x10]
call fcn.0049be54
push dword [ebp - 0x34]
push 0x4e31e4
push 0x4e31f8
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0040465c
mov eax, dword [ebp - 0x10]
call fcn.00409318
test al, al
je 0x4e2dac
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004e3af0
test al, al
jne 0x4e2d83
mov eax, dword [ebp - 0x10]
call fcn.0049c45c
push ebp
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
lea edx, [ebp - 0x28]
mov eax, dword [0x4e98b0]
mov eax, dword [eax]
xor ecx, ecx
call fcn.00409f68
mov eax, dword [ebp - 0x38]
call fcn.004e2b44
pop ecx
lea eax, [ebp - 0x10]
call fcn.004ca9e8
lea eax, [ebp - 0xc]
mov ecx, 0x4e3204
mov edx, dword [ebp - 0x10]
call fcn.004045e8
mov eax, dword [ebp - 0xc]
call fcn.00409308
test al, al
je 0x4e2de4
mov eax, dword [ebp - 0xc]
call fcn.0040951c
test al, al
jne 0x4e2de4
mov eax, dword [ebp - 0xc]
call fcn.0049c45c
push ebp
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
lea edx, [ebp - 0x28]
mov eax, dword [edi]
xor ecx, ecx
call fcn.00409f68
mov eax, dword [ebp - 0x3c]
call fcn.004e2b44
pop ecx
lea eax, [ebp - 0xc]
mov ecx, 0x4e321c
mov edx, dword [ebp - 0x10]
call fcn.004045e8
mov eax, dword [ebp - 0xc]
call fcn.00409308
test al, al
je 0x4e2e40
mov eax, dword [ebp - 0xc]
call fcn.0049b4a0
mov eax, dword [ebp - 0xc]
call fcn.0040951c
test al, al
jne 0x4e2e40
mov eax, dword [ebp - 0xc]
call fcn.0049c45c
push ebp
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
lea edx, [ebp - 0x28]
mov eax, dword [edi]
xor ecx, ecx
call fcn.00409f68
mov eax, dword [ebp - 0x40]
call fcn.004e2b44
pop ecx
lea eax, [ebp - 0xc]
mov ecx, 0x4e3234
mov edx, dword [ebp - 0x10]
call fcn.004045e8
mov eax, dword [ebp - 0xc]
call fcn.00409308
test al, al
je 0x4e2e94
mov eax, dword [ebp - 0xc]
call fcn.0040951c
test al, al
jne 0x4e2e94
mov eax, dword [ebp - 0xc]
call fcn.0049c45c
push ebp
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
lea edx, [ebp - 0x28]
mov eax, dword [edi]
xor ecx, ecx
call fcn.00409f68
mov eax, dword [ebp - 0x44]
call fcn.004e2b44
pop ecx
mov esi, 9
mov ebx, dword [0x4e9bbc]
push dword [ebp - 0x10]
push dword [ebx]
push 0x4e3248
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040465c
mov eax, dword [ebp - 0xc]
call fcn.00409308
test al, al
je 0x4e2efa
mov eax, dword [ebp - 0xc]
call fcn.0040951c
test al, al
jne 0x4e2efa
mov eax, dword [ebp - 0xc]
call fcn.0049c45c
push ebp
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
lea edx, [ebp - 0x28]
mov eax, dword [edi]
xor ecx, ecx
call fcn.00409f68
mov eax, dword [ebp - 0x48]
call fcn.004e2b44
pop ecx
add ebx, 4
dec esi
jne 0x4e2ec3
lea eax, [ebp - 0xc]
mov ecx, 0x4e3258
mov edx, dword [ebp - 0x10]
call fcn.004045e8
mov eax, dword [ebp - 0xc]
call fcn.00409308
test al, al
je 0x4e2f54
mov eax, dword [ebp - 0xc]
call fcn.0040951c
test al, al
jne 0x4e2f54
mov eax, dword [ebp - 0xc]
call fcn.0049c45c
push ebp
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
lea edx, [ebp - 0x28]
mov eax, dword [edi]
xor ecx, ecx
call fcn.00409f68
mov eax, dword [ebp - 0x4c]
call fcn.004e2b44
pop ecx
lea eax, [ebp - 0xc]
mov ecx, 0x4e326c
mov edx, dword [ebp - 0x10]
call fcn.004045e8
mov eax, dword [ebp - 0xc]
call fcn.00409308
test al, al
je 0x4e2fa8
mov eax, dword [ebp - 0xc]
call fcn.0040951c
test al, al
jne 0x4e2fa8
mov eax, dword [ebp - 0xc]
call fcn.0049c45c
push ebp
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
lea edx, [ebp - 0x28]
mov eax, dword [edi]
xor ecx, ecx
call fcn.00409f68
mov eax, dword [ebp - 0x50]
call fcn.004e2b44
pop ecx
lea eax, [ebp - 0xc]
call fcn.004ca9e8
mov eax, dword [ebp - 0xc]
call fcn.00409318
test al, al
je 0x4e2ffa
mov eax, dword [ebp - 0xc]
call fcn.0040479c
push eax
call sub.kernel32.dll_RemoveDirectoryA
test eax, eax
jne 0x4e2ffa
mov eax, dword [ebp - 0xc]
call fcn.0049c45c
push ebp
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
lea edx, [ebp - 0x28]
mov eax, dword [0x4e98b0]
mov eax, dword [eax]
xor ecx, ecx
call fcn.00409f68
mov eax, dword [ebp - 0x54]
call fcn.004e2b44
pop ecx
lea eax, [ebp - 0xc]
mov edx, dword [0x4e97cc]
mov edx, dword [edx]
mov edx, dword [edx + 0x264]
call fcn.00404364
mov eax, dword [ebp - 0xc]
call fcn.00409308
test al, al
je 0x4e307d
mov eax, dword [ebp - 0xc]
call fcn.0040951c
test al, al
jne 0x4e3059
mov eax, dword [ebp - 0xc]
call fcn.0049c45c
push ebp
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
lea edx, [ebp - 0x28]
mov eax, dword [edi]
xor ecx, ecx
call fcn.00409f68
mov eax, dword [ebp - 0x58]
call fcn.004e2b44
pop ecx
lea eax, [ebp - 0xc]
mov edx, dword [0x4e97cc]
mov edx, dword [edx]
mov edx, dword [edx + 0x260]
call fcn.00404364
mov eax, dword [ebp - 0xc]
call fcn.00409308
test al, al
je 0x4e30d7
mov eax, dword [ebp - 0xc]
call fcn.0040951c
test al, al
jne 0x4e30b3
mov eax, dword [ebp - 0xc]
call fcn.0049c45c
push ebp
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
lea edx, [ebp - 0x28]
mov eax, dword [edi]
xor ecx, ecx
call fcn.00409f68
mov eax, dword [ebp - 0x5c]
call fcn.004e2b44
pop ecx
lea eax, [ebp - 0xc]
mov edx, dword [0x4e97cc]
mov edx, dword [edx]
mov edx, dword [edx + 0x25c]
call fcn.00404364
mov eax, dword [0x4e97cc]
mov eax, dword [eax]
mov eax, dword [eax + 0x258]
call fcn.00409308
test al, al
jne 0x4e3146
mov eax, dword [ebp - 0xc]
call fcn.0040479c
push eax
call sub.kernel32.dll_RemoveDirectoryA
test eax, eax
jne 0x4e311d
mov eax, dword [ebp - 0xc]
call fcn.0049c45c
push ebp
lea eax, [ebp - 0x60]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
lea edx, [ebp - 0x28]
mov eax, dword [0x4e98b0]
mov eax, dword [eax]
xor ecx, ecx
call fcn.00409f68
mov eax, dword [ebp - 0x60]
call fcn.004e2b44
pop ecx
mov edx, 0x4e3198
mov ecx, 0x4e3284
xor eax, eax
call fcn.0049bc00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e3186
lea eax, [ebp - 0x60]
mov edx, 0xe
call fcn.004042f0
lea eax, [ebp - 0x20]
mov edx, 6
call fcn.004042f0
ret