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

Disassembly:
mov ecx, dword [0x7c4fec]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0xf8]
cmp eax, dword [ecx + 8]
jbe 0x598286
sub esp, 0x178
mov ecx, dword [esp + 0x180]
mov edx, dword [esp + 0x17c]
xor eax, eax
xor ebx, ebx
xor ebp, ebp
xor esi, esi
jmp 0x597748
lea esi, [esp + 0x128]
call fcn.0046aeb6
mov ecx, dword [esp + 0x98]
inc ecx
mov edx, dword [esp + 0x180]
mov esi, dword [esp + 0x17c]
mov edx, esi
mov esi, eax
mov eax, ecx
mov ecx, dword [esp + 0x180]
cmp ecx, eax
jle 0x597960
mov dword [esp + 0x98], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0xac], ebp
lea edi, [edx + eax*8]
mov edx, dword [edi]
mov dword [esp + 0xb0], edx
mov edi, dword [edi + 4]
mov dword [esp + 0x38], edi
mov dword [esp + 0x48], eax
xor eax, eax
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x48]
jmp 0x5981f0
mov dword [esp + 0x14c], 0
mov dword [esp + 0x150], 0
mov dword [esp], edx
mov dword [esp + 4], edi
call sym.runtime.convTstring
mov eax, dword [esp + 8]
lea ecx, [0x5f3f60]
mov dword [esp + 0x14c], ecx
mov dword [esp + 0x150], eax
lea eax, [0x624261]
mov dword [esp], eax
mov dword [esp + 4], 0x2a
lea edx, [esp + 0x14c]
mov dword [esp + 8], edx
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 edx, dword [esp + 0xb0]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0xac]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x38]
mov dword [esp + 0xa4], ecx
mov ecx, eax
mov eax, dword [esp + 0x98]
jmp 0x59783b
xor ecx, ecx
xor ecx, ecx
mov dword [esp + 0xa4], ecx
xor ecx, ecx
test ecx, ecx
jne 0x598249
mov dword [esp], 0
mov dword [esp + 4], edx
mov dword [esp + 8], edi
call sym.runtime.stringtoslicebyte
mov eax, dword [esp + 0x30]
inc eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x168], ecx
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
lea edi, [esp + 0x128]
mov ebp, eax
xor eax, eax
call fcn.0046a9f7
mov dword [esp + 0x12c], 2
mov dword [esp + 0x128], 2
mov eax, dword [esp + 0x168]
mov dword [esp + 0x134], eax
mov dword [esp + 0x138], edx
mov dword [esp + 0x13c], ebx
mov eax, dword [esp + 0x34]
cmp eax, ebp
jb 0x5978c8
mov eax, ebp
mov ebp, dword [esp + 0xac]
mov ebx, dword [esp + 0x34]
jmp 0x5978fd
mov ecx, dword [esp + 0xac]
mov dword [esp], ecx
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
lea eax, [0x606ca0]
mov dword [esp + 0x10], eax
call sym.runtime.growslice
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [0x7c5120]
lea edx, [eax + eax*8]
lea edi, [ebp + edx*4 - 0x24]
test ecx, ecx
je 0x597719
mov dword [esp + 0x158], ebp
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], ebx
mov dword [esp + 0x154], edi
lea eax, [0x606ca0]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x128]
mov dword [esp + 8], eax
call sym.runtime.wbMove
mov eax, dword [esp + 0x74]
mov ebx, dword [esp + 0x70]
mov ebp, dword [esp + 0x158]
mov edi, dword [esp + 0x154]
jmp 0x597719
mov ecx, dword [esp + 0x18c]
mov edx, dword [esp + 0x188]
xor eax, eax
jmp 0x5979a1
lea esi, [esp + 0x104]
call fcn.0046aeb6
mov ecx, dword [esp + 0x98]
inc ecx
mov edx, dword [esp + 0x18c]
mov esi, dword [esp + 0x188]
mov edx, esi
mov esi, eax
mov eax, ecx
mov ecx, dword [esp + 0x18c]
cmp ecx, eax
jle 0x597bce
mov dword [esp + 0x94], ebx
mov dword [esp + 0x90], esi
mov dword [esp + 0x174], ebp
mov dword [esp + 0x98], eax
lea edi, [edx + eax*8]
mov edx, dword [edi]
mov dword [esp + 0xb8], edx
mov edi, dword [edi + 4]
mov dword [esp + 0x44], edi
mov dword [esp + 0x50], eax
xor eax, eax
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x50]
jmp 0x59813f
mov dword [esp + 0x14c], 0
mov dword [esp + 0x150], 0
mov dword [esp], edx
mov dword [esp + 4], edi
call sym.runtime.convTstring
mov eax, dword [esp + 8]
lea ecx, [0x5f3f60]
mov dword [esp + 0x14c], ecx
mov dword [esp + 0x150], eax
lea eax, [0x624261]
mov dword [esp], eax
mov dword [esp + 4], 0x2a
lea edx, [esp + 0x14c]
mov dword [esp + 8], edx
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 edx, dword [esp + 0xb8]
mov ebx, dword [esp + 0x94]
mov ebp, dword [esp + 0x174]
mov esi, dword [esp + 0x90]
mov edi, dword [esp + 0x44]
mov dword [esp + 0xa0], ecx
mov ecx, eax
mov eax, dword [esp + 0x98]
jmp 0x597aa0
xor ecx, ecx
xor ecx, ecx
mov dword [esp + 0xa0], ecx
xor ecx, ecx
test ecx, ecx
jne 0x59819e
mov dword [esp], 0
mov dword [esp + 4], edx
mov dword [esp + 8], edi
call sym.runtime.stringtoslicebyte
mov eax, dword [esp + 0x90]
inc eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x168], ecx
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
lea edi, [esp + 0x104]
mov ebp, eax
xor eax, eax
call fcn.0046a9f7
mov dword [esp + 0x108], 1
mov dword [esp + 0x104], 2
mov eax, dword [esp + 0x168]
mov dword [esp + 0x110], eax
mov dword [esp + 0x114], edx
mov dword [esp + 0x118], ebx
mov eax, dword [esp + 0x94]
cmp eax, ebp
jb 0x597b36
mov eax, ebp
mov ebp, dword [esp + 0x174]
mov ebx, dword [esp + 0x94]
jmp 0x597b6b
mov ecx, dword [esp + 0x174]
mov dword [esp], ecx
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
lea eax, [0x606ca0]
mov dword [esp + 0x10], eax
call sym.runtime.growslice
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [0x7c5120]
lea edx, [eax + eax*8]
lea edi, [ebp + edx*4 - 0x24]
test ecx, ecx
je 0x597972
mov dword [esp + 0x15c], ebp
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x158], edi
lea eax, [0x606ca0]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x104]
mov dword [esp + 8], eax
call sym.runtime.wbMove
mov eax, dword [esp + 0x7c]
mov ebx, dword [esp + 0x78]
mov ebp, dword [esp + 0x15c]
mov edi, dword [esp + 0x158]
jmp 0x597972
mov ecx, dword [esp + 0x194]
mov edx, dword [esp + 0x198]
jmp 0x597c0e
lea esi, [esp + 0xe0]
call fcn.0046aeb6
mov ecx, dword [esp + 0x170]
add ecx, 0xc
mov edx, ecx
mov ecx, dword [esp + 0x98]
dec ecx
mov ebp, dword [esp + 0x30]
mov ebp, eax
mov esi, dword [esp + 0x30]
mov edi, edx
mov edx, ecx
mov ecx, edi
test edx, edx
jle 0x597d84
mov dword [esp + 0x98], edx
mov dword [esp + 0x170], ecx
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov edx, dword [ecx + 8]
cmp eax, 4
jne 0x597c42
mov dword [esp + 0x9c], edi
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], eax
jmp 0x597c7e
cmp eax, 0x10
jne 0x597c61
mov dword [esp + 0x16c], ebp
mov dword [esp + 0x58], eax
xor eax, eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x58]
jmp 0x5980ab
mov dword [esp + 0x60], eax
xor eax, eax
mov dword [esp + 0x9c], eax
xor eax, eax
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x9c]
test ecx, ecx
je 0x597c93
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov edi, ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0xb4], edi
lea edi, [esp + 0xe0]
xor eax, eax
call fcn.0046a9f7
lea ecx, [esi + 1]
mov dword [esp + 0xe4], 7
mov dword [esp + 0xe0], 2
mov eax, ebp
mov ebp, dword [esp + 0xb4]
mov dword [esp + 0xec], ebp
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0xf0], ebp
mov dword [esp + 0xf4], edx
cmp ebx, ecx
jae 0x597d1b
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
lea eax, [0x606ca0]
mov dword [esp + 0x10], eax
call sym.runtime.growslice
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov eax, ebp
mov dword [esp + 0x30], ecx
mov edx, dword [0x7c5120]
lea ebp, [ecx + ecx*8]
lea edi, [eax + ebp*4 - 0x24]
test edx, edx
je 0x597bde
mov dword [esp + 0x160], eax
mov dword [esp + 0x84], ebx
mov dword [esp + 0x174], edi
lea eax, [0x606ca0]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0xe0]
mov dword [esp + 8], eax
call sym.runtime.wbMove
mov eax, dword [esp + 0x160]
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x84]
mov edi, dword [esp + 0x174]
jmp 0x597bde
xor eax, eax
jmp 0x597da0
lea esi, [esp + 0xbc]
call fcn.0046aeb6
mov ecx, dword [esp + 0x98]
inc ecx
mov esi, eax
mov eax, ecx
mov ecx, dword [esp + 0x1a4]
cmp ecx, eax
jle 0x597faa
mov dword [esp + 0x98], eax
mov dword [esp + 0xac], ebp
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], ebx
mov ecx, dword [esp + 0x1a0]
mov edx, dword [ecx + eax*4]
mov dword [esp], edx
call sym.net_url._URL_.String
mov eax, dword [esp + 4]
mov dword [esp + 0xa8], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x2c], ecx
xor edx, edx
jmp 0x59801e
mov dword [esp + 0x14c], 0
mov dword [esp + 0x150], 0
mov dword [esp], eax
mov dword [esp + 4], ecx
call sym.runtime.convTstring
mov eax, dword [esp + 8]
lea ecx, [0x5f3f60]
mov dword [esp + 0x14c], ecx
mov dword [esp + 0x150], eax
lea eax, [0x624261]
mov dword [esp], eax
mov dword [esp + 4], 0x2a
lea edx, [esp + 0x14c]
mov dword [esp + 8], edx
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 edx, eax
mov ebx, ecx
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0x2c]
jmp 0x597e79
xor edx, edx
xor ebx, ebx
test edx, edx
jne 0x598062
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call sym.runtime.stringtoslicebyte
mov eax, dword [esp + 0x30]
inc eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x168], ecx
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
lea edi, [esp + 0xbc]
mov ebp, eax
xor eax, eax
call fcn.0046a9f7
mov dword [esp + 0xc0], 6
mov dword [esp + 0xbc], 2
mov eax, dword [esp + 0x168]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], edx
mov dword [esp + 0xd0], ebx
mov eax, dword [esp + 0x34]
cmp eax, ebp
jb 0x597f06
mov eax, ebp
mov ebp, dword [esp + 0xac]
mov ebx, dword [esp + 0x34]
jmp 0x597f3b
mov ecx, dword [esp + 0xac]
mov dword [esp], ecx
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
lea eax, [0x606ca0]
mov dword [esp + 0x10], eax
call sym.runtime.growslice
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [0x7c5120]
lea edx, [eax + eax*8]
lea edi, [ebp + edx*4 - 0x24]
test ecx, ecx
je 0x597d88
mov dword [esp + 0x164], ebp
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], ebx
mov dword [esp + 0x174], edi
lea eax, [0x606ca0]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0xbc]
mov dword [esp + 8], eax
call sym.runtime.wbMove
mov eax, dword [esp + 0x8c]
mov ebx, dword [esp + 0x88]
mov ebp, dword [esp + 0x164]
mov edi, dword [esp + 0x174]
jmp 0x597d88
mov dword [esp], ebp
mov dword [esp + 4], esi
mov dword [esp + 8], ebx
call sym.runtime.convTslice
mov eax, dword [esp + 0xc]
lea ecx, [0x5edf20]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call sym.encoding_asn1.MarshalWithParams
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x1ac], eax
mov dword [esp + 0x1b0], edx
mov dword [esp + 0x1b4], ebx
mov dword [esp + 0x1b8], ecx
mov dword [esp + 0x1bc], ebp
add esp, 0x178
ret
cmp edx, ecx
jge 0x597e75
movzx ebx, byte [eax + edx]
cmp ebx, 0x80
jge 0x598035
inc edx
jmp 0x598058
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call sym.runtime.decoderune
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0x2c]
cmp ebx, 0x7f
jle 0x59801e
jmp 0x597df1
mov dword [esp + 0x1ac], 0
mov dword [esp + 0x1b0], 0
mov dword [esp + 0x1b4], 0
mov dword [esp + 0x1b8], edx
mov dword [esp + 0x1bc], ebx
add esp, 0x178
ret
inc ecx
mov ebp, dword [esp + 0x16c]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x170]
mov ecx, dword [esp + 0x40]
cmp ecx, 0xa
jge 0x5980d1
movzx ebp, byte [edi + ecx]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x598098
mov ecx, dword [esp + 0x170]
mov ebp, dword [esp + 0x16c]
jmp 0x597c61
cmp byte [edi + 0xa], 0xff
jne 0x59811e
cmp byte [edi + 0xb], 0xff
jne 0x598112
lea ecx, [edi + 0xc]
lea ebp, [edx - 0xc]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x68], eax
mov eax, 4
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x170]
mov ebp, dword [esp + 0x16c]
mov eax, dword [esp + 0x68]
jmp 0x597c7e
mov ecx, dword [esp + 0x170]
jmp 0x597c61
mov ecx, dword [esp + 0x170]
jmp 0x597c61
mov eax, dword [esp + 0x98]
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x18c]
mov ecx, dword [esp + 0x80]
cmp ecx, edi
jge 0x597a93
movzx eax, byte [ecx + edx]
cmp eax, 0x80
jge 0x59815c
inc ecx
jmp 0x598194
mov dword [esp], edx
mov dword [esp + 4], edi
mov dword [esp + 8], ecx
call sym.runtime.decoderune
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xb8]
mov ebx, dword [esp + 0x94]
mov ebp, dword [esp + 0x174]
mov esi, dword [esp + 0x90]
mov edi, dword [esp + 0x44]
cmp eax, 0x7f
jle 0x59812a
jmp 0x5979ee
mov dword [esp + 0x1ac], 0
mov dword [esp + 0x1b0], 0
mov dword [esp + 0x1b4], 0
mov dword [esp + 0x1b8], ecx
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x1bc], eax
add esp, 0x178
ret
mov eax, dword [esp + 0x98]
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x180]
mov ecx, dword [esp + 0x80]
cmp ecx, edi
jge 0x59782e
movzx eax, byte [ecx + edx]
cmp eax, 0x80
jge 0x59820d
inc ecx
jmp 0x59823f
mov dword [esp], edx
mov dword [esp + 4], edi
mov dword [esp + 8], ecx
call sym.runtime.decoderune
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xb0]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0xac]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x38]
cmp eax, 0x7f
jle 0x5981db
jmp 0x59778f
mov dword [esp + 0x1ac], 0
mov dword [esp + 0x1b0], 0
mov dword [esp + 0x1b4], 0
mov dword [esp + 0x1b8], ecx
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x1bc], eax
add esp, 0x178
ret
call sym.runtime.morestack_noctxt
jmp sym.crypto_x509.marshalSANs