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

Disassembly:
push 0xffffffffffffffff
push 0x6556ce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x644
push ebx
push ebp
push esi
mov esi, dword [esp + 0x674]
push edi
mov edi, ecx
push str.eccSignHash
push esi
lea ecx, [esp + 0x1c]
call fcn.004f0370
mov ecx, dword [esp + 0x674]
xor ebx, ebx
mov dword [esp + 0x65c], ebx
call fcn.004dd9e0
mov al, byte [esi + 0x121]
mov ebp, dword [esp + 0x668]
cmp al, bl
je 0x5cf1a3
mov eax, dword [esp + 0x670]
mov ecx, esi
and eax, 0xff
push eax
push str.bAsn
call fcn.004effe0
push ebp
push str.inlen
mov ecx, esi
call fcn.004effe0
lea ecx, [edi + 0x88]
push str.secp256k1
call fcn.004e9220
test al, al
je 0x5cf1fd
mov ecx, dword [esp + 0x674]
mov edx, dword [esp + 0x670]
mov eax, dword [esp + 0x66c]
push esi
push ecx
mov ecx, dword [esp + 0x66c]
push edx
push eax
push ebp
push ecx
mov ecx, edi
call fcn.005cec90
lea ecx, [esp + 0x14]
mov bl, al
mov dword [esp + 0x65c], 0xffffffff
call fcn.004f03e0
mov al, bl
jmp 0x5cf861
lea ecx, [esp + 0x1d0]
call fcn.005cafd0
lea ecx, [esp + 0x34]
mov byte [esp + 0x65c], 1
call fcn.0054f840
lea ecx, [esp + 0x20]
mov byte [esp + 0x65c], 2
call fcn.0054f840
lea ecx, [esp + 0x5c]
mov byte [esp + 0x65c], 3
call fcn.0054f840
lea ecx, [esp + 0x48]
mov byte [esp + 0x65c], 4
call fcn.0054f840
mov eax, dword [edi + 0x7c]
mov byte [esp + 0x65c], 5
cmp eax, 1
je 0x5cf26e
mov edx, dword [esi]
push str.Must_be_a_private_key.
mov ecx, esi
call dword [edx + 0x14]
jmp 0x5cf7f4
push 0x10
lea ecx, [edi + 0x2d0]
call fcn.004dda00
push eax
lea eax, [esp + 0x50]
push eax
call fcn.005531b0
add esp, 0xc
test al, al
jne 0x5cf29e
mov edx, dword [esi]
push str.Failed_to_get_p
mov ecx, esi
call dword [edx + 0x14]
jmp 0x5cf7f4
mov eax, dword [esp + 0x664]
push ebp
lea ecx, [esp + 0x60]
push eax
push ecx
call fcn.00553320
add esp, 0xc
test al, al
jne 0x5cf2c9
mov edx, dword [esi]
push str.Failed_to_get_e
mov ecx, esi
call dword [edx + 0x14]
jmp 0x5cf7f4
lea ecx, [esp + 0xa4]
call fcn.004f0420
mov ecx, dword [esp + 0x66c]
lea eax, [esp + 0xa4]
push eax
lea ebp, [edi + 0x88]
push ecx
push ebp
lea ecx, [esp + 0x1dc]
mov byte [esp + 0x668], 6
call fcn.005d2430
test al, al
je 0x5cf48b
lea edx, [esp + 0x34]
lea eax, [esp + 0x48]
push edx
lea ecx, [esp + 0x608]
push eax
push ecx
call fcn.005529d0
add esp, 0xc
cmp eax, ebx
jne 0x5cf7e0
cmp dword [esp + 0x3c], ebx
jne 0x5cf341
lea ecx, [esp + 0x1d0]
call fcn.005cb400
jmp 0x5cf466
lea edx, [esp + 0x640]
lea eax, [esp + 0x48]
push edx
lea ecx, [esp + 0x644]
push eax
push ecx
call fcn.005518c0
add esp, 0xc
cmp eax, ebx
jne 0x5cf4a9
lea edx, [esp + 0x20]
lea eax, [esp + 0x48]
push edx
lea ecx, [esp + 0x38]
push eax
lea edx, [edi + 0x470]
push ecx
push edx
call fcn.00553120
add esp, 0x10
cmp eax, ebx
jne 0x5cf4ba
lea eax, [esp + 0x20]
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x60]
push ecx
push edx
call fcn.00551140
add esp, 0xc
cmp eax, ebx
jne 0x5cf4cb
lea eax, [esp + 0x20]
lea ecx, [esp + 0x48]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.005529d0
add esp, 0xc
cmp eax, ebx
jne 0x5cf4dc
lea eax, [esp + 0x20]
lea ecx, [esp + 0x48]
push eax
lea edx, [esp + 0x644]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
call fcn.00553120
add esp, 0x10
cmp eax, ebx
jne 0x5cf4ed
cmp dword [esp + 0x28], ebx
je 0x5cf466
lea ecx, [esp + 0x70]
call fcn.004dfe70
lea ecx, [esp + 0x70]
lea edx, [esp + 0x34]
push ecx
push edx
mov byte [esp + 0x664], 7
call fcn.00553d90
add esp, 8
lea ecx, [esp + 0x70]
call fcn.004dda10
test byte [eax], 0x80
jne 0x5cf455
lea ecx, [esp + 0x70]
call fcn.004dd9e0
lea eax, [esp + 0x70]
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.00553d90
add esp, 8
lea ecx, [esp + 0x70]
call fcn.004dda10
test byte [eax], 0x80
je 0x5cf4fe
lea ecx, [esp + 0x70]
mov byte [esp + 0x65c], 6
call fcn.004e0890
mov eax, dword [esp + 0x66c]
lea edx, [esp + 0xa4]
push edx
push eax
push ebp
lea ecx, [esp + 0x1dc]
call fcn.005d2430
test al, al
jne 0x5cf308
push ebp
push str.curveName
mov ecx, esi
call fcn.004efcb0
mov edx, dword [esi]
push str.Failed_to_generate_point_on_curve.
mov ecx, esi
call dword [edx + 0x14]
jmp 0x5cf7e0
mov eax, dword [esi]
push str.ecc_calc_error_1
mov ecx, esi
call dword [eax + 0x14]
jmp 0x5cf7e0
mov edx, dword [esi]
push str.ecc_calc_error_2
mov ecx, esi
call dword [edx + 0x14]
jmp 0x5cf7e0
mov eax, dword [esi]
push str.ecc_calc_error_3
mov ecx, esi
call dword [eax + 0x14]
jmp 0x5cf7e0
mov edx, dword [esi]
push str.ecc_calc_error_4
mov ecx, esi
call dword [edx + 0x14]
jmp 0x5cf7e0
mov eax, dword [esi]
push str.ecc_calc_error_5
mov ecx, esi
call dword [eax + 0x14]
jmp 0x5cf7e0
lea ecx, [esp + 0x70]
mov byte [esp + 0x65c], 6
call fcn.004e0890
mov ecx, dword [esp + 0x44]
mov eax, 1
cmp ecx, eax
je 0x5cf7d4
cmp dword [esp + 0x30], eax
je 0x5cf7d4
cmp byte [esp + 0x670], bl
jne 0x5cf672
mov ebp, dword [esp + 0x674]
lea ecx, [esp + 0x34]
push ebp
push ecx
mov byte [esp + 0x1b], bl
call fcn.00553d90
add esp, 8
mov ecx, ebp
call fcn.005a8750
mov esi, eax
mov eax, dword [edi + 0x84]
cmp esi, eax
jae 0x5cf57c
lea edx, [esp + 0x13]
push 1
push edx
mov ecx, ebp
call fcn.004e0f50
mov eax, dword [edi + 0x84]
inc esi
cmp esi, eax
jb 0x5cf563
lea ecx, [esp + 0x70]
call fcn.004dfe70
lea eax, [esp + 0x70]
lea ecx, [esp + 0x20]
push eax
push ecx
mov byte [esp + 0x664], 8
call fcn.00553d90
add esp, 8
lea ecx, [esp + 0x70]
call fcn.005a8750
mov esi, eax
mov eax, dword [edi + 0x84]
cmp esi, eax
jae 0x5cf5cf
lea edx, [esp + 0x13]
push 1
push edx
lea ecx, [esp + 0x78]
call fcn.004e0f50
mov eax, dword [edi + 0x84]
inc esi
cmp esi, eax
jb 0x5cf5b4
lea eax, [esp + 0x70]
mov ecx, ebp
push eax
call fcn.004de6c0
lea ecx, [esp + 0x70]
mov byte [esp + 0x65c], 6
call fcn.004e0890
lea ecx, [esp + 0xa4]
mov byte [esp + 0x65c], 5
call fcn.004f0460
lea ecx, [esp + 0x48]
mov byte [esp + 0x65c], 4
call fcn.0054f980
lea ecx, [esp + 0x5c]
mov byte [esp + 0x65c], 3
call fcn.0054f980
lea ecx, [esp + 0x20]
mov byte [esp + 0x65c], 2
call fcn.0054f980
lea ecx, [esp + 0x34]
mov byte [esp + 0x65c], 1
call fcn.0054f980
lea ecx, [esp + 0x1d0]
mov byte [esp + 0x65c], bl
call fcn.005cb060
lea ecx, [esp + 0x14]
mov dword [esp + 0x65c], 0xffffffff
call fcn.004f03e0
mov al, 1
jmp 0x5cf861
lea ecx, [esp + 0x8c]
call fcn.00596f00
lea ecx, [esp + 0x8c]
mov byte [esp + 0x65c], 9
call fcn.005976c0
lea ecx, [esp + 0x34]
push esi
push ecx
lea ecx, [esp + 0x94]
call fcn.00597770
cmp al, bl
jne 0x5cf6c1
lea ecx, [esp + 0x8c]
mov byte [esp + 0x65c], 6
call fcn.00597a40
jmp 0x5cf7e0
lea edx, [esp + 0x20]
push esi
push edx
lea ecx, [esp + 0x94]
call fcn.00597770
cmp al, bl
jne 0x5cf6f0
lea ecx, [esp + 0x8c]
mov byte [esp + 0x65c], 6
call fcn.00597a40
jmp 0x5cf7e0
mov edi, dword [esp + 0x674]
lea eax, [esp + 0x8c]
push edi
push eax
call fcn.00598460
add esp, 8
cmp al, bl
mov byte [esp + 0x13], al
jne 0x5cf71c
mov edx, dword [esi]
push str.Failed_to_encode_final_ASN.1
mov ecx, esi
call dword [edx + 0x14]
cmp byte [esi + 0x121], bl
je 0x5cf738
mov ecx, edi
call fcn.005a8750
push eax
push str.eccAsnSigLen
mov ecx, esi
call fcn.004effe0
lea ecx, [esp + 0x8c]
mov byte [esp + 0x65c], 6
call fcn.00597a40
lea ecx, [esp + 0xa4]
mov byte [esp + 0x65c], 5
call fcn.004f0460
lea ecx, [esp + 0x48]
mov byte [esp + 0x65c], 4
call fcn.0054f980
lea ecx, [esp + 0x5c]
mov byte [esp + 0x65c], 3
call fcn.0054f980
lea ecx, [esp + 0x20]
mov byte [esp + 0x65c], 2
call fcn.0054f980
lea ecx, [esp + 0x34]
mov byte [esp + 0x65c], 1
call fcn.0054f980
lea ecx, [esp + 0x1d0]
mov byte [esp + 0x65c], bl
call fcn.005cb060
lea ecx, [esp + 0x14]
mov dword [esp + 0x65c], 0xffffffff
call fcn.004f03e0
mov al, byte [esp + 0x13]
jmp 0x5cf861
mov eax, dword [esi]
push str.R_or_S_is_negative
mov ecx, esi
call dword [eax + 0x18]
lea ecx, [esp + 0xa4]
mov byte [esp + 0x65c], 5
call fcn.004f0460
lea ecx, [esp + 0x48]
mov byte [esp + 0x65c], 4
call fcn.0054f980
lea ecx, [esp + 0x5c]
mov byte [esp + 0x65c], 3
call fcn.0054f980
lea ecx, [esp + 0x20]
mov byte [esp + 0x65c], 2
call fcn.0054f980
lea ecx, [esp + 0x34]
mov byte [esp + 0x65c], 1
call fcn.0054f980
lea ecx, [esp + 0x1d0]
mov byte [esp + 0x65c], bl
call fcn.005cb060
lea ecx, [esp + 0x14]
mov dword [esp + 0x65c], 0xffffffff
call fcn.004f03e0
xor al, al
mov ecx, dword [esp + 0x654]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x650
ret 0x18