Function at 0x4071a4
Capabilities:
Delete file

Disassembly:
sub esp, 0xb18
lea eax, [esp + 0x118]
mov dword [0x4177ec], 1
push str.Checking:_r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x1000
call fcn.0040bd85
mov dword [0x4178e4], eax
xor eax, eax
cmp word [0x417cb4], ax
pop ecx
jb 0x4071f8
mov ecx, dword [0x4178e4]
and dword [ecx + eax*4], 0
inc eax
movzx ecx, word [0x417cb4]
cmp eax, ecx
jle 0x4071e2
push ebx
push ebp
xor ebx, ebx
push esi
cmp dword [0x417bac], ebx
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
mov edi, 0x3ef
jne 0x407311
push ebx
push 0x3ea
call fcn.00403600
push ebx
push 0x3ec
call fcn.00403600
mov ebp, 0x3ed
push 1
push ebp
call fcn.00403600
push 1
push edi
call fcn.00403600
lea eax, [esp + 0x348]
push 0x100
push eax
push 0x52
push dword [0x417bb0]
call fcn.0040b2b1
push dword [0x417bc8]
lea eax, [esp + 0x35c]
push eax
lea eax, [esp + 0x760]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x3c
lea eax, [esp + 0x728]
push eax
push ebp
push dword [0x4177b8]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push ebx
push 1
push dword [0x4177b8]
call esi
mov ebp, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call ebp
push ebx
push 5
push dword [0x4177b8]
call esi
push eax
call ebp
mov dword [esp + 0x10], ebx
mov ebp, 0x417c40
mov eax, dword [esp + 0x10]
add eax, 0x6b
movzx eax, ax
push eax
push dword [0x417bb0]
call dword [sym.imp.USER32.dll_LoadIconA]
inc dword [esp + 0x10]
mov dword [ebp], eax
add ebp, 4
cmp ebp, 0x417c94
jl 0x4072b9
cmp dword [0x4178b8], ebx
je 0x407300
push 5
push 0xef6
push dword [0x4177b8]
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call fcn.004096cc
pop ecx
mov dword [0x417bac], 1
mov eax, dword [0x4177f8]
mov ecx, dword [0x417ba0]
add ecx, eax
mov ebx, dword [0x4178a0]
add ecx, dword [0x417c1c]
add ecx, dword [0x417cbc]
add ecx, dword [0x417854]
add ecx, dword [0x4178ac]
add ecx, ebx
add ecx, dword [0x417bd4]
mov dword [0x417c18], ecx
jne 0x407356
mov dword [0x417c18], 1
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
dec ebx
test ebx, ebx
jl 0x407405
lea eax, [esp + 0x128]
push eax
push dword [0x41788c]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x417c34]
push dword [eax + ebx*4]
push dword [0x41788c]
call ebp
push dword [0x41788c]
push edi
push dword [0x4177b8]
call esi
push eax
call fcn.00409f9a
push dword [0x41788c]
call fcn.004096cc
mov eax, dword [0x417c34]
add esp, 0xc
mov eax, dword [eax + ebx*4]
mov ecx, dword [eax + 0x258]
test ecx, ecx
je 0x4073c9
push ecx
push eax
call fcn.00407924
pop ecx
pop ecx
jmp 0x4073f8
mov cx, word [eax + 0x26c]
test cx, cx
movzx ecx, cx
jne 0x4073df
movzx ecx, word [eax + 0x268]
push ecx
lea ecx, [eax + 0x208]
push ecx
push eax
call fcn.00407ab7
add esp, 0xc
test eax, eax
jne 0x4078d2
inc dword [0x41782c]
dec ebx
jns 0x407365
mov eax, dword [0x417bd4]
lea ebx, [eax - 1]
test ebx, ebx
jl 0x4074bf
lea eax, [esp + 0x128]
push eax
push dword [0x41788c]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x417818]
mov eax, dword [eax + ebx*4]
add eax, 8
push eax
push dword [0x41788c]
call ebp
push dword [0x41788c]
push edi
push dword [0x4177b8]
call esi
push eax
call fcn.00409f9a
push dword [0x41788c]
call fcn.004096cc
mov eax, dword [0x417818]
add esp, 0xc
mov eax, dword [eax + ebx*4]
mov ecx, dword [eax + 0x260]
test ecx, ecx
je 0x407480
add eax, 8
push ecx
push eax
call fcn.00407924
pop ecx
pop ecx
jmp 0x4074b2
mov cx, word [eax + 0x274]
test cx, cx
movzx ecx, cx
jne 0x407496
movzx ecx, word [eax + 0x270]
push ecx
lea ecx, [eax + 0x210]
add eax, 8
push ecx
push eax
call fcn.00407ab7
add esp, 0xc
test eax, eax
jne 0x4078d2
inc dword [0x41782c]
dec ebx
jns 0x407415
mov eax, dword [0x417804]
lea ebx, [eax - 1]
test ebx, ebx
jl 0x407560
lea eax, [esp + 0x128]
push eax
push dword [0x41788c]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x417834]
push dword [eax + ebx*4]
push dword [0x41788c]
call ebp
push dword [0x41788c]
push edi
push dword [0x4177b8]
call esi
push eax
call fcn.00409f9a
push dword [0x41788c]
call fcn.004096cc
mov eax, dword [0x417834]
add esp, 0xc
mov eax, dword [eax + ebx*4]
mov ecx, dword [eax + 0x258]
test ecx, ecx
je 0x407533
push ecx
push eax
call fcn.00407924
pop ecx
pop ecx
jmp 0x407553
mov cx, word [eax + 0x268]
push ecx
lea ecx, [eax + 0x208]
push ecx
push eax
call fcn.00407ab7
add esp, 0xc
test eax, eax
jne 0x4078d2
inc dword [0x41782c]
dec ebx
jns 0x4074cf
xor esi, esi
cmp dword [0x4177e4], esi
jle 0x4075c8
xor edi, edi
cmp dword [0x41785c], edi
jne 0x4075ca
mov eax, dword [0x41787c]
push 1
mov eax, dword [eax + esi*4]
cmp dword [eax], edi
mov ecx, dword [eax + 8]
push dword [eax + 0xc]
je 0x4075a1
lea eax, [ecx + 0x108]
push eax
lea eax, [ecx + 8]
push eax
push dword [ecx + 0x1218]
push dword [ecx + 0x1214]
jmp 0x4075b5
lea edx, [ecx + 0x10c]
push edx
lea edx, [ecx + 8]
push edx
push dword [eax + 4]
push dword [ecx + 0x218]
call fcn.00408098
add esp, 0x18
inc esi
cmp esi, dword [0x4177e4]
jl 0x40756c
jmp 0x4075ca
xor edi, edi
xor esi, esi
cmp dword [0x417bd4], edi
jle 0x407612
cmp dword [0x41785c], edi
jne 0x407612
mov eax, dword [0x417818]
mov ecx, dword [eax + esi*4]
cmp byte [ecx + 8], 0
lea eax, [ecx + 8]
je 0x407609
cmp word [ecx + 0x26c], di
jbe 0x407609
push 1
push eax
lea eax, [esp + 0x130]
push eax
call fcn.0040a58c
add esp, 0xc
inc esi
cmp esi, dword [0x417bd4]
jl 0x4075d4
xor esi, esi
cmp dword [0x4178a0], edi
jle 0x407656
cmp dword [0x41785c], edi
jne 0x407656
mov eax, dword [0x417c34]
mov eax, dword [eax + esi*4]
cmp byte [eax], 0
je 0x40764d
cmp word [eax + 0x264], di
jbe 0x40764d
push 1
push eax
lea eax, [esp + 0x130]
push eax
call fcn.0040a58c
add esp, 0xc
inc esi
cmp esi, dword [0x4178a0]
jl 0x40761c
cmp dword [0x417bb4], edi
je 0x4078d2
movzx eax, word [0x417cb4]
cmp eax, edi
mov dword [esp + 0x10], eax
jl 0x4078d2
mov eax, dword [esp + 0x10]
mov ebp, eax
mov eax, dword [0x4177d0]
shl ebp, 2
add eax, ebp
mov ecx, dword [eax]
cmp ecx, edi
je 0x4078a3
mov edx, dword [0x4178e4]
cmp dword [edx + ebp], edi
je 0x4078a3
cmp byte [ecx], 0
je 0x4078a3
mov esi, dword [eax]
lea ecx, [esp + 0x228]
mov al, byte [esi]
test al, al
je 0x4076db
cmp al, 0x7c
je 0x4076c5
mov byte [ecx], al
mov al, byte [esi + 1]
inc ecx
inc esi
test al, al
jne 0x4076b6
lea eax, [esp + 0x228]
cmp ecx, eax
jbe 0x4076db
cmp byte [ecx - 1], 0x20
lea eax, [ecx - 1]
jne 0x4076db
mov ecx, eax
and byte [ecx], 0
cmp byte [esi], 0
je 0x4076e4
inc esi
cmp dword [0x41520c], 1
jle 0x4076fc
movsx eax, byte [esi]
push 8
push eax
call fcn.0040cc28
pop ecx
pop ecx
jmp 0x40770b
movsx eax, byte [esi]
mov ecx, dword [str.________________________________H]
mov al, byte [ecx + eax*2]
and eax, 8
cmp eax, edi
jne 0x4076e3
lea eax, [esp + 0x228]
push edi
push eax
call fcn.0040b027
pop ecx
test eax, eax
pop ecx
jne 0x4077fb
lea eax, [esp + 0x228]
push edi
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp edi, 0xffffffff
je 0x4077fb
lea eax, [esp + 0x20]
xor ebx, ebx
push eax
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1a]
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll__llseek]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll__lclose]
movzx ecx, word [esp + 0x16]
mov eax, ecx
push 0x64
shr eax, 9
add eax, 0x50
pop edi
cdq
idiv edi
cmp edx, 0x3c
jae 0x4077a9
add edx, 0x7d0
jmp 0x4077af
add edx, 0x76c
movzx eax, word [esp + 0x14]
mov edi, eax
push ebx
and edi, 0x1f
shl edi, 1
push edi
mov edi, eax
shr edi, 5
and edi, 0x3f
shr eax, 0xb
push edi
push eax
mov eax, ecx
push edx
shr ecx, 5
and eax, 0x1f
and ecx, 0xf
push eax
push ecx
lea eax, [esp + 0x44]
push str._02d__02d__04d___02d:_02d:_02d___ld
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
lea eax, [esp + 0x28]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40785b
lea eax, [esp + 0x228]
push esi
mov dword [0x417848], eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [esp + 0x28], 0
lea eax, [esp + 0x28]
je 0x40782c
cmp byte [eax], 0x7c
jne 0x407826
mov byte [eax], 0x2f
inc eax
cmp byte [eax], 0
jne 0x40781e
xor edi, edi
lea eax, [esp + 0x28]
push edi
push sym.UNWISE32.EXE__PromptDlg_16
push dword [0x4177b8]
mov dword [0x4178b0], eax
push 0x6b
push dword [0x417bb0]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 2
je 0x4078af
jmp 0x40770f
mov eax, dword [0x4178e4]
push dword [eax + ebp]
lea eax, [esp + 0x2c]
push str._X_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x238]
push eax
call fcn.0040c326
mov eax, dword [0x4178e4]
add esp, 0x14
push dword [eax + ebp]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x4177d0]
mov eax, dword [eax + ebp]
and byte [eax], 0
xor edi, edi
dec dword [esp + 0x10]
jns 0x407675
jmp 0x4078d2
mov esi, dword [esp + 0x10]
cmp esi, edi
jl 0x4078d2
mov eax, dword [0x4177d0]
mov eax, dword [eax + esi*4]
cmp eax, edi
je 0x4078cf
cmp byte [eax], 0
je 0x4078cf
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
dec esi
jns 0x4078b7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb18
ret