Function at 0x50ffd0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40
call fcn.005e28b0
mov eax, dword [0x6c4e10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
push edi
xor edi, edi
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x30], str.smime.p7m
mov dword [ebp - 0x2c], str.application_x_pkcs7_
test eax, 0x400
jne 0x510020
mov dword [ebp - 0x2c], str.application_pkcs7_
mov ebx, 0x6aa898
test eax, 0x800
jne 0x510031
mov ebx, 0x699b50
test al, 0x40
je 0x5101c6
test edx, edx
je 0x5101c6
call fcn.004030b0
test eax, eax
je 0x510073
mov eax, dword [eax + 4]
test eax, eax
je 0x510073
lea ecx, [ebp - 0x28]
push 0x20
push ecx
call eax
add esp, 8
test eax, eax
jg 0x51009e
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005dbf5a
mov esp, ebp
pop ebp
ret
push 0x3ac
push str.....crypto_rand_rand_lib.c
push 0x65
push 0x64
push 0x24
call fcn.004058f0
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005dbf5a
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov al, byte [ebp + ecx - 0x28]
and al, 0xf
cmp al, 0xa
jge 0x5100ae
add al, 0x30
jmp 0x5100b0
add al, 0x37
mov byte [ebp + ecx - 0x28], al
inc ecx
cmp ecx, 0x20
jl 0x5100a0
push ebx
push str.MIME_Version:_1.0_s
push esi
mov byte [ebp - 8], 0
call fcn.00429420
push str.Content_Type:_multipart_signed_
push esi
call fcn.00429420
mov edx, dword [ebp - 0x2c]
push edx
push str._protocol__ssignature__
push esi
call fcn.00429420
mov edi, str._micalg_
call fcn.0040db20
mov eax, dword [ebp - 0x40]
push eax
push esi
call fcn.0050fd00
push ebx
push ebx
lea ecx, [ebp - 0x28]
push ecx
push str.___boundary______s__s_s
push esi
call fcn.00429420
push ebx
push ebx
push str.This_is_an_S_MIME_signed_message_s_s
push esi
call fcn.00429420
add esp, 0x4c
push ebx
lea edx, [ebp - 0x28]
push edx
push str._______s_s
push esi
call fcn.00429420
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
push eax
push edi
push ecx
mov ecx, dword [ebp - 0x34]
push esi
call fcn.005102d0
add esp, 0x20
test eax, eax
je 0x510060
push ebx
lea edx, [ebp - 0x28]
push edx
push ebx
push str._s_______s_s
push esi
call fcn.00429420
mov eax, dword [ebp - 0x2c]
push eax
push str.Content_Type:__ssignature_
push esi
call fcn.00429420
push ebx
push str._name_smime.p7s__s
push esi
call fcn.00429420
push ebx
push str.Content_Transfer_Encoding:_base64_s
push esi
call fcn.00429420
push str.Content_Disposition:_attachment_
push esi
call fcn.00429420
add esp, 0x40
push ebx
push ebx
push str._filename_smime.p7s__s_s
push esi
call fcn.00429420
mov ecx, dword [ebp - 0x34]
push ecx
push 0
push 0
push edi
mov ecx, esi
call fcn.0050fac0
push ebx
push ebx
lea edx, [ebp - 0x28]
push edx
push ebx
push str._s_______s___s_s
push esi
call fcn.00429420
add esp, 0x38
jmp 0x5102ad
mov eax, dword [ebp + 0x14]
cmp eax, 0x17
jne 0x5101d5
mov edi, str.enveloped_data
jmp 0x510213
cmp eax, 0x16
jne 0x510200
cmp dword [ebp + 0x18], 0xcc
jne 0x5101ea
mov edi, str.signed_receipt
jmp 0x510213
test ecx, ecx
je 0x5101f9
cmp dword [ecx], edi
jl 0x5101f9
mov edi, str.signed_data
jmp 0x510213
mov edi, str.certs_only
jmp 0x510213
cmp eax, 0x312
jne 0x510213
mov edi, str.compressed_data
mov dword [ebp - 0x30], str.smime.p7z
push ebx
push str.MIME_Version:_1.0_s
push esi
call fcn.00429420
push str.Content_Disposition:_attachment_
push esi
call fcn.00429420
mov eax, dword [ebp - 0x30]
push ebx
push eax
push str._filename__s__s
push esi
call fcn.00429420
mov ecx, dword [ebp - 0x2c]
push ecx
push str.Content_Type:__smime_
push esi
call fcn.00429420
add esp, 0x30
test edi, edi
je 0x51025f
push edi
push str._smime_type_s_
push esi
call fcn.00429420
add esp, 0xc
mov edx, dword [ebp - 0x30]
push ebx
push edx
push str._name__s__s
push esi
call fcn.00429420
push ebx
push ebx
push str.Content_Transfer_Encoding:_base64_s_s
push esi
call fcn.00429420
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x3c]
push ecx
push edx
push eax
mov ecx, esi
call fcn.0050fac0
add esp, 0x30
test eax, eax
je 0x510060
push ebx
push 0x6a9520
push esi
call fcn.00429420
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.005dbf5a
mov esp, ebp
pop ebp
ret