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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10014e1b
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x10016334]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edx, dword [ebx + 0x94]
mov ecx, dword [edx]
mov dword [ebp - 0x28], ecx
cmp eax, dword [esi + 4]
je 0x10012d93
cmp eax, dword [edi + 0xc]
je 0x10012d93
cmp byte [esi], 0
je 0x10012efe
push 0xb0
push 0x1000000
push dword [0x10016668]
call dword [sym.imp.MSDART.DLL_MpHeapAlloc]
add esp, 0xc
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x10012d8c
push ebx
mov ecx, eax
call fcn.10012f90
test eax, eax
je 0x10012d8c
mov ecx, dword [ebx + 0x80]
cmp byte [ecx + 0x100031b0], 0
je 0x10012d7b
mov dword [eax + 0xa8], 3
push eax
push 0
push 0x2001
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
jmp 0x10012f3c
mov eax, dword [0x10016698]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x10012ec2
push 0x20
mov dword [ebp - 4], 0
push 0x1000000
push dword [0x10016668]
mov byte [ebp - 0x15], 0
call dword [sym.imp.MSDART.DLL_MpHeapAlloc]
add esp, 0xc
mov dword [ebp - 0x24], eax
test eax, eax
je 0x10012e08
mov esi, edi
mov byte [ebp - 0x15], 1
mov edi, eax
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x20]
xor eax, eax
mov esi, dword [ebp + 8]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov byte [edi + 0x12], 1
cmp byte [esi], 0
je 0x10012e46
mov ecx, dword [esi + 8]
lea eax, [ebx + 0x84]
push 0
push 0
push 0
mov esi, dword [ecx]
push eax
push 1
push 0x800
mov esi, dword [esi + 0x18]
push 0x10002280
push dword [ebx + 0x80]
push ecx
mov ecx, esi
call dword [0x10017168]
call esi
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x10012e62
mov eax, dword [ebp - 0x1c]
push ebx
push esi
mov eax, dword [eax]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x10017168]
mov ecx, dword [ebp - 0x1c]
call esi
mov esi, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x10012f13
push dword [ebp - 0x20]
mov esi, eax
mov ecx, 8
mov eax, dword [0x10016698]
rep movsd dword es:[edi], dword [esi]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [ebp - 0x24]
push dword [0x10016668]
call dword [sym.imp.MSDART.DLL_MpHeapFree]
mov esi, dword [ebp - 0x1c]
add esp, 8
jmp 0x10012f13
cmp byte [esi], 0
je 0x10012efb
mov ecx, dword [esi + 8]
lea eax, [ebx + 0x84]
push 0
push 0
push 0
mov esi, dword [ecx]
push eax
push 1
push 0x800
mov esi, dword [esi + 0x18]
push 0x10002280
push dword [ebx + 0x80]
push ecx
mov ecx, esi
call dword [0x10017168]
call esi
jmp 0x10012f11
mov edi, dword [ebp - 0x1c]
mov eax, dword [edi]
push ebx
push esi
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x10017168]
mov ecx, edi
call esi
mov esi, eax
mov eax, dword [ebx + 0x80]
cmp byte [eax + 0x100031b0], 0
je 0x10012f3a
cmp dword [ebp - 0x28], 3
je 0x10012f3a
mov eax, dword [ebx + 0x94]
cmp dword [eax], 4
jne 0x10012f3a
mov ecx, ebx
call fcn.10010510
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10013ec0
mov esp, ebp
pop ebp
ret 8