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

Disassembly:
mov ecx, dword [0x664c04]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x40]
cmp eax, dword [ecx + 8]
jbe 0x501037
sub esp, 0xc0
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0xc4]
mov ecx, dword [eax + 0x38]
mov edx, dword [eax + 0x3c]
mov ecx, dword [ecx + 0x1c]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call ecx
mov eax, dword [esp + 0x14]
cmp eax, 0x10
jl 0x500b35
mov eax, 0x10
mov ecx, dword [esp + 0x10]
lea esi, [esp + 0x30]
cmp ecx, esi
je 0x500b51
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call sym.runtime.memmove
mov ecx, dword [esp + 0xc4]
mov edx, dword [ecx + 0x24]
mov ebx, dword [ecx + 8]
lea edi, [esp + 0x48]
xor eax, eax
call fcn.0046a5e5
mov ecx, dword [esp + 0xc4]
mov ebp, dword [ecx + 0x40]
mov dword [esp + 0x50], ebp
mov ebp, dword [ecx + 0x44]
mov dword [esp + 0x4c], ebp
mov ebp, dword [ecx + 0x48]
mov dword [esp + 0x54], ebp
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], edx
lea edi, [esp + 0x58]
lea esi, [esp + 0x30]
call fcn.0046aad8
mov ecx, dword [esp + 0xc4]
movzx edx, byte [ecx + 0x4c]
test dl, dl
je 0x500c3d
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
lea eax, [0x52cf60]
mov dword [esp], eax
lea ecx, [esp + 0x48]
mov dword [esp + 4], ecx
call sym.runtime.convTnoptr
mov eax, dword [esp + 8]
lea ecx, [0x52cf60]
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], eax
mov eax, dword [0x625160]
lea edx, [0x567780]
mov dword [esp], edx
mov dword [esp + 4], eax
lea eax, [0x53b768]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0x18
lea eax, [esp + 0xb8]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 1
call sym.fmt.Fprintf
mov ecx, dword [esp + 0xc4]
mov eax, dword [esp + 0xc8]
test eax, eax
je 0x500c61
mov ecx, dword [eax + 4]
lea edx, [0x61fe88]
mov dword [esp], edx
mov dword [esp + 4], ecx
call sym.runtime.typeAssert
mov eax, dword [esp + 8]
lea edi, [esp + 0x78]
lea esi, [esp + 0x48]
call fcn.0046aa92
mov dword [esp], eax
mov eax, dword [esp + 0xcc]
mov dword [esp + 4], eax
lea ecx, [0x567d2c]
mov dword [esp + 8], ecx
lea ecx, [0x664ae0]
mov dword [esp + 0xc], ecx
lea ecx, [0x52cf60]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x78]
mov dword [esp + 0x14], ecx
call sym.encoding_binary.Write
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
test eax, eax
je 0x500d4c
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
je 0x500cd2
mov eax, dword [eax + 4]
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], ecx
lea eax, [0x53e799]
mov dword [esp], eax
mov dword [esp + 4], 0x22
lea eax, [esp + 0xb8]
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 + 0xb4], ecx
lea edi, [esp + 0xd0]
lea esi, [esp + 0x30]
call fcn.0046aad8
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0xe4], eax
add esp, 0xc0
ret
mov eax, dword [esp + 0xc4]
mov dword [esp], eax
mov ecx, dword [esp + 0xc8]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0xcc]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0x2c
mov dword [esp + 0x10], 0
call sym.internal_coverage_encodemeta._CoverageMetaDataBuilder_.emitFuncOffsets
mov eax, dword [esp + 0xc4]
mov ecx, dword [eax + 0x50]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test ecx, ecx
jne 0x500e58
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ebx
mov ecx, dword [esp + 0xc8]
test ecx, ecx
je 0x500dd0
mov eax, dword [ecx + 4]
lea edx, [0x61fe98]
mov dword [esp], edx
mov dword [esp + 4], eax
call sym.runtime.typeAssert
mov eax, dword [esp + 8]
mov ecx, eax
mov eax, dword [esp + 0xc4]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0xcc]
mov dword [esp + 8], ecx
call sym.internal_coverage_stringtab._Writer_.Write
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x500e21
mov eax, dword [esp + 0xc4]
mov dword [esp], eax
call sym.internal_coverage_stringtab._Writer_.Size
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc4]
mov edx, dword [ecx + 0x20]
mov ebx, dword [ecx + 0x24]
mov ebp, dword [esp + 0x40]
add ebp, eax
mov eax, dword [esp + 0x44]
adc eax, 0
jmp 0x500ea3
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xac], ecx
lea edi, [esp + 0xd0]
lea esi, [esp + 0x30]
call fcn.0046aad8
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0xe4], eax
add esp, 0xc0
ret
lea edi, [esp + 0xd0]
lea esi, [esp + 0x30]
call fcn.0046aad8
mov ecx, dword [eax + 0x50]
mov eax, dword [eax + 0x54]
mov dword [esp + 0xe0], ecx
mov dword [esp + 0xe4], eax
add esp, 0xc0
ret
mov esi, dword [esp + 0xb0]
lea edx, [esi + 0xc]
mov esi, dword [esp + 0x74]
lea ebx, [esi - 1]
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xc4]
test ebx, ebx
jle 0x500f2f
mov dword [esp + 0x74], ebx
mov dword [esp + 0xb0], edx
mov ebx, dword [edx]
mov esi, dword [edx + 4]
mov edi, dword [edx + 8]
mov dword [esp], ecx
mov ecx, dword [esp + 0xc8]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0xcc]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edi
call sym.internal_coverage_encodemeta._CoverageMetaDataBuilder_.emitFunc
mov eax, dword [esp + 0x28]
test eax, eax
je 0x500e83
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xa8], ecx
lea edi, [esp + 0xd0]
lea esi, [esp + 0x30]
call fcn.0046aad8
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0xe4], eax
add esp, 0xc0
ret
mov dword [esp + 0x40], ebp
mov eax, dword [esp + 0xc8]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0xcc]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call ecx
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x501000
mov eax, dword [esp + 0xc4]
mov dword [esp], eax
mov ecx, dword [esp + 0xc8]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0xcc]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0xc], ecx
call sym.internal_coverage_encodemeta._CoverageMetaDataBuilder_.wrUint32
mov eax, dword [esp + 0xc4]
mov ecx, dword [eax + 0x50]
test ecx, ecx
je 0x500fd3
lea edi, [esp + 0xd0]
lea esi, [esp + 0x30]
call fcn.0046aad8
mov ecx, dword [eax + 0x50]
mov eax, dword [eax + 0x54]
mov dword [esp + 0xe0], ecx
mov dword [esp + 0xe4], eax
add esp, 0xc0
ret
lea edi, [esp + 0xd0]
lea esi, [esp + 0x30]
call fcn.0046aad8
mov dword [esp + 0xe0], 0
mov dword [esp + 0xe4], 0
add esp, 0xc0
ret
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xa4], ecx
lea edi, [esp + 0xd0]
lea esi, [esp + 0x30]
call fcn.0046aad8
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0xe4], eax
add esp, 0xc0
ret
call sym.runtime.morestack_noctxt
jmp sym.internal_coverage_encodemeta._CoverageMetaDataBuilder_.Emit