Function at 0x4020c2
Capabilities:
Delete file
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov edx, 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x40210f
cmp dword [eax + 0x2c], 0
je 0x402108
mov esi, 1
inc dword [ebp - 0x14]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x402102
inc esi
mov ebx, dword [ebx + 0x30]
test ebx, ebx
jne 0x4020fa
cmp esi, edx
jle 0x402108
mov edx, esi
mov eax, dword [eax + 0x34]
test eax, eax
jne 0x4020e5
lea ebx, [edx*4 + 4]
mov dword [esp], ebx
call sub.cygwin1.dll_malloc
mov dword [ebp - 0x1c], eax
mov dword [esp], ebx
call sub.cygwin1.dll_malloc
mov dword [ebp - 0x20], eax
mov dword [esp], 0x100
call sub.cygwin1.dll_malloc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x1c], 0
sete dl
cmp dword [ebp - 0x20], 0
sete al
or eax, edx
test al, 1
jne 0x402155
cmp dword [ebp - 0x24], 0
jne 0x40216d
mov dword [esp], str.out_of_memory_n
call fcn.00401050
mov dword [esp], 1
call sub.cygwin1.dll_exit
cmp dword [ebp + 8], 0
je 0x4024e8
mov eax, dword [ebp + 8]
cmp dword [eax + 0x2c], 0
je 0x4024d7
inc dword [ebp - 0x18]
mov esi, 1
mov edx, dword [ebp - 0x1c]
mov dword [edx + 4], eax
cmp dword [ebp + 0xc], 0
je 0x4021b5
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], str.__d___s_n
call sub.cygwin1.dll_printf
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x4021e9
inc esi
mov edx, dword [ebp - 0x1c]
mov dword [edx + esi*4], ebx
cmp dword [ebp + 0xc], 0
je 0x4021e2
mov eax, dword [ebx]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], str.__d___s_n
call sub.cygwin1.dll_printf
mov ebx, dword [ebx + 0x30]
test ebx, ebx
jne 0x4021bf
cmp dword [ebp + 0xc], 0
je 0x4021fd
mov dword [esp], 0xa
call sub.cygwin1.dll_putchar
jmp 0x402228
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 4], 1
mov ebx, 2
cmp ebx, esi
jg 0x40243c
mov eax, dword [ebp - 0x20]
mov dword [eax + ebx*4], 0
inc ebx
cmp ebx, esi
jle 0x402214
jmp 0x40243c
mov dword [esp + 0xc], esi
mov edx, dword [ebp - 0x14]
mov dword [esp + 8], edx
mov ecx, dword [ebp - 0x18]
mov dword [esp + 4], ecx
mov dword [esp], str.Set__d_of__d__preserve_files__1____d__all_
call sub.cygwin1.dll_printf
cmp byte [0x406010], 0
jns 0x40228b
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
xor eax, 1
mov edx, 0x405170
mov ecx, dword [ebp + 8]
or eax, dword [ecx + 0xc]
jne 0x40226a
mov edx, 0x405173
mov dword [esp + 0xc], edx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], str.___ld_byte_seach_
call sub.cygwin1.dll_printf
mov dword [esp], 0x4051d5
call sub.cygwin1.dll_printf
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.cygwin1.dll_fflush
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 4]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x100
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.cygwin1.dll_fgets
mov edi, dword [ebp - 0x24]
cld
mov ecx, 0xffffffff
mov al, 0
repne scasb al, byte es:[edi]
not ecx
lea ebx, [ecx - 2]
mov edx, dword [ebp - 0x24]
cmp byte [edx + ebx], 0xa
je 0x40236e
mov edi, dword [ebp - 0x24]
cld
mov ecx, 0xffffffff
mov al, 0
repne scasb al, byte es:[edi]
not ecx
add ecx, 0x100
mov dword [esp + 4], ecx
mov edx, dword [ebp - 0x24]
mov dword [esp], edx
call sub.cygwin1.dll_realloc
test eax, eax
jne 0x402325
mov dword [esp], str.out_of_memory__n
call fcn.00401050
mov dword [esp], 1
call sub.cygwin1.dll_exit
mov dword [ebp - 0x24], eax
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 4]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x100
mov ecx, dword [ebp - 0x24]
lea eax, [ecx + ebx + 1]
mov dword [esp], eax
call sub.cygwin1.dll_fgets
test eax, eax
je 0x40236e
mov edi, dword [ebp - 0x24]
cld
mov ecx, 0xffffffff
mov al, 0
repne scasb al, byte es:[edi]
not ecx
lea ebx, [ecx - 2]
mov edx, dword [ebp - 0x24]
cmp byte [edx + ebx], 0xa
jne 0x4022e5
mov ebx, 1
cmp ebx, esi
jg 0x402386
mov ecx, dword [ebp - 0x20]
mov dword [ecx + ebx*4], 0
inc ebx
cmp ebx, esi
jle 0x402377
mov dword [esp + 4], 0x4051d8
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.cygwin1.dll_strtok
mov edi, eax
test eax, eax
je 0x40241b
mov dword [esp + 4], 0x4051dc
mov dword [esp], edi
call sub.cygwin1.dll_strcasecmp
test eax, eax
jne 0x4023cb
mov ebx, 0
cmp ebx, esi
jg 0x4023cb
mov edx, dword [ebp - 0x20]
mov dword [edx + ebx*4], 1
inc ebx
cmp ebx, esi
jle 0x4023bc
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4051e0
mov dword [esp], edi
call sub.cygwin1.dll_sscanf
cmp dword [ebp - 0x10], 0
jle 0x402401
cmp dword [ebp - 0x10], esi
jg 0x402401
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + eax*4], 1
mov dword [esp + 4], 0x4051d8
mov dword [esp], 0
call sub.cygwin1.dll_strtok
mov edi, eax
test eax, eax
jne 0x40239f
mov eax, 0
mov ebx, 1
cmp ebx, esi
jg 0x402434
mov edx, dword [ebp - 0x20]
add eax, dword [edx + ebx*4]
inc ebx
cmp ebx, esi
jle 0x402429
test eax, eax
jle 0x402228
mov dword [esp], 0xa
call sub.cygwin1.dll_putchar
mov ebx, 1
cmp ebx, esi
jg 0x4024cb
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + ebx*4], 0
je 0x402474
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + ebx*4]
mov eax, dword [eax]
mov dword [esp + 4], eax
mov dword [esp], str._______s_n
call sub.cygwin1.dll_printf
jmp 0x4024c6
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + ebx*4]
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_remove
test eax, eax
jne 0x4024a2
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + ebx*4]
mov eax, dword [eax]
mov dword [esp + 4], eax
mov dword [esp], str.________s_n
call sub.cygwin1.dll_printf
jmp 0x4024c6
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + ebx*4]
mov eax, dword [eax]
mov dword [esp + 4], eax
mov dword [esp], str.________s
call sub.cygwin1.dll_printf
mov dword [esp], str.___unable_to_delete_file_
call sub.cygwin1.dll_puts
inc ebx
cmp ebx, esi
jle 0x402451
mov dword [esp], 0xa
call sub.cygwin1.dll_putchar
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x34]
mov dword [ebp + 8], eax
test eax, eax
jne 0x402177
mov edx, dword [ebp - 0x1c]
mov dword [esp], edx
call sub.cygwin1.dll_free
mov ecx, dword [ebp - 0x20]
mov dword [esp], ecx
call sub.cygwin1.dll_free
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.cygwin1.dll_free
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret