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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx], 0
mov dword [ebp - 4], ecx
test byte [edi], 0xf
mov dword [ebp - 0x1c], 0
movlpd qword [ebp - 0x30], xmm0
mov dword [ebp - 0x14], eax
je 0x10dca9
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
jmp 0x10da03
mov ebx, dword [ebp + 0x10]
xorps xmm0, xmm0
mov ecx, 0x28
movlpd qword [ebp - 0x30], xmm0
call fcn.000f2310
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
je 0x10dea9
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10da2d
mov dword [eax], esi
jmp 0x10da2f
mov dword [ebx], esi
xor ebx, ebx
mov dword [ebp - 0x1c], esi
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
test byte [edi], 0xf
mov dword [ebp + 0xc], ebx
jbe 0x10daa6
xor edx, edx
mov dword [ebp - 0x18], edx
movzx eax, byte [ebx + edi + 1]
mov ecx, edx
shl eax, cl
inc ebx
cdq
or dword [esi + 0x18], eax
or dword [esi + 0x1c], edx
cmp dword [0x1aa220], 0
je 0x10da8c
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
movzx ecx, byte [ebx + edi]
push eax
push edx
push eax
push edx
push ecx
push ecx
push dword [ebp + 0xc]
push 0x1969b8
push 2
call fcn.00158e14
add esp, 4
push eax
call fcn.000f0dc0
add esp, 0x24
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x18]
inc ecx
movzx eax, byte [edi]
add edx, 8
and eax, 0xf
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0x18], edx
cmp ecx, eax
jb 0x10da47
mov edx, dword [ebp - 4]
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
cmp ecx, dword [edx + 0x34]
ja 0x10ddd3
jb 0x10dac3
cmp eax, dword [edx + 0x30]
ja 0x10ddd3
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
mov dword [esi + 8], edx
add edx, eax
mov dword [esi + 0xc], ecx
mov ecx, dword [esi + 0x1c]
adc dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], edx
xor edx, edx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], edx
movzx eax, byte [edi]
mov dword [ebp - 8], edx
test eax, 0xfffffff0
jbe 0x10db67
mov edx, dword [ebp - 0x30]
xor ecx, ecx
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x18], ecx
mov dword [ebp + 0xc], edx
jmp 0x10db03
mov ecx, dword [ebp - 0x18]
movzx eax, byte [ebx + edi + 1]
inc ebx
shl eax, cl
mov ecx, dword [ebp + 0xc]
cdq
or ecx, eax
or esi, edx
cmp dword [0x1aa220], 0
mov dword [ebp + 0xc], ecx
je 0x10db47
movzx eax, byte [ebx + edi]
push esi
push ecx
push esi
push ecx
push eax
push eax
push dword [ebp - 8]
push 0x196a38
push 2
call fcn.00158e14
add esp, 4
push eax
call fcn.000f0dc0
mov ecx, dword [ebp + 0xc]
add esp, 0x24
mov edx, dword [ebp - 8]
movzx eax, byte [edi]
inc edx
add dword [ebp - 0x18], 8
shr eax, 4
mov dword [ebp - 8], edx
cmp edx, eax
jb 0x10db00
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
jmp 0x10db73
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 8], eax
mov dword [ebp + 0xc], ecx
cmp byte [ebx + edi], 0
jge 0x10dbb9
cmp edx, 8
jae 0x10dbb9
mov esi, dword [ebp - 8]
lea ebx, [edx*8]
nop dword [eax + eax]
mov eax, 0xff
xor edx, edx
mov ecx, ebx
call fcn.00171da0
mov ecx, dword [ebp + 0xc]
add ebx, 8
or ecx, eax
or esi, edx
mov dword [ebp + 0xc], ecx
cmp ebx, 0x40
jb 0x10db90
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
mov ebx, dword [0x1aa220]
test ebx, ebx
je 0x10dbe9
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push eax
push ecx
push 0x196a80
push 2
call fcn.00158e14
add esp, 4
push eax
call fcn.000f0dc0
mov ebx, dword [0x1aa220]
add esp, 0x18
mov edx, dword [ebp + 0xc]
mov eax, edx
mov ecx, dword [ebp - 8]
and eax, ecx
cmp eax, 0xffffffff
jne 0x10dcb2
mov eax, dword [ebp - 0xc]
or eax, dword [ebp - 0x10]
je 0x10dc14
mov eax, dword [ebp - 4]
cmp byte [eax + 0x11c], 0x21
jne 0x10dccc
or dword [esi + 0x20], 2
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
test ebx, ebx
je 0x10dc42
push 0x196ac8
push 2
call fcn.00158e14
add esp, 4
push eax
call fcn.000f0dc0
add esp, 8
mov ebx, dword [ebp - 4]
movzx ecx, byte [edi]
mov eax, ecx
and ecx, 0xf
shr eax, 4
add ecx, edi
lea edi, [eax + 1]
add edi, ecx
test byte [edi], 0xf
jne 0x10da00
mov edi, dword [ebp + 0x10]
mov esi, dword [edi]
test esi, esi
je 0x10dca9
cmp dword [esi], 0
jne 0x10dca9
test byte [esi + 0x20], 2
je 0x10dca9
mov eax, dword [ebx + 0x40]
mov ecx, dword [ebx + 0x44]
add eax, 1
adc ecx, 0
cmp dword [esi + 0x18], eax
jne 0x10dca9
cmp dword [esi + 0x1c], ecx
jne 0x10dca9
nop word [eax + eax]
mov eax, esi
mov esi, dword [esi]
push eax
mov dword [eax], 0
call fcn.00158d47
add esp, 4
test esi, esi
jne 0x10dc90
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edx
or eax, ecx
jne 0x10dccc
cmp dword [ebp + 0x18], 7
jne 0x10dcc3
cmp dword [ebp + 0x1c], eax
je 0x10dccc
or dword [esi + 0x20], 2
jmp 0x10dc26
add edx, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
adc ecx, dword [ebp - 0x10]
mov dword [esi + 0x14], ecx
mov ecx, edx
mov eax, dword [esi + 0x14]
mov dword [ebp - 0xc], ecx
add ecx, dword [esi + 0x18]
mov dword [ebp - 0x10], eax
adc eax, dword [esi + 0x1c]
mov dword [esi + 0x10], edx
cmp eax, dword [ebx + 0x34]
ja 0x10dd00
jb 0x10dc45
cmp ecx, dword [ebx + 0x30]
jbe 0x10dc45
mov edi, dword [0x1aa224]
push edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, eax
test esi, esi
jne 0x10dd40
push 0xc08
call fcn.0015c8ae
add esp, 4
mov esi, eax
push 0xc08
push 0
push esi
call fcn.00153d90
add esp, 0xc
push esi
push edi
call ebx
test esi, esi
je 0x10dd58
mov dword [esi], 0
mov byte [esi + 4], 0
mov byte [esi + 0x405], 0
mov byte [esi + 0x806], 0
mov edi, dword [0x1aa224]
push edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x10dd8e
push 0xc08
call fcn.0015c8ae
add esp, 4
mov esi, eax
push 0xc08
push 0
push esi
call fcn.00153d90
add esp, 0xc
push esi
push edi
call ebx
push 0x196ae8
mov dword [esi], 0x8000009
call fcn.000ee5f0
mov edi, dword [ebp + 0x10]
add esp, 4
mov esi, dword [edi]
test esi, esi
je 0x10de97
nop
mov eax, esi
mov esi, dword [esi]
push eax
mov dword [eax], 0
call fcn.00158d47
add esp, 4
test esi, esi
jne 0x10ddb0
mov dword [edi], esi
lea eax, [esi + 2]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [0x1aa224]
push edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, eax
test esi, esi
jne 0x10de13
push 0xc08
call fcn.0015c8ae
add esp, 4
mov esi, eax
push 0xc08
push 0
push esi
call fcn.00153d90
add esp, 0xc
push esi
push edi
call ebx
test esi, esi
je 0x10de2b
mov dword [esi], 0
mov byte [esi + 4], 0
mov byte [esi + 0x405], 0
mov byte [esi + 0x806], 0
mov edi, dword [0x1aa224]
push edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x10de61
push 0xc08
call fcn.0015c8ae
add esp, 4
mov esi, eax
push 0xc08
push 0
push esi
call fcn.00153d90
add esp, 0xc
push esi
push edi
call ebx
push 0x1969fc
mov dword [esi], 0x8000009
call fcn.000ee5f0
mov edi, dword [ebp + 0x10]
add esp, 4
mov esi, dword [edi]
test esi, esi
je 0x10de97
nop dword [eax]
mov eax, esi
mov esi, dword [esi]
push eax
mov dword [eax], 0
call fcn.00158d47
add esp, 4
test esi, esi
jne 0x10de80
mov dword [edi], 0
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebx]
test esi, esi
je 0x10dec7
nop
mov eax, esi
mov esi, dword [esi]
push eax
mov dword [eax], 0
call fcn.00158d47
add esp, 4
test esi, esi
jne 0x10deb0
pop edi
pop esi
mov dword [ebx], 0
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret