Function at 0x406cae
Capabilities:
Delete file

Disassembly:
sub esp, 0xb18
lea eax, [esp + 0x118]
mov dword [0x416788], 1
push str.Checking:_r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x1000
call fcn.0040b7c4
mov dword [0x416878], eax
xor eax, eax
cmp word [0x416c54], ax
pop ecx
jb 0x406d02
mov ecx, dword [0x416878]
and dword [ecx + eax*4], 0
inc eax
movzx ecx, word [0x416c54]
cmp eax, ecx
jle 0x406cec
push ebx
push ebp
xor ebx, ebx
push esi
cmp dword [0x416b4c], ebx
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
mov edi, 0x3ef
jne 0x406e1b
push ebx
push 0x3ea
call fcn.004032eb
push ebx
push 0x3ec
call fcn.004032eb
mov ebp, 0x3ed
push 1
push ebp
call fcn.004032eb
push 1
push edi
call fcn.004032eb
lea eax, [esp + 0x348]
push 0x100
push eax
push 0x2d
push dword [0x416b50]
call fcn.0040acf0
push dword [0x416b68]
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 [0x416758]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push ebx
push 1
push dword [0x416758]
call esi
mov ebp, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call ebp
push ebx
push 5
push dword [0x416758]
call esi
push eax
call ebp
mov dword [esp + 0x10], ebx
mov ebp, 0x416be0
mov eax, dword [esp + 0x10]
add eax, 0x6b
movzx eax, ax
push eax
push dword [0x416b50]
call dword [sym.imp.USER32.dll_LoadIconA]
inc dword [esp + 0x10]
mov dword [ebp], eax
add ebp, 4
cmp ebp, 0x416c34
jl 0x406dc3
cmp dword [0x41684c], ebx
je 0x406e0a
push 5
push 0xef6
push dword [0x416758]
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call fcn.00409129
pop ecx
mov dword [0x416b4c], 1
mov eax, dword [0x416790]
mov ecx, dword [0x416b40]
add ecx, eax
mov ebx, dword [0x416834]
add ecx, dword [0x416bbc]
add ecx, dword [0x416c5c]
add ecx, dword [0x4167ec]
add ecx, dword [0x416840]
add ecx, ebx
add ecx, dword [0x416b74]
mov dword [0x416bb8], ecx
jne 0x406e60
mov dword [0x416bb8], 1
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
dec ebx
test ebx, ebx
jl 0x406f0f
lea eax, [esp + 0x128]
push eax
push dword [0x416820]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x416bd0]
push dword [eax + ebx*4]
push dword [0x416820]
call ebp
push dword [0x416820]
push edi
push dword [0x416758]
call esi
push eax
call fcn.004099f7
push dword [0x416820]
call fcn.00409129
mov eax, dword [0x416bd0]
add esp, 0xc
mov eax, dword [eax + ebx*4]
mov ecx, dword [eax + 0x258]
test ecx, ecx
je 0x406ed3
push ecx
push eax
call fcn.0040742e
pop ecx
pop ecx
jmp 0x406f02
mov cx, word [eax + 0x26c]
test cx, cx
movzx ecx, cx
jne 0x406ee9
movzx ecx, word [eax + 0x268]
push ecx
lea ecx, [eax + 0x208]
push ecx
push eax
call fcn.004075c1
add esp, 0xc
test eax, eax
jne 0x4073dc
inc dword [0x4167c4]
dec ebx
jns 0x406e6f
mov eax, dword [0x416b74]
lea ebx, [eax - 1]
test ebx, ebx
jl 0x406fc9
lea eax, [esp + 0x128]
push eax
push dword [0x416820]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x4167b0]
mov eax, dword [eax + ebx*4]
add eax, 8
push eax
push dword [0x416820]
call ebp
push dword [0x416820]
push edi
push dword [0x416758]
call esi
push eax
call fcn.004099f7
push dword [0x416820]
call fcn.00409129
mov eax, dword [0x4167b0]
add esp, 0xc
mov eax, dword [eax + ebx*4]
mov ecx, dword [eax + 0x260]
test ecx, ecx
je 0x406f8a
add eax, 8
push ecx
push eax
call fcn.0040742e
pop ecx
pop ecx
jmp 0x406fbc
mov cx, word [eax + 0x274]
test cx, cx
movzx ecx, cx
jne 0x406fa0
movzx ecx, word [eax + 0x270]
push ecx
lea ecx, [eax + 0x210]
add eax, 8
push ecx
push eax
call fcn.004075c1
add esp, 0xc
test eax, eax
jne 0x4073dc
inc dword [0x4167c4]
dec ebx
jns 0x406f1f
mov eax, dword [0x41679c]
lea ebx, [eax - 1]
test ebx, ebx
jl 0x40706a
lea eax, [esp + 0x128]
push eax
push dword [0x416820]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x4167cc]
push dword [eax + ebx*4]
push dword [0x416820]
call ebp
push dword [0x416820]
push edi
push dword [0x416758]
call esi
push eax
call fcn.004099f7
push dword [0x416820]
call fcn.00409129
mov eax, dword [0x4167cc]
add esp, 0xc
mov eax, dword [eax + ebx*4]
mov ecx, dword [eax + 0x258]
test ecx, ecx
je 0x40703d
push ecx
push eax
call fcn.0040742e
pop ecx
pop ecx
jmp 0x40705d
mov cx, word [eax + 0x268]
push ecx
lea ecx, [eax + 0x208]
push ecx
push eax
call fcn.004075c1
add esp, 0xc
test eax, eax
jne 0x4073dc
inc dword [0x4167c4]
dec ebx
jns 0x406fd9
xor esi, esi
cmp dword [0x416780], esi
jle 0x4070d2
xor edi, edi
cmp dword [0x4167f0], edi
jne 0x4070d4
mov eax, dword [0x416810]
push 1
mov eax, dword [eax + esi*4]
cmp dword [eax], edi
mov ecx, dword [eax + 8]
push dword [eax + 0xc]
je 0x4070ab
lea eax, [ecx + 0x108]
push eax
lea eax, [ecx + 8]
push eax
push dword [ecx + 0x1218]
push dword [ecx + 0x1214]
jmp 0x4070bf
lea edx, [ecx + 0x10c]
push edx
lea edx, [ecx + 8]
push edx
push dword [eax + 4]
push dword [ecx + 0x218]
call fcn.00407ba2
add esp, 0x18
inc esi
cmp esi, dword [0x416780]
jl 0x407076
jmp 0x4070d4
xor edi, edi
xor esi, esi
cmp dword [0x416b74], edi
jle 0x40711c
cmp dword [0x4167f0], edi
jne 0x40711c
mov eax, dword [0x4167b0]
mov ecx, dword [eax + esi*4]
cmp byte [ecx + 8], 0
lea eax, [ecx + 8]
je 0x407113
cmp word [ecx + 0x26c], di
jbe 0x407113
push 1
push eax
lea eax, [esp + 0x130]
push eax
call fcn.00409fe9
add esp, 0xc
inc esi
cmp esi, dword [0x416b74]
jl 0x4070de
xor esi, esi
cmp dword [0x416834], edi
jle 0x407160
cmp dword [0x4167f0], edi
jne 0x407160
mov eax, dword [0x416bd0]
mov eax, dword [eax + esi*4]
cmp byte [eax], 0
je 0x407157
cmp word [eax + 0x264], di
jbe 0x407157
push 1
push eax
lea eax, [esp + 0x130]
push eax
call fcn.00409fe9
add esp, 0xc
inc esi
cmp esi, dword [0x416834]
jl 0x407126
cmp dword [0x416b54], edi
je 0x4073dc
movzx eax, word [0x416c54]
cmp eax, edi
mov dword [esp + 0x10], eax
jl 0x4073dc
mov eax, dword [esp + 0x10]
mov ebp, eax
mov eax, dword [0x41676c]
shl ebp, 2
add eax, ebp
mov ecx, dword [eax]
cmp ecx, edi
je 0x4073ad
mov edx, dword [0x416878]
cmp dword [edx + ebp], edi
je 0x4073ad
cmp byte [ecx], 0
je 0x4073ad
mov esi, dword [eax]
lea ecx, [esp + 0x228]
mov al, byte [esi]
test al, al
je 0x4071e5
cmp al, 0x7c
je 0x4071cf
mov byte [ecx], al
mov al, byte [esi + 1]
inc ecx
inc esi
test al, al
jne 0x4071c0
lea eax, [esp + 0x228]
cmp ecx, eax
jbe 0x4071e5
cmp byte [ecx - 1], 0x20
lea eax, [ecx - 1]
jne 0x4071e5
mov ecx, eax
and byte [ecx], 0
cmp byte [esi], 0
je 0x4071ee
inc esi
cmp dword [0x4141ac], 1
jle 0x407206
movsx eax, byte [esi]
push 8
push eax
call fcn.0040c4ae
pop ecx
pop ecx
jmp 0x407215
movsx eax, byte [esi]
mov ecx, dword [str.________________________________H]
mov al, byte [ecx + eax*2]
and eax, 8
cmp eax, edi
jne 0x4071ed
lea eax, [esp + 0x228]
push edi
push eax
call fcn.0040aa86
pop ecx
test eax, eax
pop ecx
jne 0x407305
lea eax, [esp + 0x228]
push edi
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp edi, 0xffffffff
je 0x407305
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 0x4072b3
add edx, 0x7d0
jmp 0x4072b9
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 0x407365
lea eax, [esp + 0x228]
push esi
mov dword [0x4167e0], eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [esp + 0x28], 0
lea eax, [esp + 0x28]
je 0x407336
cmp byte [eax], 0x7c
jne 0x407330
mov byte [eax], 0x2f
inc eax
cmp byte [eax], 0
jne 0x407328
xor edi, edi
lea eax, [esp + 0x28]
push edi
push sym.UNWISE32.EXE__PromptDlg_16
push dword [0x416758]
mov dword [0x416844], eax
push 0x6b
push dword [0x416b50]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 2
je 0x4073b9
jmp 0x407219
mov eax, dword [0x416878]
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.0040beee
mov eax, dword [0x416878]
add esp, 0x14
push dword [eax + ebp]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x41676c]
mov eax, dword [eax + ebp]
and byte [eax], 0
xor edi, edi
dec dword [esp + 0x10]
jns 0x40717f
jmp 0x4073dc
mov esi, dword [esp + 0x10]
cmp esi, edi
jl 0x4073dc
mov eax, dword [0x41676c]
mov eax, dword [eax + esi*4]
cmp eax, edi
je 0x4073d9
cmp byte [eax], 0
je 0x4073d9
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
dec esi
jns 0x4073c1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb18
ret