Function at 0x41c740
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
xor edx, edx
dec ecx
mov eax, 0x5b07d296
div ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp + 0xc], ecx
push edi
mov eax, dword [ebx]
mov ecx, dword [ebx + edx*4]
mov dword [ebx], ecx
mov dword [ebx + edx*4], eax
push dword [0x49d268]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [eax]
push edi
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x28]
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebx]
mov esi, dword [ecx + eax*4]
mov eax, dword [ebx + 4]
add esi, edx
push esi
mov eax, dword [ecx + eax*4]
add eax, edx
push eax
call fcn.0041cda0
add esp, 0xc
push dword [0x49d268]
test eax, eax
jle 0x41c862
mov esi, dword [ebx + 4]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
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 [edi]
mov edi, dword [ecx + eax*4]
mov eax, dword [ebp + 8]
add edi, edx
push edi
lea eax, [eax + esi*4]
mov dword [ebp + 0xc], eax
mov eax, dword [eax]
mov eax, dword [ecx + eax*4]
add eax, edx
push eax
call fcn.0041cda0
mov esi, dword [ebp - 4]
add esp, 0xc
test eax, eax
jle 0x41c84e
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov dword [ecx + 4], eax
push dword [0x49d268]
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 + 0xc]
mov eax, dword [eax]
mov edi, dword [ecx + eax*4]
mov eax, dword [ecx + esi*4]
add edi, edx
add eax, edx
push edi
push eax
call fcn.0041cda0
add esp, 0xc
test eax, eax
jle 0x41c842
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [ecx]
mov dword [edi], eax
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [ecx]
mov dword [edi + 4], eax
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [eax]
push edi
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x28]
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp + 0xc]
mov eax, dword [ebx + eax*4]
mov esi, dword [ecx + eax*4]
mov eax, dword [ebx]
add esi, edx
push esi
mov eax, dword [ecx + eax*4]
add eax, edx
push eax
call fcn.0041cda0
add esp, 0xc
test eax, eax
jle 0x41c8f4
push dword [0x49d268]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [eax]
push edi
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x28]
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp + 0xc]
mov eax, dword [ebx + eax*4]
mov esi, dword [ecx + eax*4]
mov eax, dword [ebx + 4]
add esi, edx
push esi
mov eax, dword [ecx + eax*4]
add eax, edx
push eax
call fcn.0041cda0
mov edx, dword [ebp + 0xc]
add esp, 0xc
mov ecx, dword [ebx + edx*4]
test eax, eax
jle 0x41c8ed
mov eax, dword [ebx + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [ebx]
pop edi
mov dword [ebx + edx*4], ecx
pop esi
mov dword [ebx], eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx]
mov dword [ebx], ecx
mov dword [ebx + edx*4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret