Function at 0x49d530
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov dword [ebp - 0x60], str.application_x_pkcs7_
mov edi, dword [ebp + 8]
test dword [ebp + 0x14], 0x400
jne 0x49d553
mov dword [ebp - 0x60], str.application_pkcs7_
mov dword [ebp - 0x5c], 0x4d6020
test dword [ebp + 0x14], 0x800
jne 0x49d56a
mov dword [ebp - 0x5c], 0x4d60d2
test byte [ebp + 0x14], 0x40
je 0x49d6c2
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x49d6c2
lea esi, [ebp - 0x3d]
push eax
push eax
push 0x20
push esi
call fcn.00427a00
mov edx, 1
add esp, 0x10
jmp 0x49d5a3
add eax, 0x30
mov byte [edx + esi - 1], al
inc edx
cmp edx, 0x21
je 0x49d5bb
mov al, byte [edx + esi - 1]
and eax, 0xf
cmp al, 9
jle 0x49d596
add eax, 0x37
mov byte [edx + esi - 1], al
inc edx
cmp edx, 0x21
jne 0x49d5a3
mov byte [ebp - 0x1d], 0
push eax
mov eax, dword [ebp - 0x5c]
push eax
push str.MIME_Version:_1.0_s
push edi
call fcn.00430380
pop ebx
pop eax
push str.Content_Type:_multipart_signed_
push edi
call fcn.00430380
add esp, 0xc
mov ecx, dword [ebp - 0x60]
xor ebx, ebx
push ecx
push str._protocol__ssignature__
push edi
call fcn.00430380
pop eax
pop edx
push str._micalg_
push edi
call fcn.0041f850
add esp, 0x10
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x58], 0
jmp 0x49d68c
push eax
push eax
mov ebx, dword [ebp - 0x54]
push ebx
mov ecx, dword [ebp + 0x20]
push ecx
call fcn.0042eb40
pop edx
mov eax, dword [eax]
push eax
call fcn.00430680
mov dword [esp], eax
mov ebx, eax
call fcn.004307a0
mov dword [esp], eax
call fcn.0043a930
add esp, 0x10
test eax, eax
je 0x49d7b0
mov eax, dword [eax + 0x48]
test eax, eax
je 0x49d7b0
lea edx, [ebp - 0x10]
push edx
push 0
push 2
push 0
call eax
add esp, 0x10
test eax, eax
jle 0x49d7aa
push ebx
push ebx
mov ecx, dword [ebp - 0x10]
mov ebx, 1
push ecx
push edi
call fcn.0041f850
pop edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.00425320
add esp, 0x10
mov eax, dword [ebp - 0x54]
inc eax
mov dword [ebp - 0x54], eax
sub esp, 0xc
mov eax, dword [ebp + 0x20]
push eax
call fcn.0042eb20
add esp, 0x10
cmp dword [ebp - 0x54], eax
jge 0x49d825
test ebx, ebx
je 0x49d610
push eax
push 1
push 0x4d612b
push edi
call fcn.0041f960
add esp, 0x10
jmp 0x49d610
cmp dword [ebp + 0x18], 0x17
je 0x49dacd
cmp dword [ebp + 0x18], 0x16
je 0x49da12
cmp dword [ebp + 0x18], 0x312
jne 0x49d95a
mov esi, str.smime.p7z
mov ebx, str.compressed_data
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
push str.MIME_Version:_1.0_s
push edi
call fcn.00430380
pop eax
pop edx
push str.Content_Disposition:_attachment_
push edi
call fcn.00430380
mov eax, dword [ebp - 0x5c]
push eax
push esi
push str._filename__s__s
push edi
call fcn.00430380
add esp, 0x1c
mov eax, dword [ebp - 0x60]
push eax
push str.Content_Type:__smime_
push edi
call fcn.00430380
add esp, 0xc
push ebx
push str._smime_type_s_
push edi
call fcn.00430380
add esp, 0x10
mov ebx, dword [ebp - 0x5c]
push ebx
push esi
push str._name__s__s
push edi
call fcn.00430380
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
push str.Content_Transfer_Encoding:_base64_s_s
push edi
call fcn.00430380
add esp, 0x18
mov eax, dword [ebp + 0x24]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, edi
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
call fcn.0049d490
add esp, 0x10
test eax, eax
jne 0x49d78a
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
push eax
mov eax, dword [ebp - 0x5c]
push eax
push 0x4d631e
push edi
call fcn.00430380
mov eax, 1
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0xfffffffe
jne 0x49d825
nop
cmp ebx, 0x2a0
je 0x49d9c4
jg 0x49d7fb
cmp ebx, 4
je 0x49d9f8
cmp ebx, 0x40
je 0x49d9de
mov ecx, dword [ebp - 0x58]
xor ebx, ebx
test ecx, ecx
jne 0x49d685
push edx
push edx
push str.unknown
push edi
call fcn.0041f850
mov bl, 1
add esp, 0x10
mov dword [ebp - 0x58], 1
jmp 0x49d685
cmp ebx, 0x2a2
je 0x49d9aa
jl 0x49d940
cmp ebx, 0x329
jne 0x49d7d0
push ebx
push ebx
push str.gostr3411_94
push edi
call fcn.0041f850
add esp, 0x10
sub esp, 0xc
mov eax, dword [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x5c]
push eax
push esi
push str.___boundary______s__s_s
push edi
call fcn.00430380
add esp, 0x20
mov eax, dword [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x5c]
push eax
push str.This_is_an_S_MIME_signed_message_s_s
push edi
call fcn.00430380
mov ebx, dword [ebp - 0x5c]
push ebx
push esi
push str._______s_s
push edi
call fcn.00430380
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x14]
add esp, 0x20
and eax, 0x8040
mov ebx, dword [edx + 0x10]
cmp eax, 0x40
je 0x49da2e
push ecx
mov edx, dword [ebp + 0x14]
push edx
push edi
mov eax, dword [ebp + 0x10]
push eax
call fcn.0049cb80
add esp, 0x10
sub esp, 0xc
mov eax, dword [ebp - 0x5c]
push eax
push esi
mov eax, dword [ebp - 0x5c]
push eax
push str._s_______s_s
push edi
call fcn.00430380
add esp, 0x1c
mov eax, dword [ebp - 0x60]
push eax
push str.Content_Type:__ssignature_
push edi
call fcn.00430380
add esp, 0xc
mov ebx, dword [ebp - 0x5c]
push ebx
push str._name_smime.p7s__s
push edi
call fcn.00430380
add esp, 0xc
mov ecx, dword [ebp - 0x5c]
push ecx
push str.Content_Transfer_Encoding:_base64_s
push edi
call fcn.00430380
pop eax
pop edx
push str.Content_Disposition:_attachment_
push edi
call fcn.00430380
mov eax, dword [ebp - 0x5c]
push eax
mov ebx, dword [ebp - 0x5c]
push ebx
push str._filename_smime.p7s__s_s
push edi
call fcn.00430380
add esp, 0x18
mov ecx, dword [ebp + 0x24]
mov eax, edi
push ecx
push 0
mov edx, dword [ebp + 0xc]
xor ecx, ecx
call fcn.0049d490
pop eax
mov eax, dword [ebp - 0x5c]
pop edx
push eax
mov eax, dword [ebp - 0x5c]
push eax
push esi
mov eax, dword [ebp - 0x5c]
push eax
push str._s_______s___s_s
push edi
call fcn.00430380
mov eax, 1
add esp, 0x20
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
push eax
push eax
push str.sha_384
push edi
call fcn.0041f850
mov ebx, 1
add esp, 0x10
jmp 0x49d685
push eax
mov eax, dword [ebp - 0x5c]
push eax
push str.MIME_Version:_1.0_s
push edi
call fcn.00430380
pop ebx
pop esi
push str.Content_Disposition:_attachment_
push edi
call fcn.00430380
mov ecx, dword [ebp - 0x5c]
push ecx
push str.smime.p7m
push str._filename__s__s
push edi
call fcn.00430380
add esp, 0x1c
mov edx, dword [ebp - 0x60]
mov esi, str.smime.p7m
push edx
push str.Content_Type:__smime_
push edi
call fcn.00430380
add esp, 0x10
jmp 0x49d73e
push eax
push eax
push str.sha_512
push edi
call fcn.0041f850
mov ebx, 1
add esp, 0x10
jmp 0x49d685
push eax
push eax
push str.sha_256
push edi
call fcn.0041f850
mov ebx, 1
add esp, 0x10
jmp 0x49d685
push eax
push eax
push str.sha1
push edi
call fcn.0041f850
mov ebx, 1
add esp, 0x10
jmp 0x49d685
push eax
push eax
push 0x4d6132
push edi
call fcn.0041f850
mov ebx, 1
add esp, 0x10
jmp 0x49d685
cmp dword [ebp + 0x1c], 0xcc
jne 0x49dadc
mov esi, str.smime.p7m
mov ebx, str.signed_receipt
jmp 0x49d6ed
test ebx, ebx
je 0x49dafe
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x49dafe
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push eax
lea edx, [ebp - 0x10]
mov eax, dword [ebp + 0x24]
push eax
push edx
push 0xc
call dword [ebx + 0x10]
add esp, 0x10
test eax, eax
jle 0x49d780
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0049cb80
lea eax, [ebp - 0x1c]
push eax
mov edx, dword [ebp + 0x24]
push edx
lea edx, [ebp - 0x10]
push edx
push 0xd
call dword [ebx + 0x10]
mov ebx, dword [ebp - 0x18]
add esp, 0x20
mov dword [ebp - 0x50], eax
cmp edi, ebx
je 0x49dabd
sub esp, 0xc
push ebx
call fcn.0041f660
mov ebx, eax
pop eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.0041fae0
add esp, 0x10
mov dword [ebp - 0x18], ebx
cmp edi, ebx
jne 0x49da9e
mov eax, dword [ebp - 0x50]
test eax, eax
jg 0x49d894
jmp 0x49d780
mov esi, str.smime.p7m
mov ebx, str.enveloped_data
jmp 0x49d6ed
sub esp, 0xc
mov eax, dword [ebp + 0x20]
push eax
call fcn.0042eb20
add esp, 0x10
test eax, eax
js 0x49db26
mov esi, str.smime.p7m
mov ebx, str.signed_data
jmp 0x49d6ed
sub esp, 0xc
push 0x18a
push str.external_openssl_crypto_asn1_asn_mime.c
push 0xca
push 0xd6
push 0xd
call fcn.004249c0
xor eax, eax
add esp, 0x20
jmp 0x49d782
mov esi, str.smime.p7m
mov ebx, str.certs_only
jmp 0x49d6ed