Function at 0x4024a8
Capabilities:
Delete directory

Disassembly:
push ebp
push ebx
mov edx, 0xa
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4024af
mov edx, dword [esp + 0x34]
lea ecx, [esp]
call fcn.00403060
mov dword [esp + 4], 1
push dword [0x40d3a0]
call fcn.00406b75
push dword [0x40d6f0]
push dword [0x40d6f0]
push 0x40c023
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.00403410
lea eax, [esp + 0xc]
push eax
call fcn.00409670
mov edx, dword [esp + 8]
xor ecx, ecx
call fcn.004096f0
jne 0x402575
mov ebx, dword [esp + 4]
mov eax, ebx
mov ecx, 2
cdq
idiv ecx
mov ebx, edx
and ebx, ebx
jne 0x40254c
push dword [esp + 8]
call fcn.00403520
push eax
mov ebx, dword [esp + 0x10]
mov ebp, dword [0x40d418]
shl ebx, 3
add ebp, ebx
pop eax
mov dword [ebp + 4], eax
mov ebx, dword [esp + 0xc]
inc ebx
mov dword [esp + 0xc], ebx
jmp 0x402573
mov edx, dword [esp + 8]
push dword [0x40d6f0]
call fcn.00409720
mov ebx, dword [esp + 0x10]
mov ebp, dword [0x40d418]
shl ebx, 3
add ebp, ebx
lea eax, [ebp]
push eax
call fcn.00409670
jmp 0x402577
jmp 0x402585
mov ebx, dword [esp + 4]
inc ebx
mov dword [esp + 4], ebx
jmp 0x4024db
push dword [esp + 0xc]
pop eax
mov dword [0x40d354], eax
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x10]
jl 0x4027b1
mov ebx, dword [esp + 0x10]
mov ebp, dword [0x40d418]
shl ebx, 3
add ebp, ebx
mov edx, dword [ebp]
push dword [0x40d6f0]
call fcn.00409720
lea eax, [esp + 0x18]
push eax
call fcn.00409670
push dword [0x40d6f0]
push dword [esp + 0x18]
push dword [0x40d6f0]
mov edx, str.b2eincfile
call fcn.00409720
push dword [0x40d6f0]
push dword [0x40d6f0]
mov eax, dword [esp + 0x24]
cdq
push edx
push eax
add dword [esp], 1
adc dword [esp + 4], 0
pop eax
pop edx
push edx
push eax
call fcn.00403380
pop eax
mov edx, dword [0x40c33c]
add dword [esp], edx
call fcn.00403da1
pop dword [0x40d6f0]
mov ebx, dword [0x40d338]
cmp ebx, 1
je 0x402644
push dword [esp + 0x14]
push 1
call fcn.00407110
and eax, eax
je 0x402644
mov eax, 1
jmp 0x402646
xor eax, eax
and eax, eax
je 0x4026e6
push 1
call fcn.00406e20
push dword [0x40d6f0]
push 0x23
mov edx, dword [0x40d34c]
push dword [0x40d6f0]
call fcn.00409720
mov edx, 0x40c021
call fcn.00409720
mov edx, dword [esp + 0x20]
call fcn.00409720
mov edx, 0x40c021
call fcn.00409720
mov edx, dword [0x40d360]
call fcn.00409720
inc dword [0x40d6f0]
push dword [0x40d3b8]
mov edx, dword [0x40c33c]
add dword [esp + 4], edx
call fcn.004038a4
pop dword [0x40d6f0]
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x18]
cmp ebx, 7
jne 0x4026d1
jmp 0x4027a7
mov ebx, dword [esp + 0x18]
cmp ebx, 2
jne 0x4026e6
call fcn.00402be8
xor eax, eax
jmp 0x4028a9
push dword [esp + 0x14]
push 1
call fcn.00407040
and eax, eax
je 0x40277b
mov ebx, dword [esp + 0x10]
mov ebp, dword [0x40d418]
shl ebx, 3
add ebp, ebx
push dword [ebp + 4]
pop eax
mov dword [esp + 0x1c], eax
push dword [esp + 0x1c]
mov ebx, dword [0x40d408]
add ebx, dword [esp + 0x24]
push ebx
push 1
call fcn.00407240
push 1
call fcn.00406e20
mov ebx, dword [esp + 0x20]
add ebx, dword [esp + 0x1c]
mov dword [esp + 0x20], ebx
push dword [0x40d420]
call fcn.00404090
mov edx, dword [esp + 0x14]
push dword [0x40d6f0]
call fcn.00409720
mov ebp, dword [0x40d424]
lea eax, [ebp + 8]
push eax
call fcn.00409670
push dword [esp + 0x14]
call fcn.004082a0
push eax
pop eax
mov dword [ebp + 0xc], eax
jmp 0x4027a7
mov edx, dword [esp + 0x24]
push dword [0x40d6f0]
call fcn.00409720
mov edx, dword [esp + 0x18]
call fcn.00409720
mov edx, 0x40c151
call fcn.00409720
lea eax, [esp + 0x28]
push eax
call fcn.00409670
inc dword [esp + 0x10]
jno 0x402597
push dword [0x40d6f0]
push dword [0x40d6f0]
push dword [0x40d6f0]
push dword [0x40d6f0]
push dword [0x40d6f0]
push 0x40c151
push dword [esp + 0x3c]
call fcn.00403850
mov edx, dword [0x40c33c]
add dword [esp], edx
call fcn.004031f0
mov edx, dword [0x40c33c]
add dword [esp], edx
call fcn.004030c0
pop dword [0x40d6f0]
mov ebx, eax
and ebx, ebx
jle 0x4028a0
push dword [0x40d6f0]
push 0x24
mov edx, dword [0x40d370]
push dword [0x40d6f0]
call fcn.00409720
mov edx, str._r_n_r_n
call fcn.00409720
mov edx, dword [esp + 0x30]
call fcn.00409720
mov edx, 0x40c151
call fcn.00409720
mov edx, dword [0x40d348]
call fcn.00409720
inc dword [0x40d6f0]
push dword [0x40d404]
mov edx, dword [0x40c33c]
add dword [esp + 4], edx
call fcn.004038a4
pop dword [0x40d6f0]
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x18]
cmp ebx, 7
jne 0x4028a0
call fcn.00402be8
push dword [0x40d3ac]
call fcn.00406c8c
push dword [0x40d400]
call sub.KERNEL32.dll_RemoveDirectoryA
push 0
jmp 0x401f90
mov eax, 1
jmp 0x4028a9
push dword [esp]
call fcn.00409780
push dword [esp + 0x24]
call fcn.00409780
push dword [esp + 0x14]
call fcn.00409780
push dword [esp + 8]
call fcn.00409780
add esp, 0x28
pop ebx
pop ebp
ret 4