Function at 0x407267
Capabilities:
Delete file

Disassembly:
sub esp, 0xb18
lea eax, [esp + 0x118]
mov dword [0x417804], 1
push str.Checking:_r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x1000
call fcn.0040bf28
mov dword [0x4178fc], eax
xor eax, eax
cmp word [0x417cd4], ax
pop ecx
jb 0x4072bb
mov ecx, dword [0x4178fc]
and dword [ecx + eax*4], 0
inc eax
movzx ecx, word [0x417cd4]
cmp eax, ecx
jle 0x4072a5
push ebx
push ebp
xor ebx, ebx
push esi
cmp dword [0x417bd0], ebx
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
mov edi, 0x3ef
jne 0x4073d4
push ebx
push 0x3ea
call fcn.004035be
push ebx
push 0x3ec
call fcn.004035be
mov ebp, 0x3ed
push 1
push ebp
call fcn.004035be
push 1
push edi
call fcn.004035be
lea eax, [esp + 0x348]
push 0x100
push eax
push 0x52
push dword [0x417bd4]
call fcn.0040b454
push dword [0x417bf0]
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 [0x4177c8]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push ebx
push 1
push dword [0x4177c8]
call esi
mov ebp, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call ebp
push ebx
push 5
push dword [0x4177c8]
call esi
push eax
call ebp
mov dword [esp + 0x10], ebx
mov ebp, 0x417c60
mov eax, dword [esp + 0x10]
add eax, 0x6b
movzx eax, ax
push eax
push dword [0x417bd4]
call dword [sym.imp.USER32.dll_LoadIconA]
inc dword [esp + 0x10]
mov dword [ebp], eax
add ebp, 4
cmp ebp, 0x417cb4
jl 0x40737c
cmp dword [0x4178d0], ebx
je 0x4073c3
push 5
push 0xef6
push dword [0x4177c8]
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call fcn.0040984e
pop ecx
mov dword [0x417bd0], 1
mov eax, dword [0x417810]
mov ecx, dword [0x417bc0]
add ecx, eax
mov ebx, dword [0x4178b8]
add ecx, dword [0x417c3c]
add ecx, dword [0x417cdc]
add ecx, dword [0x41786c]
add ecx, dword [0x4178c4]
add ecx, ebx
add ecx, dword [0x417bfc]
mov dword [0x417c38], ecx
jne 0x407419
mov dword [0x417c38], 1
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
dec ebx
test ebx, ebx
jl 0x4074c8
lea eax, [esp + 0x128]
push eax
push dword [0x4178a4]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x417c58]
push dword [eax + ebx*4]
push dword [0x4178a4]
call ebp
push dword [0x4178a4]
push edi
push dword [0x4177c8]
call esi
push eax
call fcn.0040a11c
push dword [0x4178a4]
call fcn.0040984e
mov eax, dword [0x417c58]
add esp, 0xc
mov eax, dword [eax + ebx*4]
mov ecx, dword [eax + 0x258]
test ecx, ecx
je 0x40748c
push ecx
push eax
call fcn.004079e7
pop ecx
pop ecx
jmp 0x4074bb
mov cx, word [eax + 0x26c]
test cx, cx
movzx ecx, cx
jne 0x4074a2
movzx ecx, word [eax + 0x268]
push ecx
lea ecx, [eax + 0x208]
push ecx
push eax
call fcn.00407b7a
add esp, 0xc
test eax, eax
jne 0x407995
inc dword [0x417844]
dec ebx
jns 0x407428
mov eax, dword [0x417bfc]
lea ebx, [eax - 1]
test ebx, ebx
jl 0x407582
lea eax, [esp + 0x128]
push eax
push dword [0x4178a4]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x417830]
mov eax, dword [eax + ebx*4]
add eax, 8
push eax
push dword [0x4178a4]
call ebp
push dword [0x4178a4]
push edi
push dword [0x4177c8]
call esi
push eax
call fcn.0040a11c
push dword [0x4178a4]
call fcn.0040984e
mov eax, dword [0x417830]
add esp, 0xc
mov eax, dword [eax + ebx*4]
mov ecx, dword [eax + 0x260]
test ecx, ecx
je 0x407543
add eax, 8
push ecx
push eax
call fcn.004079e7
pop ecx
pop ecx
jmp 0x407575
mov cx, word [eax + 0x274]
test cx, cx
movzx ecx, cx
jne 0x407559
movzx ecx, word [eax + 0x270]
push ecx
lea ecx, [eax + 0x210]
add eax, 8
push ecx
push eax
call fcn.00407b7a
add esp, 0xc
test eax, eax
jne 0x407995
inc dword [0x417844]
dec ebx
jns 0x4074d8
mov eax, dword [0x41781c]
lea ebx, [eax - 1]
test ebx, ebx
jl 0x407623
lea eax, [esp + 0x128]
push eax
push dword [0x4178a4]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x41784c]
push dword [eax + ebx*4]
push dword [0x4178a4]
call ebp
push dword [0x4178a4]
push edi
push dword [0x4177c8]
call esi
push eax
call fcn.0040a11c
push dword [0x4178a4]
call fcn.0040984e
mov eax, dword [0x41784c]
add esp, 0xc
mov eax, dword [eax + ebx*4]
mov ecx, dword [eax + 0x258]
test ecx, ecx
je 0x4075f6
push ecx
push eax
call fcn.004079e7
pop ecx
pop ecx
jmp 0x407616
mov cx, word [eax + 0x268]
push ecx
lea ecx, [eax + 0x208]
push ecx
push eax
call fcn.00407b7a
add esp, 0xc
test eax, eax
jne 0x407995
inc dword [0x417844]
dec ebx
jns 0x407592
xor esi, esi
cmp dword [0x4177f8], esi
jle 0x40768b
xor edi, edi
cmp dword [0x417874], edi
jne 0x40768d
mov eax, dword [0x417894]
push 1
mov eax, dword [eax + esi*4]
cmp dword [eax], edi
mov ecx, dword [eax + 8]
push dword [eax + 0xc]
je 0x407664
lea eax, [ecx + 0x108]
push eax
lea eax, [ecx + 8]
push eax
push dword [ecx + 0x1218]
push dword [ecx + 0x1214]
jmp 0x407678
lea edx, [ecx + 0x10c]
push edx
lea edx, [ecx + 8]
push edx
push dword [eax + 4]
push dword [ecx + 0x218]
call fcn.0040815b
add esp, 0x18
inc esi
cmp esi, dword [0x4177f8]
jl 0x40762f
jmp 0x40768d
xor edi, edi
xor esi, esi
cmp dword [0x417bfc], edi
jle 0x4076d5
cmp dword [0x417874], edi
jne 0x4076d5
mov eax, dword [0x417830]
mov ecx, dword [eax + esi*4]
cmp byte [ecx + 8], 0
lea eax, [ecx + 8]
je 0x4076cc
cmp word [ecx + 0x26c], di
jbe 0x4076cc
push 1
push eax
lea eax, [esp + 0x130]
push eax
call fcn.0040a70e
add esp, 0xc
inc esi
cmp esi, dword [0x417bfc]
jl 0x407697
xor esi, esi
cmp dword [0x4178b8], edi
jle 0x407719
cmp dword [0x417874], edi
jne 0x407719
mov eax, dword [0x417c58]
mov eax, dword [eax + esi*4]
cmp byte [eax], 0
je 0x407710
cmp word [eax + 0x264], di
jbe 0x407710
push 1
push eax
lea eax, [esp + 0x130]
push eax
call fcn.0040a70e
add esp, 0xc
inc esi
cmp esi, dword [0x4178b8]
jl 0x4076df
cmp dword [0x417bd8], edi
je 0x407995
movzx eax, word [0x417cd4]
cmp eax, edi
mov dword [esp + 0x10], eax
jl 0x407995
mov eax, dword [esp + 0x10]
mov ebp, eax
mov eax, dword [0x4177e0]
shl ebp, 2
add eax, ebp
mov ecx, dword [eax]
cmp ecx, edi
je 0x407966
mov edx, dword [0x4178fc]
cmp dword [edx + ebp], edi
je 0x407966
cmp byte [ecx], 0
je 0x407966
mov esi, dword [eax]
lea ecx, [esp + 0x228]
mov al, byte [esi]
test al, al
je 0x40779e
cmp al, 0x7c
je 0x407788
mov byte [ecx], al
mov al, byte [esi + 1]
inc ecx
inc esi
test al, al
jne 0x407779
lea eax, [esp + 0x228]
cmp ecx, eax
jbe 0x40779e
cmp byte [ecx - 1], 0x20
lea eax, [ecx - 1]
jne 0x40779e
mov ecx, eax
and byte [ecx], 0
cmp byte [esi], 0
je 0x4077a7
inc esi
cmp dword [0x41521c], 1
jle 0x4077bf
movsx eax, byte [esi]
push 8
push eax
call fcn.0040cea8
pop ecx
pop ecx
jmp 0x4077ce
movsx eax, byte [esi]
mov ecx, dword [str.________________________________H]
mov al, byte [ecx + eax*2]
and eax, 8
cmp eax, edi
jne 0x4077a6
lea eax, [esp + 0x228]
push edi
push eax
call fcn.0040b1ca
pop ecx
test eax, eax
pop ecx
jne 0x4078be
lea eax, [esp + 0x228]
push edi
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp edi, 0xffffffff
je 0x4078be
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 0x40786c
add edx, 0x7d0
jmp 0x407872
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 0x40791e
lea eax, [esp + 0x228]
push esi
mov dword [0x417860], eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [esp + 0x28], 0
lea eax, [esp + 0x28]
je 0x4078ef
cmp byte [eax], 0x7c
jne 0x4078e9
mov byte [eax], 0x2f
inc eax
cmp byte [eax], 0
jne 0x4078e1
xor edi, edi
lea eax, [esp + 0x28]
push edi
push sym.UNWISE32.EXE__PromptDlg_16
push dword [0x4177c8]
mov dword [0x4178c8], eax
push 0x6b
push dword [0x417bd4]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 2
je 0x407972
jmp 0x4077d2
mov eax, dword [0x4178fc]
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.0040c4c9
mov eax, dword [0x4178fc]
add esp, 0x14
push dword [eax + ebp]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x4177e0]
mov eax, dword [eax + ebp]
and byte [eax], 0
xor edi, edi
dec dword [esp + 0x10]
jns 0x407738
jmp 0x407995
mov esi, dword [esp + 0x10]
cmp esi, edi
jl 0x407995
mov eax, dword [0x4177e0]
mov eax, dword [eax + esi*4]
cmp eax, edi
je 0x407992
cmp byte [eax], 0
je 0x407992
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
dec esi
jns 0x40797a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb18
ret