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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
test edi, edi
je 0x487560
mov eax, dword [edi + 8]
test eax, eax
je 0x487560
mov ecx, dword [eax + 0xc8]
test ecx, ecx
je 0x4871fe
call fcn.0047fe30
jmp 0x487221
mov ecx, 4
call fcn.00479b80
mov ecx, dword [edi + 8]
mov dword [ecx + 0xc8], eax
mov eax, dword [edi + 8]
cmp dword [eax + 0xc8], 0
je 0x4875af
mov eax, dword [edi + 8]
mov dword [eax + 0xcc], 0
mov eax, dword [edi + 8]
mov eax, dword [eax + 0xd0]
test eax, eax
je 0x48725a
jmp 0x487240
mov esi, dword [eax]
push eax
call fcn.004bae83
add esp, 4
mov eax, esi
test esi, esi
jne 0x487240
mov eax, dword [edi + 8]
mov dword [eax + 0xd0], esi
cmp dword [ebx + 0x98], 1
mov edx, dword [ebp + 8]
jne 0x487270
movzx ecx, byte [edx + 0x13]
movzx eax, byte [edx + 0x12]
jmp 0x487278
movzx ecx, byte [edx + 0x12]
movzx eax, byte [edx + 0x13]
shl ecx, 8
add ecx, eax
mov eax, dword [edi + 8]
movzx ecx, cx
mov dword [eax + 0x18], ecx
cmp dword [ebx + 0x98], 1
jne 0x487299
movzx ecx, byte [edx + 0x11]
movzx eax, byte [edx + 0x10]
jmp 0x4872a1
movzx ecx, byte [edx + 0x10]
movzx eax, byte [edx + 0x11]
shl ecx, 8
add ecx, eax
mov eax, dword [edi + 8]
movzx ecx, cx
mov dword [eax + 0xc4], ecx
mov ecx, dword [edi + 8]
mov eax, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ecx + 0xc], eax
cmp dword [ebx + 0x98], 1
jne 0x4872d4
movzx ecx, byte [edx + 0x17]
movzx eax, byte [edx + 0x16]
jmp 0x4872dc
movzx ecx, byte [edx + 0x16]
movzx eax, byte [edx + 0x17]
shl ecx, 8
add ecx, eax
mov eax, dword [edi + 8]
test cl, 2
je 0x4872f2
mov dword [eax + 0x10], 2
jmp 0x4872f9
mov dword [eax + 0x10], 1
mov eax, dword [edi + 8]
xor ecx, ecx
mov dword [eax + 0x14], 0
mov eax, dword [edi + 8]
mov dword [eax + 0x28], 0
mov eax, dword [edi + 8]
mov dword [eax + 0x2c], 0
mov eax, dword [edi + 8]
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov eax, dword [edi + 8]
mov dword [eax + 0x30], 0
mov dword [eax + 0x34], 0
mov eax, dword [edi + 8]
mov dword [eax + 0x38], 0
mov eax, dword [edi + 8]
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
mov eax, dword [edi + 8]
mov dword [eax + 0x48], 0
mov eax, dword [edi + 8]
mov dword [eax + 0x50], 0
mov dword [eax + 0x54], 0
mov eax, dword [edi + 8]
mov dword [eax + 0x58], 0
mov eax, dword [edi + 8]
mov dword [eax + 0x60], 0
mov dword [eax + 0x64], 0
mov eax, dword [edi + 8]
mov dword [eax + 0x68], 0
mov eax, dword [edi + 8]
mov dword [eax + 0x80], 0
mov dword [eax + 0x84], 0
mov eax, dword [edi + 8]
mov dword [eax + 0x88], 0
mov dword [eax + 0x8c], 0
mov eax, dword [edi + 8]
mov dword [eax + 0x90], 0
mov dword [eax + 0x94], 0
mov eax, dword [edi + 8]
mov dword [eax + 0x98], 0
mov dword [eax + 0x9c], 0
mov eax, dword [edi + 8]
mov dword [eax + 0xa0], 0
mov dword [eax + 0xa4], 0
mov eax, dword [edi + 8]
mov dword [eax + 0xa8], 0
mov dword [eax + 0xac], 0
mov eax, dword [edi + 8]
mov dword [eax + 0x70], 0
mov dword [eax + 0x74], 0
mov eax, dword [edi + 8]
mov dword [eax + 0x78], 0
mov dword [eax + 0x7c], 0
mov eax, dword [edi + 8]
mov word [eax + 0xb0], cx
cmp dword [ebx + 0x98], 1
jne 0x48745f
movzx ecx, byte [edx + 0x17]
movzx eax, byte [edx + 0x16]
jmp 0x487467
movzx ecx, byte [edx + 0x16]
movzx eax, byte [edx + 0x17]
shl ecx, 8
add ecx, eax
mov eax, dword [edi + 8]
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
add ecx, 2
mov dword [eax + 4], ecx
cmp dword [ebx + 0x98], 1
movzx ecx, byte [edx + 0x15]
movzx esi, byte [edx + 0x14]
jne 0x487499
mov eax, ecx
shl eax, 8
add eax, esi
jmp 0x4874a0
mov eax, esi
shl eax, 8
add eax, ecx
movzx eax, ax
cmp eax, dword [ebx + 0x130]
jbe 0x4874d1
call fcn.00476ab0
mov ecx, 0x8000006
call fcn.00476850
push str.ntfs_dinode_copy:_corrupt_MFT_entry_attribute_offsets
call fcn.004768f0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret
cmp dword [ebx + 0x98], 1
jne 0x4874e3
mov eax, ecx
shl eax, 8
add eax, esi
jmp 0x4874ea
mov eax, esi
shl eax, 8
add eax, ecx
movzx eax, ax
add dword [ebp + 8], eax
cmp dword [ebx + 0x98], 1
jne 0x4874fe
shl ecx, 8
jmp 0x487501
shl esi, 8
mov eax, dword [edi + 8]
add ecx, esi
push 0
mov edx, edi
push dword [eax + 0xc]
push dword [eax + 8]
movzx eax, cx
mov ecx, dword [ebx + 0x130]
sub ecx, eax
push ecx
push dword [ebp + 8]
mov ecx, ebx
call fcn.00483410
add esp, 0x14
test eax, eax
jne 0x4875b4
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0xc8]
test ecx, ecx
je 0x487555
mov ecx, dword [ecx]
test ecx, ecx
je 0x487555
test byte [ecx + 8], 1
je 0x487555
or dword [eax + 4], 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
or dword [eax + 4], 8
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.00476ab0
mov edi, dword [0x56161c]
push edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x48759c
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 str.ntfs_dinode_copy:_NULL_fs_file_given
mov dword [esi], 0x8000006
call fcn.004768f0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret