Function at 0x58eac0
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 0x58eeaf
sub esp, 0x70
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x58ec0f
cmp ecx, 1
je 0x58eba7
cmp ecx, 0x10
jne 0x58eb3f
mov eax, dword [esp + 0x74]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], 4
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
lea ecx, [0x605ba0]
mov dword [esp], ecx
lea ecx, [esp + 0x60]
mov dword [esp + 4], ecx
call sym.runtime.convT
mov eax, dword [esp + 8]
lea ecx, [0x668238]
mov edx, eax
mov eax, dword [esp + 0x78]
jmp 0x58ec13
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov eax, dword [esp + 0x74]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
lea ecx, [0x605c20]
mov dword [esp], ecx
lea ecx, [esp + 0x50]
mov dword [esp + 4], ecx
call sym.runtime.convT
mov eax, dword [esp + 8]
lea ecx, [0x668260]
mov edx, eax
mov eax, dword [esp + 0x78]
jmp 0x58ec13
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov eax, dword [esp + 0x74]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], 1
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
lea ecx, [0x605ba0]
mov dword [esp], ecx
lea ecx, [esp + 0x60]
mov dword [esp + 4], ecx
call sym.runtime.convT
mov eax, dword [esp + 8]
lea ecx, [0x668238]
mov edx, eax
mov eax, dword [esp + 0x78]
jmp 0x58ec13
xor ecx, ecx
xor edx, edx
test ecx, ecx
jne 0x58ed71
mov ecx, dword [esp + 0x7c]
test ecx, ecx
je 0x58ec83
mov edx, dword [ecx + 4]
test edx, edx
je 0x58ec83
mov edx, dword [esp + 0x74]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call sym.crypto_x509.checkChainSSLServerPolicy
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x58ec4c
mov eax, dword [esp + 0x78]
jmp 0x58ec83
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
add esp, 0x70
ret
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
mov dword [esp], ecx
mov dword [esp + 4], eax
call sym.crypto_x509.extractSimpleChain
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x58ed3a
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x58ece0
mov dword [esp + 0x44], ecx
mov edx, dword [esp + 8]
mov dword [esp + 0x4c], edx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x40], ebx
lea ebp, [ebx - 1]
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, 4
add ebp, edx
mov dword [esp + 0x48], ebp
lea esi, [ecx - 1]
mov dword [esp + 0x3c], esi
xor eax, eax
jmp 0x58eda5
lea eax, [0x5fa0e0]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x3d
lea ecx, [0x62754d]
mov dword [eax], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
lea ecx, [0x6681c0]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], eax
add esp, 0x70
ret
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
add esp, 0x70
ret
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], edx
add esp, 0x70
ret
inc eax
cmp eax, esi
jge 0x58ee7a
mov edi, dword [ebp + eax*4]
cmp dword [edi + 0x4c], 3
jne 0x58eda4
cmp eax, ecx
jae 0x58eea9
mov dword [esp + 0x38], eax
mov ecx, dword [edx + eax*4]
mov ebx, dword [ecx + 0x48]
mov ebp, dword [ecx + 0x10]
mov esi, dword [ecx + 0x14]
mov edx, dword [ecx + 0xc]
mov eax, dword [ecx + 0x40]
mov dword [esp + 0x30], eax
mov eax, dword [ecx + 0x44]
mov dword [esp + 0x34], eax
mov ecx, dword [ecx + 0x3c]
mov eax, dword [edi + 0x50]
mov edi, dword [edi + 0x54]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edi
mov byte [esp + 0x24], 1
call sym.crypto_x509.checkSignature
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x58ee43
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x48]
mov esi, dword [esp + 0x3c]
jmp 0x58eda4
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
add esp, 0x70
ret
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
add esp, 0x70
ret
call sym.runtime.panicIndex
nop
call sym.runtime.morestack_noctxt
jmp sym.crypto_x509.verifyChain