Function at 0x1000ab80
Capabilities:
Get thread local storage value
Resolve function by parsing pe exports
Set thread local storage value

Disassembly:
sub esp, 0x98c
mov eax, dword [0x1005092c]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
test eax, eax
jne 0x1000abb6
push 1
push 0x100
lea edx, [eax + 1]
call fcn.10009ea0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98c
ret
cmp eax, 1
jne 0x1000b231
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 0x1000afdd
mov ecx, 0x950
call fcn.10033a20
mov ebp, eax
test ebp, ebp
je 0x1000b24b
xorps xmm0, xmm0
mov byte [ebp], 0
xor eax, eax
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 + 0xb0], xmm0
movlpd qword [esp + 0xc0], xmm0
movlpd qword [esp + 0xc8], xmm0
movlpd qword [esp + 0xd0], xmm0
movaps xmm0, xmmword [0x1004e200]
push 0x8c
push eax
mov word [esp + 0x115], ax
mov byte [esp + 0x117], al
mov dword [esp + 0x118], eax
mov dword [esp + 0x11c], eax
mov byte [esp + 0x120], al
mov dword [esp + 0x138], eax
mov dword [esp + 0x13c], eax
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], eax
lea eax, [esp + 0x148]
movups xmmword [esp + 0xe0], xmm0
mov word [esp + 0x58], 0
xorps xmm0, xmm0
mov byte [esp + 0x5a], 0
push eax
mov dword [esp + 0xc4], 0
mov word [esp + 0xf4], 0xffff
movups xmmword [esp + 0xf6], xmm0
mov word [esp + 0x116], 0
movups xmmword [esp + 0x106], xmm0
mov byte [esp + 0x118], 0
movlpd qword [esp + 0x12c], xmm0
movlpd qword [esp + 0x134], xmm0
call fcn.10036180
add esp, 0xc
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
mov dword [esp + 0x250], 0
mov dword [esp + 0x254], 1
xor eax, eax
mov dword [esp + 0x258], 0
push 0x6d8
xorps xmm0, xmm0
mov word [esp + 0x291], ax
push eax
mov byte [esp + 0x297], al
mov dword [esp + 0x2b8], eax
lea eax, [esp + 0x2c0]
push eax
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 dword [esp + 0x290], 1
mov dword [esp + 0x294], 0
mov byte [esp + 0x298], 6
movlpd qword [esp + 0x29c], xmm0
movlpd qword [esp + 0x2a4], xmm0
movlpd qword [esp + 0x2ac], xmm0
movlpd qword [esp + 0x2b4], xmm0
call fcn.10036180
add esp, 0xc
mov dword [esp + 0x990], 0
lea edi, [ebp + 8]
mov byte [esp + 0x994], 0
mov ecx, 0x252
lea esi, [esp + 0x50]
rep movsd dword es:[edi], dword [esi]
push ebp
push dword [0x10056a08]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1000b25a
mov edi, dword [esp + 0x10]
add ebp, 8
cmp byte [ebp + 0x23c], 0
je 0x1000aff4
xor dl, dl
mov ecx, ebp
call fcn.10032cd0
mov ebp, eax
cmp byte [ebp + 1], 0
je 0x1000affe
xor ebx, ebx
jmp 0x1000b00e
cmp byte [ebp], 0
jne 0x1000b008
xor ebx, ebx
jmp 0x1000b00e
lea ebx, [ebp + 0x260]
lea eax, [esp + 0x44]
mov dword [esp + 0x14], ebx
push eax
mov edx, edi
mov dword [esp + 0x48], edi
mov ecx, 3
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
call fcn.10024930
add esp, 4
lea eax, [ebp + 0x17c]
mov edx, 0x10057260
mov ecx, ebp
push edi
push eax
lea eax, [esp + 0x28]
push eax
call fcn.100012a0
add esp, 0xc
lea ecx, [ebp + 0x940]
mov edx, 0xe
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [esp + 0x38], xmm0
mov esi, dword [esp + 0x38]
shr eax, 8
mov dword [esp + 0x18], eax
push 0
mov eax, dword [esi*4 + 0x10055e80]
mov dword [esp + 0x20], eax
call fcn.100010c0
add esp, 4
test ebx, ebx
jne 0x1000b0a0
mov edx, edi
mov ecx, ebp
call fcn.10001620
jmp 0x1000b1c3
cmp byte [esp + 0x18], 0
je 0x1000b10c
lea edi, [esi*2 + 1]
add edi, esi
mov ax, word [ebx + edi*8]
lea edi, [ebx + edi*8]
cmp ax, word [edi + 0x12]
jne 0x1000b179
mov esi, dword [ebx]
mov ecx, edi
call fcn.100010a0
mov ecx, esi
mov bl, al
call fcn.10001610
test bl, bl
je 0x1000b0e7
mov edx, dword [esp + 0x10]
mov ecx, ebp
call fcn.10011700
jmp 0x1000b1c3
mov ecx, edi
call fcn.100010b0
mov cl, byte [0x10050988]
mov edx, dword [esp + 0x14]
movzx eax, ax
shr eax, cl
mov ecx, ebp
push eax
push dword [esp + 0x3c]
push edi
call fcn.10030e60
jmp 0x1000b16d
mov ecx, dword [ebx]
call fcn.10001610
cmp esi, eax
jae 0x1000b19e
mov eax, dword [esp + 0x38]
mov esi, dword [ebx]
lea edi, [eax*2 + 1]
add edi, eax
lea edi, [ebx + edi*8]
mov ecx, edi
call fcn.100010a0
mov ecx, esi
mov bl, al
call fcn.10001610
test bl, bl
jne 0x1000b19a
mov ax, word [edi]
cmp ax, word [edi + 0x12]
jne 0x1000b179
mov ecx, edi
call fcn.100010b0
mov cl, byte [0x10050984]
mov edx, dword [esp + 0x14]
movzx eax, ax
shr eax, cl
mov ecx, ebp
push eax
push dword [esp + 0x3c]
push edi
call fcn.10031160
mov ax, word [edi]
add esp, 0xc
cmp ax, word [edi + 0x12]
je 0x1000b1c3
mov eax, dword [edi]
mov ecx, dword [esp + 0x10]
sub eax, 4
mov dword [edi], eax
mov dword [eax], ecx
mov ecx, edi
movzx eax, word [edi]
mov dx, word [edi + 0x12]
push eax
call fcn.100010c0
add esp, 4
jmp 0x1000b1c3
mov edi, dword [esp + 0x10]
push edi
lea eax, [ebp + 0x17c]
mov edx, 0x10057260
push eax
lea eax, [esp + 0x28]
mov ecx, ebp
push eax
call fcn.10001100
add esp, 0xc
mov ecx, ebp
mov edx, dword [eax]
call fcn.10027a90
mov ebx, dword [esp + 0x1c]
lea eax, [ebp + 0x18]
mov dword [esp + 0x28], eax
lea edi, [ebp + 0x250]
lea eax, [ebp + 0x20]
mov byte [esp + 0x20], 0
mov dword [esp + 0x2c], eax
mov ecx, ebx
mov dword [esp + 0x24], edi
lea eax, [ebp + 0x258]
mov dword [esp + 0x30], eax
xor eax, eax
mov edx, dword [edi]
add ecx, edx
mov esi, dword [edi + 4]
adc eax, esi
mov dword [edi], ecx
mov dword [edi + 4], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub ecx, edx
sbb eax, esi
xor edx, edx
cmp edx, eax
jb 0x1000b23e
ja 0x1000b219
cmp ebx, ecx
jb 0x1000b23e
lea edx, [esp + 0x20]
mov ecx, ebp
call fcn.10032540
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98c
ret
push str.Called_realloc_non_null_ptr__0__with_zero_realloc:abort_set_n
call fcn.1002b0b0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x98c
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