Function at 0x4c7cf0
Capabilities:
Encrypt data using curve25519

Disassembly:
mov eax, 0x180
call fcn.005e0210
mov eax, dword [0x699280]
xor eax, esp
mov dword [esp + 0x17c], eax
mov eax, dword [esp + 0x184]
mov ecx, dword [esp + 0x1ac]
push ebx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18c]
push ebp
mov ebp, dword [esp + 0x1ac]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x198]
push esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1a0]
push edi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c0]
push eax
push str.SHA512
push ecx
mov dword [esp + 0x30], ebp
call fcn.0046ba20
add esp, 0xc
mov edi, eax
call fcn.0046b990
xor ebx, ebx
mov dword [esp + 0x1c], 0
test ebp, ebp
mov esi, eax
cmovne ebx, dword [esp + 0x1b8]
cmp byte [esp + 0x1b0], 0
je 0x4c7d8f
test ebx, ebx
je 0x4c7f6a
cmp byte [esp + 0x1a8], 0
jne 0x4c7da1
test ebx, ebx
jne 0x4c7f6a
test edi, edi
je 0x4c7f6a
test esi, esi
je 0x4c7f6a
push 0
push edi
push esi
call fcn.0046b330
add esp, 0xc
test eax, eax
je 0x4c7f6a
push 0x20
push dword [esp + 0x24]
push esi
call fcn.0046b370
add esp, 0xc
test eax, eax
je 0x4c7f6a
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0xd0]
push eax
push esi
call fcn.0046b140
add esp, 0xc
test eax, eax
je 0x4c7f6a
mov al, byte [esp + 0xeb]
and byte [esp + 0xcc], 0xf8
and al, 0x3f
push ebx
push ebp
push dword [esp + 0x1b4]
or al, 0x40
push dword [esp + 0x1b4]
mov byte [esp + 0xfb], al
push edi
push esi
call fcn.004c7af0
add esp, 0x18
test eax, eax
je 0x4c7f6a
push 0x20
lea eax, [esp + 0xf0]
push eax
push esi
call fcn.0046b370
add esp, 0xc
test eax, eax
je 0x4c7f6a
mov ebp, dword [esp + 0x19c]
push ebp
push dword [esp + 0x18]
push esi
call fcn.0046b370
add esp, 0xc
test eax, eax
je 0x4c7f6a
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x110]
push eax
push esi
call fcn.0046b140
add esp, 0xc
test eax, eax
je 0x4c7f6a
lea eax, [esp + 0x10c]
push eax
call fcn.004cca30
lea eax, [esp + 0x110]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.004c7330
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x20]
call fcn.004c72b0
push ebx
push dword [esp + 0x3c]
push dword [esp + 0x1c8]
push dword [esp + 0x1c8]
push edi
push esi
call fcn.004c7af0
add esp, 0x2c
test eax, eax
je 0x4c7f6a
mov ebx, dword [esp + 0x10]
push 0x20
push ebx
push esi
call fcn.0046b370
add esp, 0xc
test eax, eax
je 0x4c7f6a
push 0x20
push dword [esp + 0x2c]
push esi
call fcn.0046b370
add esp, 0xc
test eax, eax
je 0x4c7f6a
push ebp
push dword [esp + 0x18]
push esi
call fcn.0046b370
add esp, 0xc
test eax, eax
je 0x4c7f6a
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x150]
push eax
push esi
call fcn.0046b140
add esp, 0xc
test eax, eax
je 0x4c7f6a
lea eax, [esp + 0x14c]
push eax
call fcn.004cca30
lea eax, [esp + 0x110]
push eax
lea eax, [esp + 0xd4]
push eax
lea eax, [esp + 0x158]
push eax
lea eax, [ebx + 0x20]
push eax
call fcn.004c84f0
add esp, 0x14
mov dword [esp + 0x1c], 1
lea eax, [esp + 0x10c]
push 0x40
push eax
call fcn.00401320
lea eax, [esp + 0xd4]
push 0x40
push eax
call fcn.00401320
push edi
call fcn.0046ba50
push esi
call fcn.0046b900
mov ecx, dword [esp + 0x1a4]
add esp, 0x18
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005dffa1
add esp, 0x180
ret