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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10073b6e
mov eax, dword fs:[0]
push eax
mov eax, 0x1448
call fcn.1004e980
mov eax, dword [0x100a0070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x144c], ecx
mov ecx, dword [ebp + 0x10]
push 0
mov dword [ebp - 0x1450], ecx
mov eax, dword [ecx]
call dword [eax + 0x18]
mov esi, eax
test esi, esi
je 0x1000b40e
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x14]
mov edi, eax
cmp edi, 0x6400000
jg 0x1000b40e
xor ebx, ebx
lea eax, [ebp - 0x218]
push 0x208
push ebx
push eax
mov dword [ebp - 0x1448], ebx
call fcn.10050900
add esp, 0xc
lea ecx, [ebp - 0x218]
xor dl, dl
call fcn.1003022c
push ecx
push ecx
lea ecx, [ebp - 0x218]
call fcn.1002fde5
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
push eax
push eax
push 2
push eax
push eax
push 0x40000000
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1444], eax
cmp eax, 0xffffffff
je 0x1000b394
mov edx, dword [esi]
xor eax, eax
push eax
push eax
push eax
mov ecx, esi
call dword [edx + 8]
xor eax, eax
mov dword [ebp - 0x121c], 0xf
mov dword [ebp - 0x1220], eax
mov byte [ebp - 0x1230], al
mov dword [ebp - 4], eax
test edi, edi
je 0x1000b089
mov eax, dword [esi]
lea ecx, [ebp - 0x1218]
mov ebx, 0x1000
cmp edi, ebx
cmovl ebx, edi
push ebx
push ecx
mov ecx, esi
call dword [eax + 0xc]
test ebx, ebx
je 0x1000b062
cmp dword [ebp - 0x1220], 0x100000
jae 0x1000b062
push ebx
lea eax, [ebp - 0x1218]
push eax
lea ecx, [ebp - 0x1230]
call fcn.100027bf
push 0
lea eax, [ebp - 0x1454]
push eax
push ebx
lea eax, [ebp - 0x1218]
push eax
push dword [ebp - 0x1444]
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub edi, ebx
jne 0x1000b026
mov ebx, dword [ebp - 0x1448]
push dword [ebp - 0x1444]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1001f4b6
cmp dword [eax + 4], 0
je 0x1000b209
xor eax, eax
mov dword [ebp - method.CSmtpFastParser.virtual_0], vtable.CSmtpFastParser.0
push 0xf
pop ecx
mov dword [ebp - 0x1280], ecx
mov dword [ebp - 0x1284], eax
mov byte [ebp - 0x1294], al
mov dword [ebp - 0x1268], ecx
mov dword [ebp - 0x126c], eax
mov byte [ebp - 0x127c], al
mov dword [ebp - 0x1298], eax
mov dword [ebp - 0x1264], eax
push str.test_parser_smtp_for_addr_and_attachment
mov byte [ebp - 4], 1
call fcn.10034d47
cmp dword [ebp - 0x121c], 0x10
lea eax, [ebp - 0x1230]
pop ecx
push dword [ebp - 0x1220]
cmovae eax, dword [ebp - 0x1230]
lea ecx, [ebp - 0x129c]
push eax
call fcn.1001f12d
test eax, eax
je 0x1000b1eb
lea eax, [ebp - 0x1260]
push eax
lea ecx, [ebp - 0x129c]
call fcn.1001f45b
mov esi, eax
lea eax, [ebp - 0x1248]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x129c]
call fcn.1001f43e
mov byte [ebp - 4], 3
cmp dword [esi + 0x14], 0x10
jb 0x1000b156
mov esi, dword [esi]
cmp dword [eax + 0x14], 0x10
jb 0x1000b15e
mov eax, dword [eax]
push esi
push eax
push str.parser_smtp_success__send:_hs__recvers:_hs
call fcn.10034d47
add esp, 0xc
lea ecx, [ebp - 0x1248]
xor edi, edi
push edi
push 1
call fcn.10001805
push edi
push 1
lea ecx, [ebp - 0x1260]
mov byte [ebp - 4], 1
call fcn.10001805
lea eax, [ebp - 0x1248]
push eax
lea ecx, [ebp - 0x129c]
call fcn.1001f45b
mov esi, eax
lea eax, [ebp - 0x1260]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x129c]
call fcn.1001f43e
push esi
push eax
mov byte [ebp - 4], 5
call fcn.1001f4b6
mov ecx, eax
call fcn.1001fbac
push edi
push 1
lea ecx, [ebp - 0x1260]
mov ebx, eax
call fcn.10001805
push edi
push 1
lea ecx, [ebp - 0x1248]
call fcn.10001805
jmp 0x1000b1f6
push str.parser_smtp_failed
call fcn.10034d47
pop ecx
lea ecx, [ebp - 0x129c]
call fcn.1001eff8
test ebx, ebx
jne 0x1000b358
push ecx
push 0x10089d50
mov edx, str.Softwareprojonepodlp_smprule_
call fcn.10032725
test eax, eax
je 0x1000b358
lea ecx, [ebp - 0x1440]
call fcn.1000ad0d
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 6
push eax
call fcn.10003a7e
test al, al
je 0x1000b34d
lea eax, [ebp - 0x12fc]
push eax
lea ecx, [ebp - 0x1440]
call fcn.1000ae76
push eax
lea eax, [ebp - 0x12e4]
mov byte [ebp - 4], 7
push eax
call fcn.100039d4
pop ecx
pop ecx
mov ebx, eax
lea eax, [ebp - 0x12cc]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x1440]
call fcn.1000ae59
push eax
lea eax, [ebp - 0x12b4]
mov byte [ebp - 4], 9
push eax
call fcn.100039d4
pop ecx
pop ecx
mov edi, eax
lea eax, [ebp - 0x1248]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x1440]
call fcn.1000ae0c
mov esi, eax
lea eax, [ebp - 0x1260]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x1440]
call fcn.1000adf2
mov byte [ebp - 4], 0xc
cmp dword [ebx + 0x14], 8
jb 0x1000b2d0
mov ebx, dword [ebx]
cmp dword [edi + 0x14], 8
jb 0x1000b2d8
mov edi, dword [edi]
cmp dword [esi + 0x14], 0x10
jb 0x1000b2e0
mov esi, dword [esi]
cmp dword [eax + 0x14], 0x10
jb 0x1000b2e8
mov eax, dword [eax]
push ebx
push edi
mov edx, esi
mov ecx, eax
call fcn.10020e95
pop ecx
pop ecx
xor esi, esi
lea ecx, [ebp - 0x1260]
push esi
push 1
mov ebx, eax
call fcn.10001805
push esi
push 1
lea ecx, [ebp - 0x1248]
call fcn.10001805
push esi
push 1
lea ecx, [ebp - 0x12b4]
call fcn.100065b4
push esi
push 1
lea ecx, [ebp - 0x12cc]
call fcn.10001805
push esi
push 1
lea ecx, [ebp - 0x12e4]
call fcn.100065b4
push esi
push 1
lea ecx, [ebp - 0x12fc]
call fcn.10001805
lea ecx, [ebp - 0x1440]
call fcn.1000b52c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1230]
push 0
push 1
call fcn.10001805
test ebx, ebx
je 0x1000b394
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str.block_smtp_packet
call fcn.10034d47
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__]
jmp 0x1000b40b
mov ebx, dword [ebp - 0x144c]
lea esi, [ebx + 4]
push esi
mov dword [ebp - 0x1454], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0x1248]
call fcn.1000587d
lea eax, [ebp - 0x1248]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebx + 0x20]
call fcn.1000da6b
push 0
push 1
lea ecx, [ebp - 0x1248]
call fcn.100065b4
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
or dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp - 0x1450]
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
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004d78e
mov esp, ebp
pop ebp
ret 0xc