Function at 0x1004f0ad
Capabilities:
Delete file

Disassembly:
push 0x60
mov eax, 0x101c8ed6
call fcn.100931aa
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.100ce200
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.100ce200
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.100ce200
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.100d4570
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.1004de57
test eax, eax
jne 0x1004f185
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.100d4580
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.100ce210
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.100ce210
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.100ce210
xor eax, eax
call fcn.10093282
ret 0x1c
cmp dword [ebp + 0x18], 0
je 0x1004f3e6
call fcn.1003c031
cmp eax, 1
je 0x1004f345
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.1003ef67
test eax, eax
je 0x1004f38e
cmp dword [ebp + 0x1c], 0
je 0x1004f38e
lea ecx, [ebp - 0x6c]
call fcn.1005d270
mov byte [ebp - 4], 5
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x6c]
call fcn.1005d2da
call fcn.1003c031
cmp eax, 2
jne 0x1004f249
cmp dword [ebp - 0x5c], 1
jne 0x1004f205
mov eax, dword [ebp - 0x68]
jmp 0x1004f20e
cmp dword [ebp - 0x5c], 2
jne 0x1004f217
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xd8]
cmp dword [ebp - 0x5c], 1
jne 0x1004f22e
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1e8]
jmp 0x1004f2d7
cmp dword [ebp - 0x5c], 2
jne 0x1004f2d7
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x168]
jmp 0x1004f2d7
call fcn.1003c031
cmp eax, 3
je 0x1004f25d
call fcn.1003c031
cmp eax, 4
jne 0x1004f2d7
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 0x1004f2cb
cmp dword [ebp - 0x5c], 1
jne 0x1004f289
mov eax, dword [ebp - 0x68]
jmp 0x1004f292
cmp dword [ebp - 0x5c], 2
jne 0x1004f29c
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.100410bf
cmp dword [ebp - 0x5c], 1
jne 0x1004f2b2
mov eax, dword [ebp - 0x68]
jmp 0x1004f2bb
cmp dword [ebp - 0x5c], 2
jne 0x1004f2cb
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.1003dde5
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 1
jne 0x1004f2ee
mov eax, dword [eax + 4]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x10c]
cmp dword [ebp + 0x14], 0
je 0x1004f32d
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.100104a4
mov byte [ebp - 4], 8
push dword [ebp + 0x20]
mov ecx, esi
call fcn.1003c8ad
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.1005d1fd
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x20]
call fcn.100c88e0
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.1004a03e
lea eax, [esi + 0x698]
push eax
mov ecx, esi
call fcn.10046b02
lea eax, [esi + 0x6a8]
cmp dword [eax], 0
jne 0x1004f405
push 0xffff
push dword [ebp + 8]
mov ecx, esi
mov dword [eax], 1
call fcn.10045e23
jmp 0x1004f402
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.100c88e0
xor esi, esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.100d4580
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.100ce210
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.100ce210
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.100ce210
mov eax, esi
jmp 0x1004f17d
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.1004598f
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x34]
dec eax
mov dword [ebp + 8], eax
js 0x1004f452
jmp 0x1004f413
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 0x1004f410
mov esi, dword [ebp - 0x10]
push esi
push str.RebuildMailAttach___d_
push ebx
push 0xffffffffffffffff
push edi
call fcn.10023e40
add esp, 0x14
jmp 0x1004f3af