Function at 0x41c1c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
sub esp, 0x1c
cmp edx, 1
jbe 0x41c496
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
dec edx
mov ecx, edx
mov dword [ebp + 0xc], edx
shr ecx, 1
push ebx
mov ebx, dword [ebp + 8]
push edi
lea edi, [ecx + ecx]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edi
push esi
nop
mov esi, dword [ebx + ecx*4]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], edi
cmp edx, dword [ebp - 0x10]
jbe 0x41c2cb
lea ecx, [esi*4]
mov dword [ebp - 0x18], ecx
nop
push dword [0x49d268]
call eax
mov esi, dword [ebp + 8]
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 + edi*4]
mov edi, dword [ecx + eax*4]
mov eax, dword [ebp - 4]
add edi, edx
push edi
mov eax, dword [esi + eax*4 + 4]
mov eax, dword [ecx + eax*4]
add eax, edx
push eax
call fcn.0041cda0
add esp, 0xc
test eax, eax
jle 0x41c252
inc dword [ebp - 4]
push dword [0x49d268]
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
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 - 0x18]
mov edi, dword [ecx + eax]
mov eax, dword [ebp - 4]
add edi, edx
push edi
lea eax, [esi + eax*4]
mov dword [ebp - 0x1c], eax
mov eax, dword [eax]
mov eax, dword [ecx + eax*4]
add eax, edx
push eax
call fcn.0041cda0
mov esi, dword [ebp - 0xc]
add esp, 0xc
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
test eax, eax
jle 0x41c2c2
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov dword [ebp - 8], edi
add edi, edi
mov dword [ebp - 4], edi
mov eax, dword [eax]
mov dword [ebx + ecx*4], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp edx, edi
ja 0x41c210
jmp 0x41c2c6
dec edi
mov dword [ebp - 4], edi
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp edx, edi
jne 0x41c325
push dword [0x49d268]
call eax
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 - 4]
mov edi, dword [ecx + esi*4]
mov esi, dword [ebp + 8]
add edi, edx
push edi
lea eax, [esi + eax*4]
mov dword [ebp - 0x1c], eax
mov eax, dword [eax]
mov eax, dword [ecx + eax*4]
add eax, edx
push eax
call fcn.0041cda0
mov esi, dword [ebp - 0xc]
add esp, 0xc
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
test eax, eax
jle 0x41c328
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [ebx + ecx*4], eax
mov ecx, dword [ebp - 4]
jmp 0x41c328
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 0x10]
mov dword [ebx + ecx*4], esi
sub edi, 2
mov ecx, dword [ebp - 0x14]
mov eax, ecx
dec ecx
mov dword [ebp - 0x10], edi
test eax, eax
mov dword [ebp - 0x14], ecx
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
jne 0x41c1f0
mov ecx, dword [ebx + edx*4]
mov eax, dword [ebx]
mov dword [ebx], ecx
mov dword [ebx + edx*4], eax
sub edx, 1
mov dword [ebp + 0xc], edx
je 0x41c493
mov esi, dword [ebx]
xor edi, edi
mov dword [ebp - 8], 0
test edx, edx
je 0x41c41b
push dword [0x49d268]
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x28]
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebx + edi*4]
mov ebx, dword [ecx + eax*4]
mov eax, dword [ebp + 8]
add ebx, edx
push ebx
mov eax, dword [eax + edi*4 + 4]
mov eax, dword [ecx + eax*4]
add eax, edx
push eax
call fcn.0041cda0
add esp, 0xc
test eax, eax
jle 0x41c3b7
inc edi
push dword [0x49d268]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x28]
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp + 8]
mov ebx, dword [ecx + esi*4]
add ebx, edx
lea eax, [eax + edi*4]
mov dword [ebp - 0x18], eax
mov eax, dword [eax]
push ebx
mov eax, dword [ecx + eax*4]
add eax, edx
push eax
call fcn.0041cda0
mov ebx, dword [ebp + 8]
add esp, 0xc
mov edx, dword [ebp + 0xc]
test eax, eax
jle 0x41c41a
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
mov dword [ebp - 8], edi
add edi, edi
mov eax, dword [eax]
mov dword [ebx + ecx*4], eax
cmp edx, edi
ja 0x41c373
jmp 0x41c41b
dec edi
cmp edx, edi
jne 0x41c477
push dword [0x49d268]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x28]
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp + 8]
mov ebx, dword [ecx + esi*4]
add ebx, edx
lea eax, [eax + edi*4]
mov dword [ebp - 0x18], eax
mov eax, dword [eax]
push ebx
mov eax, dword [ecx + eax*4]
add eax, edx
push eax
call fcn.0041cda0
mov ebx, dword [ebp + 8]
add esp, 0xc
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
test eax, eax
jle 0x41c47a
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [ebx + ecx*4], eax
mov ecx, edi
jmp 0x41c47a
mov ecx, dword [ebp - 8]
mov dword [ebx + ecx*4], esi
mov ecx, dword [ebx + edx*4]
mov eax, dword [ebx]
mov dword [ebx], ecx
mov dword [ebx + edx*4], eax
sub edx, 1
mov dword [ebp + 0xc], edx
jne 0x41c360
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret