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

Disassembly:
mov ecx, dword [0x647d6c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x28]
cmp eax, dword [ecx + 8]
jbe 0x5018df
sub esp, 0xa8
mov eax, dword [edx + 0xc]
mov ecx, dword [edx + 4]
mov ebx, dword [edx + 8]
mov ebp, dword [edx + 0x14]
mov esi, dword [edx + 0x10]
mov edx, dword [edx + 0x18]
mov edi, dword [esp + 0xac]
test edi, edi
je 0x50147e
mov dword [esp + 0x60], eax
mov dword [esp + 0x7c], esi
mov dword [esp + 0x90], edi
mov edi, dword [esp + 0xb0]
mov dword [esp + 0x94], edi
mov edi, dword [esp + 0x90]
test edi, edi
je 0x501300
movzx esi, byte [edi + 0xf]
xchg esi, eax
mov byte [esp + 0x1f], al
xchg esi, eax
nop
and esi, 0x1f
movzx eax, byte [esp + 0x1f]
test al, 0x20
jne 0x5012e5
or esi, 0x80
mov eax, dword [esp + 0x94]
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], edi
mov eax, dword [esp + 0x60]
mov edi, esi
mov esi, dword [esp + 0x7c]
jmp 0x501310
xor edi, edi
xor edi, edi
mov dword [esp + 0x50], edi
xor edi, edi
mov dword [esp + 0x4c], edi
xor edi, edi
mov dword [esp + 0x58], ebx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x5c], edx
mov dword [esp + 0x20], edi
test edi, edi
je 0x501348
test edi, 0x200
jne 0x501348
mov dword [esp + 0x44], eax
lea eax, [0x56af00]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x54], eax
jmp 0x501370
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
mov ecx, dword [esp + 0x50]
mov dword [esp + 4], ecx
mov dword [esp + 8], edi
call sym.reflect.Value.typeSlow
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x24], eax
mov dword [esp + 0x54], ecx
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x50]
mov ecx, dword [esp + 0x54]
mov dword [esp], ecx
call eax
cmp dword [esp + 4], 0x16
jne 0x501477
mov eax, dword [esp + 0x20]
mov ecx, eax
and eax, 0x1f
mov dword [esp + 0x40], eax
nop
cmp eax, 0x14
ja 0x5013b0
lea edx, [eax - 0x12]
cmp edx, 1
jbe 0x5013d0
cmp eax, 0x14
je 0x5013ba
jmp 0x5018a4
cmp eax, 0x16
jbe 0x5013d0
cmp eax, 0x17
jne 0x5013c7
mov eax, dword [esp + 0x50]
mov edx, dword [eax]
test edx, edx
setne dl
jmp 0x5013f9
cmp eax, 0x1a
jne 0x5018a4
test ecx, 0x200
je 0x5013de
mov eax, dword [esp + 0x50]
jmp 0x5013fd
test ecx, 0x80
je 0x5013ee
mov eax, dword [esp + 0x50]
mov edx, dword [eax]
jmp 0x5013f4
mov eax, dword [esp + 0x50]
mov edx, eax
test edx, edx
setne dl
test dl, dl
je 0x501470
mov edx, dword [esp + 0x4c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call sym.reflect.Value.Elem
mov eax, dword [esp + 0x14]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x78], ecx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x74], edx
test eax, eax
je 0x50143c
test eax, 0x200
jne 0x50143c
lea ebx, [0x56af00]
jmp 0x501456
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call sym.reflect.Value.typeSlow
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov ebx, eax
mov eax, dword [ebx + 0x50]
mov dword [esp], ecx
call eax
cmp dword [esp + 4], 0x19
jne 0x501469
xor eax, eax
jmp 0x50148c
add esp, 0xa8
ret
add esp, 0xa8
ret
add esp, 0xa8
ret
add esp, 0xa8
ret
mov ecx, dword [esp + 0x2c]
lea eax, [ecx + 1]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x78]
mov dword [esp], ecx
mov edx, dword [esp + 0x74]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x40]
mov dword [esp + 8], ebx
call sym.reflect.Value.NumField
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0xc], eax
jle 0x501716
mov ecx, dword [esp + 0x78]
mov dword [esp], ecx
mov edx, dword [esp + 0x74]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x40]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
call sym.reflect.Value.Field
mov eax, dword [esp + 0x18]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x70], ecx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x6c], edx
test eax, eax
je 0x501507
test eax, 0x200
jne 0x501507
mov ebx, ecx
lea ebp, [0x56af00]
jmp 0x50152d
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call sym.reflect.Value.typeSlow
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x70]
mov ebp, eax
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x30]
cmp ebp, esi
je 0x50153c
test eax, eax
jmp 0x501691
mov dword [esp], ebp
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
call sym.runtime.ifaceeq
movzx eax, byte [esp + 0xc]
test al, al
jne 0x501570
mov eax, dword [esp + 0x3c]
test eax, eax
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x70]
mov esi, dword [esp + 0x30]
jmp 0x501691
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov eax, dword [esp + 0x70]
mov dword [esp], eax
mov ecx, dword [esp + 0x6c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x3c]
mov dword [esp + 8], edx
mov byte [esp + 0xc], 1
call sym.reflect.valueInterface
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ecx
lea eax, [0x51f780]
mov dword [esp], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], ecx
lea edx, [esp + 0xa0]
mov dword [esp + 8], edx
call sym.runtime.mapaccess1
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
test ecx, ecx
jne 0x5015fb
mov eax, dword [esp + 0x3c]
test eax, eax
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x3c]
jmp 0x501683
test ecx, ecx
je 0x501602
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x501648
mov eax, dword [eax + 4]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x88]
test eax, eax
je 0x501640
movzx ecx, byte [eax + 0xf]
nop
mov edx, ecx
and ecx, 0x1f
test dl, 0x20
jne 0x501637
or ecx, 0x80
mov edx, dword [esp + 0x8c]
jmp 0x50164e
xor ecx, ecx
xor eax, eax
xor edx, edx
jmp 0x50164e
xor ecx, ecx
xor eax, eax
xor edx, edx
mov ebx, dword [esp + 0x70]
mov dword [esp], ebx
mov ebp, dword [esp + 0x6c]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x3c]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
call sym.reflect.Value.Set
mov eax, dword [esp + 0x7c]
mov byte [eax], 1
mov ecx, dword [esp + 0x3c]
test ecx, ecx
mov eax, ecx
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x70]
mov esi, dword [esp + 0x30]
je 0x5016a4
test eax, 0x200
jne 0x5016a4
mov ecx, ebx
lea ebp, [0x56af00]
jmp 0x5016d0
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call sym.reflect.Value.typeSlow
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x6c]
mov esi, dword [esp + 0x30]
mov ebp, eax
mov ebx, ecx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x70]
mov edi, dword [esp + 0x34]
cmp ebp, edi
jne 0x501485
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov eax, dword [esp + 0x5c]
mov dword [esp + 8], eax
call sym.runtime.ifaceeq
movzx eax, byte [esp + 0xc]
test al, al
je 0x501709
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
xor ebx, ebx
jmp 0x501732
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
jmp 0x501485
add esp, 0xa8
ret
mov ebp, dword [esp + 0x28]
lea ebx, [ebp + 1]
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
mov eax, ebp
mov dword [esp + 0x28], ebx
mov ebp, eax
and eax, 0x1f
cmp eax, 0x17
jne 0x501745
mov eax, dword [ecx + 4]
jmp 0x501769
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
call sym.reflect.Value.lenNonSlice
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x3c]
cmp ebx, eax
jge 0x501897
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ebx
call sym.reflect.Value.Index
mov eax, dword [esp + 0x10]
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x64], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x38], edx
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov byte [esp + 0xc], 1
call sym.reflect.valueInterface
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], ecx
lea eax, [0x51f780]
mov dword [esp], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], ecx
lea edx, [esp + 0x98]
mov dword [esp + 8], edx
call sym.runtime.mapaccess1
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
test ecx, ecx
jne 0x501812
mov eax, dword [esp + 0x7c]
jmp 0x50171d
je 0x501817
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x50185d
mov eax, dword [eax + 4]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x80]
test eax, eax
je 0x501855
movzx ecx, byte [eax + 0xf]
nop
mov edx, ecx
and ecx, 0x1f
test dl, 0x20
jne 0x50184c
or ecx, 0x80
mov edx, dword [esp + 0x84]
jmp 0x501863
xor ecx, ecx
xor eax, eax
xor edx, edx
jmp 0x501863
xor ecx, ecx
xor eax, eax
xor edx, edx
mov ebx, dword [esp + 0x68]
mov dword [esp], ebx
mov ebx, dword [esp + 0x64]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x38]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
call sym.reflect.Value.Set
mov eax, dword [esp + 0x7c]
mov byte [eax], 1
jmp 0x50171d
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
jmp 0x501485
lea eax, [0x525020]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x13
lea ecx, [0x53cc14]
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 8], ecx
lea ecx, [0x520960]
mov dword [esp], ecx
mov dword [esp + 4], eax
call sym.runtime.gopanic
nop
call sym.runtime.morestack
jmp sym.main.typefix.func2