Function at 0x6d4f7ac0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x34
push 0x6d503bb0
call fcn.6d4fd8c0
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x6d4f7dd0
mov eax, dword [esi]
cmp eax, 1
jl 0x6d4f7dd0
cmp eax, 0xa
jg 0x6d4f7dd0
mov eax, dword [0x6d506910]
cmp eax, ebx
je 0x6d4f7dd0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov edi, eax
cmp edi, ebx
je 0x6d4f7dd0
push edi
call fcn.6d4f84ab
pop ecx
mov dword [ebp - 0x24], ebx
lea eax, [ebp - 0x24]
push eax
mov ecx, 0x6d506908
call fcn.6d4f1a58
test eax, eax
js 0x6d4f7dd0
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x6d4f7dd0
mov dword [ebp - 4], ebx
mov ecx, dword [eax]
lea edx, [ebp - 0x28]
push edx
push 0x6d500868
push 0x6d500878
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x6d4f7dc4
mov dword [ebp - 0x1c], ebx
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x6d4f7b76
lea ecx, [ebp - 0x1c]
push ecx
movzx ecx, byte [esi + 8]
push ecx
push eax
call fcn.6d4f7a66
add esp, 0xc
mov dword [ebp + 8], ebx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
lea edx, [ebp + 8]
push edx
push ebx
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x6d4f7dc4
call fcn.6d4f7908
mov dword [ebp - 0x40], eax
cmp eax, ebx
je 0x6d4f7bb1
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x44], eax
push dword [esi + 0x10]
push dword [ebp - 0x40]
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, dword [esi + 0x1c]
cmp eax, ebx
je 0x6d4f7bca
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.6d4fe202
test eax, eax
js 0x6d4f7dc4
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x6d4f7bf3
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push 0x6d500848
push 0x6d500888
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x6d4f7dc4
mov eax, dword [ebp - 0x20]
mov ecx, dword [esi]
dec ecx
cmp ecx, 9
ja case.default.0x6d4f7bff
jmp dword [ecx*4 + 0x6d4f7e16]
lea ecx, [esi + 0x14]
mov edx, dword [eax]
push ecx
push dword [ebp - 0x1c]
push ebx
push ebx
push dword [esi + 0x1c]
push dword [ebp + 8]
push eax
call dword [edx + 0x28]
mov eax, dword [esi + 0x14]
cmp eax, ebx
je case.default.0x6d4f7bff
push eax
push dword [0x6d5069e0]
push dword [0x6d5069d8]
push edi
call fcn.6d4f3edd
add esp, 0x10
mov dword [ebp - 0x3c], eax
mov ecx, dword [edi]
push eax
push edi
call dword [ecx + 0x54]
mov dword [esi + 0x18], eax
mov eax, dword [edi]
push dword [ebp - 0x3c]
push edi
call dword [eax + 0x5c]
jmp case.default.0x6d4f7bff
mov dword [ebp - 0x2c], ebx
mov ecx, dword [eax]
lea edx, [ebp - 0x2c]
push edx
push dword [esi + 0x14]
push dword [ebp + 8]
push eax
call dword [ecx + 0x30]
cmp dword [ebp - 0x2c], ebx
je case.default.0x6d4f7bff
push dword [ebp - 0x2c]
mov eax, dword [edi]
push edi
call dword [eax + 0x54]
mov dword [esi + 0x18], eax
jmp case.default.0x6d4f7bff
mov ecx, dword [eax]
push dword [esi + 0x14]
push dword [ebp + 8]
push eax
call dword [ecx + 0x2c]
jmp case.default.0x6d4f7bff
mov dword [ebp - 0x30], ebx
mov ecx, dword [eax]
lea edx, [ebp - 0x30]
push edx
push dword [ebp - 0x1c]
push ebx
push ebx
push dword [esi + 0x28]
push dword [esi + 0x24]
push dword [esi + 0x20]
push dword [esi + 0x14]
push dword [ebp + 8]
push eax
call dword [ecx + 0x20]
cmp dword [ebp - 0x30], ebx
je case.default.0x6d4f7bff
push dword [ebp - 0x30]
jmp 0x6d4f7c76
mov dword [ebp - 0x34], ebx
mov ecx, dword [eax]
lea edx, [ebp - 0x34]
push edx
push dword [ebp - 0x1c]
push ebx
push ebx
push dword [esi + 0x24]
push dword [esi + 0x20]
push dword [esi + 0x14]
push dword [ebp + 8]
push eax
call dword [ecx + 0x24]
cmp dword [ebp - 0x34], ebx
je case.default.0x6d4f7bff
push dword [ebp - 0x34]
jmp 0x6d4f7c76
mov dword [ebp - 0x38], ebx
mov ecx, dword [eax]
lea edx, [ebp - 0x38]
push edx
push dword [ebp - 0x1c]
push ebx
push ebx
push dword [esi + 0x24]
push dword [esi + 0x20]
push dword [esi + 0x14]
push dword [ebp + 8]
push eax
call dword [ecx + 0xc]
cmp dword [ebp - 0x38], ebx
je case.default.0x6d4f7bff
push dword [ebp - 0x38]
jmp 0x6d4f7c76
mov ecx, dword [eax]
push dword [ebp - 0x1c]
push ebx
push ebx
push dword [esi + 0x28]
push dword [esi + 0x24]
push dword [esi + 0x20]
push dword [esi + 0x14]
push dword [ebp + 8]
push eax
call dword [ecx + 0x14]
jmp case.default.0x6d4f7bff
mov ecx, dword [eax]
push dword [ebp - 0x1c]
push ebx
push ebx
push dword [esi + 0x24]
push dword [esi + 0x20]
push dword [esi + 0x14]
push dword [ebp + 8]
push eax
call dword [ecx + 0x1c]
jmp case.default.0x6d4f7bff
mov dword [ebp - 0x3c], ebx
mov ecx, dword [eax]
lea edx, [ebp - 0x3c]
push edx
push dword [ebp - 0x1c]
push ebx
push ebx
push dword [esi + 0x20]
push dword [esi + 0x14]
push dword [ebp + 8]
push eax
call dword [ecx + 0x10]
cmp dword [ebp - 0x3c], ebx
je case.default.0x6d4f7bff
push dword [ebp - 0x3c]
jmp 0x6d4f7c76
mov ecx, dword [eax]
push dword [ebp - 0x1c]
push ebx
push ebx
push dword [esi + 0x24]
push dword [esi + 0x20]
push dword [esi + 0x14]
push dword [ebp + 8]
push eax
call dword [ecx + 0x18]
mov eax, dword [edi]
push edi
call dword [eax + 0x3c]
mov dword [ebp - 0x3c], eax
cmp eax, ebx
je 0x6d4f7db7
mov eax, dword [edi]
push edi
call dword [eax + 0x44]
mov eax, dword [edi]
push dword [ebp - 0x3c]
push edi
call dword [eax + 0x54]
mov dword [esi + 0xc], eax
mov eax, dword [edi]
push dword [ebp - 0x3c]
push edi
call dword [eax + 0x5c]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x6d4f7dc4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xfffffffe
call fcn.6d4f7dda
call fcn.6d4fd905
ret 4