Function at 0x10005b50
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x14
mov eax, dword [0x1002b150]
push ebx
push esi
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [esp + 0x2c]
mov eax, dword [eax + 0x7b8]
mov dword [esp + 0x14], edx
lea edi, [edx + 0x100]
lea ecx, [edx + 0x200]
add edx, 0x300
mov dword [esp + 0x10], edi
cmp eax, 2
jle 0x10005e6d
mov dword [esp + 0x20], 8
sub eax, 4
cmp eax, 1
mov eax, dword [esp + 0x28]
sbb esi, esi
mov dword [esp + 0x1c], eax
neg esi
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 4
mov eax, dword [eax]
xor ebx, ebx
inc eax
inc eax
mov bl, byte [eax - 2]
inc eax
lea ebp, [ebx*8 + 0x1002db60]
mov ebx, dword [esp + 0x14]
movsx edi, word [ebp]
mov dword [ebx], edi
mov di, word [ebp + 2]
sar di, 1
movsx ebx, di
mov dword [ecx], ebx
mov di, word [ebp + 4]
sar di, 1
movsx ebx, di
mov dword [edx], ebx
xor ebx, ebx
mov bl, byte [eax - 2]
lea ebp, [ebx*8 + 0x1002e360]
mov ebx, dword [esp + 0x14]
movsx edi, word [ebp]
add dword [ebx], edi
mov di, word [ebp + 2]
sar di, 1
movsx ebx, di
add dword [ecx], ebx
mov di, word [ebp + 4]
sar di, 1
movsx ebx, di
add dword [edx], ebx
xor ebx, ebx
mov bl, byte [eax - 1]
add eax, esi
inc eax
lea ebp, [ebx*8 + 0x1002eb60]
movsx edi, word [ebp]
mov ebx, dword [esp + 0x14]
add dword [ebx], edi
mov di, word [ebp + 2]
add dword [esp + 0x14], 4
sar di, 1
movsx ebx, di
add dword [ecx], ebx
mov di, word [ebp + 4]
sar di, 1
movsx ebx, di
add dword [edx], ebx
xor ebx, ebx
mov bl, byte [eax - 1]
lea ebp, [ebx*8 + 0x1002db60]
mov ebx, dword [esp + 0x14]
movsx edi, word [ebp]
mov dword [ebx], edi
mov di, word [ebp + 2]
sar di, 1
movsx ebx, di
add dword [ecx], ebx
mov di, word [ebp + 4]
sar di, 1
movsx ebx, di
add dword [edx], ebx
inc eax
xor ebx, ebx
inc eax
mov bl, byte [eax - 2]
add ecx, 4
add edx, 4
lea ebp, [ebx*8 + 0x1002e360]
mov ebx, dword [esp + 0x14]
movsx edi, word [ebp]
add dword [ebx], edi
mov di, word [ebp + 2]
sar di, 1
movsx ebx, di
add dword [ecx - 4], ebx
mov di, word [ebp + 4]
sar di, 1
movsx ebx, di
add dword [edx - 4], ebx
xor ebx, ebx
mov bl, byte [eax - 1]
add eax, esi
lea ebp, [ebx*8 + 0x1002eb60]
mov ebx, dword [esp + 0x14]
movsx edi, word [ebp]
add dword [ebx], edi
mov di, word [ebp + 2]
add dword [esp + 0x14], 4
sar di, 1
movsx ebx, di
add dword [ecx - 4], ebx
mov di, word [ebp + 4]
sar di, 1
movsx ebx, di
add dword [edx - 4], ebx
dec dword [esp + 0x18]
jne 0x10005bb8
mov dword [esp + 0x18], 4
xor ebx, ebx
inc eax
mov edi, dword [esp + 0x10]
inc eax
mov bl, byte [eax - 2]
inc eax
lea ebx, [ebx*8 + 0x1002db60]
movsx ebp, word [ebx]
add ebx, 2
mov dword [edi], ebp
mov di, word [ebx]
sar di, 1
movsx ebp, di
mov dword [ecx], ebp
mov di, word [ebx + 2]
sar di, 1
movsx ebx, di
mov edi, dword [esp + 0x10]
mov dword [edx], ebx
xor ebx, ebx
mov bl, byte [eax - 2]
lea ebx, [ebx*8 + 0x1002e360]
movsx ebp, word [ebx]
add ebx, 2
add dword [edi], ebp
mov di, word [ebx]
sar di, 1
movsx ebp, di
add dword [ecx], ebp
mov di, word [ebx + 2]
sar di, 1
movsx ebx, di
mov edi, dword [esp + 0x10]
add dword [edx], ebx
xor ebx, ebx
mov bl, byte [eax - 1]
add eax, esi
inc eax
lea ebx, [ebx*8 + 0x1002eb60]
add dword [esp + 0x10], 4
movsx ebp, word [ebx]
add ebx, 2
add dword [edi], ebp
mov di, word [ebx]
sar di, 1
movsx ebp, di
add dword [ecx], ebp
mov di, word [ebx + 2]
sar di, 1
movsx ebx, di
mov edi, dword [esp + 0x10]
add dword [edx], ebx
xor ebx, ebx
mov bl, byte [eax - 1]
lea ebx, [ebx*8 + 0x1002db60]
movsx ebp, word [ebx]
add ebx, 2
mov dword [edi], ebp
mov di, word [ebx]
sar di, 1
movsx ebp, di
add dword [ecx], ebp
inc eax
mov di, word [ebx + 2]
inc eax
sar di, 1
add ecx, 4
movsx ebx, di
add dword [edx], ebx
mov edi, dword [esp + 0x10]
xor ebx, ebx
add edx, 4
mov bl, byte [eax - 2]
lea ebx, [ebx*8 + 0x1002e360]
movsx ebp, word [ebx]
add ebx, 2
add dword [edi], ebp
mov di, word [ebx]
sar di, 1
movsx ebp, di
add dword [ecx - 4], ebp
mov di, word [ebx + 2]
sar di, 1
movsx ebx, di
mov edi, dword [esp + 0x10]
add dword [edx - 4], ebx
xor ebx, ebx
mov bl, byte [eax - 1]
add eax, esi
add dword [esp + 0x10], 4
lea ebx, [ebx*8 + 0x1002eb60]
movsx ebp, word [ebx]
add ebx, 2
add dword [edi], ebp
mov di, word [ebx]
sar di, 1
movsx ebp, di
add dword [ecx - 4], ebp
mov di, word [ebx + 2]
sar di, 1
movsx ebx, di
add dword [edx - 4], ebx
dec dword [esp + 0x18]
jne 0x10005d08
add dword [esp + 0x1c], 4
dec dword [esp + 0x20]
jne 0x10005baa
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret
mov dword [esp + 0x20], 8
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 4
mov esi, dword [eax]
xor edi, edi
add esi, 2
mov di, word [esi - 2]
mov ebx, dword [esp + 0x14]
mov eax, edi
add esi, 2
and eax, 0x1f
shl eax, 6
lea ebp, [eax + 0x1002db60]
movsx eax, word [ebp]
mov dword [ebx], eax
mov ax, word [ebp + 2]
sar ax, 1
movsx ebx, ax
mov dword [ecx], ebx
mov ax, word [ebp + 4]
sar ax, 1
movsx ebx, ax
mov eax, edi
mov dword [edx], ebx
and eax, 0x3e0
mov ebx, dword [esp + 0x14]
and edi, 0x7c00
lea ebp, [eax*2 + 0x1002e360]
movsx eax, word [ebp]
shr edi, 4
add dword [ebx], eax
mov ax, word [ebp + 2]
add edi, 0x1002eb60
sar ax, 1
movsx ebx, ax
add dword [ecx], ebx
mov ax, word [ebp + 4]
sar ax, 1
movsx ebx, ax
add dword [edx], ebx
mov ebx, dword [esp + 0x14]
movsx eax, word [edi]
add dword [ebx], eax
mov ax, word [edi + 2]
add dword [esp + 0x14], 4
sar ax, 1
movsx ebx, ax
add dword [ecx], ebx
mov ax, word [edi + 4]
xor edi, edi
sar ax, 1
movsx ebx, ax
add dword [edx], ebx
mov ebx, dword [esp + 0x14]
mov di, word [esi - 2]
mov eax, edi
and eax, 0x1f
shl eax, 6
lea ebp, [eax + 0x1002db60]
movsx eax, word [ebp]
mov dword [ebx], eax
mov ax, word [ebp + 2]
sar ax, 1
movsx ebx, ax
add dword [ecx], ebx
mov ax, word [ebp + 4]
add ecx, 4
sar ax, 1
add edx, 4
movsx ebx, ax
mov eax, edi
add dword [edx - 4], ebx
and eax, 0x3e0
mov ebx, dword [esp + 0x14]
and edi, 0x7c00
lea ebp, [eax*2 + 0x1002e360]
movsx eax, word [ebp]
shr edi, 4
add dword [ebx], eax
mov ax, word [ebp + 2]
add edi, 0x1002eb60
sar ax, 1
movsx ebx, ax
add dword [ecx - 4], ebx
mov ax, word [ebp + 4]
sar ax, 1
movsx ebx, ax
add dword [edx - 4], ebx
mov ebx, dword [esp + 0x14]
movsx eax, word [edi]
add dword [ebx], eax
mov ax, word [edi + 2]
add dword [esp + 0x14], 4
sar ax, 1
movsx ebx, ax
add dword [ecx - 4], ebx
mov ax, word [edi + 4]
sar ax, 1
movsx ebx, ax
add dword [edx - 4], ebx
dec dword [esp + 0x18]
jne 0x10005e8b
mov dword [esp + 0x18], 4
xor ebx, ebx
add esi, 2
mov bx, word [esi - 2]
mov edi, dword [esp + 0x10]
mov eax, ebx
add esi, 2
and eax, 0x1f
shl eax, 6
lea ebp, [eax + 0x1002db60]
movsx eax, word [ebp]
mov dword [edi], eax
mov ax, word [ebp + 2]
sar ax, 1
movsx edi, ax
mov dword [ecx], edi
mov edi, dword [esp + 0x10]
mov ax, word [ebp + 4]
sar ax, 1
movsx ebp, ax
mov eax, ebx
mov dword [edx], ebp
and eax, 0x3e0
and ebx, 0x7c00
shr ebx, 4
lea ebp, [eax*2 + 0x1002e360]
movsx eax, word [ebp]
add ebx, 0x1002eb60
add dword [edi], eax
mov ax, word [ebp + 2]
sar ax, 1
movsx edi, ax
add dword [ecx], edi
mov edi, dword [esp + 0x10]
mov ax, word [ebp + 4]
sar ax, 1
add dword [esp + 0x10], 4
movsx ebp, ax
add dword [edx], ebp
movsx eax, word [ebx]
add dword [edi], eax
mov edi, dword [esp + 0x10]
mov ax, word [ebx + 2]
sar ax, 1
movsx ebp, ax
add dword [ecx], ebp
mov ax, word [ebx + 4]
sar ax, 1
movsx ebx, ax
add dword [edx], ebx
xor ebx, ebx
mov bx, word [esi - 2]
mov eax, ebx
and eax, 0x1f
shl eax, 6
lea ebp, [eax + 0x1002db60]
movsx eax, word [ebp]
mov dword [edi], eax
mov ax, word [ebp + 2]
sar ax, 1
movsx edi, ax
add dword [ecx], edi
mov ax, word [ebp + 4]
mov edi, dword [esp + 0x10]
sar ax, 1
add ecx, 4
movsx ebp, ax
add dword [edx], ebp
mov eax, ebx
and eax, 0x3e0
and ebx, 0x7c00
shr ebx, 4
add edx, 4
lea ebp, [eax*2 + 0x1002e360]
add ebx, 0x1002eb60
movsx eax, word [ebp]
add dword [edi], eax
mov ax, word [ebp + 2]
sar ax, 1
movsx edi, ax
add dword [ecx - 4], edi
mov edi, dword [esp + 0x10]
mov ax, word [ebp + 4]
sar ax, 1
add dword [esp + 0x10], 4
movsx ebp, ax
add dword [edx - 4], ebp
movsx eax, word [ebx]
add dword [edi], eax
mov ax, word [ebx + 2]
sar ax, 1
movsx ebp, ax
add dword [ecx - 4], ebp
mov ax, word [ebx + 4]
sar ax, 1
movsx ebx, ax
add dword [edx - 4], ebx
dec dword [esp + 0x18]
jne 0x10005ff0
add dword [esp + 0x1c], 4
dec dword [esp + 0x20]
jne 0x10005e7d
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret