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

Disassembly:
mov ecx, dword [0x7c4f4c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5976a3
sub esp, 0x74
mov edx, dword [0x77f940]
mov ebx, dword [0x77f944]
mov ebp, dword [esp + 0x78]
jmp 0x59712d
add edx, 0x20
dec ebx
test ebx, ebx
jle 0x59714c
lea edi, [esp + 0x54]
mov esi, edx
call fcn.0046aec0
cmp dword [esp + 0x54], ebp
jne 0x597129
mov edx, dword [esp + 0x70]
mov ebx, dword [esp + 0x6c]
jmp 0x597150
xor edx, edx
xor ebx, ebx
mov dword [esp + 0x38], ebx
test edx, edx
jne 0x597192
cmp ebx, 4
jne 0x597174
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x84]
mov esi, dword [esp + 0x7c]
jmp 0x5972bc
mov eax, dword [0x77f4c0]
mov ecx, dword [0x77f4c4]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ecx
add esp, 0x74
ret
cmp edx, 2
je 0x597677
mov dword [esp + 0x40], edx
cmp edx, 3
jne 0x597212
movzx esi, byte [esp + 0x9c]
xchg esi, eax
test al, al
xchg esi, eax
jne 0x597212
mov eax, dword [0x77ef50]
mov dword [esp], eax
call sym.internal_godebug._Setting_.Value
cmp dword [esp + 8], 1
jne 0x5971d0
mov eax, dword [esp + 4]
cmp byte [eax], 0x31
je 0x5971f8
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call sym.runtime.convT32
mov eax, dword [esp + 4]
lea ecx, [0x668224]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], eax
add esp, 0x74
ret
mov eax, dword [0x77ef50]
mov dword [esp], eax
call sym.internal_godebug._Setting_.IncNonDefault
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x78]
cmp edx, 0x14
jae 0x597659
mov ecx, dword [0x785e8c]
cmp edx, ecx
jae 0x59769b
mov eax, dword [0x785e88]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x597659
mov dword [esp], edx
call sym.crypto.Hash.New
mov eax, dword [esp + 4]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x50], ecx
mov edx, dword [eax + 0x20]
mov dword [esp], ecx
mov ebx, dword [esp + 0x7c]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x80]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x84]
mov dword [esp + 0xc], ebx
call edx
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 0x1c]
mov ecx, dword [esp + 0x50]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x78]
mov esi, eax
mov eax, edx
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x94]
test edi, edi
je 0x59763b
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 8]
cmp eax, 0x4bcec15d
jne 0x597416
lea eax, [0x5fb220]
cmp edi, eax
jne 0x59763b
cmp ebx, 1
jne 0x5973e5
lea eax, [ebp - 0xd]
nop
cmp eax, 2
ja 0x597387
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0xffffffff
mov eax, dword [esp + 0x98]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], esi
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x20], eax
call sym.crypto_rsa.VerifyPSS
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ecx
add esp, 0x74
ret
mov eax, dword [esp + 0x98]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], esi
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x1c], eax
call sym.crypto_rsa.VerifyPKCS1v15
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ecx
add esp, 0x74
ret
mov dword [esp], ebx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 8], eax
call sym.crypto_x509.signaturePublicKeyAlgoMismatchError
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ecx
add esp, 0x74
ret
cmp eax, 0x8c7bd38d
jne 0x597505
lea eax, [0x60b2a0]
cmp edi, eax
jne 0x59763b
cmp ebx, 3
jne 0x5974d4
mov eax, dword [esp + 0x98]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x18], eax
call sym.crypto_ecdsa.VerifyASN1
movzx eax, byte [esp + 0x1c]
test al, al
je 0x59749b
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
add esp, 0x74
ret
lea eax, [0x5fa0e0]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x20
lea ecx, [0x6208b8]
mov dword [eax], ecx
lea ecx, [0x6681c0]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], eax
add esp, 0x74
ret
mov dword [esp], ebx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 8], eax
call sym.crypto_x509.signaturePublicKeyAlgoMismatchError
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ecx
add esp, 0x74
ret
cmp eax, 0xc0d9e4a4
jne 0x59763b
lea eax, [0x5f8440]
cmp edi, eax
jne 0x59763b
mov edx, dword [esp + 0x98]
mov ebp, dword [edx]
mov edi, dword [edx + 4]
mov edx, dword [edx + 8]
cmp ebx, 4
jne 0x5975f3
mov dword [esp], ebp
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
call sym.crypto_ed25519.verify
movzx eax, byte [esp + 0x34]
test al, al
je 0x5975ba
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
add esp, 0x74
ret
lea eax, [0x5fa0e0]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x22
lea ecx, [0x6217c2]
mov dword [eax], ecx
lea ecx, [0x6681c0]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], eax
add esp, 0x74
ret
mov dword [esp], ebp
mov dword [esp + 4], edi
mov dword [esp + 8], edx
call sym.runtime.convTslice
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x38]
mov dword [esp], ecx
lea ecx, [0x5f8440]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call sym.crypto_x509.signaturePublicKeyAlgoMismatchError
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ecx
add esp, 0x74
ret
mov eax, dword [0x77f4c0]
mov ecx, dword [0x77f4c4]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ecx
add esp, 0x74
ret
mov eax, dword [0x77f4c0]
mov ecx, dword [0x77f4c4]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ecx
add esp, 0x74
ret
mov dword [esp], ebp
call sym.runtime.convT32
mov eax, dword [esp + 4]
lea ecx, [0x668224]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], eax
add esp, 0x74
ret
mov eax, edx
call sym.runtime.panicIndexU
nop
call sym.runtime.morestack_noctxt
jmp sym.crypto_x509.checkSignature