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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x984
mov edx, dword [ebp + 0x14]
mov eax, 1
mov ecx, edx
and ecx, 0x3f
shl eax, cl
and eax, 0xfffffffe
mov dword [esp + 0x28], eax
mov eax, edx
push ebx
shr eax, 6
push esi
and al, 1
push edi
mov byte [esp + 0x38], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x10056a08]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
jne 0x1000c206
mov ecx, 0x950
call fcn.10033a20
mov ebx, eax
test ebx, ebx
je 0x1000c425
xorps xmm0, xmm0
mov byte [ebx], 0
xor eax, eax
movlpd qword [esp + 0x50], xmm0
movlpd qword [esp + 0x58], xmm0
movlpd qword [esp + 0x60], xmm0
movlpd qword [esp + 0x68], xmm0
movlpd qword [esp + 0x70], xmm0
movlpd qword [esp + 0x78], xmm0
movlpd qword [esp + 0x80], xmm0
movlpd qword [esp + 0x88], xmm0
movlpd qword [esp + 0x90], xmm0
movlpd qword [esp + 0x98], xmm0
movlpd qword [esp + 0xa0], xmm0
movlpd qword [esp + 0xa8], xmm0
movlpd qword [esp + 0xb8], xmm0
movlpd qword [esp + 0xc0], xmm0
movlpd qword [esp + 0xc8], xmm0
movaps xmm0, xmmword [0x1004e200]
push 0x8c
push eax
mov word [esp + 0x10d], ax
mov byte [esp + 0x10f], al
mov dword [esp + 0x110], eax
mov dword [esp + 0x114], eax
mov byte [esp + 0x118], al
mov dword [esp + 0x130], eax
mov dword [esp + 0x134], eax
mov dword [esp + 0x138], eax
mov dword [esp + 0x13c], eax
lea eax, [esp + 0x140]
movups xmmword [esp + 0xd8], xmm0
mov word [esp + 0x50], 0
xorps xmm0, xmm0
mov byte [esp + 0x52], 0
push eax
mov dword [esp + 0xbc], 0
mov word [esp + 0xec], 0xffff
movups xmmword [esp + 0xee], xmm0
mov word [esp + 0x10e], 0
movups xmmword [esp + 0xfe], xmm0
mov byte [esp + 0x110], 0
movlpd qword [esp + 0x124], xmm0
movlpd qword [esp + 0x12c], xmm0
call fcn.10036180
add esp, 0xc
mov dword [esp + 0x1c4], 1
mov dword [esp + 0x1c8], 0
mov dword [esp + 0x1cc], 1
mov dword [esp + 0x1d0], 0
mov dword [esp + 0x1d4], 1
mov dword [esp + 0x1d8], 0
mov dword [esp + 0x1dc], 1
mov dword [esp + 0x1e0], 0
mov dword [esp + 0x1e4], 1
mov dword [esp + 0x1e8], 0
mov dword [esp + 0x1ec], 1
mov dword [esp + 0x1f0], 0
mov dword [esp + 0x1f4], 1
mov dword [esp + 0x1f8], 0
mov dword [esp + 0x1fc], 1
mov dword [esp + 0x200], 0
mov dword [esp + 0x204], 1
mov dword [esp + 0x208], 0
mov dword [esp + 0x20c], 1
mov dword [esp + 0x210], 0
mov dword [esp + 0x214], 1
mov dword [esp + 0x218], 0
mov dword [esp + 0x21c], 1
mov dword [esp + 0x220], 0
mov dword [esp + 0x224], 1
mov dword [esp + 0x228], 0
mov dword [esp + 0x22c], 1
mov dword [esp + 0x230], 0
mov dword [esp + 0x234], 1
mov dword [esp + 0x238], 0
mov dword [esp + 0x23c], 1
mov dword [esp + 0x240], 0
mov dword [esp + 0x244], 1
mov dword [esp + 0x248], 0
mov dword [esp + 0x24c], 1
xor eax, eax
mov dword [esp + 0x250], 0
push 0x6d8
xorps xmm0, xmm0
mov word [esp + 0x289], ax
push eax
mov byte [esp + 0x28f], al
mov dword [esp + 0x2b0], eax
lea eax, [esp + 0x2b8]
push eax
mov dword [esp + 0x260], 1
mov dword [esp + 0x264], 0
mov dword [esp + 0x268], 1
mov dword [esp + 0x26c], 0
mov dword [esp + 0x270], 1
mov dword [esp + 0x274], 0
mov dword [esp + 0x278], 1
mov dword [esp + 0x27c], 0
mov dword [esp + 0x280], 1
mov dword [esp + 0x284], 0
mov dword [esp + 0x288], 1
mov dword [esp + 0x28c], 0
mov byte [esp + 0x290], 6
movlpd qword [esp + 0x294], xmm0
movlpd qword [esp + 0x29c], xmm0
movlpd qword [esp + 0x2a4], xmm0
movlpd qword [esp + 0x2ac], xmm0
call fcn.10036180
add esp, 0xc
mov dword [esp + 0x988], 0
lea edi, [ebx + 8]
mov byte [esp + 0x98c], 0
mov ecx, 0x252
lea esi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
push ebx
push dword [0x10056a08]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1000c434
add ebx, 8
cmp byte [ebx + 0x23c], 0
je 0x1000c21d
xor dl, dl
mov ecx, ebx
call fcn.10032cd0
mov ebx, eax
test ebx, ebx
jne 0x1000c22e
lea ecx, [esp + 0x48]
call fcn.1002afe0
mov eax, ecx
jmp 0x1000c234
lea eax, [ebx + 0x17c]
mov esi, dword [ebp + 8]
mov edx, 0x17c
mov ecx, ebx
push esi
push eax
lea eax, [esp + 0x20]
lea edi, [edx + ecx]
mov edx, 0x10057260
push eax
call fcn.10001100
add esp, 0xc
test ebx, ebx
jne 0x1000c264
lea ecx, [esp + 0x48]
call fcn.1002afe0
mov edi, ecx
push esi
lea eax, [esp + 0x1c]
mov edx, 0x10057260
push edi
push eax
call fcn.100012a0
mov edx, dword [ebp + 0xc]
add esp, 0xc
mov edi, dword [ebp + 0x10]
movq xmm0, qword [eax]
movq qword [esp + 0x3c], xmm0
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax*4 + 0x10055e80]
mov dword [esp + 0x10], ecx
cmp edx, 0x70000000
jbe 0x1000c2a6
mov esi, ecx
jmp 0x1000c3e5
mov eax, 0x70000000
mov dword [esp + 0x14], edi
sub eax, edx
mov dword [esp + 0xc], eax
mov eax, 0
sbb eax, eax
test eax, eax
ja 0x1000c2d3
jb 0x1000c2c8
cmp dword [esp + 0xc], edi
jae 0x1000c2d3
mov edi, 0x70000000
sub edi, edx
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x34]
test eax, eax
je 0x1000c2e0
dec eax
test esi, eax
jne 0x1000c300
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x3c]
push edi
push edx
push ecx
mov edx, esi
mov ecx, ebx
call fcn.10011900
mov ecx, dword [esp + 0x24]
add esp, 0x14
test al, al
je 0x1000c307
mov esi, ecx
jmp 0x1000c3e5
mov esi, dword [esp + 0xc]
cmp esi, ecx
je 0x1000c3e5
lea eax, [ebx + 8]
mov byte [esp + 0x18], 1
mov dword [esp + 0x20], eax
lea edi, [ebx + 0x240]
lea eax, [ebx + 0x10]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], eax
lea eax, [ebx + 0x248]
mov dword [esp + 0x28], eax
mov edx, dword [edi]
mov ecx, edx
add ecx, dword [esp + 0xc]
mov esi, dword [edi + 4]
mov eax, esi
adc eax, 0
mov dword [edi], ecx
mov dword [edi + 4], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub ecx, edx
sbb eax, esi
xor edx, edx
cmp edx, eax
jb 0x1000c375
ja 0x1000c36a
cmp dword [esp + 0xc], ecx
jb 0x1000c375
lea edx, [esp + 0x18]
mov ecx, ebx
call fcn.10032540
lea eax, [ebx + 0x18]
mov byte [esp + 0x18], 0
mov dword [esp + 0x20], eax
lea edi, [ebx + 0x250]
mov dword [esp + 0x1c], edi
lea eax, [ebx + 0x20]
mov dword [esp + 0x24], eax
lea eax, [ebx + 0x258]
mov dword [esp + 0x28], eax
mov edx, dword [edi]
mov ecx, edx
mov esi, dword [edi + 4]
mov eax, esi
add ecx, dword [esp + 0x10]
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov eax, dword [esp + 0x24]
mov edi, dword [eax]
mov eax, dword [eax + 4]
sub edi, edx
sbb eax, esi
xor ecx, ecx
cmp ecx, eax
jb 0x1000c3d9
ja 0x1000c3ce
mov ecx, dword [esp + 0x10]
cmp ecx, edi
jb 0x1000c3dd
lea edx, [esp + 0x18]
mov ecx, ebx
call fcn.10032540
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x14]
cmp byte [ebx + 0x23c], 0
je 0x1000c41c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x18]
push eax
push esi
push esi
push ecx
mov ecx, 2
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], edi
call fcn.100249b0
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, str._jemalloc_:_Error_allocating_TSD_n
call fcn.10027c00
call fcn.10038150
mov ecx, str._jemalloc_:_Error_setting_TSD_n
call fcn.10027c00
call fcn.10038150
int3