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

Disassembly:
push 0xffffffffffffffff
push 0x101aa4cc
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1026d48c]
xor eax, esp
push eax
lea eax, [esp + 0x1c0]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [esp + 0x9c]
call fcn.101654e0
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c8], 0
call fcn.1006eda0
mov esi, dword [esp + 0x1d8]
push str.sharedSecret
push esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x1d0], 1
call fcn.10061630
mov ecx, dword [esp + 0x1d4]
mov byte [esp + 0x1c8], 2
call fcn.10017ff0
cmp dword [edi + 0x7c], 1
je 0x1016ce25
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.Must_be_a_private_key.
mov ecx, esi
call edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x1c8], 1
call fcn.100616a0
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c8], 0
call fcn.1006eee0
lea ecx, [esp + 0x9c]
mov dword [esp + 0x1c8], 0xffffffff
call fcn.10165550
xor al, al
jmp 0x1016d080
mov ebp, dword [esp + 0x1d0]
lea ebx, [ebp + 0x88]
lea ecx, [edi + 0x88]
push ebx
mov dword [esp + 0x28], ecx
call fcn.100131f0
test al, al
jne 0x1016ce77
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.ECC_curves_are_different
mov ecx, esi
call edx
mov eax, dword [esp + 0x24]
push eax
push str.privKeyCurve
mov ecx, esi
call fcn.10060fd0
push ebx
push str.pubKeyCurve
mov ecx, esi
call fcn.10060fd0
jmp 0x1016cde5
lea ebx, [edi + 0x170]
push 0x10
mov ecx, ebx
call fcn.1008be90
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.1006fbc0
add esp, 0xc
test al, al
jne 0x1016ceb8
push ebx
push str.curvePrime
mov ecx, esi
call fcn.10060fd0
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Failed_to_decode_curve_prime.
mov ecx, esi
call eax
jmp 0x1016cde5
mov ecx, dword [esp + 0x24]
push str.secp256k1
call fcn.100131b0
test al, al
je 0x1016d09c
xor eax, eax
lea ecx, [esp + 0x7c]
push ecx
lea edx, [edi + 0x470]
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.10166db0
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.10166db0
lea edx, [esp + 0x6c]
push edx
add ebp, 0x448
push ebp
call fcn.10166db0
add esp, 0x18
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0xe4]
call fcn.1016b510
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x40]
call fcn.1016b510
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0xe4]
push eax
lea ecx, [esp + 0x108]
call fcn.10168350
lea ecx, [esp + 0x100]
push ecx
lea edx, [esp + 0x80]
push edx
lea eax, [esp + 0x168]
push eax
call fcn.1016cd20
lea ecx, [esp + 0xb0]
push ecx
lea edx, [esp + 0x170]
push edx
call fcn.10166eb0
add esp, 0x14
mov esi, dword [esp + 0x1d4]
lea ecx, [esp + 0xa4]
push esi
push ecx
call fcn.10072e00
add esp, 8
mov ecx, esi
mov bl, al
mov byte [esp + 0x17], 0
call fcn.100f6330
cmp eax, dword [edi + 0x84]
jae 0x1016d045
mov edi, edi
push 1
lea edx, [esp + 0x1b]
push edx
mov ecx, esi
call fcn.1001cd60
test al, al
je 0x1016cde5
mov ecx, esi
call fcn.100f6330
cmp eax, dword [edi + 0x84]
jb 0x1016d020
lea ecx, [esp + 0x18]
mov byte [esp + 0x1c8], 1
call fcn.100616a0
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c8], 0
call fcn.1006eee0
lea ecx, [esp + 0x9c]
mov dword [esp + 0x1c8], 0xffffffff
call fcn.10165550
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
cmp byte [edi + 0x258], 0
je 0x1016d166
lea ecx, [esp + 0x3c]
call fcn.1006eda0
push 0x10
lea ecx, [edi + 0x1e4]
mov byte [esp + 0x1cc], 3
call fcn.1008be90
push eax
lea eax, [esp + 0x44]
push eax
call fcn.1006fbc0
add esp, 0xc
test al, al
jne 0x1016d0fd
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Failed_to_decode_curve_A.
mov ecx, esi
call eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1c8], 2
call fcn.1006eee0
jmp 0x1016cde5
push esi
push 1
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0xac]
push eax
add ebp, 0x42c
lea ecx, [edi + 0x470]
push ebp
push ecx
call fcn.10169b30
add esp, 0x1c
test al, al
jne 0x1016d150
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Point_multiply_failed.
mov ecx, esi
call eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1c8], 2
call fcn.1006eee0
jmp 0x1016cde5
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1c8], 2
call fcn.1006eee0
jmp 0x1016cff0
push esi
push 1
lea ecx, [esp + 0x30]
push ecx
push 0
lea edx, [esp + 0xac]
push edx
add ebp, 0x42c
lea eax, [edi + 0x470]
push ebp
push eax
call fcn.10169b30
add esp, 0x1c
test al, al
jne 0x1016cff0
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Point_multiply_failed.
mov ecx, esi
call eax
jmp 0x1016cde5