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

Disassembly:
mov ecx, dword [0x8c8664]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5b671f
sub esp, 0x74
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 0x50]
mov ebx, dword [edx + 0x28]
mov dword [esp + 0x70], ebx
mov ebp, dword [edx + 0x1c]
mov esi, dword [edx + 0x14]
mov edi, dword [edx + 0x20]
mov dword [esp + 0x68], edi
mov ebx, dword [edx + 0x24]
mov dword [esp + 0x48], ebx
mov ebx, dword [edx + 0x18]
mov edi, dword [edx + 0x10]
test ecx, ecx
je 0x5b6255
mov dword [esp + 0x60], edi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x64], ebp
mov ecx, dword [edx + 8]
mov dword [esp + 0x34], ecx
mov ebx, dword [edx + 4]
mov dword [esp + 0x4c], ebx
mov edx, dword [edx + 0xc]
mov dword [esp + 0x38], edx
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
call sym.crypto_x509.alreadyInChain
movzx eax, byte [esp + 0x10]
test al, al
je 0x5b6259
add esp, 0x74
ret
mov eax, dword [esp + 0x60]
mov ecx, dword [eax]
test ecx, ecx
jne 0x5b6297
lea eax, [0x6726c0]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [0x8c87a0]
mov ecx, dword [esp + 4]
test eax, eax
jne 0x5b6285
mov eax, dword [esp + 0x60]
jmp 0x5b6295
call sym.runtime.gcWriteBarrier2
mov dword [edi], ecx
mov eax, dword [esp + 0x60]
mov edx, dword [eax]
mov dword [edi + 4], edx
mov dword [eax], ecx
mov ecx, dword [eax]
inc dword [ecx]
mov ecx, dword [eax]
cmp dword [ecx], 0x64
jle 0x5b62ed
lea eax, [0x67ca80]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x4e
lea ecx, [0x6c0fab]
mov dword [eax], ecx
lea ecx, [0x713830]
mov edx, dword [esp + 0x6c]
mov dword [edx], ecx
mov ecx, dword [0x8c87a0]
test ecx, ecx
je 0x5b62e6
call sym.runtime.gcWriteBarrier2
mov dword [edi], eax
mov ecx, dword [edx + 4]
mov dword [edi + 4], ecx
mov dword [edx + 4], eax
add esp, 0x74
ret
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 4], eax
call sym.crypto_x509._Certificate_.CheckSignatureFrom
mov eax, dword [esp + 8]
test eax, eax
je 0x5b6353
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx]
test edx, edx
jne 0x5b634f
mov edx, dword [esp + 0xc]
mov dword [ecx], eax
mov eax, dword [0x8c87a0]
test eax, eax
jne 0x5b632d
mov eax, dword [esp + 0x7c]
mov ebx, dword [esp + 0x68]
jmp 0x5b634a
call sym.runtime.gcWriteBarrier4
mov dword [edi], edx
mov eax, dword [ecx + 4]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x7c]
mov dword [edi + 8], eax
mov ebx, dword [esp + 0x68]
mov ebp, dword [ebx]
mov dword [edi + 0xc], ebp
mov dword [ecx + 4], edx
mov dword [ebx], eax
add esp, 0x74
ret
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
mov ecx, dword [esp + 0x78]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x4c]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x34]
mov dword [esp + 0xc], ebx
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x10], ebp
mov esi, dword [esp + 0x48]
mov dword [esp + 0x14], esi
call sym.crypto_x509._Certificate_.isValid
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x6c]
mov dword [edx], eax
mov ebx, dword [0x8c87a0]
test ebx, ebx
je 0x5b63ac
call sym.runtime.gcWriteBarrier2
mov dword [edi], ecx
mov ebx, dword [edx + 4]
mov dword [edi + 4], ebx
mov dword [edx + 4], ecx
test eax, eax
je 0x5b63f9
mov edx, dword [esp + 0x64]
mov ebx, dword [edx]
test ebx, ebx
jne 0x5b63f5
mov dword [edx], eax
mov eax, dword [0x8c87a0]
test eax, eax
jne 0x5b63d3
mov eax, dword [esp + 0x7c]
mov ebx, dword [esp + 0x68]
jmp 0x5b63f0
call sym.runtime.gcWriteBarrier4
mov dword [edi], ecx
mov eax, dword [edx + 4]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x7c]
mov dword [edi + 8], eax
mov ebx, dword [esp + 0x68]
mov ebp, dword [ebx]
mov dword [edi + 0xc], ebp
mov dword [edx + 4], ecx
mov dword [ebx], eax
add esp, 0x74
ret
mov eax, dword [esp + 0x80]
test eax, eax
je 0x5b6477
mov ecx, dword [eax]
mov ebx, dword [esp + 0x4c]
mov dword [esp], ebx
mov ebp, dword [esp + 0x34]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x38]
mov dword [esp + 8], esi
mov edx, eax
call ecx
mov eax, dword [esp + 0xc]
test eax, eax
je 0x5b6473
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx]
test edx, edx
jne 0x5b646f
mov edx, dword [esp + 0x10]
mov dword [ecx], eax
mov eax, dword [0x8c87a0]
test eax, eax
jne 0x5b644d
mov eax, dword [esp + 0x7c]
mov ebx, dword [esp + 0x68]
jmp 0x5b646a
call sym.runtime.gcWriteBarrier4
mov dword [edi], edx
mov eax, dword [ecx + 4]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x7c]
mov dword [edi + 8], eax
mov ebx, dword [esp + 0x68]
mov ebp, dword [ebx]
mov dword [edi + 0xc], ebp
mov dword [ecx + 4], edx
mov dword [ebx], eax
add esp, 0x74
ret
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x78]
cmp eax, 1
je 0x5b658e
cmp eax, 2
jne 0x5b6710
mov eax, dword [esp + 0x34]
lea ecx, [eax + 1]
mov dword [esp + 0x30], ecx
lea edx, [0x69fb00]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov edx, dword [esp + 0x4c]
mov dword [esp + 0xc], edx
call sym.runtime.makeslicecopy
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
cmp eax, ecx
jae 0x5b6719
mov edx, dword [0x8c87a0]
mov ebx, dword [esp + 0x10]
test edx, edx
jne 0x5b64da
mov edx, dword [esp + 0x7c]
jmp 0x5b64eb
call sym.runtime.gcWriteBarrier2
mov edx, dword [esp + 0x7c]
mov dword [edi], edx
mov ebp, dword [ebx + eax*4]
mov dword [edi + 4], ebp
mov dword [ebx + eax*4], edx
mov eax, dword [esp + 0x70]
mov edx, dword [eax + 8]
mov ebp, dword [eax + 4]
inc ebp
mov esi, dword [eax]
cmp edx, ebp
jae 0x5b655e
mov dword [esp + 0x5c], ebx
mov dword [esp], esi
mov dword [esp + 4], ebp
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x669d60]
mov dword [esp + 0x10], eax
call sym.runtime.growslice
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x70]
mov dword [ebx + 8], eax
mov eax, dword [0x8c87a0]
test eax, eax
je 0x5b654e
call sym.runtime.gcWriteBarrier2
mov dword [edi], ecx
mov eax, dword [ebx]
mov dword [edi + 4], eax
mov dword [ebx], ecx
mov eax, ebx
mov ebx, dword [esp + 0x5c]
mov esi, ecx
mov ebp, edx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], ebp
lea eax, [ebp + ebp*2]
mov dword [esi + eax*4 - 8], ecx
mov dword [esi + eax*4 - 4], ecx
mov ecx, dword [0x8c87a0]
test ecx, ecx
je 0x5b6585
call sym.runtime.gcWriteBarrier2
mov dword [edi], ebx
mov ecx, dword [esi + eax*4 - 0xc]
mov dword [edi + 4], ecx
mov dword [esi + eax*4 - 0xc], ebx
jmp 0x5b6710
mov eax, dword [esp + 0x34]
lea ecx, [eax + 1]
mov dword [esp + 0x2c], ecx
lea edx, [0x69fb00]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov edx, dword [esp + 0x4c]
mov dword [esp + 0xc], edx
call sym.runtime.makeslicecopy
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
jae 0x5b6714
mov edx, dword [0x8c87a0]
mov ebx, dword [esp + 0x10]
test edx, edx
jne 0x5b65db
mov edx, dword [esp + 0x7c]
jmp 0x5b65ec
call sym.runtime.gcWriteBarrier2
mov edx, dword [esp + 0x7c]
mov dword [edi], edx
mov ebp, dword [ebx + eax*4]
mov dword [edi + 4], ebp
mov dword [ebx + eax*4], edx
mov eax, dword [esp + 0x60]
mov eax, dword [eax]
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x14], eax
call sym.crypto_x509._Certificate_.buildChains
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x6c]
mov dword [ebp], eax
mov eax, dword [0x8c87a0]
test eax, eax
je 0x5b6643
call sym.runtime.gcWriteBarrier2
mov dword [edi], ebx
mov eax, dword [ebp + 4]
mov dword [edi + 4], eax
mov dword [ebp + 4], ebx
mov eax, dword [esp + 0x70]
mov ebx, dword [eax + 4]
lea ebp, [ebx + edx]
mov esi, dword [eax + 8]
mov edi, dword [eax]
cmp esi, ebp
jae 0x5b669b
mov dword [esp + 0x3c], edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x44], ebx
mov dword [esp], edi
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
mov dword [esp + 0xc], edx
lea eax, [0x669d60]
mov dword [esp + 0x10], eax
call sym.runtime.growslice
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], ebp
mov dword [esp + 0x58], edi
lea eax, [0x669d60]
mov dword [esp], eax
sub ebp, ebx
sub esi, ebx
lea ebx, [ebx + ebx*2]
xchg esi, ebx
neg ebx
xchg esi, ebx
shl ebx, 2
sar esi, 0x1f
and ebx, esi
add ebx, edi
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
call sym.runtime.typedslicecopy
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x70]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x44]
mov dword [ecx + 8], eax
mov eax, dword [0x8c87a0]
test eax, eax
jne 0x5b66fe
mov eax, dword [esp + 0x58]
jmp 0x5b670e
call sym.runtime.gcWriteBarrier2
mov eax, dword [esp + 0x58]
mov dword [edi], eax
mov edx, dword [ecx]
mov dword [edi + 4], edx
mov dword [ecx], eax
add esp, 0x74
ret
call sym.runtime.panicIndex
call sym.runtime.panicIndex
nop
call sym.runtime.morestack
jmp sym.crypto_x509._Certificate_.buildChains.func1