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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov esi, ecx
call fcn.00476ab0
xor ebx, ebx
mov dword [esi + 0xc], 0
cmp dword [esi + 8], 1
jbe 0x482323
mov eax, dword [esi + 4]
movzx edi, byte [ebx + eax + 1]
movzx eax, byte [ebx + eax]
shl edi, 8
or edi, eax
and edi, 0xfff
add edi, 3
cmp edi, 3
je 0x482323
lea edx, [edi + ebx]
mov dword [ebp - 8], edx
cmp edx, dword [esi + 8]
ja 0x48261d
cmp dword [0x561618], 0
je 0x482108
push edi
push str.ntfs_uncompress_compunit:_Block_size_is__Iu_n
call fcn.004bdd06
add eax, 0x40
push eax
call fcn.00479b20
mov edx, dword [ebp - 8]
add esp, 0xc
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x20], ecx
movsx eax, byte [eax + ebx + 1]
add ebx, 2
shr eax, 0xf
and al, 1
jne 0x482165
lea eax, [edi - 2]
cmp eax, 0x1000
jne 0x482165
cmp ebx, edx
jae 0x482317
mov edi, dword [esi + 8]
cmp ebx, edi
jae 0x482317
mov edx, dword [esi + 0xc]
cmp edx, dword [esi + 0x10]
jae 0x48232c
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov al, byte [eax + ebx]
inc ebx
mov byte [edx + ecx], al
lea eax, [edx + 1]
mov dword [esi + 0xc], eax
cmp ebx, dword [ebp - 8]
jb 0x482135
jmp 0x482317
cmp ebx, edx
jae 0x482317
lea ecx, [ecx]
mov eax, dword [esi + 4]
mov al, byte [ebx + eax]
inc ebx
cmp dword [0x561618], 0
mov byte [ebp - 1], al
je 0x4821a3
movzx eax, al
push eax
push str.ntfs_uncompress_compunit:_New_Tag:__x_n
call fcn.004bdd06
add eax, 0x40
push eax
call fcn.00479b20
mov al, byte [ebp - 1]
add esp, 0xc
mov edx, dword [ebp - 8]
xor ecx, ecx
lea edi, [ebx + 1]
mov dword [ebp - 0x18], ecx
jmp 0x4821b0
cmp ebx, edx
jae 0x482317
test al, 1
jne 0x482200
cmp dword [0x561618], 0
je 0x4821dc
push ebx
push str.ntfs_uncompress_compunit:_Symbol_Token:__Iu_n
call fcn.004bdd06
add eax, 0x40
push eax
call fcn.00479b20
add esp, 0xc
mov edx, dword [esi + 0xc]
cmp edx, dword [esi + 0x10]
jae 0x482351
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov al, byte [ebx + eax]
inc ebx
mov byte [edx + ecx], al
inc edi
lea eax, [edx + 1]
mov dword [esi + 0xc], eax
jmp 0x4822f4
cmp edi, edx
jae 0x4825c6
mov eax, dword [esi + 4]
mov edx, 0xff
add edi, 2
mov dword [ebp - 0x1c], edi
mov edi, dword [esi + 0xc]
movsx cx, byte [ebx + eax + 1]
movsx ax, byte [ebx + eax]
add ebx, 2
shl cx, 8
and ax, dx
xor edx, edx
or cx, ax
mov eax, edi
sub eax, dword [ebp - 0x20]
dec eax
movzx ecx, cx
mov dword [ebp - 0x10], ecx
cmp eax, 0x10
jb 0x48224c
shr eax, 1
inc edx
cmp eax, 0x10
jae 0x482244
movzx eax, cx
mov ecx, 0xc
sub cl, dl
mov dword [ebp - 0xc], 0xfff
shr eax, cl
mov ecx, edx
mov edx, dword [ebp - 0xc]
inc eax
sar edx, cl
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
movzx ecx, ax
mov eax, dword [ebp - 0x14]
and edx, ecx
add edx, 2
sub edi, eax
mov dword [ebp - 0xc], edx
add edx, edi
cmp dword [0x561618], 0
mov dword [ebp - 0x10], edx
je 0x4822ad
push ecx
push eax
push dword [ebp - 0xc]
push ebx
push str.ntfs_uncompress_compunit:_Phrase_Token:__Iu_t_d_t_d_t_x_n
call fcn.004bdd06
add eax, 0x40
push eax
call fcn.00479b20
mov edx, dword [ebp - 0x10]
add esp, 0x18
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 0xc]
ja 0x48251a
mov eax, dword [esi + 0x10]
cmp edx, eax
ja 0x482463
sub eax, dword [esi + 0xc]
mov ecx, edx
sub ecx, edi
inc ecx
cmp ecx, eax
ja 0x4823a7
cmp edi, edx
ja 0x4822f1
mov edx, dword [esi + 0xc]
cmp edx, dword [esi + 0x10]
jae 0x4822f1
mov ecx, dword [esi]
mov al, byte [ecx + edi]
inc edi
mov byte [ecx + edx], al
lea eax, [edx + 1]
mov dword [esi + 0xc], eax
cmp edi, dword [ebp - 0x10]
jbe 0x4822d5
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov al, byte [ebp - 1]
inc ecx
mov edx, dword [ebp - 8]
shr al, 1
mov byte [ebp - 1], al
mov dword [ebp - 0x18], ecx
cmp ecx, 8
jl 0x4821b0
cmp ebx, edx
jb 0x482170
lea eax, [ebx + 1]
cmp eax, dword [esi + 8]
jb 0x4820b3
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00476ab0
mov ecx, 0x800000b
call fcn.00476850
push str.ntfs_uncompress_compunit:_Trying_to_write_past_end_of_uncompression_buffer__1_____corrupt_data__
call fcn.004768f0
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [0x56161c]
push ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x482388
push 0xc08
call fcn.004bb5d5
push 0xc08
mov edi, eax
push 0
push edi
call fcn.004c13c0
add esp, 0x10
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esi + 0xc]
mov dword [edi], 0x800000b
push str.ntfs_uncompress_compunit:_Trying_to_write_past_end_of_uncompression_buffer:__Iu
call fcn.004768f0
add esp, 8
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x56161c]
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4823e6
push 0xc08
call fcn.004bb5d5
push 0xc08
mov ebx, eax
push 0
push ebx
call fcn.004c13c0
add esp, 0x10
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test ebx, ebx
je 0x4823fe
mov dword [ebx], 0
mov byte [ebx + 4], 0
mov byte [ebx + 0x405], 0
mov byte [ebx + 0x806], 0
mov eax, dword [0x56161c]
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x482439
push 0xc08
call fcn.004bb5d5
push 0xc08
mov ebx, eax
push 0
push ebx
call fcn.004c13c0
add esp, 0x10
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
push eax
mov eax, dword [ebp - 0x10]
sub eax, edi
mov dword [ebx], 0x800000b
inc eax
push eax
push str.ntfs_uncompress_compunit:_Phrase_token_length_is_too_large_for_rest_of_uncomp_buf:___Iu__max:__Iu_
call fcn.004768f0
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x56161c]
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4824a2
push 0xc08
call fcn.004bb5d5
push 0xc08
mov ebx, eax
push 0
push ebx
call fcn.004c13c0
add esp, 0x10
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test ebx, ebx
je 0x4824ba
mov dword [ebx], 0
mov byte [ebx + 4], 0
mov byte [ebx + 0x405], 0
mov byte [ebx + 0x806], 0
mov eax, dword [0x56161c]
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4824f5
push 0xc08
call fcn.004bb5d5
push 0xc08
mov ebx, eax
push 0
push ebx
call fcn.004c13c0
add esp, 0x10
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esi + 0x10]
sub eax, edi
mov dword [ebx], 0x800000b
push eax
push dword [ebp - 0xc]
push str.ntfs_uncompress_compunit:_Phrase_token_length_is_too_large:___d__max:__Iu_
call fcn.004768f0
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [0x56161c]
push ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x482555
push 0xc08
call fcn.004bb5d5
push 0xc08
mov edi, eax
push 0
push edi
call fcn.004c13c0
add esp, 0x10
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test edi, edi
je 0x48256d
mov dword [edi], 0
mov byte [edi + 4], 0
mov byte [edi + 0x405], 0
mov byte [edi + 0x806], 0
mov ebx, dword [0x56161c]
push ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x4825a4
push 0xc08
call fcn.004bb5d5
push 0xc08
mov edi, eax
push 0
push edi
call fcn.004c13c0
add esp, 0x10
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esi + 0xc]
mov dword [edi], 0x800000b
push dword [ebp - 0x14]
push str.ntfs_uncompress_compunit:_Phrase_token_offset_is_too_large:___d__max:__Iu_
call fcn.004768f0
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [0x56161c]
push edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x4825fd
push 0xc08
call fcn.004bb5d5
push 0xc08
mov esi, eax
push 0
push esi
call fcn.004c13c0
add esp, 0x10
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0x18]
push ecx
push str.ntfs_uncompress_compunit:_Phrase_token_index_is_past_end_of_block:__d
mov dword [esi], 0x800000b
call fcn.004768f0
add esp, 8
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [0x56161c]
push edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x482654
push 0xc08
call fcn.004bb5d5
push 0xc08
mov esi, eax
push 0
push esi
call fcn.004c13c0
add esp, 0x10
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [ebp - 8]
mov dword [esi], 0x800000b
push str.ntfs_uncompress_compunit:_Block_length_longer_than_buffer_length:__Iu
call fcn.004768f0
add esp, 8
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret