Function at 0x1012d420
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x1024c3ef
mov eax, dword fs:[0]
push eax
sub esp, 0x934
push ebx
push esi
mov eax, dword [0x102a8930]
xor eax, esp
push eax
lea eax, [esp + 0x940]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [edi + 0x50]
cmp eax, 1
mov dword [edi + 0x34], str.addRecipient
jge 0x1012d4c1
mov eax, dword [edi + 0x74]
push eax
lea ecx, [edi + 0x60]
push ecx
lea ecx, [edi + 0x4c]
mov edx, edi
call fcn.10132930
test eax, eax
jle 0x1012d4c1
mov eax, dword [edi + 0x28]
test eax, eax
je 0x1012d47f
cmp dword [edi + 0x20], 0
jne 0x1012d484
mov eax, 0x1025bd4e
mov edx, dword [edi + 0x34]
push eax
mov eax, dword [edi + 0x30]
push 1
push str.this
push edx
push eax
push 0xb8
push edi
mov ecx, str......._srcDSProcessPEnvelopedData.cpp
call fcn.100e2fd0
mov eax, 1
mov ecx, dword [esp + 0x940]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x940
ret
xor ebx, ebx
mov dword [esp + 0xc], vtable.C3303::ByteString.0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x948], ebx
cmp dword [edi + 0x44], 3
jne 0x1012d527
mov ecx, dword [edi + 0x34]
mov edx, dword [edi + 0x30]
push str.KeyEncrytionKey_does_not_set.
push 2
push str.pKeyEncryptionKey
push ecx
push edx
push 0xbf
push edi
mov ecx, str......._srcDSProcessPEnvelopedData.cpp
call fcn.100e2fd0
lea eax, [ebx + 2]
mov ecx, dword [esp + 0x940]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x940
ret
lea eax, [esp + 0x84]
push eax
call fcn.10178fc0
mov byte [esp + 0x948], 1
mov eax, dword [esi + 4]
cmp dword [esi + 8], ebx
jne 0x1012d54b
mov esi, 0x1025bd4e
jmp 0x1012d54e
mov esi, dword [esi + 0xc]
push ebx
push eax
push esi
lea ecx, [esp + 0x90]
push ecx
call fcn.10179460
test eax, eax
jle 0x1012d5cb
mov eax, dword [esp + 0xb8]
cmp eax, ebx
je 0x1012d576
cmp dword [esp + 0xb0], ebx
jne 0x1012d57b
mov eax, 0x1025bd4e
mov edx, dword [edi + 0x34]
push eax
mov eax, dword [edi + 0x30]
push 4
push str.cert
push edx
push eax
push 0xc7
push edi
mov ecx, str......._srcDSProcessPEnvelopedData.cpp
call fcn.100e2fd0
lea ecx, [esp + 0x84]
mov byte [esp + 0x948], bl
call fcn.101790a0
mov eax, 4
mov ecx, dword [esp + 0x940]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x940
ret
mov eax, dword [edi + 0x44]
sub eax, 1
je 0x1012d6cb
sub eax, 1
je 0x1012d644
mov ecx, dword [edi + 0x34]
mov edx, dword [edi + 0x30]
push str.The_recipientType_is_not_chosen.
push 0xd
push str.m_nRecipientType
push ecx
push edx
push 0xf5
push edi
mov ecx, str......._srcDSProcessPEnvelopedData.cpp
call fcn.100e2fd0
lea ecx, [esp + 0x84]
mov byte [esp + 0x948], bl
call fcn.101790a0
lea ecx, [esp + 0xc]
mov dword [esp + 0x948], 0xffffffff
call fcn.101e5b00
mov eax, 0xd
mov ecx, dword [esp + 0x940]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x940
ret
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xd0]
push ecx
push edi
call fcn.1012f280
test eax, eax
jle 0x1012d74e
lea ecx, [edi + 0x1c]
call fcn.101e6430
mov edx, dword [edi + 0x34]
push eax
mov eax, dword [edi + 0x30]
push 0xc
push str.this
push edx
push eax
push 0xf1
push edi
mov ecx, str......._srcDSProcessPEnvelopedData.cpp
call fcn.100e2fd0
lea ecx, [esp + 0x84]
mov byte [esp + 0x948], bl
call fcn.101790a0
lea ecx, [esp + 0xc]
mov dword [esp + 0x948], 0xffffffff
call fcn.101e5b00
mov eax, 0xc
mov ecx, dword [esp + 0x940]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x940
ret
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xd0]
push edx
push edi
call fcn.1012d970
test eax, eax
jle 0x1012d74e
lea ecx, [edi + 0x1c]
call fcn.101e6430
mov ecx, dword [edi + 0x30]
push eax
mov eax, dword [edi + 0x34]
push 0xa
push str.this
push eax
push ecx
push 0xe9
push edi
mov ecx, str......._srcDSProcessPEnvelopedData.cpp
call fcn.100e2fd0
lea ecx, [esp + 0x84]
mov byte [esp + 0x948], bl
call fcn.101790a0
lea ecx, [esp + 0xc]
mov dword [esp + 0x948], 0xffffffff
call fcn.101e5b00
mov eax, 0xa
mov ecx, dword [esp + 0x940]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x940
ret
lea ecx, [esp + 0x84]
mov byte [esp + 0x948], bl
call fcn.101790a0
lea eax, [esp + 0x24]
call fcn.101bf760
mov byte [esp + 0x948], 2
mov eax, 0x1025bd4e
cmp dword [esp + 0x14], ebx
je 0x1012d781
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push eax
lea edx, [esp + 0x28]
call fcn.101bfaf0
test eax, eax
jle 0x1012d807
mov eax, dword [esp + 0x58]
cmp eax, ebx
je 0x1012d7a1
cmp dword [esp + 0x50], ebx
jne 0x1012d7a6
mov eax, 0x1025bd4e
mov edx, dword [edi + 0x34]
push eax
mov eax, dword [edi + 0x30]
push 0xe
push str.recipientInfo
push edx
push eax
push 0xfb
push edi
mov ecx, str......._srcDSProcessPEnvelopedData.cpp
call fcn.100e2fd0
lea ecx, [esp + 0x24]
mov byte [esp + 0x948], bl
call fcn.101bf7c0
lea ecx, [esp + 0xc]
mov dword [esp + 0x948], 0xffffffff
call fcn.101e5b00
mov eax, 0xe
mov ecx, dword [esp + 0x940]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x940
ret
cmp dword [edi + 0x7c], ebx
jne 0x1012d8ac
push 0xb4
call fcn.1021b8a4
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0x948], 3
cmp eax, ebx
je 0x1012d836
mov esi, eax
call fcn.101bd510
jmp 0x1012d838
xor eax, eax
mov byte [esp + 0x948], 2
mov dword [edi + 0x7c], eax
cmp eax, ebx
jne 0x1012d8ac
mov ecx, dword [edi + 0x34]
mov edx, dword [edi + 0x30]
push str.The_memory_allocation_is_failed.
push 0xf
push str.m_nRecipientType
push ecx
push edx
push 0x101
push edi
mov ecx, str......._srcDSProcessPEnvelopedData.cpp
call fcn.100e2fd0
lea ecx, [esp + 0x24]
mov byte [esp + 0x948], bl
call fcn.101bf7c0
lea ecx, [esp + 0xc]
mov dword [esp + 0x948], 0xffffffff
call fcn.101e5b00
mov eax, 0xf
mov ecx, dword [esp + 0x940]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x940
ret
mov ebx, dword [edi + 0x7c]
lea eax, [esp + 0x24]
push eax
call fcn.101bd570
test eax, eax
jle 0x1012d92a
mov ecx, dword [edi + 0x7c]
add ecx, 0x28
call fcn.101e6430
mov ecx, dword [edi + 0x34]
mov edx, dword [edi + 0x30]
push eax
push 0x10
push str.m_pRecipientInfos
push ecx
push edx
push 0x105
push edi
mov ecx, str......._srcDSProcessPEnvelopedData.cpp
call fcn.100e2fd0
lea ecx, [esp + 0x24]
mov byte [esp + 0x948], 0
call fcn.101bf7c0
lea ecx, [esp + 0xc]
mov dword [esp + 0x948], 0xffffffff
call fcn.101e5b00
mov eax, 0x10
mov ecx, dword [esp + 0x940]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x940
ret
lea ecx, [esp + 0x24]
mov byte [esp + 0x948], 0
call fcn.101bf7c0
lea ecx, [esp + 0xc]
mov dword [esp + 0x948], 0xffffffff
call fcn.101e5b00
xor eax, eax
mov ecx, dword [esp + 0x940]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x940
ret