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

Disassembly:
mov ecx, dword [0x80b088]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x2c]
cmp eax, dword [ecx + 8]
jbe 0x586d1e
sub esp, 0xac
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
lea edx, [sym.golang.org_x_mod_modfile.parseReplace.func2]
mov dword [esp + 0x9c], edx
mov edx, dword [esp + 0xb4]
mov dword [esp + 0xa4], edx
mov ebx, dword [esp + 0xb0]
mov dword [esp + 0xa0], ebx
mov ebp, dword [esp + 0xb8]
mov dword [esp + 0xa8], ebp
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
lea esi, [sym.golang.org_x_mod_modfile.parseReplace.func3]
mov dword [esp + 0x84], esi
lea esi, [esp + 0x9c]
mov dword [esp + 0x88], esi
mov ecx, dword [esp + 0xc8]
cmp ecx, 2
jl 0x58634c
mov esi, dword [esp + 0xc4]
cmp dword [esi + 0xc], 2
jne 0x586353
mov edi, dword [esi + 8]
cmp word [edi], 0x3e3d
jne 0x586353
mov eax, 1
jmp 0x586358
mov esi, dword [esp + 0xc4]
mov eax, 2
lea edi, [eax + 2]
cmp ecx, edi
jl 0x586384
lea ebp, [eax + 3]
cmp ecx, ebp
jg 0x586384
cmp ecx, eax
jbe 0x586d18
lea ebx, [esi + eax*8]
cmp dword [ebx + 4], 2
jne 0x586384
mov ebx, dword [ebx]
cmp word [ebx], 0x3e3d
je 0x58646d
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov eax, dword [esp + 0xbc]
mov dword [esp], eax
mov ecx, dword [esp + 0xc0]
mov dword [esp + 4], ecx
call sym.runtime.convTstring
mov eax, dword [esp + 8]
lea ecx, [0x601a80]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0xbc]
mov dword [esp], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 4], eax
call sym.runtime.convTstring
mov eax, dword [esp + 8]
lea ecx, [0x601a80]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x84]
lea ecx, [0x64de61]
mov dword [esp], ecx
mov dword [esp + 4], 0x66
lea ecx, [esp + 0x8c]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
lea edx, [esp + 0x84]
call eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], eax
add esp, 0xac
ret
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebp
mov dword [esp], esi
call sym.golang.org_x_mod_modfile.parseString
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x58650c
mov eax, dword [esp + 0xc]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
test eax, eax
je 0x5864ab
mov eax, dword [eax + 4]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
mov eax, dword [esp + 0x84]
lea ecx, [0x6455b0]
mov dword [esp], ecx
mov dword [esp + 4], 0x19
lea ecx, [esp + 0x7c]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
lea edx, [esp + 0x84]
call eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], eax
add esp, 0xac
ret
mov eax, dword [esp + 4]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x2c], ecx
mov dword [esp], eax
mov dword [esp + 4], ecx
call sym.golang.org_x_mod_modfile.modulePathMajor
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
test eax, eax
jne 0x586c19
mov ebx, dword [esp + 0x3c]
cmp ebx, 2
je 0x586556
xor eax, eax
xor ecx, ecx
jmp 0x58669f
mov dword [esp + 0x30], edx
mov dword [esp + 0x50], ecx
mov eax, dword [esp + 0xbc]
mov dword [esp], eax
mov ecx, dword [esp + 0xc0]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x4c]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0xc], ebx
mov ebp, dword [esp + 0xc4]
lea esi, [ebp + 8]
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0xd0]
mov dword [esp + 0x14], esi
call sym.golang.org_x_mod_modfile.parseVersion
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
test eax, eax
je 0x586653
mov dword [esp + 0x68], edx
mov dword [esp + 0x64], ecx
lea eax, [0x6246c0]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xb4]
mov dword [eax + 4], ecx
mov ecx, dword [0x80b220]
test ecx, ecx
jne 0x5865ec
mov ecx, dword [esp + 0xb0]
jmp 0x5865fa
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0xb0]
mov dword [edi], ecx
mov dword [eax], ecx
mov ecx, dword [esp + 0xb8]
mov edx, dword [ecx + 0x24]
mov ebx, dword [ecx + 0x28]
mov ecx, dword [ecx + 0x2c]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 0x24], ecx
mov ecx, dword [0x80b220]
test ecx, ecx
jne 0x58662c
mov ecx, dword [esp + 0x64]
jmp 0x586637
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x64]
mov dword [edi], ecx
mov dword [eax + 0x28], ecx
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], eax
add esp, 0xac
ret
mov eax, dword [esp + 0x18]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x28], ecx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x50]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0xc], edx
call sym.golang.org_x_mod_module.CheckPathMajor
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
test eax, eax
jne 0x586b28
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x28]
lea edx, [ebx + 1]
mov ebp, dword [esp + 0xc8]
cmp ebp, edx
jbe 0x586d0f
mov dword [esp + 0x28], ecx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0xc4]
lea ecx, [eax + ebx*8 + 8]
mov dword [esp], ecx
call sym.golang.org_x_mod_modfile.parseString
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x586751
mov eax, dword [esp + 0xc]
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
test eax, eax
je 0x5866f3
mov eax, dword [eax + 4]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
mov eax, dword [esp + 0x84]
lea ecx, [0x6455b0]
mov dword [esp], ecx
mov dword [esp + 4], 0x19
lea ecx, [esp + 0x74]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
lea edx, [esp + 0x84]
call eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], eax
add esp, 0xac
ret
mov edx, dword [esp + 4]
mov dword [esp + 0x58], edx
mov ebx, dword [esp + 8]
mov dword [esp + 0x38], ebx
mov ecx, dword [esp + 0xc8]
mov eax, dword [esp + 0x44]
cmp ecx, eax
je 0x586778
mov ebp, dword [esp + 0x40]
cmp ecx, ebp
jmp 0x5867aa
mov dword [esp], edx
mov dword [esp + 4], ebx
call sym.golang.org_x_mod_modfile.IsDirectoryPath
movzx eax, byte [esp + 8]
test al, al
je 0x586a4e
mov ecx, dword [esp + 0xc8]
mov edx, dword [esp + 0x40]
cmp ecx, edx
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x38]
jne 0x586970
cmp ecx, eax
jbe 0x586d0a
mov eax, dword [esp + 0xbc]
mov dword [esp], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0xc4]
lea eax, [ecx + eax*8 + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xd0]
mov dword [esp + 0x14], eax
call sym.golang.org_x_mod_modfile.parseVersion
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
test eax, eax
je 0x5868b2
mov dword [esp + 0x68], ebp
mov dword [esp + 0x5c], ebx
lea eax, [0x6246c0]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xb4]
mov dword [eax + 4], ecx
mov ecx, dword [0x80b220]
test ecx, ecx
jne 0x58684b
mov ecx, dword [esp + 0xb0]
jmp 0x586859
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0xb0]
mov dword [edi], ecx
mov dword [eax], ecx
mov ecx, dword [esp + 0xb8]
mov edx, dword [ecx + 0x24]
mov ebx, dword [ecx + 0x28]
mov ecx, dword [ecx + 0x2c]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 0x24], ecx
mov ecx, dword [0x80b220]
test ecx, ecx
jne 0x58688b
mov ecx, dword [esp + 0x5c]
jmp 0x586896
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x5c]
mov dword [edi], ecx
mov dword [eax + 0x28], ecx
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], eax
add esp, 0xac
ret
mov dword [esp + 0x34], edx
mov dword [esp + 0x54], ecx
mov eax, dword [esp + 0x58]
mov dword [esp], eax
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], ecx
call sym.golang.org_x_mod_modfile.IsDirectoryPath
movzx eax, byte [esp + 8]
test al, al
jne 0x5868e4
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x34]
jmp 0x586974
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov eax, dword [esp + 0x58]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
call sym.runtime.convTstring
mov eax, dword [esp + 8]
lea ecx, [0x601a80]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x84]
lea ecx, [0x64cf4c]
mov dword [esp], ecx
mov dword [esp + 4], 0x38
lea ecx, [esp + 0x6c]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
lea edx, [esp + 0x84]
call eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], eax
add esp, 0xac
ret
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x54], eax
lea edx, [0x61ca80]
mov dword [esp], edx
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], ecx
mov ecx, dword [0x80b220]
test ecx, ecx
jne 0x5869a5
mov ecx, dword [esp + 0x4c]
jmp 0x5869b0
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x4c]
mov dword [edi], ecx
mov dword [eax], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x80b220]
test ecx, ecx
jne 0x5869c9
mov ecx, dword [esp + 0x48]
jmp 0x5869d4
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x48]
mov dword [edi], ecx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 0x14], ecx
mov ecx, dword [0x80b220]
test ecx, ecx
jne 0x5869ee
mov ecx, dword [esp + 0x58]
jmp 0x5869f9
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x58]
mov dword [edi], ecx
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 0x1c], ecx
mov ecx, dword [0x80b220]
test ecx, ecx
jne 0x586a1a
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0xb8]
jmp 0x586a2f
call sym.runtime.gcWriteBarrier2
mov ecx, dword [esp + 0x54]
mov dword [edi], ecx
mov edx, dword [esp + 0xb8]
mov dword [edi + 4], edx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x20], edx
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], 0
add esp, 0xac
ret
mov eax, dword [esp + 0x58]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
lea eax, [0x68a6a0]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
call sym.strings.Index
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x586ad2
mov eax, dword [esp + 0x84]
lea ecx, [0x64da0d]
mov dword [esp], ecx
mov dword [esp + 4], 0x47
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
lea edx, [esp + 0x84]
call eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], eax
add esp, 0xac
ret
mov eax, dword [esp + 0x84]
lea ecx, [0x64dce1]
mov dword [esp], ecx
mov dword [esp + 4], 0x5b
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
lea edx, [esp + 0x84]
call eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], eax
add esp, 0xac
ret
mov dword [esp + 0x68], edx
mov dword [esp + 0x60], ecx
lea eax, [0x6246c0]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xb4]
mov dword [eax + 4], ecx
mov ecx, dword [0x80b220]
test ecx, ecx
jne 0x586b5f
mov ecx, dword [esp + 0xb0]
jmp 0x586b6d
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0xb0]
mov dword [edi], ecx
mov dword [eax], ecx
mov ecx, dword [esp + 0xb8]
mov edx, dword [ecx + 0x24]
mov ebx, dword [ecx + 0x28]
mov ecx, dword [ecx + 0x2c]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x20], ecx
mov ecx, dword [0x80b220]
test ecx, ecx
jne 0x586b9f
mov ecx, dword [esp + 0x4c]
jmp 0x586baa
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x4c]
mov dword [edi], ecx
mov dword [eax + 0x1c], ecx
mov ecx, dword [esp + 0xc0]
mov dword [eax + 0x18], ecx
mov ecx, dword [0x80b220]
test ecx, ecx
jne 0x586bca
mov ecx, dword [esp + 0xbc]
jmp 0x586bd8
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0xbc]
mov dword [edi], ecx
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 0x24], ecx
mov ecx, dword [0x80b220]
test ecx, ecx
jne 0x586bf2
mov ecx, dword [esp + 0x60]
jmp 0x586bfd
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x60]
mov dword [edi], ecx
mov dword [eax + 0x28], ecx
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], eax
add esp, 0xac
ret
mov dword [esp + 0x68], ebp
mov dword [esp + 0x64], ebx
lea eax, [0x6246c0]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xb4]
mov dword [eax + 4], ecx
mov ecx, dword [0x80b220]
test ecx, ecx
jne 0x586c50
mov ecx, dword [esp + 0xb0]
jmp 0x586c5e
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0xb0]
mov dword [edi], ecx
mov dword [eax], ecx
mov ecx, dword [esp + 0xb8]
mov edx, dword [ecx + 0x24]
mov ebx, dword [ecx + 0x28]
mov ecx, dword [ecx + 0x2c]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x20], ecx
mov ecx, dword [0x80b220]
test ecx, ecx
jne 0x586c90
mov ecx, dword [esp + 0x4c]
jmp 0x586c9b
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x4c]
mov dword [edi], ecx
mov dword [eax + 0x1c], ecx
mov ecx, dword [esp + 0xc0]
mov dword [eax + 0x18], ecx
mov ecx, dword [0x80b220]
test ecx, ecx
jne 0x586cbb
mov ecx, dword [esp + 0xbc]
jmp 0x586cc9
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0xbc]
mov dword [edi], ecx
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 0x24], ecx
mov ecx, dword [0x80b220]
test ecx, ecx
jne 0x586ce3
mov ecx, dword [esp + 0x64]
jmp 0x586cee
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x64]
mov dword [edi], ecx
mov dword [eax + 0x28], ecx
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], eax
add esp, 0xac
ret
call sym.runtime.panicIndex
mov eax, edx
mov ecx, ebp
call sym.runtime.panicIndex
call sym.runtime.panicIndex
nop
call sym.runtime.morestack_noctxt
jmp sym.golang.org_x_mod_modfile.parseReplace