Function at 0x100055a0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0xc
mov eax, dword [0x1002b150]
push ebx
push esi
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0x24]
mov eax, dword [eax + 0x7b8]
cmp eax, 2
lea edx, [ecx + 0x100]
lea esi, [ecx + 0x200]
jle 0x10005685
sub eax, 4
mov dword [esp + 0x18], 8
cmp eax, 1
sbb eax, eax
neg eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ebx, 8
mov edi, dword [eax]
xor eax, eax
inc edi
inc edi
add ecx, 4
add esi, 4
mov al, byte [edi - 2]
inc edi
add edx, 4
lea eax, [eax*8 + 0x1002db60]
movsx ebp, word [eax]
mov dword [ecx - 4], ebp
movsx ebp, word [eax + 2]
mov dword [edx - 4], ebp
movsx eax, word [eax + 4]
mov dword [esi - 4], eax
xor eax, eax
mov al, byte [edi - 2]
lea eax, [eax*8 + 0x1002e360]
movsx ebp, word [eax]
add dword [ecx - 4], ebp
movsx ebp, word [eax + 2]
add dword [edx - 4], ebp
movsx eax, word [eax + 4]
add dword [esi - 4], eax
xor eax, eax
mov al, byte [edi - 1]
add edi, dword [esp + 0x10]
lea eax, [eax*8 + 0x1002eb60]
movsx ebp, word [eax]
add dword [ecx - 4], ebp
movsx ebp, word [eax + 2]
add dword [edx - 4], ebp
movsx eax, word [eax + 4]
add dword [esi - 4], eax
dec ebx
jne 0x100055fb
add dword [esp + 0x14], 4
dec dword [esp + 0x18]
jne 0x100055f0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x20]
jne 0x1000573e
mov dword [esp + 0x18], 8
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], 8
mov edi, dword [eax]
xor ebx, ebx
add edi, 2
mov bx, word [edi - 2]
add ecx, 4
mov eax, ebx
add edx, 4
and eax, 0x1f
add esi, 4
shl eax, 6
add eax, 0x1002db60
movsx ebp, word [eax]
mov dword [ecx - 4], ebp
movsx ebp, word [eax + 2]
mov dword [edx - 4], ebp
movsx eax, word [eax + 4]
mov dword [esi - 4], eax
mov eax, ebx
and eax, 0x3e0
and ebx, 0x7c00
shr ebx, 4
lea eax, [eax*2 + 0x1002e360]
movsx ebp, word [eax]
add ebx, 0x1002eb60
add dword [ecx - 4], ebp
movsx ebp, word [eax + 2]
add dword [edx - 4], ebp
movsx eax, word [eax + 4]
add dword [esi - 4], eax
movsx eax, word [ebx]
add dword [ecx - 4], eax
movsx ebp, word [ebx + 2]
add dword [edx - 4], ebp
movsx eax, word [ebx + 4]
add dword [esi - 4], eax
dec dword [esp + 0x10]
jne 0x100056a9
add dword [esp + 0x14], 4
dec dword [esp + 0x18]
jne 0x1000569b
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov dword [esp + 0x18], 8
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], 8
mov edi, dword [eax]
xor eax, eax
inc edi
mov al, byte [edi - 1]
add esi, 4
add ecx, 4
add edx, 4
lea ebx, [eax*8 + 0x1002db60]
movsx ebp, word [ebx]
mov dword [ecx - 4], ebp
movsx ebp, word [ebx + 2]
mov dword [edx - 4], ebp
movsx ebx, word [ebx + 4]
mov dword [esi - 4], ebx
lea ebx, [eax*8 + 0x1002e360]
movsx ebp, word [ebx]
add dword [ecx - 4], ebp
movsx ebp, word [ebx + 2]
add dword [edx - 4], ebp
movsx ebx, word [ebx + 4]
add dword [esi - 4], ebx
lea ebx, [eax*8 + 0x1002eb60]
movsx eax, word [ebx]
add dword [ecx - 4], eax
movsx ebp, word [ebx + 2]
add dword [edx - 4], ebp
movsx eax, word [ebx + 4]
add dword [esi - 4], eax
dec dword [esp + 0x10]
jne 0x10005758
add dword [esp + 0x14], 4
dec dword [esp + 0x18]
jne 0x1000574a
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret