Function at 0x1004f05b
Capabilities:
Delete file

Disassembly:
push 0x60
mov eax, 0x101c8ed6
call fcn.10093159
mov esi, ecx
and dword [ebp - 0x10], 0
push str.DecryptOrEncrypteMailAttach_____
mov ebx, str.OnItemSend
push ebx
push 0xffffffffffffffff
mov edi, 0x10258cdc
push edi
call fcn.10023e40
add esp, 0x10
lea ecx, [ebp - 0x48]
call fcn.100ce1d0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.100ce1d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.100ce1d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.100d4540
mov byte [ebp - 4], 3
push dword [ebp + 0x20]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 0x1c]
mov ecx, esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1004de05
test eax, eax
jne 0x1004f133
push str.No_Attach_DecryptOrEncrypt_
push ebx
push 0xffffffffffffffff
push edi
call fcn.10023e40
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.100d4550
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.100ce1e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.100ce1e0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.100ce1e0
xor eax, eax
call fcn.10093231
ret 0x1c
cmp dword [ebp + 0x18], 0
je 0x1004f394
call fcn.1003bfed
cmp eax, 1
je 0x1004f2f3
mov eax, dword [0x10200e98]
and dword [ebp + 0x14], 0
mov dword [ebp + 0x20], eax
mov byte [ebp - 4], 4
and dword [ebp + 0x1c], 0
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.1003ef23
test eax, eax
je 0x1004f33c
cmp dword [ebp + 0x1c], 0
je 0x1004f33c
lea ecx, [ebp - 0x6c]
call fcn.1005d21e
mov byte [ebp - 4], 5
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x6c]
call fcn.1005d288
call fcn.1003bfed
cmp eax, 2
jne 0x1004f1f7
cmp dword [ebp - 0x5c], 1
jne 0x1004f1b3
mov eax, dword [ebp - 0x68]
jmp 0x1004f1bc
cmp dword [ebp - 0x5c], 2
jne 0x1004f1c5
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xd8]
cmp dword [ebp - 0x5c], 1
jne 0x1004f1dc
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1e8]
jmp 0x1004f285
cmp dword [ebp - 0x5c], 2
jne 0x1004f285
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x168]
jmp 0x1004f285
call fcn.1003bfed
cmp eax, 3
je 0x1004f20b
call fcn.1003bfed
cmp eax, 4
jne 0x1004f285
and dword [ebp + 0x18], 0
mov byte [ebp - 4], 7
mov eax, dword [esi + 0x150]
mov ecx, dword [eax]
lea edx, [ebp + 0x18]
push edx
push 5
push eax
call dword [ecx + 0x40]
xor ecx, ecx
cmp dword [ebp + 0x18], ecx
je 0x1004f279
cmp dword [ebp - 0x5c], 1
jne 0x1004f237
mov eax, dword [ebp - 0x68]
jmp 0x1004f240
cmp dword [ebp - 0x5c], 2
jne 0x1004f24a
mov eax, dword [ebp - 0x64]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0xb8]
lea eax, [ebp - 0x6c]
push eax
mov ecx, esi
call fcn.1004107b
cmp dword [ebp - 0x5c], 1
jne 0x1004f260
mov eax, dword [ebp - 0x68]
jmp 0x1004f269
cmp dword [ebp - 0x5c], 2
jne 0x1004f279
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax]
lea edx, [ebp + 0x10]
push edx
push dword [ebp + 0x18]
push eax
call dword [ecx + 0xd0]
mov byte [ebp - 4], 5
lea ecx, [ebp + 0x18]
call fcn.1003dda1
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 1
jne 0x1004f29c
mov eax, dword [eax + 4]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x10c]
cmp dword [ebp + 0x14], 0
je 0x1004f2db
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.100104a4
mov byte [ebp - 4], 8
push dword [ebp + 0x20]
mov ecx, esi
call fcn.1003c869
push dword [ebp + 0x20]
push eax
push str.DecryptOrEncrypteMailAttach_DelFile___d___s_
push ebx
push 0xffffffffffffffff
push edi
call fcn.10023e40
add esp, 0x18
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x18]
call fcn.100104d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x6c]
call fcn.1005d1ab
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x20]
call fcn.100c88b0
push 1
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.10049ffa
lea eax, [esi + 0x698]
push eax
mov ecx, esi
call fcn.10046abe
lea eax, [esi + 0x6a8]
cmp dword [eax], 0
jne 0x1004f3b3
push 0xffff
push dword [ebp + 8]
mov ecx, esi
mov dword [eax], 1
call fcn.10045ddf
jmp 0x1004f3b0
push 0
push str.DecryptOrEncrypteMailAttach_pIDispPatchOrg_Err__08x_
push ebx
push 0xffffffffffffffff
push edi
call fcn.10023e40
add esp, 0x14
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x20]
call fcn.100c88b0
xor esi, esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.100d4550
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.100ce1e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.100ce1e0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.100ce1e0
mov eax, esi
jmp 0x1004f12b
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push dword [ebp + 8]
mov ecx, esi
call fcn.1004594b
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x34]
dec eax
mov dword [ebp + 8], eax
js 0x1004f400
jmp 0x1004f3c1
mov eax, dword [ebp + 8]
mov esi, eax
mov eax, dword [ebp - 0x28]
shl esi, 2
push dword [esi + eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x48]
push dword [esi + eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x48]
push dword [esi + eax]
mov eax, dword [ebp - 0x28]
push dword [esi + eax]
push str.delete_temp_file___s___s_
push ebx
push 0xffffffffffffffff
push edi
call fcn.10023e40
add esp, 0x18
dec dword [ebp + 8]
jns 0x1004f3be
mov esi, dword [ebp - 0x10]
push esi
push str.RebuildMailAttach___d_
push ebx
push 0xffffffffffffffff
push edi
call fcn.10023e40
add esp, 0x14
jmp 0x1004f35d