Function at 0x100087b8
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1005fd33
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x14ac
call fcn.10051380
mov eax, dword [0x100741c0]
xor eax, esp
mov dword [esp + 0x14a8], eax
push ebx
push esi
push edi
mov eax, dword [0x100741c0]
xor eax, esp
push eax
lea eax, [esp + 0x14c0]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
push str.smtp_test_dataAvailable
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], esi
call fcn.100293a0
mov eax, dword [esi]
pop ecx
xor ebx, ebx
push ebx
mov ecx, esi
call dword [eax + 0x18]
mov esi, eax
cmp esi, ebx
je 0x10008d2f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
cmp eax, 0x6400000
mov dword [esp + 0x14], eax
jg 0x10008d2f
xor eax, eax
push 0x206
mov word [esp + 0x2b0], ax
lea eax, [esp + 0x2b2]
push ebx
push eax
mov dword [esp + 0x24], ebx
call fcn.10045640
add esp, 0xc
push ebx
lea ecx, [esp + 0x2b0]
call fcn.10025d76
lea edi, [esp + 0x2ac]
call fcn.1002591c
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x10008c7c
mov eax, dword [esi]
push ebx
push ebx
push ebx
mov ecx, esi
call dword [eax + 8]
mov edi, dword [esp + 0x14]
push ebx
lea ecx, [esp + 0xd4]
mov dword [esp + 0x18], edi
mov dword [esp + 0xec], 0xf
call fcn.10001da6
mov dword [esp + 0x14c8], ebx
cmp edi, ebx
je 0x1000893d
mov edi, 0x1000
cmp dword [esp + 0x14], edi
jge 0x100088e8
mov edi, dword [esp + 0x14]
mov eax, dword [esi]
push edi
lea ecx, [esp + 0x4b8]
push ecx
mov ecx, esi
call dword [eax + 0xc]
cmp edi, ebx
je 0x1000891e
cmp dword [esp + 0xe4], 0x100000
jae 0x1000891e
push edi
lea eax, [esp + 0x4b8]
push eax
lea eax, [esp + 0xd8]
call fcn.100019df
push ebx
lea eax, [esp + 0x28]
push eax
push edi
lea eax, [esp + 0x4c0]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub dword [esp + 0x14], edi
jne 0x100088d9
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1001bf39
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x10008ad2
lea esi, [esp + 0xf4]
mov dword [esp + 0xec], vtable.CSmtpFastParser.0
call fcn.1000193f
lea esi, [esp + 0x110]
call fcn.1000193f
mov dword [esp + 0xf0], ebx
mov dword [esp + 0x12c], ebx
push str.test_parser_smtp_for_addr_and_attachment
mov byte [esp + 0x14cc], 1
call fcn.100293a0
cmp dword [esp + 0xec], 0x10
pop ecx
mov ecx, dword [esp + 0xd4]
jae 0x100089b3
lea ecx, [esp + 0xd4]
push dword [esp + 0xe4]
lea eax, [esp + 0xf0]
push eax
call fcn.1001bbd1
test eax, eax
je 0x10008ab1
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0xf0]
call fcn.1001be9c
mov esi, eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0xf0]
mov byte [esp + 0x14cc], 2
call fcn.1001be81
mov byte [esp + 0x14c8], 3
cmp dword [esi + 0x18], 0x10
jb 0x10008a0e
mov esi, dword [esi + 4]
jmp 0x10008a11
add esi, 4
cmp dword [eax + 0x18], 0x10
jb 0x10008a1c
mov eax, dword [eax + 4]
jmp 0x10008a1f
add eax, 4
push esi
push eax
push str.parser_smtp_success__send:_hs__recvers:_hs
call fcn.100293a0
add esp, 0xc
push ebx
push 1
lea ecx, [esp + 0x30]
call fcn.10001e5b
push ebx
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x14d0], 1
call fcn.10001e5b
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0xf0]
call fcn.1001be9c
mov esi, eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0xf0]
mov byte [esp + 0x14cc], 4
call fcn.1001be81
mov edi, eax
push esi
mov byte [esp + 0x14cc], 5
call fcn.1001bf39
mov ecx, edi
mov edx, eax
call fcn.1001c68d
push ebx
push 1
lea ecx, [esp + 0x4c]
mov dword [esp + 0x20], eax
call fcn.10001e5b
push ebx
push 1
lea ecx, [esp + 0x30]
call fcn.10001e5b
jmp 0x10008abc
push str.parser_smtp_failed
call fcn.100293a0
pop ecx
lea ecx, [esp + 0xec]
call fcn.1001baed
cmp dword [esp + 0x18], ebx
jne 0x10008c5b
push 0x100641e0
call fcn.100080a9
pop ecx
test al, al
je 0x10008c5b
lea edi, [esp + 0x134]
call fcn.100085c8
lea eax, [esp + 0x2ac]
push 0x10063ba8
push eax
mov byte [esp + 0x14d0], 6
call fcn.1003fd59
pop ecx
pop ecx
cmp eax, ebx
je 0x10008c4f
mov edx, eax
mov ecx, edi
call fcn.1000312f
cmp al, bl
je 0x10008c4f
lea eax, [esp + 0x60]
push eax
mov eax, edi
call fcn.10008700
push eax
lea ecx, [esp + 0xb8]
mov byte [esp + 0x14cc], 7
call fcn.10003019
pop ecx
mov esi, eax
lea eax, [esp + 0x7c]
push eax
mov eax, edi
mov byte [esp + 0x14cc], 8
call fcn.100086e5
push eax
lea ecx, [esp + 0x9c]
mov byte [esp + 0x14cc], 9
call fcn.10003019
pop ecx
mov edi, eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x138]
mov byte [esp + 0x14cc], 0xa
call fcn.10008697
mov dword [esp + 0x10], eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x138]
push eax
mov byte [esp + 0x14d0], 0xb
call fcn.1000867d
mov byte [esp + 0x14c8], 0xc
cmp dword [esi + 0x18], 8
jb 0x10008bc0
mov esi, dword [esi + 4]
jmp 0x10008bc3
add esi, 4
cmp dword [edi + 0x18], 8
jb 0x10008bce
mov edx, dword [edi + 4]
jmp 0x10008bd1
lea edx, [edi + 4]
mov ecx, dword [esp + 0x10]
cmp dword [ecx + 0x18], 0x10
jb 0x10008be0
mov ecx, dword [ecx + 4]
jmp 0x10008be3
add ecx, 4
cmp dword [eax + 0x18], 0x10
jb 0x10008bee
mov eax, dword [eax + 4]
jmp 0x10008bf1
add eax, 4
push esi
push eax
call fcn.1001e129
pop ecx
pop ecx
push ebx
push 1
lea ecx, [esp + 0x4c]
mov dword [esp + 0x20], eax
call fcn.10001e5b
push ebx
push 1
lea ecx, [esp + 0x30]
call fcn.10001e5b
push ebx
push 1
lea esi, [esp + 0xa0]
call fcn.10006669
push ebx
push 1
lea ecx, [esp + 0x84]
call fcn.10001e5b
push ebx
push 1
lea esi, [esp + 0xbc]
call fcn.10006669
push ebx
push 1
lea ecx, [esp + 0x68]
call fcn.10001e5b
lea esi, [esp + 0x134]
call fcn.10008ebf
or dword [esp + 0x14c8], 0xffffffff
push ebx
push 1
lea ecx, [esp + 0xd8]
call fcn.10001e5b
cmp dword [esp + 0x18], ebx
jne 0x10008d08
mov eax, dword [esp + 0x1c]
add eax, 4
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x2ac]
push eax
lea esi, [esp + 0x2c]
mov dword [esp + 0x14cc], 0xd
call fcn.100057e7
mov edi, dword [esp + 0x1c]
add edi, 0x20
mov byte [esp + 0x14c8], 0xe
mov eax, dword [edi + 0x14]
mov ecx, dword [edi]
push eax
push ecx
mov eax, esi
push eax
call fcn.1000b0a8
push ebx
push 1
call fcn.10006669
mov eax, dword [esp + 0x1c]
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [esp + 0x10]
or dword [esp + 0x14cc], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esp + 0x20]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.protocolfilters.dll_int___cdecl_ProtocolFilters::pf_postObject_unsigned_long_long_unsigned___int64___class_ProtocolFilters::PFObject__]
add esp, 0xc
jmp 0x10008d2f
lea eax, [esp + 0x2ac]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str.block_smtp_packet
call fcn.100293a0
pop ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.nfapi.dll_enum__NF_STATUS___cdecl_nfapi::nf_tcpClose_unsigned_long_long_unsigned___int64__]
pop ecx
pop ecx
mov ecx, dword [esp + 0x14c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x14a8]
xor ecx, esp
call fcn.1003edc1
mov esp, ebp
pop ebp
ret 0xc