Function at 0x40a805
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb28
push str.Checking:_r_n
lea eax, [ebp - 0x328]
push eax
mov dword [0x4186a8], 1
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x1000
call fcn.00401fe8
mov dword [0x418b48], eax
xor eax, eax
cmp word [0x4186ac], ax
pop ecx
jb 0x40a85b
mov ecx, dword [0x418b48]
and dword [ecx + eax*4], 0
movzx ecx, word [0x4186ac]
inc eax
cmp eax, ecx
jle 0x40a845
cmp dword [0x418784], 0
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
mov edi, 0x3ef
jne 0x40a964
push 0
push 0x3ea
call fcn.00401543
push 0
push 0x3ec
call fcn.00401543
push 1
mov ebx, 0x3ed
push ebx
call fcn.00401543
push 1
push edi
call fcn.00401543
push pe_nt_image_headers32
lea eax, [ebp - 0x728]
push eax
push 0x52
push dword [0x418790]
call fcn.004033e3
push dword [0x4186e4]
lea eax, [ebp - 0x728]
push eax
lea eax, [ebp - 0xb28]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x3c
lea eax, [ebp - 0xb28]
push eax
push ebx
push dword [0x418794]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0
push 1
push dword [0x418794]
call esi
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call ebx
push 0
push 5
push dword [0x418794]
call esi
push eax
call ebx
xor ebx, ebx
lea eax, [ebx + 0x6b]
movzx eax, ax
push eax
push dword [0x418790]
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebx*4 + 0x418a80], eax
inc ebx
cmp ebx, 0x15
jl 0x40a913
cmp dword [0x418b00], 0
je 0x40a952
push 5
push 0xef6
push dword [0x418794]
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
call fcn.00402af8
pop ecx
mov dword [0x418784], 1
mov eax, dword [0x418670]
mov ecx, dword [0x418714]
lea edx, [ecx + eax]
add edx, dword [0x418788]
mov ecx, dword [0x418a64]
add edx, dword [0x418b34]
mov eax, dword [0x4186f8]
add edx, dword [0x418718]
add edx, dword [0x418a68]
add edx, ecx
add edx, dword [0x418720]
add edx, eax
mov dword [0x418b70], edx
jne 0x40a9b1
mov dword [0x418b70], 1
test eax, eax
jle 0x40aa24
mov eax, dword [0x418780]
test eax, eax
je 0x40aa1a
cmp byte [eax], 0
je 0x40aa1a
push 0x104
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.msiexec.exe
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [0x418780]
lea eax, [ebp - 0x124]
push str._f__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.0040257b
add esp, 0x14
jmp 0x40af7c
call fcn.00401613
jmp 0x40af7c
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ecx - 1]
test eax, eax
mov dword [ebp - 4], eax
jl 0x40aaeb
lea eax, [ebp - 0x328]
push eax
push dword [0x418a5c]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x418b5c]
mov ecx, dword [ebp - 4]
push dword [eax + ecx*4]
push dword [0x418a5c]
call ebx
push dword [0x418a5c]
push edi
push dword [0x418794]
call esi
push eax
call fcn.00401946
push dword [0x418a5c]
call fcn.00402af8
mov eax, dword [0x418b5c]
mov ecx, dword [ebp - 4]
lea ecx, [eax + ecx*4]
mov eax, dword [ecx]
add esp, 0xc
cmp dword [eax + 0x258], 0
je 0x40aaa9
mov ecx, eax
push dword [ecx + 0x258]
push ecx
call fcn.00408926
pop ecx
pop ecx
jmp 0x40aadc
mov dx, word [eax + 0x26c]
test dx, dx
je 0x40aaba
movzx eax, dx
jmp 0x40aac1
movzx eax, word [eax + 0x268]
mov ecx, dword [ecx]
push eax
lea eax, [ecx + 0x208]
push eax
push ecx
call fcn.00408ab9
add esp, 0xc
test eax, eax
jne 0x40af7c
inc dword [0x418b10]
dec dword [ebp - 4]
jns 0x40aa38
mov eax, dword [0x418720]
dec eax
mov dword [ebp - 4], eax
js 0x40abb7
lea eax, [ebp - 0x328]
push eax
push dword [0x418a5c]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x418778]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + ecx*4]
add eax, 8
push eax
push dword [0x418a5c]
call ebx
push dword [0x418a5c]
push edi
push dword [0x418794]
call esi
push eax
call fcn.00401946
push dword [0x418a5c]
call fcn.00402af8
mov eax, dword [0x418778]
mov ecx, dword [ebp - 4]
lea ecx, [eax + ecx*4]
mov eax, dword [ecx]
add esp, 0xc
cmp dword [eax + 0x260], 0
je 0x40ab72
mov ecx, eax
push dword [ecx + 0x260]
add ecx, 8
push ecx
call fcn.00408926
pop ecx
pop ecx
jmp 0x40aba8
mov dx, word [eax + 0x274]
test dx, dx
je 0x40ab83
movzx eax, dx
jmp 0x40ab8a
movzx eax, word [eax + 0x270]
mov ecx, dword [ecx]
push eax
lea eax, [ecx + 0x210]
push eax
add ecx, 8
push ecx
call fcn.00408ab9
add esp, 0xc
test eax, eax
jne 0x40af7c
inc dword [0x418b10]
dec dword [ebp - 4]
jns 0x40aafa
mov eax, dword [0x418798]
dec eax
mov dword [ebp - 4], eax
js 0x40ac68
lea eax, [ebp - 0x328]
push eax
push dword [0x418a5c]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x418a48]
mov ecx, dword [ebp - 4]
push dword [eax + ecx*4]
push dword [0x418a5c]
call ebx
push dword [0x418a5c]
push edi
push dword [0x418794]
call esi
push eax
call fcn.00401946
push dword [0x418a5c]
call fcn.00402af8
mov ecx, dword [ebp - 4]
mov eax, dword [0x418a48]
lea eax, [eax + ecx*4]
mov ecx, dword [eax]
add esp, 0xc
cmp dword [ecx + 0x258], 0
mov eax, ecx
je 0x40ac37
push dword [eax + 0x258]
push eax
call fcn.00408926
pop ecx
pop ecx
jmp 0x40ac59
xor ecx, ecx
mov cx, word [eax + 0x268]
push ecx
lea ecx, [eax + 0x208]
push ecx
push eax
call fcn.00408ab9
add esp, 0xc
test eax, eax
jne 0x40af7c
inc dword [0x418b10]
dec dword [ebp - 4]
jns 0x40abc6
xor esi, esi
xor edi, edi
cmp dword [0x4186a0], esi
jle 0x40acce
cmp dword [0x418738], edi
jne 0x40acce
mov eax, dword [0x41870c]
mov eax, dword [eax + esi*4]
cmp dword [eax], edi
mov ecx, dword [eax + 8]
push 1
push dword [eax + 0xc]
je 0x40aca9
lea eax, [ecx + 0x108]
push eax
lea eax, [ecx + 8]
push eax
push dword [ecx + 0x1218]
push dword [ecx + 0x1214]
jmp 0x40acbd
lea edx, [ecx + 0x10c]
push edx
lea edx, [ecx + 8]
push edx
push dword [eax + 4]
push dword [ecx + 0x218]
call fcn.0040169a
add esp, 0x18
inc esi
cmp esi, dword [0x4186a0]
jl 0x40ac74
xor esi, esi
cmp dword [0x418720], edi
jle 0x40ad14
cmp dword [0x418738], edi
jne 0x40ad14
mov eax, dword [0x418778]
mov eax, dword [eax + esi*4]
lea ecx, [eax + 8]
cmp byte [ecx], 0
je 0x40ad0b
cmp word [eax + 0x26c], di
jbe 0x40ad0b
push 1
push ecx
lea eax, [ebp - 0x328]
push eax
call fcn.004092a7
add esp, 0xc
inc esi
cmp esi, dword [0x418720]
jl 0x40acd8
xor esi, esi
cmp dword [0x418a64], edi
jle 0x40ad57
cmp dword [0x418738], edi
jne 0x40ad57
mov eax, dword [0x418b5c]
mov eax, dword [eax + esi*4]
cmp byte [eax], 0
je 0x40ad4e
cmp word [eax + 0x264], di
jbe 0x40ad4e
push 1
push eax
lea eax, [ebp - 0x328]
push eax
call fcn.004092a7
add esp, 0xc
inc esi
cmp esi, dword [0x418a64]
jl 0x40ad1e
cmp dword [0x418b98], edi
je 0x40af7c
movzx eax, word [0x4186ac]
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x40af7c
mov ebx, dword [ebp - 8]
mov eax, dword [0x418a58]
shl ebx, 2
add eax, ebx
mov ecx, dword [eax]
cmp ecx, edi
je 0x40afcc
mov edx, dword [0x418b48]
cmp dword [ebx + edx], edi
je 0x40afcc
cmp byte [ecx], 0
je 0x40afcc
mov esi, dword [eax]
mov al, byte [esi]
test al, al
lea ecx, [ebp - 0x224]
je 0x40add4
cmp al, 0x7c
je 0x40adc0
mov byte [ecx], al
inc ecx
inc esi
mov al, byte [esi]
test al, al
jne 0x40adb2
lea eax, [ebp - 0x224]
cmp ecx, eax
jbe 0x40add4
lea eax, [ecx - 1]
cmp byte [eax], 0x20
jne 0x40add4
mov ecx, eax
mov byte [ecx], 0
cmp byte [esi], 0
je 0x40addd
inc esi
cmp dword [0x41806c], 1
movsx eax, byte [esi]
jle 0x40adf5
push 8
push eax
call fcn.0040e5a2
pop ecx
pop ecx
jmp 0x40ae02
mov ecx, dword [str.________________________________H]
movzx eax, byte [ecx + eax*2]
and eax, 8
cmp eax, edi
jne 0x40addc
lea eax, [ebp - 0x224]
push edi
push eax
call fcn.00401d5c
test eax, eax
pop ecx
pop ecx
jne 0x40aef4
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp edi, 0xffffffff
je 0x40aef4
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [ebp - 2]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll__llseek]
push edi
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll__lclose]
movzx ecx, word [ebp - 0xc]
mov eax, ecx
shr eax, 9
add eax, 0x50
push 0x64
cdq
pop edi
idiv edi
cmp edx, 0x3c
jae 0x40ae99
add edx, 0x7d0
jmp 0x40ae9f
add edx, 0x76c
movzx eax, word [ebp - 2]
push dword [ebp - 0x10]
mov edi, eax
and edi, 0x1f
shl edi, 1
push edi
mov edi, eax
shr edi, 5
shr eax, 0xb
and edi, 0x3f
push edi
push eax
mov eax, ecx
push edx
and eax, 0x1f
push eax
shr ecx, 5
and ecx, 0xf
push ecx
lea eax, [ebp - 0x120]
push str._02d__02d__04d___02d:_02d:_02d___ld
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
push esi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40af81
lea eax, [ebp - 0x224]
mov dword [0x4186b4], eax
push esi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [ebp - 0x120], 0
lea eax, [ebp - 0x120]
je 0x40af2a
cmp byte [eax], 0x7c
jne 0x40af24
mov byte [eax], 0x2f
inc eax
cmp byte [eax], 0
jne 0x40af1c
xor edi, edi
push edi
push sym.UNWISE32.EXE__PromptDlg_16
push dword [0x418794]
lea eax, [ebp - 0x120]
push 0x6b
push dword [0x418790]
mov dword [0x418684], eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 2
jne 0x40ae06
mov esi, dword [ebp - 8]
cmp esi, edi
jl 0x40af7c
mov eax, dword [0x418a58]
mov eax, dword [eax + esi*4]
cmp eax, edi
je 0x40af79
cmp byte [eax], 0
je 0x40af79
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
dec esi
jns 0x40af61
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [0x418b48]
push dword [ebx + eax]
lea eax, [ebp - 0x120]
push str._X_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.0040257b
mov eax, dword [0x418b48]
add esp, 0x14
push dword [ebx + eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x418a58]
mov eax, dword [ebx + eax]
mov byte [eax], 0
xor edi, edi
dec dword [ebp - 8]
jns 0x40ad75
jmp 0x40af7c