Function at 0x589f30
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 0x58a55a
sub esp, 0x6c
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0xc]
mov ebx, dword [edx + 4]
mov ebp, dword [esp + 0x70]
cmp ebp, 2
jg 0x58a193
cmp ebp, 1
je 0x58a081
cmp ebp, 2
jne 0x58a3e5
mov dword [esp + 0x68], eax
mov dword [esp], 0
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 8], eax
call sym.runtime.slicebytetostring
mov eax, dword [esp + 0xc]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x24], ecx
mov dword [esp], eax
mov dword [esp + 4], ecx
call sym.crypto_x509.isIA5String
mov eax, dword [esp + 8]
test eax, eax
jne 0x58a051
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
inc edx
mov ebx, dword [eax]
cmp ecx, edx
jae 0x58a019
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
lea eax, [0x5f3f60]
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 + 0x68]
mov dword [ebx + 8], eax
mov eax, dword [0x7c5080]
test eax, eax
je 0x58a013
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, ecx
mov dword [eax + 4], edx
lea eax, [ebx + edx*8 - 4]
mov ecx, dword [esp + 0x24]
mov dword [eax], ecx
mov eax, dword [0x7c5080]
lea ecx, [ebx + edx*8 - 8]
test eax, eax
jne 0x58a03a
mov eax, dword [esp + 0x38]
jmp 0x58a04a
call sym.runtime.gcWriteBarrier2
mov eax, dword [esp + 0x38]
mov dword [edi], eax
mov edx, dword [ecx]
mov dword [edi + 4], edx
mov dword [ecx], eax
jmp 0x58a3e5
lea eax, [0x61fc62]
mov dword [esp], eax
mov dword [esp + 4], 0x1e
call sym.errors.New
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
add esp, 0x6c
ret
mov dword [esp + 0x64], ebx
mov dword [esp], 0
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 8], eax
call sym.runtime.slicebytetostring
mov eax, dword [esp + 0xc]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x2c], ecx
mov dword [esp], eax
mov dword [esp + 4], ecx
call sym.crypto_x509.isIA5String
mov eax, dword [esp + 8]
test eax, eax
jne 0x58a163
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
inc edx
mov ebx, dword [eax]
cmp ecx, edx
jae 0x58a12b
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
lea eax, [0x5f3f60]
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 + 0x64]
mov dword [ebx + 8], eax
mov eax, dword [0x7c5080]
test eax, eax
je 0x58a125
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, ecx
mov dword [eax + 4], edx
lea eax, [ebx + edx*8 - 4]
mov ecx, dword [esp + 0x2c]
mov dword [eax], ecx
mov eax, dword [0x7c5080]
lea ecx, [ebx + edx*8 - 8]
test eax, eax
jne 0x58a14c
mov eax, dword [esp + 0x40]
jmp 0x58a15c
call sym.runtime.gcWriteBarrier2
mov eax, dword [esp + 0x40]
mov dword [edi], eax
mov edx, dword [ecx]
mov dword [edi + 4], edx
mov dword [ecx], eax
jmp 0x58a3e5
lea eax, [0x620ffe]
mov dword [esp], eax
mov dword [esp + 4], 0x21
call sym.errors.New
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
add esp, 0x6c
ret
cmp ebp, 6
je 0x58a2c3
cmp ebp, 7
jne 0x58a3e5
mov eax, dword [esp + 0x78]
cmp eax, 4
je 0x58a1b7
cmp eax, 0x10
jne 0x58a25f
mov ecx, dword [edx + 0x10]
mov edx, dword [ecx + 8]
mov ebx, dword [ecx + 4]
inc ebx
mov ebp, dword [ecx]
cmp edx, ebx
jae 0x58a222
mov dword [esp + 0x60], ecx
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x60fae0]
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 + 0x60]
mov dword [ebx + 8], eax
mov eax, dword [0x7c5080]
test eax, eax
je 0x58a216
call sym.runtime.gcWriteBarrier2
mov dword [edi], ecx
mov eax, dword [ebx]
mov dword [edi + 4], eax
mov dword [ebx], ecx
mov eax, dword [esp + 0x78]
mov ebp, ecx
mov ecx, ebx
mov ebx, edx
mov dword [ecx + 4], ebx
lea ecx, [ebx + ebx*2]
mov dword [ebp + ecx*4 - 8], eax
mov eax, dword [esp + 0x7c]
mov dword [ebp + ecx*4 - 4], eax
mov eax, dword [0x7c5080]
test eax, eax
jne 0x58a244
mov eax, dword [esp + 0x74]
jmp 0x58a256
call sym.runtime.gcWriteBarrier2
mov eax, dword [esp + 0x74]
mov dword [edi], eax
mov edx, dword [ebp + ecx*4 - 0xc]
mov dword [edi + 4], edx
mov dword [ebp + ecx*4 - 0xc], eax
jmp 0x58a3e5
mov dword [esp], eax
call sym.strconv.Itoa
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp], 0
lea edx, [0x6238e1]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x28
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
call sym.runtime.concatstring2
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
call sym.errors.New
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
add esp, 0x6c
ret
mov dword [esp + 0x5c], ecx
mov dword [esp], 0
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 8], eax
call sym.runtime.slicebytetostring
mov eax, dword [esp + 0xc]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
mov dword [esp], eax
mov dword [esp + 4], ecx
call sym.crypto_x509.isIA5String
mov eax, dword [esp + 8]
test eax, eax
jne 0x58a52a
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], ecx
call sym.net_url.Parse
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
test eax, eax
jne 0x58a47d
mov eax, dword [esp + 8]
mov dword [esp + 0x34], eax
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x58a35e
mov edx, dword [eax + 0x14]
mov dword [esp], edx
mov dword [esp + 4], ecx
call sym.crypto_x509.domainToReverseLabels
movzx eax, byte [esp + 0x14]
test al, al
je 0x58a3ff
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx + 8]
mov ebx, dword [ecx + 4]
inc ebx
mov ebp, dword [ecx]
cmp edx, ebx
jae 0x58a3c6
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x60fc20]
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 + 0x5c]
mov dword [ebx + 8], eax
mov eax, dword [0x7c5080]
test eax, eax
je 0x58a3ba
call sym.runtime.gcWriteBarrier2
mov dword [edi], ecx
mov eax, dword [ebx]
mov dword [edi + 4], eax
mov dword [ebx], ecx
mov eax, dword [esp + 0x34]
mov ebp, ecx
mov ecx, ebx
mov ebx, edx
mov dword [ecx + 4], ebx
mov ecx, dword [0x7c5080]
test ecx, ecx
je 0x58a3e1
call sym.runtime.gcWriteBarrier2
mov dword [edi], eax
mov ecx, dword [ebp + ebx*4 - 4]
mov dword [edi + 4], ecx
mov dword [ebp + ebx*4 - 4], eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
add esp, 0x6c
ret
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
call sym.runtime.convTstring
mov eax, dword [esp + 8]
lea ecx, [0x5f3f60]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
lea eax, [0x623de3]
mov dword [esp], eax
mov dword [esp + 4], 0x29
lea eax, [esp + 0x44]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call sym.fmt.Errorf
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
add esp, 0x6c
ret
mov dword [esp + 0x28], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
call sym.runtime.convTstring
mov eax, dword [esp + 8]
lea ecx, [0x5f3f60]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x58a4d6
mov eax, dword [eax + 4]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x58], eax
lea eax, [0x61f5ca]
mov dword [esp], eax
mov dword [esp + 4], 0x1d
lea eax, [esp + 0x4c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call sym.fmt.Errorf
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
add esp, 0x6c
ret
lea eax, [0x625958]
mov dword [esp], eax
mov dword [esp + 4], 0x30
call sym.errors.New
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
add esp, 0x6c
ret
call sym.runtime.morestack
jmp sym.crypto_x509.processExtensions.parseSANExtension.func1