Function at 0x10054f3a
Capabilities:
Delete file

Disassembly:
push 0x98
mov eax, 0x101d6e6c
call fcn.10099809
mov edi, ecx
mov dword [ebp - 0x14], edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
cmp dword [0x10269fe8], ebx
je 0x10054f74
push str.DecryptOrEncrypteMailAttach_____
push str.OnItemSend
push 0xffffffffffffffff
push 0x10269f7c
call fcn.10025270
add esp, 0x10
lea ecx, [ebp - 0x74]
call fcn.100d4870
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x64]
call fcn.100d4870
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.100d4870
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3c]
call fcn.100dc390
mov byte [ebp - 4], 3
push dword [ebp + 0x20]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x1c]
mov ecx, edi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.10053aa1
test eax, eax
jne 0x1005502f
cmp dword [0x10269fe8], ebx
je 0x10054ff5
push str.No_Attach_DecryptOrEncrypt_
push str.OnItemSend
push 0xffffffffffffffff
push 0x10269f7c
call fcn.10025270
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3c]
call fcn.100dc3a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.100d4880
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.100d4880
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.100d4880
xor eax, eax
call fcn.100998e1
ret 0x1c
cmp dword [ebp + 0x18], ebx
je 0x100552a0
call fcn.1003fac1
xor ebx, ebx
inc ebx
cmp eax, ebx
je 0x100551f7
mov eax, dword [0x10211078]
and dword [ebp + 0x14], 0
mov dword [ebp + 0x20], eax
mov byte [ebp - 4], 4
and dword [ebp + 0x1c], 0
push ebx
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp + 0x1c]
push eax
push esi
mov ecx, edi
call fcn.10047048
test eax, eax
je 0x10055237
cmp dword [ebp + 0x1c], 0
je 0x10055237
lea ecx, [ebp - 0x28]
call fcn.10063879
mov byte [ebp - 4], 5
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x28]
call fcn.100638e3
call fcn.1003fac1
cmp eax, 2
jne 0x100550f1
cmp dword [ebp - 0x18], ebx
jne 0x100550ae
mov eax, dword [ebp - 0x24]
jmp 0x100550b7
cmp dword [ebp - 0x18], 2
jne 0x100550c0
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xd8]
cmp dword [ebp - 0x18], ebx
jne 0x100550d6
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1e8]
jmp 0x1005517d
cmp dword [ebp - 0x18], 2
jne 0x1005517d
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x168]
jmp 0x1005517d
call fcn.1003fac1
cmp eax, 3
je 0x10055105
call fcn.1003fac1
cmp eax, 4
jne 0x1005517d
and dword [ebp + 0x18], 0
mov byte [ebp - 4], 7
mov eax, dword [edi + 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 0x10055171
cmp dword [ebp - 0x18], ebx
jne 0x10055130
mov eax, dword [ebp - 0x24]
jmp 0x10055139
cmp dword [ebp - 0x18], 2
jne 0x10055143
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0xb8]
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
call fcn.10044f5b
cmp dword [ebp - 0x18], ebx
jne 0x10055158
mov eax, dword [ebp - 0x24]
jmp 0x10055161
cmp dword [ebp - 0x18], 2
jne 0x10055171
mov eax, dword [ebp - 0x20]
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.10041a70
cmp dword [esi + 0x10], ebx
jne 0x1005518f
mov eax, dword [esi + 4]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x10c]
cmp dword [ebp + 0x14], 0
je 0x100551df
push 0xffffffffffffffff
lea ecx, [ebp - 0x44]
call fcn.10011739
mov byte [ebp - 4], 8
push dword [ebp + 0x20]
mov ecx, edi
call fcn.10040402
cmp dword [0x10269fe8], 0
je 0x100551d3
push dword [ebp + 0x20]
push eax
push str.DecryptOrEncrypteMailAttach_DelFile___d___s_
push str.OnItemSend
push 0xffffffffffffffff
push 0x10269f7c
call fcn.10025270
add esp, 0x18
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x44]
call fcn.10011765
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.10063806
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x20]
call fcn.100cef50
lea esi, [edi + 0x698]
push esi
push ebx
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x64]
push eax
mov ecx, edi
call fcn.1004e1af
lea eax, [edi + 0x6a8]
cmp dword [eax], 0
jne 0x10055608
push ebx
push esi
push dword [ebp + 8]
mov ecx, edi
mov dword [eax], ebx
call fcn.10050383
mov dword [ebp - 0x10], eax
jmp 0x10055608
cmp dword [0x10269fe8], 0
je 0x1005525b
push 0
push str.DecryptOrEncrypteMailAttach_pIDispPatchOrg_Err__08x_
push str.OnItemSend
push 0xffffffffffffffff
push 0x10269f7c
call fcn.10025270
add esp, 0x14
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x20]
call fcn.100cef50
xor esi, esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3c]
call fcn.100dc3a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.100d4880
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.100d4880
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.100d4880
mov eax, esi
jmp 0x10055027
lea ecx, [ebp - 0x24]
call fcn.100d4870
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x94]
call fcn.100d4870
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x84]
call fcn.100dc390
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x38], ebx
jle 0x1005556a
call fcn.1003fd6f
test eax, eax
je 0x1005556a
xor ebx, ebx
inc ebx
mov dword [ebp - 0x2c], 2
cmp dword [esi + 0x10], ebx
jne 0x10055303
mov eax, dword [esi + 4]
mov ecx, dword [eax]
lea edx, [ebp - 0x2c]
push edx
push eax
call dword [ecx + 0x1f4]
mov esi, eax
jmp 0x10055308
mov esi, 0x80004005
test esi, esi
jl 0x10055316
cmp dword [ebp - 0x2c], 3
je 0x10055567
and dword [ebp + 0x20], 0
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
cmp eax, ebx
jne 0x1005532d
mov eax, dword [ecx + 4]
jmp 0x10055335
cmp eax, 2
jne 0x10055341
mov eax, dword [ecx + 8]
mov ecx, dword [eax]
lea edx, [ebp + 0x20]
push edx
push eax
call dword [ecx + 0x30]
mov esi, eax
cmp dword [0x10269fe8], 0
je 0x10055367
push dword [ebp + 0x20]
push esi
push str.DecryptOrEncrypteMailAttach_get_Attachments__lx___p_
push str.OnItemAdd
push 0xffffffffffffffff
push 0x10269f7c
call fcn.10025270
add esp, 0x18
test esi, esi
jl 0x1005555b
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x1005555b
and dword [ebp - 0x10], 0
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
call dword [ecx + 0x2c]
test eax, eax
jl 0x10055539
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x38]
jle 0x10055539
cmp eax, ebx
mov ecx, ebx
mov dword [ebp + 0x1c], ebx
jl 0x10055539
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
cmp dword [ebp - 0x38], eax
jle 0x100553c8
mov edx, dword [ebp - 0x3c]
cmp ecx, dword [edx + eax*4]
je 0x100554f7
inc eax
cmp eax, dword [ebp - 0x38]
jl 0x100553b6
and dword [ebp + 0x18], 0
mov byte [ebp - 4], 0xf
push 3
pop eax
mov word [ebp - 0xa4], ax
xor eax, eax
inc eax
mov word [ebp - 0xa2], ax
xor eax, eax
lea edi, [ebp - 0xa0]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0x20]
lea edx, [ebp + 0x18]
push edx
mov dword [ebp - 0x9c], ecx
mov ecx, dword [eax]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0xa4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x30]
test eax, eax
jl 0x1005552a
and dword [ebp + 0xc], 0
mov byte [ebp - 4], 0x10
lea eax, [ebp + 0xc]
push eax
push ecx
lea eax, [ebp + 0x18]
mov ecx, esp
mov dword [ebp - 0x40], esp
push eax
call fcn.10045869
mov byte [ebp - 4], 0x11
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x14]
call fcn.1004dd77
test eax, eax
jne 0x100554df
mov eax, dword [0x10211078]
mov dword [ebp + 0x10], eax
mov byte [ebp - 4], 0x12
mov eax, dword [0x10211078]
mov dword [ebp + 0x14], eax
mov byte [ebp - 4], 0x13
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x1c]
lea eax, [ebp + 0x18]
push ecx
mov ecx, esp
mov dword [ebp - 0x40], esp
push eax
call fcn.10045869
mov byte [ebp - 4], 0x14
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x14]
call fcn.10045076
test eax, eax
je 0x10055509
lea eax, [ebp + 0x10]
push eax
push dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
call fcn.100d4e80
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 0x90]
lea ecx, [ebp - 0x94]
call fcn.100d4e80
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x84]
push dword [ebp - 0x80]
call fcn.100dc5d0
mov byte [ebp - 4], 0x12
lea ecx, [ebp + 0x14]
call fcn.100cef50
mov byte [ebp - 4], 0x10
lea ecx, [ebp + 0x10]
call fcn.100cef50
mov byte [ebp - 4], 0xf
push dword [ebp + 0xc]
call ebx
mov byte [ebp - 4], 0xd
lea ecx, [ebp + 0x18]
call fcn.10041aba
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x1c]
inc ecx
cmp ecx, dword [ebp - 0x10]
mov dword [ebp + 0x1c], ecx
jle 0x100553af
jmp 0x10055539
mov byte [ebp - 4], 0x12
lea ecx, [ebp + 0x14]
call fcn.100cef50
mov byte [ebp - 4], 0x10
lea ecx, [ebp + 0x10]
call fcn.100cef50
mov byte [ebp - 4], 0xf
push dword [ebp + 0xc]
call ebx
mov byte [ebp - 4], 0xd
lea ecx, [ebp + 0x18]
call fcn.10041aba
mov edi, dword [ebp - 0x14]
lea eax, [edi + 0x6ac]
push eax
push 4
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x24]
push eax
mov ecx, edi
call fcn.1004e1af
mov byte [ebp - 4], 0xb
lea ecx, [ebp + 0x20]
call fcn.10041a95
mov esi, dword [ebp + 8]
lea ebx, [edi + 0x6ac]
push ebx
push 1
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x64]
push eax
mov ecx, edi
call fcn.1004e1af
push 1
push ebx
push esi
mov ecx, edi
call fcn.10050383
mov esi, dword [ebp - 0x38]
mov dword [ebp - 0x10], eax
jmp 0x100555cd
mov eax, dword [ebp - 0x74]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [0x10269fe8], 0
je 0x100555cd
mov eax, dword [ebp - 0x74]
push dword [eax + esi*4]
push str.delete_temp_file_1__s_
push str.OnItemSend
push 0xffffffffffffffff
push 0x10269f7c
call fcn.10025270
add esp, 0x14
dec esi
jns 0x10055599
call fcn.10042eff
push eax
push ebx
mov ecx, edi
call fcn.1004cd9a
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x84]
call fcn.100dc3a0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x94]
call fcn.100d4880
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.100d4880
cmp dword [0x10269fe8], 0
je 0x1005562d
push dword [ebp - 0x10]
push str.RebuildMailAttach___d_
push str.OnItemSend
push 0xffffffffffffffff
push 0x10269f7c
call fcn.10025270
add esp, 0x14
mov esi, dword [ebp - 0x10]
jmp 0x10055269