Function at 0x4091d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40de30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe8
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x31
xor eax, eax
lea edi, [ebp - 0xf3]
mov byte [ebp - 0xf4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 0x188]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x10], esp
or edi, 0xffffffff
push 2
push edi
push 0x100c
push eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x14], 0
call ebx
inc eax
test eax, eax
jne 0x40928f
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call sub.MFC42.DLL_CString::CString_2
push 0x2b
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::LoadStringA
push 0x1d
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push 0x30
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x18]
jmp 0x409513
mov ecx, dword [esi + 0x300]
test ecx, ecx
jne 0x4092f0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_2
push 0x2c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::LoadStringA
push 0x1d
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
push 0x10
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x14]
jmp 0x409513
mov ecx, dword [ebp - 0x14]
mov edx, dword [esi + 0x188]
lea edi, [eax - 1]
push 2
push edi
inc ecx
push 0x100c
push edx
mov dword [ebp - 0x14], ecx
call ebx
inc eax
test eax, eax
jne 0x4092f0
cmp dword [ebp - 0x14], 1
jne 0x409430
lea eax, [ebp - 0xf4]
push 0xc8
push eax
push 3
push edi
lea ecx, [esi + 0x168]
mov dword [ebp - 4], 4
call sub.MFC42.DLL_CListCtrl::GetItemText
lea ecx, [ebp - 0xf4]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40936e
mov edx, dword [esi + 0x188]
push 0
push edi
push 0x1008
push edx
call ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_2
mov bl, 5
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString_2
push 0x2d
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::LoadStringA
push 0x1d
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
push 0x10
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
jmp 0x409513
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xa
call sub.MFC42.DLL_CString::CString_2
push 0x2e
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::LoadStringA
push 0x2f
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
push ecx
lea eax, [ebp - 0xf4]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [ebp - 0x28]
add esp, 0xc
lea edx, [ebp - 0xf4]
push 0x24
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
cmp eax, 6
jne 0x4094fd
mov eax, dword [esi + 0x188]
push 2
push 0xffffffffffffffff
push 0x100c
push eax
mov byte [ebp - 4], 0xc
call ebx
lea edi, [eax + 1]
test edi, edi
je 0x4094ef
mov ecx, dword [esi + 0x188]
dec edi
push 2
push edi
push 0x100c
push ecx
call ebx
lea edx, [ebp - 0xf4]
push 0xc8
push edx
inc eax
push 3
push edi
lea ecx, [esi + 0x168]
mov dword [ebp - 0x1c], eax
call sub.MFC42.DLL_CListCtrl::GetItemText
lea eax, [ebp - 0xf4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [ebp - 0x1c]
jmp 0x4094a9
mov ecx, esi
call fcn.00408850
mov dword [ebp - 4], 0xb
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret