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

Disassembly:
mov ecx, dword [0x664c04]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 8]
cmp eax, dword [ecx + 8]
jbe 0x50a0a5
sub esp, 0x88
mov eax, dword [esp + 0x90]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
mov edx, dword [esp + 0x8c]
mov ebx, dword [edx + 0x24]
mov ebx, dword [ebx]
mov ebp, dword [esp + 0x44]
lea esi, [0x51d2a0]
mov dword [esp], esi
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ecx
call sym.runtime.mapaccess1_fast64
mov esi, dword [esp + 0x10]
lea edi, [esp + 0x4c]
call fcn.0046aace
mov eax, dword [0x625120]
cmp dword [eax], 4
jle 0x509e0a
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x40], ecx
lea edi, [esp + 0x68]
xor eax, eax
call fcn.0046a5ea
mov ecx, dword [esp + 0x90]
mov dword [esp], ecx
call sym.runtime.convT32
mov ecx, dword [esp + 4]
lea edx, [0x51c060]
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x94]
mov dword [esp], ecx
call sym.runtime.convT32
mov ecx, dword [esp + 4]
lea edx, [0x51c060]
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp], ecx
call sym.runtime.convT32
mov ecx, dword [esp + 4]
lea edx, [0x51c120]
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], ecx
mov ecx, dword [0x62515c]
lea edx, [0x567780]
mov dword [esp], edx
mov dword [esp + 4], ecx
lea ecx, [0x53ed0d]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 0x24
lea ecx, [esp + 0x68]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], 3
call sym.fmt.Fprintf
mov ebx, dword [esp + 0x58]
mov ecx, dword [esp + 0x9c]
mov ebp, dword [esp + 0x54]
cmp ebx, ecx
jge 0x509f19
mov dword [esp + 0x30], ecx
mov esi, dword [esp + 0x8c]
cmp dword [esi + 8], ecx
jge 0x509e9b
mov dword [esp + 0x40], ebx
mov dword [esp + 0x64], ebp
cmp ecx, 0x2000
jg 0x509e46
mov ecx, 0x2000
mov dword [esp + 0x2c], ecx
lea eax, [0x51c060]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call sym.runtime.makeslice
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x8c]
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov ecx, dword [0x664ca8]
test ecx, ecx
je 0x509e8b
call sym.runtime.gcWriteBarrier2
mov dword [edi], eax
mov ebx, dword [edx]
mov dword [edi + 4], ebx
mov dword [edx], eax
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x64]
mov esi, edx
mov edx, dword [esi + 8]
cmp edx, ecx
jb 0x50a09f
mov edi, dword [esi + 4]
cmp edi, ecx
jb 0x50a096
mov dword [esp + 0x34], edx
mov eax, dword [esi]
sub edx, ecx
sub edi, ecx
mov dword [esi + 4], edi
mov dword [esi + 8], edx
mov edi, dword [0x664ca8]
neg edx
shl ecx, 2
sar edx, 0x1f
and ecx, edx
add ecx, eax
test edi, edi
je 0x509ee3
call sym.runtime.gcWriteBarrier2
mov dword [edi], ecx
mov edx, dword [esi]
mov dword [edi + 4], edx
mov dword [esi], ecx
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x5c], ecx
cmp eax, ebp
je 0x509f20
mov dword [esp], eax
mov dword [esp + 4], ebp
shl ebx, 2
mov dword [esp + 8], ebx
call sym.runtime.memmove
mov esi, dword [esp + 0x8c]
jmp 0x509f20
mov esi, dword [esp + 0x8c]
lea eax, [esi + 0xc]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x98]
mov edi, dword [esp + 0x9c]
mov esi, dword [esp + 0xa0]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], esi
call sym.internal_coverage_cmerge._Merger_.MergeCounters
mov eax, dword [esp + 0x1c]
movzx ecx, byte [esp + 0x24]
mov edx, dword [esp + 0x20]
test eax, eax
je 0x509fd8
mov byte [esp + 0x2b], cl
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
je 0x509f94
mov eax, dword [eax + 4]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edx
lea eax, [0x53600d]
mov dword [esp], eax
mov dword [esp + 4], 2
lea eax, [esp + 0x80]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call sym.main.fatal
movzx ecx, byte [esp + 0x2b]
test cl, cl
je 0x50a00a
lea eax, [0x53ec7d]
mov dword [esp], eax
mov dword [esp + 4], 0x24
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call sym.main.warn
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x8c]
mov ecx, dword [ecx + 0x24]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x44]
lea ebx, [0x51d2a0]
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
call sym.runtime.mapassign_fast64
mov edi, dword [esp + 0x10]
test byte [edi], al
mov eax, dword [0x664ca8]
test eax, eax
je 0x50a086
mov dword [esp + 0x60], edi
lea eax, [0x525a80]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x4c]
mov dword [esp + 8], eax
call sym.runtime.wbMove
mov edi, dword [esp + 0x60]
lea esi, [esp + 0x4c]
call fcn.0046aace
add esp, 0x88
ret
mov eax, ecx
mov ecx, edi
call sym.runtime.panicSliceB
call sym.runtime.panicSliceAcap
nop
call sym.runtime.morestack_noctxt
jmp sym.main._metaMerge_.visitFuncCounterData