If you mean this function
Code:
.text:004A4480 sub_4A4480 proc near ; CODE XREF: sub_498EC0+Bp
.text:004A4480 ; sub_4C5BA0+11p ...
.text:004A4480
.text:004A4480 arg_0 = dword ptr 8
.text:004A4480
.text:004A4480 push ebp
.text:004A4481 mov ebp, esp
.text:004A4483 cmp dword_12EB440, 0
.text:004A448A mov ecx, [ebp+arg_0]
.text:004A448D mov eax, dword_10A68C0
.text:004A4492 jz short loc_4A44F9 ; default
.text:004A4492 ; jumptable 004A44A0 case 10
.text:004A4494 cmp ecx, 13h ; switch 20 cases
.text:004A4497 ja short loc_4A44F9 ; default
.text:004A4497 ; jumptable 004A44A0 case 10
.text:004A4499 movzx edx, ds:byte_4A4520[ecx]
.text:004A44A0 jmp ds:off_4A4510[edx*4] ; switch jump
.text:004A44A7
.text:004A44A7 loc_4A44A7: ; DATA XREF: .text:off_4A4510o
.text:004A44A7 xor eax, eax ; jumptable 004A44A0 cases 0-5,16,17
.text:004A44A9 push eax
.text:004A44AA push eax
.text:004A44AB call sub_49F6E0
.text:004A44B0 add esp, 8
.text:004A44B3 xor eax, eax
.text:004A44B5 pop ebp
.text:004A44B6 retn
.text:004A44B7 ; ---------------------------------------------------------------------------
.text:004A44B7
.text:004A44B7 loc_4A44B7: ; CODE XREF: sub_4A4480+20j
.text:004A44B7 ; DATA XREF: .text:off_4A4510o
.text:004A44B7 test eax, eax ; jumptable 004A44A0 cases 11-14
.text:004A44B9 jz short loc_4A4507
.text:004A44BB cmp dword ptr [eax+1154h], 0
.text:004A44C2 jnz short loc_4A44F9 ; default
.text:004A44C2 ; jumptable 004A44A0 case 10
.text:004A44C4 mov eax, 2
.text:004A44C9 push eax
.text:004A44CA push 0
.text:004A44CC call sub_49F6E0
.text:004A44D1 add esp, 8
.text:004A44D4 xor eax, eax
.text:004A44D6 pop ebp
.text:004A44D7 retn
.text:004A44D8 ; ---------------------------------------------------------------------------
.text:004A44D8
.text:004A44D8 loc_4A44D8: ; CODE XREF: sub_4A4480+20j
.text:004A44D8 ; DATA XREF: .text:off_4A4510o
.text:004A44D8 test eax, eax ; jumptable 004A44A0 cases 6-9,15,18,19
.text:004A44DA jz short loc_4A4507
.text:004A44DC cmp dword ptr [eax+1158h], 0
.text:004A44E3 jnz short loc_4A44F9 ; default
.text:004A44E3 ; jumptable 004A44A0 case 10
.text:004A44E5 mov eax, 1
.text:004A44EA push eax
.text:004A44EB push 0
.text:004A44ED call sub_49F6E0
.text:004A44F2 add esp, 8
.text:004A44F5 xor eax, eax
.text:004A44F7 pop ebp
.text:004A44F8 retn
.text:004A44F9 ; ---------------------------------------------------------------------------
.text:004A44F9
.text:004A44F9 loc_4A44F9: ; CODE XREF: sub_4A4480+12j
.text:004A44F9 ; sub_4A4480+17j ...
.text:004A44F9 test eax, eax ; default
.text:004A44F9 ; jumptable 004A44A0 case 10
.text:004A44FB jz short loc_4A4507
.text:004A44FD test ecx, ecx
.text:004A44FF jnz short loc_4A4507
.text:004A4501 mov [eax+1158h], ecx
.text:004A4507
.text:004A4507 loc_4A4507: ; CODE XREF: sub_4A4480+39j
.text:004A4507 ; sub_4A4480+5Aj ...
.text:004A4507 mov eax, 1
.text:004A450C pop ebp
.text:004A450D retn
.text:004A450D sub_4A4480 endp
This dosen't work for Select Target lua function ^^ ...
that function has hardcoded scope check ^^