Function at 0x482680
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
mov dword [ebp - 4], ecx
push ebx
push esi
xorps xmm0, xmm0
push edi
mov edi, edx
movlpd qword [ebp - 0x10], xmm0
jb 0x4826c8
mov edx, dword [ebp + 0xc]
ja 0x4826a3
test edx, edx
je 0x4826c8
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
lea esp, [esp]
mov eax, dword [ebx + ecx*8]
or eax, dword [ebx + ecx*8 + 4]
jne 0x482703
add ecx, 1
adc esi, eax
cmp esi, eax
jb 0x4826b0
ja 0x4826c8
cmp ecx, edx
jb 0x4826b0
cmp dword [0x561618], 0
je 0x4826e7
push str.ntfs_proc_compunit:_Unit_is_fully_sparse_n
call fcn.004bdd06
add eax, 0x40
push eax
call fcn.00479b20
add esp, 8
mov esi, dword [edi + 0x10]
push esi
push 0
push dword [edi]
call fcn.004c13c0
add esp, 0xc
mov dword [edi + 0xc], esi
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + edx*8 - 8]
or eax, dword [ebx + edx*8 - 4]
jne 0x48289d
cmp dword [0x561618], eax
je 0x48272f
push str.ntfs_proc_compunit:_Unit_is_compressed_n
call fcn.004bdd06
add eax, 0x40
push eax
call fcn.00479b20
add esp, 8
mov esi, dword [edi + 0x10]
push esi
push 0
push dword [edi]
call fcn.004c13c0
add esp, 0xc
mov dword [edi + 0xc], 0
push esi
push 0
push dword [edi + 4]
call fcn.004c13c0
add esp, 0xc
mov dword [edi + 8], 0
xor eax, eax
xorps xmm0, xmm0
movlpd qword [ebp - 0x10], xmm0
jb 0x4827c2
ja 0x48276e
cmp dword [ebp + 0xc], eax
jbe 0x4827c2
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebx + esi*8]
mov ecx, dword [ebx + esi*8 + 4]
or eax, ecx
je 0x4827c2
mov eax, dword [ebp - 4]
mov edx, dword [edi + 4]
add edx, dword [edi + 8]
push dword [eax + 0x50]
push ecx
push dword [ebx + esi*8]
mov ecx, eax
call fcn.004912b0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov ecx, dword [ecx + 0x50]
cmp eax, ecx
jne 0x4827da
add dword [edi + 8], ecx
add esi, 1
mov ecx, dword [ebp - 8]
adc ecx, 0
xor eax, eax
mov dword [ebp - 8], ecx
cmp ecx, eax
jb 0x482777
ja 0x4827c2
cmp esi, dword [ebp + 0xc]
jb 0x482777
mov ecx, edi
call fcn.00482090
test al, al
je 0x4826fa
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
js 0x482880
mov eax, dword [0x56161c]
push eax
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x482824
push 0xc08
call fcn.004bb5d5
add esp, 4
mov edi, eax
push 0xc08
push 0
push edi
call fcn.004c13c0
add esp, 0xc
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test edi, edi
je 0x48283c
mov dword [edi], 0
mov byte [edi + 4], 0
mov byte [edi + 0x405], 0
mov byte [edi + 0x806], 0
mov eax, dword [0x56161c]
push eax
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x48287a
push 0xc08
call fcn.004bb5d5
add esp, 4
mov edi, eax
push 0xc08
push 0
push edi
call fcn.004c13c0
add esp, 0xc
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [edi], 0x8000004
push dword [ebx + esi*8 + 4]
push dword [ebx + esi*8]
push str.ntfs_proc_compunit:_Error_reading_block_at__llu
call fcn.00476950
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x561618], 0
je 0x4828bf
push str.ntfs_proc_compunit:_Unit_is_not_compressed_n
call fcn.004bdd06
add eax, 0x40
push eax
call fcn.00479b20
mov edx, dword [ebp + 0xc]
add esp, 8
xor eax, eax
mov dword [edi + 0xc], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x10], xmm0
jb 0x4826fa
ja 0x4828e0
test edx, edx
je 0x4826fa
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ecx + 0x50]
nop
mov edx, dword [edi + 0xc]
add edx, dword [edi]
push ecx
push dword [ebx + esi*8 + 4]
mov ecx, dword [ebp - 4]
push dword [ebx + esi*8]
call fcn.004912b0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov ecx, dword [ecx + 0x50]
cmp eax, ecx
jne 0x482939
add dword [edi + 0xc], ecx
add esi, 1
mov eax, dword [ebp - 8]
adc eax, 0
mov dword [ebp - 8], eax
test eax, eax
jb 0x4828f0
ja 0x4826fa
cmp esi, dword [ebp + 0xc]
jb 0x4828f0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
js 0x4829df
mov eax, dword [0x56161c]
push eax
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x482983
push 0xc08
call fcn.004bb5d5
add esp, 4
mov edi, eax
push 0xc08
push 0
push edi
call fcn.004c13c0
add esp, 0xc
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test edi, edi
je 0x48299b
mov dword [edi], 0
mov byte [edi + 4], 0
mov byte [edi + 0x405], 0
mov byte [edi + 0x806], 0
mov eax, dword [0x56161c]
push eax
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x4829d9
push 0xc08
call fcn.004bb5d5
add esp, 4
mov edi, eax
push 0xc08
push 0
push edi
call fcn.004c13c0
add esp, 0xc
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [edi], 0x8000004
push dword [ebx + esi*8 + 4]
push dword [ebx + esi*8]
push str.ntfs_proc_compunit:_Error_reading_block_at__llu
call fcn.00476950
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret