Function at 0x10016a8e
Capabilities:
Delete file

Disassembly:
push 0x1dc
mov eax, 0x1005ec9b
call fcn.100420aa
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
and dword [ebp - 0x15c], 0
mov dword [ebp - 0x168], eax
mov eax, dword [ebp + 0xc]
mov edi, ecx
mov ebx, edx
push 0x100642a4
mov dword [ebp - 0x16c], edi
mov dword [ebp - 0x170], ebx
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x160], esi
call fcn.100080a9
pop ecx
test al, al
je 0x10016ed6
push dword [ebp - 0x164]
push dword [ebp - 0x168]
push ebx
push edi
lea ebx, [ebp - 0x150]
call fcn.10004034
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x154], eax
mov eax, dword [esi]
mov dword [ebp - 0x158], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x174], eax
mov eax, dword [esi]
lea edi, [ebp - 0x178]
lea esi, [ebp - 0x158]
mov dword [ebp - 0x178], eax
call fcn.1001a3e4
test al, al
jne 0x10016c05
call fcn.10016265
cmp dword [eax + 0x18], 8
jb 0x10016b4d
mov eax, dword [eax + 4]
jmp 0x10016b50
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push ebx
lea ecx, [ebp - 0x30]
mov esi, eax
mov dword [ebp - 0x18], 0xf
call fcn.10001da6
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x10016bb6
push esi
lea esi, [ebp - 0x194]
call fcn.100057e7
mov eax, esi
push eax
lea edi, [ebp - 0x1b0]
mov byte [ebp - 4], 2
call fcn.10003059
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.10001c41
push ebx
push 1
mov ecx, edi
call fcn.10001e5b
push ebx
push 1
mov byte [ebp - 4], 1
call fcn.10006669
lea esi, [ebp - 0x158]
call fcn.10016265
cmp dword [eax + 0x18], 8
jb 0x10016bcc
mov eax, dword [eax + 4]
jmp 0x10016bcf
add eax, 4
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x150]
push eax
call fcn.10004187
push ebx
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.10001e5b
lea esi, [ebp - 0x158]
call fcn.1000e3c7
mov esi, dword [ebp - 0x160]
jmp 0x10016b13
lea ecx, [ebp - 0x4c]
call fcn.1001d1d2
mov byte [ebp - 4], 4
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x10016c1d
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x150]
push eax
call fcn.1000426c
test al, al
je 0x10016e9a
push ebx
push ebx
lea eax, [ebp - 0x30]
call fcn.1002e978
mov edx, dword [ebp - 0x16c]
sub esp, 0x18
mov byte [ebp - 4], 7
mov esi, esp
mov dword [ebp - 0x154], esp
call fcn.1002d9af
lea eax, [ebp - 0x30]
push eax
mov edx, str.mail_from
mov byte [ebp - 4], 8
call fcn.1002ec16
mov edi, eax
mov byte [ebp - 4], 7
call fcn.1002dc02
mov edx, dword [ebp - 0x170]
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x154], esp
call fcn.1002d9af
lea eax, [ebp - 0x30]
push eax
mov edx, str.mail_to
mov byte [ebp - 4], 9
call fcn.1002ec16
mov edi, eax
mov byte [ebp - 4], 7
call fcn.1002dc02
mov edx, dword [ebp - 0x168]
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x154], esp
call fcn.1002d9af
lea eax, [ebp - 0x30]
push eax
mov edx, 0x10064cd4
mov byte [ebp - 4], 0xa
call fcn.1002ec16
mov edi, eax
mov byte [ebp - 4], 7
call fcn.1002dc02
mov edx, dword [ebp - 0x164]
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x154], esp
call fcn.1002d9af
lea eax, [ebp - 0x30]
push eax
mov edx, 0x10064b20
mov byte [ebp - 4], 0xb
call fcn.1002ec16
mov edi, eax
mov byte [ebp - 4], 7
call fcn.1002dc02
mov eax, dword [ebp - 0x160]
mov eax, dword [eax + 0x1c]
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x154], esp
push eax
call fcn.1002d8d0
lea eax, [ebp - 0x30]
push eax
mov edx, str.attach_count
mov byte [ebp - 4], 0xc
call fcn.1002ec16
mov edi, eax
mov byte [ebp - 4], 7
call fcn.1002dc02
cmp dword [ebp + 0x14], ebx
je 0x10016d80
push 0x10064cf8
lea esi, [ebp - 0x1b0]
call fcn.100057e7
mov eax, esi
mov byte [ebp - 4], 0xd
push eax
lea edi, [ebp - 0x1e8]
mov dword [ebp - 0x15c], 1
call fcn.10003059
pop ecx
mov dword [ebp - 4], 0xe
push 3
jmp 0x10016db9
push 0x10064d04
lea esi, [ebp - 0x194]
call fcn.100057e7
mov eax, esi
mov dword [ebp - 4], 0xf
push eax
lea edi, [ebp - 0x1cc]
mov dword [ebp - 0x15c], 4
call fcn.10003059
pop ecx
mov dword [ebp - 4], 0x10
push 0xc
pop ebx
sub esp, 0x18
mov edx, eax
mov esi, esp
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x154], esp
call fcn.1002d9af
lea eax, [ebp - 0x30]
push eax
mov edx, str.ml_process
mov dword [ebp - 4], 0x11
call fcn.1002ec16
mov edi, eax
mov byte [ebp - 4], 0x10
call fcn.1002dc02
test bl, 8
je 0x10016e09
push 0
push 1
lea ecx, [ebp - 0x1cc]
and ebx, 0xfffffff7
call fcn.10001e5b
test bl, 4
je 0x10016e20
push 0
push 1
lea esi, [ebp - 0x194]
and ebx, 0xfffffffb
call fcn.10006669
test bl, 2
je 0x10016e37
push 0
push 1
lea ecx, [ebp - 0x1e8]
and ebx, 0xfffffffd
call fcn.10001e5b
mov dword [ebp - 4], 7
test bl, 1
je 0x10016e52
push 0
push 1
lea esi, [ebp - 0x1b0]
call fcn.10006669
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x10016e5e
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x30]
call fcn.1001d2cd
pop ecx
test al, al
jne 0x10016e8a
push str.mail_report_failed__delete_eml
call fcn.10029a35
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
pop ecx
jae 0x10016e83
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esi, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.1002db7f
xor ebx, ebx
jmp 0x10016ebb
cmp dword [ebp - 0x34], 8
mov esi, dword [ebp - 0x48]
jae 0x10016ea6
lea esi, [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.write_eml_err__eml:_ls__err:_d
call fcn.100293a0
add esp, 0xc
push ebx
push 1
lea esi, [ebp - 0x4c]
call fcn.10006669
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x150]
push eax
call fcn.100168bd
call fcn.1004212d
ret