Function at 0x401d88
Capabilities:
Delete directory

Disassembly:
push ebp
push ebx
push edi
mov edx, 0xd
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x401d90
mov edx, dword [esp + 0x48]
lea ecx, [esp]
call fcn.00403100
push 5
lea edx, [esp + 8]
push edx
push 0
mov edx, dword [esp + 0x10]
call fcn.00403110
mov eax, 4
push 4
call fcn.004030a0
push 5
lea edx, [esp + 0x10]
push edx
push 0
mov edx, dword [esp + 0x18]
call fcn.00403110
mov eax, 4
push 4
call fcn.004030a0
push 5
lea edx, [esp + 0x18]
push edx
push 0
mov edx, dword [esp + 0x20]
call fcn.00403110
mov eax, 4
push 4
call fcn.004030a0
push dword [esp]
push dword [esp + 0x60]
push dword [esp + 0x54]
call fcn.004024f1
mov dword [esp + 0x1c], eax
push dword [esp]
push dword [esp + 0x64]
push dword [esp + 0x58]
call fcn.004024f1
mov dword [esp + 0x1c], eax
push dword [esp]
push dword [esp + 0x68]
push dword [esp + 0x5c]
call fcn.004024f1
mov dword [esp + 0x1c], eax
push dword [esp + 0x4c]
mov ebp, dword [esp + 8]
pop dword [ebp]
mov eax, dword [esp + 0x50]
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x54]
mov dword [ebp + 8], eax
push dword [esp + 0x5c]
mov ebp, dword [esp + 0x10]
pop dword [ebp]
mov eax, dword [esp + 0x60]
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x64]
mov dword [ebp + 8], eax
cmp dword [esp + 0x58], 0
je 0x401fda
mov eax, dword [esp + 0x58]
call fcn.004043e0
mov dword [esp + 0x20], eax
mov ebx, dword [esp + 0x58]
add ebx, 4
mov eax, ebx
call fcn.004043e0
mov dword [esp + 0x24], eax
mov ebx, dword [esp + 0x58]
add ebx, 8
mov eax, ebx
call fcn.004043e0
mov dword [esp + 0x28], eax
push dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
pop dword [ebp]
mov eax, dword [esp + 0x24]
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x28]
mov dword [ebp + 8], eax
mov dword [esp + 0x2c], 0
mov eax, 2
cmp eax, dword [esp + 0x2c]
jl 0x401fda
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x14]
shl ebx, 2
mov ebx, dword [ebp + ebx]
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0xc]
shl edi, 2
cmp ebx, dword [ebp + edi]
jle 0x401fd1
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x14]
shl ebx, 2
mov ebx, dword [ebp + ebx]
add ebx, 0x200
push ebx
call fcn.004042f0
mov dword [esp + 0x30], eax
cmp dword [esp + 0x30], 0
je 0x401fa3
push dword [esp + 0x30]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 8]
shl ebx, 2
push dword [ebp + ebx]
call fcn.0040403d
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x14]
shl ebx, 2
push dword [ebp + ebx]
push dword [esp + 0x34]
call fcn.004043f0
mov ebx, dword [esp + 0x2c]
shl ebx, 2
push dword [ebp + ebx]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x10]
shl ebx, 2
pop eax
mov dword [ebp + ebx], eax
push dword [esp + 0x30]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 8]
shl ebx, 2
pop eax
mov dword [ebp + ebx], eax
jmp 0x401fd1
push dword [0x40b1fc]
call sub.MSVCRT.dll__rmdir
add esp, 4
push 0x10
push dword [0x40b214]
push dword [0x40b20c]
call fcn.004036a2
push 1
jmp 0x401bec
inc dword [esp + 0x2c]
jmp 0x401ee9
mov ebp, dword [esp + 4]
mov eax, dword [ebp]
mov dword [0x40b1d4], eax
mov ebp, dword [esp + 0xc]
mov eax, dword [ebp]
mov dword [0x40b1e0], eax
mov eax, dword [ebp + 4]
mov dword [0x40b1e4], eax
mov eax, dword [ebp + 8]
mov dword [0x40b1e8], eax
mov ebx, dword [0x40b1e4]
and ebx, ebx
jle 0x40201d
mov ebx, dword [0x40b1e8]
and ebx, ebx
jle 0x40201d
mov eax, 1
jmp 0x40201f
xor eax, eax
and eax, eax
je 0x402037
mov ebp, dword [esp + 4]
mov eax, dword [ebp + 4]
mov dword [0x40b1d8], eax
mov eax, dword [ebp + 8]
mov dword [0x40b1dc], eax
mov eax, 1
jmp 0x402040
push dword [esp]
call fcn.00407a80
push eax
mov edx, dword [esp + 8]
call fcn.00403110
mov edx, dword [esp + 0x10]
call fcn.00403110
mov edx, dword [esp + 0x18]
call fcn.00403110
pop eax
add esp, 0x34
pop edi
pop ebx
pop ebp
ret 0x24