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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x948
push ebx
mov ebx, ecx
push ebp
push esi
push edi
mov al, byte [ebx + 0x23c]
cmp al, 1
je 0x100339f5
cmp al, 2
jne 0x10032d03
call fcn.10032ab0
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp al, 6
jne 0x1003358b
test dl, dl
jne 0x1003315b
cmp byte [0x10051de2], dl
je 0x100339f5
mov byte [ebx + 0x23c], dl
call fcn.10032980
mov ecx, ebx
call fcn.10032470
call fcn.10032ab0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x10056a08]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebp, ebp
jne 0x10033136
call fcn.10033a20
mov ebp, eax
test ebp, ebp
je 0x100339ff
xorps xmm0, xmm0
mov byte [ebp], 0
xor eax, eax
movlpd qword [esp + 0x18], xmm0
movlpd qword [esp + 0x20], xmm0
movlpd qword [esp + 0x28], xmm0
movlpd qword [esp + 0x30], xmm0
movlpd qword [esp + 0x38], xmm0
movlpd qword [esp + 0x40], xmm0
movlpd qword [esp + 0x48], xmm0
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 + 0x80], xmm0
movlpd qword [esp + 0x88], xmm0
movlpd qword [esp + 0x90], xmm0
movaps xmm0, xmmword [0x1004e200]
push 0x8c
push eax
mov word [esp + 0xd5], ax
mov byte [esp + 0xd7], al
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], eax
mov byte [esp + 0xe0], al
mov dword [esp + 0xf8], eax
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], eax
mov dword [esp + 0x104], eax
lea eax, [esp + 0x108]
movups xmmword [esp + 0xa0], xmm0
mov word [esp + 0x18], 0
xorps xmm0, xmm0
mov byte [esp + 0x1a], 0
push eax
mov dword [esp + 0x84], 0
mov word [esp + 0xb4], 0xffff
movups xmmword [esp + 0xb6], xmm0
mov word [esp + 0xd6], 0
movups xmmword [esp + 0xc6], xmm0
mov byte [esp + 0xd8], 0
movlpd qword [esp + 0xec], xmm0
movlpd qword [esp + 0xf4], xmm0
call fcn.10036180
add esp, 0xc
mov dword [esp + 0x18c], 1
mov dword [esp + 0x190], 0
mov dword [esp + 0x194], 1
mov dword [esp + 0x198], 0
mov dword [esp + 0x19c], 1
mov dword [esp + 0x1a0], 0
mov dword [esp + 0x1a4], 1
mov dword [esp + 0x1a8], 0
mov dword [esp + 0x1ac], 1
mov dword [esp + 0x1b0], 0
mov dword [esp + 0x1b4], 1
mov dword [esp + 0x1b8], 0
mov dword [esp + 0x1bc], 1
mov dword [esp + 0x1c0], 0
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
xor eax, eax
mov dword [esp + 0x218], 0
push 0x6d8
xorps xmm0, xmm0
mov word [esp + 0x251], ax
push eax
mov byte [esp + 0x257], al
mov dword [esp + 0x278], eax
lea eax, [esp + 0x280]
push eax
mov dword [esp + 0x228], 1
mov dword [esp + 0x22c], 0
mov dword [esp + 0x230], 1
mov dword [esp + 0x234], 0
mov dword [esp + 0x238], 1
mov dword [esp + 0x23c], 0
mov dword [esp + 0x240], 1
mov dword [esp + 0x244], 0
mov dword [esp + 0x248], 1
mov dword [esp + 0x24c], 0
mov dword [esp + 0x250], 1
mov dword [esp + 0x254], 0
mov byte [esp + 0x258], 6
movlpd qword [esp + 0x25c], xmm0
movlpd qword [esp + 0x264], xmm0
movlpd qword [esp + 0x26c], xmm0
movlpd qword [esp + 0x274], xmm0
call fcn.10036180
add esp, 0xc
mov dword [esp + 0x950], 0
lea edi, [ebp + 8]
mov byte [esp + 0x954], 0
mov ecx, 0x252
lea esi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
push ebp
push dword [0x10056a08]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x10033a0e
lea edi, [ebp + 8]
cmp edi, ebx
je 0x10033146
mov ecx, 0x252
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov byte [ebp], 1
call fcn.10032c00
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov dl, 3
call fcn.10032af0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x10056a08]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebp, ebp
jne 0x10033562
call fcn.10033a20
mov ebp, eax
test ebp, ebp
je 0x100339ff
xorps xmm0, xmm0
mov byte [ebp], 0
xor eax, eax
movlpd qword [esp + 0x18], xmm0
movlpd qword [esp + 0x20], xmm0
movlpd qword [esp + 0x28], xmm0
movlpd qword [esp + 0x30], xmm0
movlpd qword [esp + 0x38], xmm0
movlpd qword [esp + 0x40], xmm0
movlpd qword [esp + 0x48], xmm0
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 + 0x80], xmm0
movlpd qword [esp + 0x88], xmm0
movlpd qword [esp + 0x90], xmm0
movaps xmm0, xmmword [0x1004e200]
push 0x8c
push eax
mov word [esp + 0xd5], ax
mov byte [esp + 0xd7], al
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], eax
mov byte [esp + 0xe0], al
mov dword [esp + 0xf8], eax
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], eax
mov dword [esp + 0x104], eax
lea eax, [esp + 0x108]
movups xmmword [esp + 0xa0], xmm0
mov word [esp + 0x18], 0
xorps xmm0, xmm0
mov byte [esp + 0x1a], 0
push eax
mov dword [esp + 0x84], 0
mov word [esp + 0xb4], 0xffff
movups xmmword [esp + 0xb6], xmm0
mov word [esp + 0xd6], 0
movups xmmword [esp + 0xc6], xmm0
mov byte [esp + 0xd8], 0
movlpd qword [esp + 0xec], xmm0
movlpd qword [esp + 0xf4], xmm0
call fcn.10036180
add esp, 0xc
mov dword [esp + 0x18c], 1
mov dword [esp + 0x190], 0
mov dword [esp + 0x194], 1
mov dword [esp + 0x198], 0
mov dword [esp + 0x19c], 1
mov dword [esp + 0x1a0], 0
mov dword [esp + 0x1a4], 1
mov dword [esp + 0x1a8], 0
mov dword [esp + 0x1ac], 1
mov dword [esp + 0x1b0], 0
mov dword [esp + 0x1b4], 1
mov dword [esp + 0x1b8], 0
mov dword [esp + 0x1bc], 1
mov dword [esp + 0x1c0], 0
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
xor eax, eax
mov dword [esp + 0x218], 0
push 0x6d8
xorps xmm0, xmm0
mov word [esp + 0x251], ax
push eax
mov byte [esp + 0x257], al
mov dword [esp + 0x278], eax
lea eax, [esp + 0x280]
push eax
mov dword [esp + 0x228], 1
mov dword [esp + 0x22c], 0
mov dword [esp + 0x230], 1
mov dword [esp + 0x234], 0
mov dword [esp + 0x238], 1
mov dword [esp + 0x23c], 0
mov dword [esp + 0x240], 1
mov dword [esp + 0x244], 0
mov dword [esp + 0x248], 1
mov dword [esp + 0x24c], 0
mov dword [esp + 0x250], 1
mov dword [esp + 0x254], 0
mov byte [esp + 0x258], 6
movlpd qword [esp + 0x25c], xmm0
movlpd qword [esp + 0x264], xmm0
movlpd qword [esp + 0x26c], xmm0
movlpd qword [esp + 0x274], xmm0
call fcn.10036180
add esp, 0xc
mov dword [esp + 0x950], 0
lea edi, [ebp + 8]
mov byte [esp + 0x954], 0
mov ecx, 0x252
lea esi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
push ebp
push dword [0x10056a08]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x10033a0e
lea edi, [ebp + 8]
cmp edi, ebx
je 0x10033572
mov ecx, 0x252
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov byte [ebp], 1
call fcn.10032c80
mov byte [ebx + 2], 1
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp al, 3
jne 0x100335cf
mov al, byte [ebx + 2]
inc al
mov byte [ebx + 2], al
test dl, dl
je 0x100335a3
cmp al, 0x80
jne 0x100339f5
mov byte [ebx + 0x23c], 0
call fcn.10032980
mov ecx, ebx
call fcn.10032470
dec byte [ebx + 1]
call fcn.10032ab0
mov ecx, ebx
call fcn.10032c00
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp al, 4
jne 0x100339f5
mov dl, 5
call fcn.10032af0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x10056a08]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebp, ebp
jne 0x100339da
call fcn.10033a20
mov ebp, eax
test ebp, ebp
je 0x100339ff
xorps xmm0, xmm0
mov byte [ebp], 0
xor eax, eax
movlpd qword [esp + 0x18], xmm0
movlpd qword [esp + 0x20], xmm0
movlpd qword [esp + 0x28], xmm0
movlpd qword [esp + 0x30], xmm0
movlpd qword [esp + 0x38], xmm0
movlpd qword [esp + 0x40], xmm0
movlpd qword [esp + 0x48], xmm0
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 + 0x80], xmm0
movlpd qword [esp + 0x88], xmm0
movlpd qword [esp + 0x90], xmm0
movaps xmm0, xmmword [0x1004e200]
push 0x8c
push eax
mov word [esp + 0xd5], ax
mov byte [esp + 0xd7], al
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], eax
mov byte [esp + 0xe0], al
mov dword [esp + 0xf8], eax
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], eax
mov dword [esp + 0x104], eax
lea eax, [esp + 0x108]
movups xmmword [esp + 0xa0], xmm0
mov word [esp + 0x18], 0
xorps xmm0, xmm0
mov byte [esp + 0x1a], 0
push eax
mov dword [esp + 0x84], 0
mov word [esp + 0xb4], 0xffff
movups xmmword [esp + 0xb6], xmm0
mov word [esp + 0xd6], 0
movups xmmword [esp + 0xc6], xmm0
mov byte [esp + 0xd8], 0
movlpd qword [esp + 0xec], xmm0
movlpd qword [esp + 0xf4], xmm0
call fcn.10036180
add esp, 0xc
mov dword [esp + 0x18c], 1
mov dword [esp + 0x190], 0
mov dword [esp + 0x194], 1
mov dword [esp + 0x198], 0
mov dword [esp + 0x19c], 1
mov dword [esp + 0x1a0], 0
mov dword [esp + 0x1a4], 1
mov dword [esp + 0x1a8], 0
mov dword [esp + 0x1ac], 1
mov dword [esp + 0x1b0], 0
mov dword [esp + 0x1b4], 1
mov dword [esp + 0x1b8], 0
mov dword [esp + 0x1bc], 1
mov dword [esp + 0x1c0], 0
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
xor eax, eax
mov dword [esp + 0x218], 0
push 0x6d8
xorps xmm0, xmm0
mov word [esp + 0x251], ax
push eax
mov byte [esp + 0x257], al
mov dword [esp + 0x278], eax
lea eax, [esp + 0x280]
push eax
mov dword [esp + 0x228], 1
mov dword [esp + 0x22c], 0
mov dword [esp + 0x230], 1
mov dword [esp + 0x234], 0
mov dword [esp + 0x238], 1
mov dword [esp + 0x23c], 0
mov dword [esp + 0x240], 1
mov dword [esp + 0x244], 0
mov dword [esp + 0x248], 1
mov dword [esp + 0x24c], 0
mov dword [esp + 0x250], 1
mov dword [esp + 0x254], 0
mov byte [esp + 0x258], 6
movlpd qword [esp + 0x25c], xmm0
movlpd qword [esp + 0x264], xmm0
movlpd qword [esp + 0x26c], xmm0
movlpd qword [esp + 0x274], xmm0
call fcn.10036180
add esp, 0xc
mov dword [esp + 0x950], 0
lea edi, [ebp + 8]
mov byte [esp + 0x954], 0
mov ecx, 0x252
lea esi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
push ebp
push dword [0x10056a08]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x10033a0e
lea edi, [ebp + 8]
cmp edi, ebx
je 0x100339ea
mov ecx, 0x252
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov byte [ebp], 1
call fcn.10032c80
pop edi
mov eax, ebx
pop esi
pop ebp
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