Function at 0x41c900
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp esi, 0x32
jbe 0x41cae1
push esi
push ebx
call fcn.0041cbb0
add esp, 8
test eax, eax
jne 0x41caeb
mov ecx, dword [ebp + 0x10]
mov eax, ecx
dec ecx
mov dword [ebp + 0x10], ecx
push esi
push ebx
test eax, eax
je 0x41caf2
call fcn.0041c740
shl esi, 2
lea ecx, [ebx + 4]
mov dword [ebp - 8], esi
add esp, 8
add esi, 0xfffffffc
mov dword [ebp - 4], ecx
add esi, ebx
mov dword [ebp + 0xc], esi
mov esi, ecx
nop dword [eax + eax]
push dword [0x49d268]
add esi, 4
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [eax]
push ebx
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x28]
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x3c]
mov eax, dword [esi]
mov edi, dword [ecx + eax*4]
mov eax, dword [ebp + 8]
add edi, edx
push edi
mov eax, dword [eax]
mov eax, dword [ecx + eax*4]
add eax, edx
push eax
call fcn.0041cda0
add esp, 0xc
test eax, eax
jg 0x41c960
mov dword [ebp - 4], esi
mov esi, dword [ebp + 0xc]
nop dword [eax]
nop word [eax + eax]
push dword [0x49d268]
sub esi, 4
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [eax]
push ebx
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x28]
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edi, dword [ecx + eax*4]
mov eax, dword [esi]
add edi, edx
push edi
mov eax, dword [ecx + eax*4]
add eax, edx
push eax
call fcn.0041cda0
add esp, 0xc
test eax, eax
jg 0x41c9b0
mov ecx, dword [ebp - 4]
mov dword [ebp + 0xc], esi
cmp esi, ecx
jbe 0x41caab
nop dword [eax + eax]
mov eax, dword [esi]
mov ecx, dword [ecx]
mov dword [esi], ecx
mov esi, dword [ebp - 4]
mov dword [esi], eax
nop dword [eax + eax]
push dword [0x49d268]
add esi, 4
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [eax]
push ebx
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x28]
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x3c]
mov eax, dword [esi]
mov edi, dword [ecx + eax*4]
mov eax, dword [ebp + 8]
add edi, edx
push edi
mov eax, dword [eax]
mov eax, dword [ecx + eax*4]
add eax, edx
push eax
call fcn.0041cda0
add esp, 0xc
test eax, eax
jg 0x41ca10
mov dword [ebp - 4], esi
mov esi, dword [ebp + 0xc]
nop dword [eax]
nop word [eax + eax]
push dword [0x49d268]
sub esi, 4
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [eax]
push ebx
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x28]
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edi, dword [ecx + eax*4]
mov eax, dword [esi]
add edi, edx
push edi
mov eax, dword [ecx + eax*4]
add eax, edx
push eax
call fcn.0041cda0
add esp, 0xc
test eax, eax
jg 0x41ca60
mov ecx, dword [ebp - 4]
mov dword [ebp + 0xc], esi
cmp esi, ecx
ja 0x41ca00
mov ebx, dword [ebp + 8]
mov ecx, dword [esi]
push dword [ebp + 0x10]
mov eax, dword [ebx]
mov dword [ebx], ecx
mov dword [esi], eax
mov eax, dword [ebp - 8]
sub eax, esi
add eax, 0xfffffffc
add eax, ebx
sar eax, 2
push eax
lea eax, [esi + 4]
push eax
call fcn.0041c900
sub esi, ebx
add esp, 0xc
sar esi, 2
cmp esi, 0x32
ja 0x41c918
push esi
push ebx
call fcn.0041c4a0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0041c1c0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret