Function at 0x4136b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x477ea3
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x4ab028]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push esi
push edi
mov eax, dword [0x4ab028]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [esi + 0x168]
push edi
call dword [sym.imp.mfc100u.dll_CTreeCtrl::ItemHasChildren]
push edi
test eax, eax
je 0x413779
mov eax, dword [esi + 0x168]
mov eax, dword [eax + 0x20]
push 4
push 0x110a
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
test edi, edi
je 0x4139e9
push edi
mov ecx, esi
call fcn.004136b0
push edi
mov ebx, eax
mov eax, dword [esi + 0x168]
mov ecx, dword [eax + 0x20]
push 1
push 0x110a
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x10], eax
test ebx, ebx
je 0x41376e
mov edx, dword [esi + 0x168]
mov eax, dword [edx + 0x20]
push edi
push 0
push 0x1101
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x10]
mov edi, eax
test eax, eax
jne 0x413728
jmp 0x4139e9
mov ecx, dword [esi + 0x168]
call dword [sym.imp.mfc100u.dll_CTreeCtrl::GetCheck]
test eax, eax
je 0x4139e9
push edi
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x168]
call dword [sym.imp.mfc100u.dll_CTreeCtrl::GetItemText]
xor ebx, ebx
mov dword [esp + 0xc8], ebx
mov eax, 7
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], dx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], cx
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], dx
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], ebx
mov word [esp + 0x70], cx
mov dword [esp + 0xa0], eax
mov dword [esp + 0x9c], ebx
mov word [esp + 0x8c], dx
mov dword [esp + 0xa8], 1
mov dword [esp + 0xac], ebx
push ecx
mov byte [esp + 0xcc], 1
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call dword [0x479d48]
push esi
lea ecx, [esp + 0x24]
call fcn.004133c0
cmp eax, ebx
je 0x41399a
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4138c5
mov eax, dword [esi + 0x168]
mov edx, dword [eax + 0x20]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 3
push 0x110a
push edx
call ebx
mov edi, eax
push esi
call fcn.004131e0
mov eax, dword [esi + 0x168]
mov eax, dword [eax + 0x20]
push edi
push 3
push 0x110a
push eax
call ebx
mov edi, eax
push esi
call fcn.004131e0
mov eax, dword [esi + 0x168]
mov ecx, dword [eax + 0x20]
push edi
push 3
push 0x110a
push ecx
call ebx
push esi
mov edi, eax
call fcn.004131e0
lea esi, [esp + 0x1c]
call fcn.004103b0
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov eax, 1
jmp 0x4139eb
cmp dword [esp + 0x30], 8
mov eax, dword [esp + 0x1c]
jae 0x4138d4
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
call dword [0x479d34]
push str.RecycleBin
mov ecx, eax
mov byte [esp + 0xcc], 2
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
test eax, eax
lea ecx, [esp + 0x18]
sete byte [esp + 0x17]
mov byte [esp + 0xc8], 1
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
cmp byte [esp + 0x17], 0
je 0x4139d6
mov edx, dword [esi + 0x20]
push edx
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
call fcn.00408640
call dword [sym.imp.EvidenceMan.dll_public:_static_int___cdecl_Evidence::CSysEvidence::deleteFileInRecy_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____struct_HWND____]
add esp, 0x20
cmp eax, ebx
je 0x4139d6
mov eax, dword [esi + 0x168]
mov eax, dword [eax + 0x20]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 3
push 0x110a
push eax
call ebx
mov edi, eax
push esi
call fcn.004131e0
mov eax, dword [esi + 0x168]
mov ecx, dword [eax + 0x20]
push edi
push 3
push 0x110a
push ecx
call ebx
mov edi, eax
push esi
call fcn.004131e0
mov eax, dword [esi + 0x168]
mov edx, dword [eax + 0x20]
push edi
push 3
push 0x110a
push edx
jmp 0x41389e
mov ecx, dword [esp + 0x70]
mov eax, 8
cmp dword [esp + 0x84], eax
jae 0x4139b0
lea ecx, [esp + 0x70]
cmp dword [esp + 0x68], eax
mov eax, dword [esp + 0x54]
jae 0x4139be
lea eax, [esp + 0x54]
push ecx
push eax
push SysReAllocString
call dword [sym.imp.Common.dll_SBRegDeleteValueW]
add esp, 0xc
test eax, eax
je 0x413945
lea esi, [esp + 0x1c]
call fcn.004103b0
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
xor eax, eax
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.0046bf30
mov esp, ebp
pop ebp
ret 4