Function at 0x406b7b
Capabilities:
Delete file

Disassembly:
sub esp, 0xb18
lea eax, [esp + 0x118]
mov dword [0x413660], 1
push str.Checking:_r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x1000
call fcn.0040b488
mov dword [0x41374c], eax
xor eax, eax
cmp word [0x413b34], ax
pop ecx
jb 0x406bcf
mov ecx, dword [0x41374c]
and dword [ecx + eax*4], 0
inc eax
movzx ecx, word [0x413b34]
cmp eax, ecx
jle 0x406bb9
push ebx
push ebp
xor ebx, ebx
push esi
cmp dword [0x413a2c], ebx
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
mov edi, 0x3ef
jne 0x406ce8
push ebx
push 0x3ea
call fcn.0040317d
push ebx
push 0x3ec
call fcn.0040317d
mov ebp, 0x3ed
push 1
push ebp
call fcn.0040317d
push 1
push edi
call fcn.0040317d
lea eax, [esp + 0x348]
push 0x100
push eax
push 0x2d
push dword [0x413a30]
call fcn.0040aa2b
push dword [0x413a48]
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 [0x413630]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push ebx
push 1
push dword [0x413630]
call esi
mov ebp, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call ebp
push ebx
push 5
push dword [0x413630]
call esi
push eax
call ebp
mov dword [esp + 0x10], ebx
mov ebp, 0x413ac0
mov eax, dword [esp + 0x10]
add eax, 0x6b
movzx eax, ax
push eax
push dword [0x413a30]
call dword [sym.imp.USER32.dll_LoadIconA]
inc dword [esp + 0x10]
mov dword [ebp], eax
add ebp, 4
cmp ebp, 0x413b14
jl 0x406c90
cmp dword [0x413720], ebx
je 0x406cd7
push 5
push 0xef6
push dword [0x413630]
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call fcn.00408f82
pop ecx
mov dword [0x413a2c], 1
mov eax, dword [0x413668]
mov ecx, dword [0x413a20]
add ecx, eax
mov ebx, dword [0x413708]
add ecx, dword [0x413a9c]
add ecx, dword [0x413b3c]
add ecx, dword [0x4136c0]
add ecx, dword [0x413714]
add ecx, ebx
add ecx, dword [0x413a54]
mov dword [0x413a98], ecx
jne 0x406d2d
mov dword [0x413a98], 1
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
dec ebx
test ebx, ebx
jl 0x406ddc
lea eax, [esp + 0x128]
push eax
push dword [0x4136f4]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x413aac]
push dword [eax + ebx*4]
push dword [0x4136f4]
call ebp
push dword [0x4136f4]
push edi
push dword [0x413630]
call esi
push eax
call fcn.00409766
push dword [0x4136f4]
call fcn.00408f82
mov eax, dword [0x413aac]
add esp, 0xc
mov eax, dword [eax + ebx*4]
mov ecx, dword [eax + 0x258]
test ecx, ecx
je 0x406da0
push ecx
push eax
call fcn.004072fb
pop ecx
pop ecx
jmp 0x406dcf
mov cx, word [eax + 0x26c]
test cx, cx
movzx ecx, cx
jne 0x406db6
movzx ecx, word [eax + 0x268]
push ecx
lea ecx, [eax + 0x208]
push ecx
push eax
call fcn.0040748e
add esp, 0xc
test eax, eax
jne 0x4072a9
inc dword [0x413698]
dec ebx
jns 0x406d3c
mov eax, dword [0x413a54]
lea ebx, [eax - 1]
test ebx, ebx
jl 0x406e96
lea eax, [esp + 0x128]
push eax
push dword [0x4136f4]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x413688]
mov eax, dword [eax + ebx*4]
add eax, 8
push eax
push dword [0x4136f4]
call ebp
push dword [0x4136f4]
push edi
push dword [0x413630]
call esi
push eax
call fcn.00409766
push dword [0x4136f4]
call fcn.00408f82
mov eax, dword [0x413688]
add esp, 0xc
mov eax, dword [eax + ebx*4]
mov ecx, dword [eax + 0x260]
test ecx, ecx
je 0x406e57
add eax, 8
push ecx
push eax
call fcn.004072fb
pop ecx
pop ecx
jmp 0x406e89
mov cx, word [eax + 0x274]
test cx, cx
movzx ecx, cx
jne 0x406e6d
movzx ecx, word [eax + 0x270]
push ecx
lea ecx, [eax + 0x210]
add eax, 8
push ecx
push eax
call fcn.0040748e
add esp, 0xc
test eax, eax
jne 0x4072a9
inc dword [0x413698]
dec ebx
jns 0x406dec
mov eax, dword [0x413674]
lea ebx, [eax - 1]
test ebx, ebx
jl 0x406f37
lea eax, [esp + 0x128]
push eax
push dword [0x4136f4]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x4136a0]
push dword [eax + ebx*4]
push dword [0x4136f4]
call ebp
push dword [0x4136f4]
push edi
push dword [0x413630]
call esi
push eax
call fcn.00409766
push dword [0x4136f4]
call fcn.00408f82
mov eax, dword [0x4136a0]
add esp, 0xc
mov eax, dword [eax + ebx*4]
mov ecx, dword [eax + 0x258]
test ecx, ecx
je 0x406f0a
push ecx
push eax
call fcn.004072fb
pop ecx
pop ecx
jmp 0x406f2a
mov cx, word [eax + 0x268]
push ecx
lea ecx, [eax + 0x208]
push ecx
push eax
call fcn.0040748e
add esp, 0xc
test eax, eax
jne 0x4072a9
inc dword [0x413698]
dec ebx
jns 0x406ea6
xor esi, esi
cmp dword [0x413658], esi
jle 0x406f9f
xor edi, edi
cmp dword [0x4136c4], edi
jne 0x406fa1
mov eax, dword [0x4136e4]
push 1
mov eax, dword [eax + esi*4]
cmp dword [eax], edi
mov ecx, dword [eax + 8]
push dword [eax + 0xc]
je 0x406f78
lea eax, [ecx + 0x108]
push eax
lea eax, [ecx + 8]
push eax
push dword [ecx + 0x1218]
push dword [ecx + 0x1214]
jmp 0x406f8c
lea edx, [ecx + 0x10c]
push edx
lea edx, [ecx + 8]
push edx
push dword [eax + 4]
push dword [ecx + 0x218]
call fcn.00407a6f
add esp, 0x18
inc esi
cmp esi, dword [0x413658]
jl 0x406f43
jmp 0x406fa1
xor edi, edi
xor esi, esi
cmp dword [0x413a54], edi
jle 0x406fe9
cmp dword [0x4136c4], edi
jne 0x406fe9
mov eax, dword [0x413688]
mov ecx, dword [eax + esi*4]
cmp byte [ecx + 8], 0
lea eax, [ecx + 8]
je 0x406fe0
cmp word [ecx + 0x26c], di
jbe 0x406fe0
push 1
push eax
lea eax, [esp + 0x130]
push eax
call fcn.00409d58
add esp, 0xc
inc esi
cmp esi, dword [0x413a54]
jl 0x406fab
xor esi, esi
cmp dword [0x413708], edi
jle 0x40702d
cmp dword [0x4136c4], edi
jne 0x40702d
mov eax, dword [0x413aac]
mov eax, dword [eax + esi*4]
cmp byte [eax], 0
je 0x407024
cmp word [eax + 0x264], di
jbe 0x407024
push 1
push eax
lea eax, [esp + 0x130]
push eax
call fcn.00409d58
add esp, 0xc
inc esi
cmp esi, dword [0x413708]
jl 0x406ff3
cmp dword [0x413a34], edi
je 0x4072a9
movzx eax, word [0x413b34]
cmp eax, edi
mov dword [esp + 0x10], eax
jl 0x4072a9
mov eax, dword [esp + 0x10]
mov ebp, eax
mov eax, dword [0x413644]
shl ebp, 2
add eax, ebp
mov ecx, dword [eax]
cmp ecx, edi
je 0x40727a
mov edx, dword [0x41374c]
cmp dword [edx + ebp], edi
je 0x40727a
cmp byte [ecx], 0
je 0x40727a
mov esi, dword [eax]
lea ecx, [esp + 0x228]
mov al, byte [esi]
test al, al
je 0x4070b2
cmp al, 0x7c
je 0x40709c
mov byte [ecx], al
mov al, byte [esi + 1]
inc ecx
inc esi
test al, al
jne 0x40708d
lea eax, [esp + 0x228]
cmp ecx, eax
jbe 0x4070b2
cmp byte [ecx - 1], 0x20
lea eax, [ecx - 1]
jne 0x4070b2
mov ecx, eax
and byte [ecx], 0
cmp byte [esi], 0
je 0x4070bb
inc esi
cmp dword [0x4130bc], 1
jle 0x4070d3
movsx eax, byte [esi]
push 8
push eax
call fcn.0040c08e
pop ecx
pop ecx
jmp 0x4070e2
movsx eax, byte [esi]
mov ecx, dword [str.________________________________H]
mov al, byte [ecx + eax*2]
and eax, 8
cmp eax, edi
jne 0x4070ba
lea eax, [esp + 0x228]
push edi
push eax
call fcn.0040a7c1
pop ecx
test eax, eax
pop ecx
jne 0x4071d2
lea eax, [esp + 0x228]
push edi
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp edi, 0xffffffff
je 0x4071d2
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 0x407180
add edx, 0x7d0
jmp 0x407186
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 0x407232
lea eax, [esp + 0x228]
push esi
mov dword [0x4136b4], eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [esp + 0x28], 0
lea eax, [esp + 0x28]
je 0x407203
cmp byte [eax], 0x7c
jne 0x4071fd
mov byte [eax], 0x2f
inc eax
cmp byte [eax], 0
jne 0x4071f5
xor edi, edi
lea eax, [esp + 0x28]
push edi
push sym.UNWISE32.EXE__PromptDlg_16
push dword [0x413630]
mov dword [0x413718], eax
push 0x6b
push dword [0x413a30]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 2
je 0x407286
jmp 0x4070e6
mov eax, dword [0x41374c]
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.0040bbb2
mov eax, dword [0x41374c]
add esp, 0x14
push dword [eax + ebp]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x413644]
mov eax, dword [eax + ebp]
and byte [eax], 0
xor edi, edi
dec dword [esp + 0x10]
jns 0x40704c
jmp 0x4072a9
mov esi, dword [esp + 0x10]
cmp esi, edi
jl 0x4072a9
mov eax, dword [0x413644]
mov eax, dword [eax + esi*4]
cmp eax, edi
je 0x4072a6
cmp byte [eax], 0
je 0x4072a6
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
dec esi
jns 0x40728e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb18
ret