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

Disassembly:
mov ecx, dword [0x911770]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5c177a
sub esp, 0x5c
mov edx, dword [esp + 0x60]
test edx, edx
je 0x5c150c
mov ecx, dword [esp + 0x64]
test ecx, ecx
je 0x5c150c
jl 0x5c1774
mov eax, 4
mul ecx
jo 0x5c176f
mov edx, dword [esp + 0x60]
mov ebx, edx
neg edx
cmp eax, edx
ja 0x5c176f
lea eax, [ecx - 1]
cmp ecx, eax
jbe 0x5c176a
mov edx, dword [ebx + ecx*4 - 4]
mov eax, dword [edx + 0xc]
test eax, eax
jl 0x5c1765
mov dword [esp + 0x4c], edx
mov ebx, 4
mov ecx, eax
mul ebx
jo 0x5c175f
mov edx, dword [esp + 0x4c]
mov ebx, dword [edx + 0x10]
mov ebp, ebx
neg ebx
cmp eax, ebx
ja 0x5c174e
mov dword [esp + 0x40], ecx
mov dword [esp + 0x58], ebp
xor eax, eax
xor ebx, ebx
xor esi, esi
xor edi, edi
jmp 0x5c1572
lea eax, [0x6b2a20]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x1a
lea ecx, [0x6f12c3]
mov dword [eax], ecx
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
lea ecx, [0x75790c]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
add esp, 0x5c
ret
mov dword [esi + edx*4 - 4], ecx
mov eax, dword [esp + 0x28]
inc eax
mov ecx, dword [esp + 0x40]
mov ebp, dword [esp + 0x58]
mov edi, dword [esp + 0x4c]
mov edi, edx
mov edx, dword [esp + 0x4c]
cmp dword [edx + 0xc], eax
jle 0x5c1712
cmp eax, ecx
jae 0x5c1749
mov ebp, dword [ebp + eax*4]
mov ebp, dword [ebp + 4]
mov ecx, dword [ebp + 8]
test ecx, ecx
jl 0x5c1744
mov ebp, dword [ebp + 4]
mov dword [esp + 0x50], ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
cmp ecx, ebp
ja 0x5c1732
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x54], esi
mov ebp, dword [esp + 0x50]
test ebp, ebp
je 0x5c1650
test ecx, ecx
jne 0x5c15e6
mov dword [esp + 0x2c], eax
lea eax, [0x911620]
mov dword [esp + 0x44], eax
xor eax, eax
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x20], eax
jmp 0x5c1632
mov dword [esp + 0x34], ecx
lea eax, [0x911620]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], ecx
lea eax, [0x6a6300]
mov dword [esp + 0x10], eax
call sym.runtime.growslice
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x44], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
call sym.runtime.memmove
mov ecx, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
jmp 0x5c165c
xor ecx, ecx
xor ebp, ebp
xor ecx, ecx
mov dword [esp + 0x44], ecx
xor ecx, ecx
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
call sym.crypto_x509.ParseCertificate
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
test eax, eax
jne 0x5c16ea
mov edx, dword [esp + 0x38]
inc edx
mov ebx, dword [esp + 0x3c]
cmp ebx, edx
jb 0x5c168f
mov esi, dword [esp + 0x54]
jmp 0x5c16c9
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
lea eax, [0x6da340]
mov dword [esp + 0x10], eax
call sym.runtime.growslice
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x48]
mov ebp, dword [0x911a40]
test ebp, ebp
je 0x5c1557
call sym.runtime.gcWriteBarrier2
mov dword [edi], ecx
mov ebp, dword [esi + edx*4 - 4]
mov dword [edi + 4], ebp
jmp 0x5c1557
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
add esp, 0x5c
ret
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x5c
ret
mov eax, dword [esp + 0x50]
test eax, eax
je 0x5c173f
call sym.runtime.panicunsafeslicelen
call sym.runtime.panicunsafeslicenilptr
call sym.runtime.panicunsafeslicelen
call sym.runtime.panicIndex
mov eax, dword [edx + 0x10]
test eax, eax
je 0x5c175a
call sym.runtime.panicunsafeslicelen
call sym.runtime.panicunsafeslicenilptr
mov edx, dword [esp + 0x4c]
jmp 0x5c174e
call sym.runtime.panicunsafeslicelen
call sym.runtime.panicIndex
call sym.runtime.panicunsafeslicelen
call sym.runtime.panicunsafeslicelen
nop
call sym.runtime.morestack_noctxt
jmp sym.crypto_x509.extractSimpleChain