Function at 0x521eb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x184
call fcn.005ae090
mov eax, dword [0x665ec0]
xor eax, esp
mov dword [esp + 0x180], eax
mov edx, dword [esp + 0x188]
mov eax, dword [esp + 0x18c]
push ebx
mov ebx, dword [esp + 0x1a0]
mov ecx, dword [esp + 0x198]
push ebp
push esi
mov esi, dword [esp + 0x1a4]
xor ebp, ebp
push edi
mov dword [esp + 0x18], edx
xor edi, edi
mov dword [esp + 0x24], esi
mov esi, dword [edx + 0x24]
mov edx, dword [edx + 4]
push 0x70
mov dword [esp + 0x14], edx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x3c], eax
lea edx, [esp + 0x80]
mov eax, dword [esp + 0x1a8]
push edx
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x1bc]
push dword [eax + 0x4c]
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x1c4]
push eax
mov dword [esp + 0x40], ebx
xor ebx, ebx
mov dword [esp + 0x44], esi
mov esi, dword [esi + 0x18]
push ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x2c], ebx
call fcn.004cfcb0
add esp, 0x18
test eax, eax
je 0x522126
mov edi, esi
cmp dword [esp + 0x10], ebx
je 0x521ff8
mov eax, 0x70
mov dword [esp + 0x14], ebx
sub eax, esi
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x80]
add eax, esi
push eax
mov eax, dword [esp + 0x30]
push dword [eax + 0x4c]
push eax
push dword [esp + 0x30]
call fcn.004cfcb0
add esp, 0x18
test eax, eax
je 0x522126
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
test eax, eax
je 0x521fc9
test byte [eax + 8], 1
je 0x521fc9
add eax, 0xc
mov dword [esp + 0x20], eax
je 0x522126
lea edi, [esi + esi]
mov dword [esp + 0x14], edi
jmp 0x521fff
call fcn.004648b0
push str.ecx_pubkey
push 0x98
push str.providersimplementationskemecx_kem.c
call fcn.004649b0
push 0
push 0xdc
push 0x39
call fcn.00464ac0
add esp, 0x18
jmp 0x522126
lea eax, [esi + esi]
mov dword [esp + 0x14], eax
lea eax, [esi + edi]
mov dword [esp + 0x1c], eax
cmp eax, 0xa8
ja 0x522126
push esi
push dword [esp + 0x2c]
lea eax, [esp + 0xf0]
push eax
call fcn.005af570
push esi
push dword [esp + 0x3c]
lea eax, [esp + 0xfc]
add eax, esi
push eax
call fcn.005af570
add esp, 0x18
cmp dword [esp + 0x10], ebx
je 0x52205b
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xe8]
push esi
push dword [esp + 0x24]
add eax, ecx
push eax
call fcn.005af570
add esp, 0xc
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x30]
push dword [eax + 0xc]
push dword [eax + 8]
push dword [esi + 0xc]
push dword [eax + 0x20]
call fcn.005791d0
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x522126
movzx ecx, word [esi]
mov esi, dword [esi + 0x10]
cmp esi, 0x40
ja 0x522126
push edi
mov eax, ecx
mov byte [esp + 0x15], cl
shr eax, 8
mov byte [esp + 0x14], al
lea eax, [esp + 0x7c]
push eax
push str.eae_prk
push 2
lea eax, [esp + 0x20]
push eax
push 0x636578
push 0
push 0
push esi
lea eax, [esp + 0x5c]
push eax
push ebp
call fcn.00579010
add esp, 0x2c
test eax, eax
je 0x522108
push dword [esp + 0x1c]
lea eax, [esp + 0xec]
push eax
push str.shared_secret
push 2
lea eax, [esp + 0x20]
push eax
push 0x636578
push esi
lea eax, [esp + 0x54]
push eax
push esi
push dword [esp + 0x58]
push ebp
call fcn.00578e30
add esp, 0x2c
mov dword [esp + 0x18], 1
test eax, eax
jne 0x52210c
mov dword [esp + 0x18], ebx
lea eax, [esp + 0x38]
push esi
push eax
call fcn.00401320
add esp, 8
mov eax, 1
cmp dword [esp + 0x18], ebx
cmovne ebx, eax
lea eax, [esp + 0x78]
push edi
push eax
call fcn.00401320
push ebp
call fcn.0055cbc0
mov ecx, dword [esp + 0x19c]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005ae073
add esp, 0x184
ret