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

Disassembly:
push 0xffffffffffffffff
push 0x581e01
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
push ebx
push ebp
push esi
push edi
mov eax, dword [0x641030]
xor eax, esp
push eax
lea eax, [esp + 0x1c0]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [esp + 0x9c]
call fcn.00520060
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c8], 0
call fcn.004938e0
mov esi, dword [esp + 0x1d8]
push str.sharedSecret
push esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x1d0], 1
call fcn.00437740
mov ecx, dword [esp + 0x1d4]
mov byte [esp + 0x1c8], 2
call fcn.00446f40
cmp dword [edi + 0x7c], 1
je 0x527005
push str.Must_be_a_private_key.
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
mov ecx, esi
call edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c8], 1
call fcn.004377b0
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c8], 0
call fcn.00493a20
lea ecx, [esp + 0x9c]
mov dword [esp + 0x1c8], 0xffffffff
call fcn.005200d0
xor al, al
jmp 0x527260
mov ebp, dword [esp + 0x1d0]
lea ebx, [ebp + 0x88]
lea ecx, [edi + 0x88]
push ebx
mov dword [esp + 0x1c], ecx
call fcn.0042f1a0
test al, al
jne 0x527057
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.ECC_curves_are_different
mov ecx, esi
call edx
mov eax, dword [esp + 0x18]
push eax
push str.privKeyCurve
mov ecx, esi
call fcn.004370f0
push ebx
push str.pubKeyCurve
mov ecx, esi
call fcn.004370f0
jmp 0x526fc5
lea ebx, [edi + 0x170]
push 0x10
mov ecx, ebx
call fcn.0051b3b0
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.00494710
add esp, 0xc
test al, al
jne 0x527098
push ebx
push str.curvePrime
mov ecx, esi
call fcn.004370f0
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Failed_to_decode_curve_prime.
mov ecx, esi
call eax
jmp 0x526fc5
mov ecx, dword [esp + 0x18]
push str.secp256k1
call fcn.0042f160
lea edx, [edi + 0x470]
test al, al
je 0x52727c
xor eax, eax
lea ecx, [esp + 0x7c]
push ecx
push edx
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
call fcn.005217e0
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
lea eax, [esp + 0x44]
push eax
lea ecx, [ebp + 0x434]
push ecx
call fcn.005217e0
lea edx, [esp + 0x6c]
push edx
add ebp, 0x448
push ebp
call fcn.005217e0
add esp, 0x18
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0xe4]
call fcn.00525bd0
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x40]
call fcn.00525bd0
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0xe4]
push eax
lea ecx, [esp + 0x108]
call fcn.00523230
lea ecx, [esp + 0x100]
push ecx
lea edx, [esp + 0x80]
push edx
lea eax, [esp + 0x168]
push eax
call fcn.00526f00
lea ecx, [esp + 0xb0]
push ecx
lea edx, [esp + 0x170]
push edx
call fcn.005218e0
add esp, 0x14
mov esi, dword [esp + 0x1d4]
lea eax, [esp + 0xa4]
push esi
push eax
call fcn.004978d0
add esp, 8
mov ecx, esi
mov bl, al
mov byte [esp + 0x17], 0
call fcn.0051d090
cmp eax, dword [edi + 0x84]
jae 0x527225
mov edi, edi
push 1
lea ecx, [esp + 0x1b]
push ecx
mov ecx, esi
call fcn.0044b780
test al, al
je 0x526fc5
mov ecx, esi
call fcn.0051d090
cmp eax, dword [edi + 0x84]
jb 0x527200
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c8], 1
call fcn.004377b0
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c8], 0
call fcn.00493a20
lea ecx, [esp + 0x9c]
mov dword [esp + 0x1c8], 0xffffffff
call fcn.005200d0
mov al, bl
mov ecx, dword [esp + 0x1c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1b8
ret 0xc
push esi
push 1
lea eax, [esp + 0x30]
push eax
push 0
lea ecx, [esp + 0xac]
push ecx
add ebp, 0x42c
push ebp
push edx
call fcn.00524660
add esp, 0x1c
test al, al
jne 0x5271d0
push str.Point_multiply_failed.
jmp 0x526fbc