Function at 0x65b520
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40
call fcn.004c03f0
mov eax, dword [0x6f33d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], str.smime.p7m
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp + 0x14]
and eax, 0x400
je 0x65b558
mov dword [ebp - 0x40], str.application_x_pkcs7_
jmp 0x65b55f
mov dword [ebp - 0x40], str.application_pkcs7_
mov ecx, dword [ebp + 0x14]
and ecx, 0x800
je 0x65b573
mov dword [ebp - 8], 0x6e63c4
jmp 0x65b57a
mov dword [ebp - 8], 0x6768ec
mov edx, dword [ebp + 0x14]
and edx, 0x40
je 0x65b799
cmp dword [ebp + 0x10], 0
je 0x65b799
push 0x20
lea eax, [ebp - 0x34]
push eax
call fcn.004ece30
add esp, 8
test eax, eax
jg 0x65b5a9
xor eax, eax
jmp 0x65b8d8
mov dword [ebp - 0xc], 0
jmp 0x65b5bb
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0x20
jge 0x65b5fa
mov edx, dword [ebp - 0xc]
movsx eax, byte [ebp + edx - 0x34]
and eax, 0xf
mov byte [ebp - 0x35], al
movsx ecx, byte [ebp - 0x35]
cmp ecx, 0xa
jge 0x65b5e4
movsx edx, byte [ebp - 0x35]
add edx, 0x30
mov byte [ebp - 0x35], dl
jmp 0x65b5ee
movsx eax, byte [ebp - 0x35]
add eax, 0x37
mov byte [ebp - 0x35], al
mov ecx, dword [ebp - 0xc]
mov dl, byte [ebp - 0x35]
mov byte [ebp + ecx - 0x34], dl
jmp 0x65b5b2
mov byte [ebp - 0x14], 0
mov eax, dword [ebp - 8]
push eax
push str.MIME_Version:_1.0_s
mov ecx, dword [ebp + 8]
push ecx
call fcn.005024c0
add esp, 0xc
push str.Content_Type:_multipart_signed_
mov edx, dword [ebp + 8]
push edx
call fcn.005024c0
add esp, 8
mov eax, dword [ebp - 0x40]
push eax
push str._protocol__ssignature__
mov ecx, dword [ebp + 8]
push ecx
call fcn.005024c0
add esp, 0xc
push str._micalg_
mov edx, dword [ebp + 8]
push edx
call fcn.004eff70
add esp, 8
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0065b910
add esp, 8
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x34]
push ecx
push str.___boundary______s__s_s
mov edx, dword [ebp + 8]
push edx
call fcn.005024c0
add esp, 0x14
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
push str.This_is_an_S_MIME_signed_message_s_s
mov edx, dword [ebp + 8]
push edx
call fcn.005024c0
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x34]
push ecx
push str._______s_s
mov edx, dword [ebp + 8]
push edx
call fcn.005024c0
add esp, 0x10
mov eax, dword [ebp + 0x24]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0065bb30
add esp, 0x14
test eax, eax
jne 0x65b6d0
xor eax, eax
jmp 0x65b8d8
mov edx, dword [ebp - 8]
push edx
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 8]
push ecx
push str._s_______s_s
mov edx, dword [ebp + 8]
push edx
call fcn.005024c0
add esp, 0x14
mov eax, dword [ebp - 0x40]
push eax
push str.Content_Type:__ssignature_
mov ecx, dword [ebp + 8]
push ecx
call fcn.005024c0
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
push str._name_smime.p7s__s
mov eax, dword [ebp + 8]
push eax
call fcn.005024c0
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
push str.Content_Transfer_Encoding:_base64_s
mov edx, dword [ebp + 8]
push edx
call fcn.005024c0
add esp, 0xc
push str.Content_Disposition:_attachment_
mov eax, dword [ebp + 8]
push eax
call fcn.005024c0
add esp, 8
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 8]
push edx
push str._filename_smime.p7s__s_s
mov eax, dword [ebp + 8]
push eax
call fcn.005024c0
add esp, 0x10
mov ecx, dword [ebp + 0x24]
push ecx
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0065b470
add esp, 0x14
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 8]
push edx
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 8]
push ecx
push str._s_______s___s_s
mov edx, dword [ebp + 8]
push edx
call fcn.005024c0
add esp, 0x18
mov eax, 1
jmp 0x65b8d8
cmp dword [ebp + 0x18], 0x17
jne 0x65b7a8
mov dword [ebp - 0x3c], str.enveloped_data
jmp 0x65b7f9
cmp dword [ebp + 0x18], 0x16
jne 0x65b7e2
cmp dword [ebp + 0x1c], 0xcc
jne 0x65b7c0
mov dword [ebp - 0x3c], str.signed_receipt
jmp 0x65b7e0
mov eax, dword [ebp + 0x20]
push eax
call fcn.0065b8f0
add esp, 4
test eax, eax
jl 0x65b7d9
mov dword [ebp - 0x3c], str.signed_data
jmp 0x65b7e0
mov dword [ebp - 0x3c], str.certs_only
jmp 0x65b7f9
cmp dword [ebp + 0x18], 0x312
jne 0x65b7f9
mov dword [ebp - 0x3c], str.compressed_data
mov dword [ebp - 4], str.smime.p7z
mov ecx, dword [ebp - 8]
push ecx
push str.MIME_Version:_1.0_s
mov edx, dword [ebp + 8]
push edx
call fcn.005024c0
add esp, 0xc
push str.Content_Disposition:_attachment_
mov eax, dword [ebp + 8]
push eax
call fcn.005024c0
add esp, 8
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
push str._filename__s__s
mov eax, dword [ebp + 8]
push eax
call fcn.005024c0
add esp, 0x10
mov ecx, dword [ebp - 0x40]
push ecx
push str.Content_Type:__smime_
mov edx, dword [ebp + 8]
push edx
call fcn.005024c0
add esp, 0xc
cmp dword [ebp - 0x3c], 0
je 0x65b868
mov eax, dword [ebp - 0x3c]
push eax
push str._smime_type_s_
mov ecx, dword [ebp + 8]
push ecx
call fcn.005024c0
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
push str._name__s__s
mov ecx, dword [ebp + 8]
push ecx
call fcn.005024c0
add esp, 0x10
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 8]
push eax
push str.Content_Transfer_Encoding:_base64_s_s
mov ecx, dword [ebp + 8]
push ecx
call fcn.005024c0
add esp, 0x10
mov edx, dword [ebp + 0x24]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0065b470
add esp, 0x14
test eax, eax
jne 0x65b8be
xor eax, eax
jmp 0x65b8d8
mov ecx, dword [ebp - 8]
push ecx
push 0x6e4b04
mov edx, dword [ebp + 8]
push edx
call fcn.005024c0
add esp, 0xc
mov eax, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bec6d
mov esp, ebp
pop ebp
ret