Function at 0x406ba3
Capabilities:
Delete file

Disassembly:
sub esp, 0xb18
lea eax, [esp + 0x118]
mov dword [0x4136c0], 1
push str.Checking:_r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x1000
call fcn.0040b671
mov dword [0x4137ac], eax
xor eax, eax
cmp word [0x413b94], ax
pop ecx
jb 0x406bf7
mov ecx, dword [0x4137ac]
and dword [ecx + eax*4], 0
inc eax
movzx ecx, word [0x413b94]
cmp eax, ecx
jle 0x406be1
push ebx
push ebp
xor ebx, ebx
push esi
cmp dword [0x413a8c], ebx
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
mov edi, 0x3ef
jne 0x406d10
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 [0x413a90]
call fcn.0040ab9d
push dword [0x413aa8]
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 [0x413690]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push ebx
push 1
push dword [0x413690]
call esi
mov ebp, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call ebp
push ebx
push 5
push dword [0x413690]
call esi
push eax
call ebp
mov dword [esp + 0x10], ebx
mov ebp, 0x413b20
mov eax, dword [esp + 0x10]
add eax, 0x6b
movzx eax, ax
push eax
push dword [0x413a90]
call dword [sym.imp.USER32.dll_LoadIconA]
inc dword [esp + 0x10]
mov dword [ebp], eax
add ebp, 4
cmp ebp, 0x413b74
jl 0x406cb8
cmp dword [0x413780], ebx
je 0x406cff
push 5
push 0xef6
push dword [0x413690]
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call fcn.00409026
pop ecx
mov dword [0x413a8c], 1
mov eax, dword [0x4136c8]
mov ecx, dword [0x413a80]
add ecx, eax
mov ebx, dword [0x413768]
add ecx, dword [0x413afc]
add ecx, dword [0x413b9c]
add ecx, dword [0x413720]
add ecx, dword [0x413774]
add ecx, ebx
add ecx, dword [0x413ab4]
mov dword [0x413af8], ecx
jne 0x406d55
mov dword [0x413af8], 1
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
dec ebx
test ebx, ebx
jl 0x406e04
lea eax, [esp + 0x128]
push eax
push dword [0x413754]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x413b0c]
push dword [eax + ebx*4]
push dword [0x413754]
call ebp
push dword [0x413754]
push edi
push dword [0x413690]
call esi
push eax
call fcn.004098d8
push dword [0x413754]
call fcn.00409026
mov eax, dword [0x413b0c]
add esp, 0xc
mov eax, dword [eax + ebx*4]
mov ecx, dword [eax + 0x258]
test ecx, ecx
je 0x406dc8
push ecx
push eax
call fcn.00407323
pop ecx
pop ecx
jmp 0x406df7
mov cx, word [eax + 0x26c]
test cx, cx
movzx ecx, cx
jne 0x406dde
movzx ecx, word [eax + 0x268]
push ecx
lea ecx, [eax + 0x208]
push ecx
push eax
call fcn.004074b6
add esp, 0xc
test eax, eax
jne 0x4072d1
inc dword [0x4136f8]
dec ebx
jns 0x406d64
mov eax, dword [0x413ab4]
lea ebx, [eax - 1]
test ebx, ebx
jl 0x406ebe
lea eax, [esp + 0x128]
push eax
push dword [0x413754]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x4136e8]
mov eax, dword [eax + ebx*4]
add eax, 8
push eax
push dword [0x413754]
call ebp
push dword [0x413754]
push edi
push dword [0x413690]
call esi
push eax
call fcn.004098d8
push dword [0x413754]
call fcn.00409026
mov eax, dword [0x4136e8]
add esp, 0xc
mov eax, dword [eax + ebx*4]
mov ecx, dword [eax + 0x260]
test ecx, ecx
je 0x406e7f
add eax, 8
push ecx
push eax
call fcn.00407323
pop ecx
pop ecx
jmp 0x406eb1
mov cx, word [eax + 0x274]
test cx, cx
movzx ecx, cx
jne 0x406e95
movzx ecx, word [eax + 0x270]
push ecx
lea ecx, [eax + 0x210]
add eax, 8
push ecx
push eax
call fcn.004074b6
add esp, 0xc
test eax, eax
jne 0x4072d1
inc dword [0x4136f8]
dec ebx
jns 0x406e14
mov eax, dword [0x4136d4]
lea ebx, [eax - 1]
test ebx, ebx
jl 0x406f5f
lea eax, [esp + 0x128]
push eax
push dword [0x413754]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x413700]
push dword [eax + ebx*4]
push dword [0x413754]
call ebp
push dword [0x413754]
push edi
push dword [0x413690]
call esi
push eax
call fcn.004098d8
push dword [0x413754]
call fcn.00409026
mov eax, dword [0x413700]
add esp, 0xc
mov eax, dword [eax + ebx*4]
mov ecx, dword [eax + 0x258]
test ecx, ecx
je 0x406f32
push ecx
push eax
call fcn.00407323
pop ecx
pop ecx
jmp 0x406f52
mov cx, word [eax + 0x268]
push ecx
lea ecx, [eax + 0x208]
push ecx
push eax
call fcn.004074b6
add esp, 0xc
test eax, eax
jne 0x4072d1
inc dword [0x4136f8]
dec ebx
jns 0x406ece
xor esi, esi
cmp dword [0x4136b8], esi
jle 0x406fc7
xor edi, edi
cmp dword [0x413724], edi
jne 0x406fc9
mov eax, dword [0x413744]
push 1
mov eax, dword [eax + esi*4]
cmp dword [eax], edi
mov ecx, dword [eax + 8]
push dword [eax + 0xc]
je 0x406fa0
lea eax, [ecx + 0x108]
push eax
lea eax, [ecx + 8]
push eax
push dword [ecx + 0x1218]
push dword [ecx + 0x1214]
jmp 0x406fb4
lea edx, [ecx + 0x10c]
push edx
lea edx, [ecx + 8]
push edx
push dword [eax + 4]
push dword [ecx + 0x218]
call fcn.00407a97
add esp, 0x18
inc esi
cmp esi, dword [0x4136b8]
jl 0x406f6b
jmp 0x406fc9
xor edi, edi
xor esi, esi
cmp dword [0x413ab4], edi
jle 0x407011
cmp dword [0x413724], edi
jne 0x407011
mov eax, dword [0x4136e8]
mov ecx, dword [eax + esi*4]
cmp byte [ecx + 8], 0
lea eax, [ecx + 8]
je 0x407008
cmp word [ecx + 0x26c], di
jbe 0x407008
push 1
push eax
lea eax, [esp + 0x130]
push eax
call fcn.00409eca
add esp, 0xc
inc esi
cmp esi, dword [0x413ab4]
jl 0x406fd3
xor esi, esi
cmp dword [0x413768], edi
jle 0x407055
cmp dword [0x413724], edi
jne 0x407055
mov eax, dword [0x413b0c]
mov eax, dword [eax + esi*4]
cmp byte [eax], 0
je 0x40704c
cmp word [eax + 0x264], di
jbe 0x40704c
push 1
push eax
lea eax, [esp + 0x130]
push eax
call fcn.00409eca
add esp, 0xc
inc esi
cmp esi, dword [0x413768]
jl 0x40701b
cmp dword [0x413a94], edi
je 0x4072d1
movzx eax, word [0x413b94]
cmp eax, edi
mov dword [esp + 0x10], eax
jl 0x4072d1
mov eax, dword [esp + 0x10]
mov ebp, eax
mov eax, dword [0x4136a4]
shl ebp, 2
add eax, ebp
mov ecx, dword [eax]
cmp ecx, edi
je 0x4072a2
mov edx, dword [0x4137ac]
cmp dword [edx + ebp], edi
je 0x4072a2
cmp byte [ecx], 0
je 0x4072a2
mov esi, dword [eax]
lea ecx, [esp + 0x228]
mov al, byte [esi]
test al, al
je 0x4070da
cmp al, 0x7c
je 0x4070c4
mov byte [ecx], al
mov al, byte [esi + 1]
inc ecx
inc esi
test al, al
jne 0x4070b5
lea eax, [esp + 0x228]
cmp ecx, eax
jbe 0x4070da
cmp byte [ecx - 1], 0x20
lea eax, [ecx - 1]
jne 0x4070da
mov ecx, eax
and byte [ecx], 0
cmp byte [esi], 0
je 0x4070e3
inc esi
cmp dword [0x41311c], 1
jle 0x4070fb
movsx eax, byte [esi]
push 8
push eax
call fcn.0040c27e
pop ecx
pop ecx
jmp 0x40710a
movsx eax, byte [esi]
mov ecx, dword [str.________________________________H]
mov al, byte [ecx + eax*2]
and eax, 8
cmp eax, edi
jne 0x4070e2
lea eax, [esp + 0x228]
push edi
push eax
call fcn.0040a933
pop ecx
test eax, eax
pop ecx
jne 0x4071fa
lea eax, [esp + 0x228]
push edi
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp edi, 0xffffffff
je 0x4071fa
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 0x4071a8
add edx, 0x7d0
jmp 0x4071ae
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 0x40725a
lea eax, [esp + 0x228]
push esi
mov dword [0x413714], eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [esp + 0x28], 0
lea eax, [esp + 0x28]
je 0x40722b
cmp byte [eax], 0x7c
jne 0x407225
mov byte [eax], 0x2f
inc eax
cmp byte [eax], 0
jne 0x40721d
xor edi, edi
lea eax, [esp + 0x28]
push edi
push sym.UNWISE32.EXE__PromptDlg_16
push dword [0x413690]
mov dword [0x413778], eax
push 0x6b
push dword [0x413a90]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 2
je 0x4072ae
jmp 0x40710e
mov eax, dword [0x4137ac]
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.0040bd9b
mov eax, dword [0x4137ac]
add esp, 0x14
push dword [eax + ebp]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x4136a4]
mov eax, dword [eax + ebp]
and byte [eax], 0
xor edi, edi
dec dword [esp + 0x10]
jns 0x407074
jmp 0x4072d1
mov esi, dword [esp + 0x10]
cmp esi, edi
jl 0x4072d1
mov eax, dword [0x4136a4]
mov eax, dword [eax + esi*4]
cmp eax, edi
je 0x4072ce
cmp byte [eax], 0
je 0x4072ce
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
dec esi
jns 0x4072b6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb18
ret