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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9dc
push ebx
push esi
push edi
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 0x1000c930
mov ecx, 0x950
call fcn.10033a20
mov ebx, eax
test ebx, ebx
je 0x1000cf12
xorps xmm0, xmm0
mov byte [ebx], 0
xor eax, eax
movlpd qword [esp + 0xa8], xmm0
movlpd qword [esp + 0xb0], xmm0
movlpd qword [esp + 0xb8], xmm0
movlpd qword [esp + 0xc0], xmm0
movlpd qword [esp + 0xc8], xmm0
movlpd qword [esp + 0xd0], xmm0
movlpd qword [esp + 0xd8], xmm0
movlpd qword [esp + 0xe0], xmm0
movlpd qword [esp + 0xe8], xmm0
movlpd qword [esp + 0xf0], xmm0
movlpd qword [esp + 0xf8], xmm0
movlpd qword [esp + 0x100], xmm0
movlpd qword [esp + 0x110], xmm0
movlpd qword [esp + 0x118], xmm0
movlpd qword [esp + 0x120], xmm0
movaps xmm0, xmmword [0x1004e200]
push 0x8c
push eax
mov word [esp + 0x165], ax
mov byte [esp + 0x167], al
mov dword [esp + 0x168], eax
mov dword [esp + 0x16c], eax
mov byte [esp + 0x170], al
mov dword [esp + 0x188], eax
mov dword [esp + 0x18c], eax
mov dword [esp + 0x190], eax
mov dword [esp + 0x194], eax
lea eax, [esp + 0x198]
movups xmmword [esp + 0x130], xmm0
mov word [esp + 0xa8], 0
xorps xmm0, xmm0
mov byte [esp + 0xaa], 0
push eax
mov dword [esp + 0x114], 0
mov word [esp + 0x144], 0xffff
movups xmmword [esp + 0x146], xmm0
mov word [esp + 0x166], 0
movups xmmword [esp + 0x156], xmm0
mov byte [esp + 0x168], 0
movlpd qword [esp + 0x17c], xmm0
movlpd qword [esp + 0x184], xmm0
call fcn.10036180
add esp, 0xc
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
mov dword [esp + 0x258], 0
mov dword [esp + 0x25c], 1
mov dword [esp + 0x260], 0
mov dword [esp + 0x264], 1
mov dword [esp + 0x268], 0
mov dword [esp + 0x26c], 1
mov dword [esp + 0x270], 0
mov dword [esp + 0x274], 1
mov dword [esp + 0x278], 0
mov dword [esp + 0x27c], 1
mov dword [esp + 0x280], 0
mov dword [esp + 0x284], 1
mov dword [esp + 0x288], 0
mov dword [esp + 0x28c], 1
mov dword [esp + 0x290], 0
mov dword [esp + 0x294], 1
mov dword [esp + 0x298], 0
mov dword [esp + 0x29c], 1
mov dword [esp + 0x2a0], 0
mov dword [esp + 0x2a4], 1
xor eax, eax
mov dword [esp + 0x2a8], 0
push 0x6d8
xorps xmm0, xmm0
mov word [esp + 0x2e1], ax
push eax
mov byte [esp + 0x2e7], al
mov dword [esp + 0x308], eax
lea eax, [esp + 0x310]
push eax
mov dword [esp + 0x2b8], 1
mov dword [esp + 0x2bc], 0
mov dword [esp + 0x2c0], 1
mov dword [esp + 0x2c4], 0
mov dword [esp + 0x2c8], 1
mov dword [esp + 0x2cc], 0
mov dword [esp + 0x2d0], 1
mov dword [esp + 0x2d4], 0
mov dword [esp + 0x2d8], 1
mov dword [esp + 0x2dc], 0
mov dword [esp + 0x2e0], 1
mov dword [esp + 0x2e4], 0
mov byte [esp + 0x2e8], 6
movlpd qword [esp + 0x2ec], xmm0
movlpd qword [esp + 0x2f4], xmm0
movlpd qword [esp + 0x2fc], xmm0
movlpd qword [esp + 0x304], xmm0
call fcn.10036180
add esp, 0xc
mov dword [esp + 0x9e0], 0
lea edi, [ebx + 8]
mov byte [esp + 0x9e4], 0
mov ecx, 0x252
lea esi, [esp + 0xa0]
rep movsd dword es:[edi], dword [esi]
push ebx
push dword [0x10056a08]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1000cf21
cmp byte [ebx + 0x244], 0
lea edi, [ebx + 8]
mov dword [esp + 0x1c], edi
je 0x1000c94f
mov dl, 1
mov ecx, edi
call fcn.10032cd0
mov edi, eax
mov dword [esp + 0x1c], eax
mov edx, dword [ebp + 0xc]
mov eax, edx
mov bl, byte [edi + 0x23c]
mov byte [esp + 0x17], bl
and eax, 0xfff00
je 0x1000c9c9
cmp eax, 0x100
je 0x1000c9b0
mov ecx, edx
shr ecx, 8
and ecx, 0xfff
sub ecx, 2
cmp ecx, 0xfffffffe
je 0x1000c9c9
cmp ecx, 0xffffffff
je 0x1000c9b0
mov eax, dword [0x10056a14]
mov ebx, dword [eax + ecx*4]
lea esi, [eax + ecx*4]
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x1000cf30
cmp ebx, 1
jne 0x1000c9b6
mov ecx, edi
call fcn.10031c90
mov edx, dword [ebp + 0xc]
mov ebx, eax
mov dword [esi], ebx
jmp 0x1000c9b2
xor ebx, ebx
mov dword [esp + 0x10], ebx
cmp byte [esp + 0x17], 0
lea eax, [edi + 0x17c]
jne 0x1000cc77
jmp 0x1000c9e1
test bl, bl
jne 0x1000cc5a
lea ebx, [edi + 0x260]
mov dword [esp + 0x10], ebx
lea eax, [edi + 0x17c]
mov esi, dword [ebp + 8]
mov edx, 0x10057260
push esi
push eax
lea eax, [esp + 0x68]
mov ecx, edi
push eax
call fcn.100012a0
add esp, 0xc
lea ecx, [edi + 0x940]
mov edx, 0xe
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
shr eax, 8
mov dword [esp + 0xc], eax
movq qword [esp + 0x20], xmm0
mov eax, dword [esp + 0x20]
push 0
mov eax, dword [eax*4 + 0x10055e80]
mov dword [esp + 0x1c], eax
call fcn.100010c0
add esp, 4
test ebx, ebx
jne 0x1000ca44
mov edx, esi
mov ecx, edi
call fcn.10001620
jmp 0x1000cbe5
cmp byte [esp + 0xc], 0
je 0x1000cb09
mov eax, dword [esp + 0x20]
lea ecx, [eax*2 + 1]
add ecx, eax
mov ax, word [ebx + ecx*8]
lea ecx, [ebx + ecx*8]
mov dword [esp + 0xc], ecx
cmp ax, word [ecx + 0x12]
je 0x1000ca8b
mov eax, dword [ecx]
sub eax, 4
mov dword [ecx], eax
mov dword [eax], esi
movzx eax, word [ecx]
mov dx, word [ecx + 0x12]
push eax
call fcn.100010c0
add esp, 4
jmp 0x1000cbe5
mov esi, dword [ebx]
call fcn.100010a0
mov ecx, esi
mov bl, al
call fcn.10001610
test bl, bl
je 0x1000caae
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.10011700
jmp 0x1000cbe5
mov esi, dword [esp + 0xc]
mov ecx, esi
call fcn.100010b0
mov cl, byte [0x10050988]
mov edx, dword [esp + 0x10]
movzx eax, ax
shr eax, cl
mov ecx, edi
push eax
mov eax, dword [esp + 0x24]
push eax
push esi
call fcn.10030e60
mov ax, word [esi]
add esp, 0xc
cmp ax, word [esi + 0x12]
je 0x1000cbe5
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
sub eax, 4
mov dword [esi], eax
mov dword [eax], ecx
mov ecx, esi
movzx eax, word [esi]
mov dx, word [esi + 0x12]
push eax
call fcn.100010c0
add esp, 4
jmp 0x1000cbe5
mov ecx, dword [ebx]
call fcn.10001610
mov ecx, dword [esp + 0x20]
cmp ecx, eax
jae 0x1000cbbd
mov esi, dword [ebx]
lea ecx, [ecx + ecx*2]
lea ecx, [ecx + 1]
lea ecx, [ebx + ecx*8]
mov dword [esp + 0xc], ecx
call fcn.100010a0
mov ecx, esi
mov bl, al
call fcn.10001610
test bl, bl
jne 0x1000cbba
mov ebx, dword [esp + 0xc]
mov ax, word [ebx]
cmp ax, word [ebx + 0x12]
je 0x1000cb6a
mov eax, dword [ebx]
mov ecx, dword [ebp + 8]
sub eax, 4
mov dword [ebx], eax
mov dword [eax], ecx
mov ecx, ebx
movzx eax, word [ebx]
mov dx, word [ebx + 0x12]
push eax
call fcn.100010c0
add esp, 4
jmp 0x1000cbe5
mov ecx, ebx
call fcn.100010b0
mov cl, byte [0x10050984]
mov edx, dword [esp + 0x10]
movzx eax, ax
shr eax, cl
mov ecx, edi
push eax
mov eax, dword [esp + 0x24]
push eax
push ebx
call fcn.10031160
mov ax, word [ebx]
add esp, 0xc
cmp ax, word [ebx + 0x12]
je 0x1000cbe5
mov eax, dword [ebx]
mov ecx, dword [ebp + 8]
sub eax, 4
mov dword [ebx], eax
mov dword [eax], ecx
mov ecx, ebx
movzx eax, word [ebx]
mov dx, word [ebx + 0x12]
push eax
call fcn.100010c0
add esp, 4
jmp 0x1000cbe5
mov esi, dword [ebp + 8]
push esi
lea eax, [edi + 0x17c]
mov edx, 0x10057260
push eax
lea eax, [esp + 0x88]
mov ecx, edi
push eax
call fcn.10001100
add esp, 0xc
mov ecx, edi
mov edx, dword [eax]
call fcn.10027a90
mov ebx, dword [esp + 0x1c]
add edi, 0x250
mov byte [esp + 0x2c], 0
mov dword [esp + 0x30], edi
lea eax, [ebx + 0x18]
mov dword [esp + 0x34], eax
lea eax, [ebx + 0x20]
mov dword [esp + 0x38], eax
lea eax, [ebx + 0x258]
mov dword [esp + 0x3c], eax
mov edx, dword [edi]
mov ecx, edx
add ecx, dword [esp + 0x18]
mov esi, dword [edi + 4]
mov eax, esi
adc eax, 0
mov dword [edi], ecx
mov dword [edi + 4], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub ecx, edx
sbb eax, esi
xor edx, edx
cmp edx, eax
jb 0x1000cf0b
ja 0x1000cc48
cmp dword [esp + 0x18], ecx
jb 0x1000cf0b
lea edx, [esp + 0x2c]
mov ecx, ebx
call fcn.10032540
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [edi + 1], 0
je 0x1000cc64
xor ebx, ebx
jmp 0x1000cc73
cmp byte [edi], 0
jne 0x1000cc6d
xor ebx, ebx
jmp 0x1000cc73
lea ebx, [edi + 0x260]
mov dword [esp + 0x10], ebx
mov esi, dword [ebp + 8]
lea eax, [esp + 0x54]
mov dword [esp + 0x58], edx
mov ecx, 1
push eax
mov edx, esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x60], 0
call fcn.10024930
add esp, 4
lea eax, [edi + 0x17c]
mov edx, 0x10057260
mov ecx, edi
push esi
push eax
lea eax, [esp + 0x78]
push eax
call fcn.100012a0
add esp, 0xc
lea ecx, [edi + 0x940]
mov edx, 0xe
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
shr eax, 8
mov dword [esp + 0xc], eax
movq qword [esp + 0x20], xmm0
mov eax, dword [esp + 0x20]
push 0
mov eax, dword [eax*4 + 0x10055e80]
mov dword [esp + 0x1c], eax
call fcn.100010c0
add esp, 4
test ebx, ebx
jne 0x1000cd04
mov edx, esi
mov ecx, edi
call fcn.10001620
jmp 0x1000cea5
cmp byte [esp + 0xc], 0
je 0x1000cdc9
mov eax, dword [esp + 0x20]
lea ecx, [eax*2 + 1]
add ecx, eax
mov ax, word [ebx + ecx*8]
lea ecx, [ebx + ecx*8]
mov dword [esp + 0xc], ecx
cmp ax, word [ecx + 0x12]
je 0x1000cd4b
mov eax, dword [ecx]
sub eax, 4
mov dword [ecx], eax
mov dword [eax], esi
movzx eax, word [ecx]
mov dx, word [ecx + 0x12]
push eax
call fcn.100010c0
add esp, 4
jmp 0x1000cea5
mov esi, dword [ebx]
call fcn.100010a0
mov ecx, esi
mov bl, al
call fcn.10001610
test bl, bl
je 0x1000cd6e
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.10011700
jmp 0x1000cea5
mov esi, dword [esp + 0xc]
mov ecx, esi
call fcn.100010b0
mov cl, byte [0x10050988]
mov edx, dword [esp + 0x10]
movzx eax, ax
shr eax, cl
mov ecx, edi
push eax
mov eax, dword [esp + 0x24]
push eax
push esi
call fcn.10030e60
mov ax, word [esi]
add esp, 0xc
cmp ax, word [esi + 0x12]
je 0x1000cea5
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
sub eax, 4
mov dword [esi], eax
mov dword [eax], ecx
mov ecx, esi
movzx eax, word [esi]
mov dx, word [esi + 0x12]
push eax
call fcn.100010c0
add esp, 4
jmp 0x1000cea5
mov ecx, dword [ebx]
call fcn.10001610
mov ecx, dword [esp + 0x20]
cmp ecx, eax
jae 0x1000ce7d
mov esi, dword [ebx]
lea ecx, [ecx + ecx*2]
lea ecx, [ecx + 1]
lea ecx, [ebx + ecx*8]
mov dword [esp + 0xc], ecx
call fcn.100010a0
mov ecx, esi
mov bl, al
call fcn.10001610
test bl, bl
jne 0x1000ce7a
mov ebx, dword [esp + 0xc]
mov ax, word [ebx]
cmp ax, word [ebx + 0x12]
je 0x1000ce2a
mov eax, dword [ebx]
mov ecx, dword [ebp + 8]
sub eax, 4
mov dword [ebx], eax
mov dword [eax], ecx
mov ecx, ebx
movzx eax, word [ebx]
mov dx, word [ebx + 0x12]
push eax
call fcn.100010c0
add esp, 4
jmp 0x1000cea5
mov ecx, ebx
call fcn.100010b0
mov cl, byte [0x10050984]
mov edx, dword [esp + 0x10]
movzx eax, ax
shr eax, cl
mov ecx, edi
push eax
mov eax, dword [esp + 0x24]
push eax
push ebx
call fcn.10031160
mov ax, word [ebx]
add esp, 0xc
cmp ax, word [ebx + 0x12]
je 0x1000cea5
mov eax, dword [ebx]
mov ecx, dword [ebp + 8]
sub eax, 4
mov dword [ebx], eax
mov dword [eax], ecx
mov ecx, ebx
movzx eax, word [ebx]
mov dx, word [ebx + 0x12]
push eax
call fcn.100010c0
add esp, 4
jmp 0x1000cea5
mov esi, dword [ebp + 8]
push esi
lea eax, [edi + 0x17c]
mov edx, 0x10057260
push eax
lea eax, [esp + 0x98]
mov ecx, edi
push eax
call fcn.10001100
add esp, 0xc
mov ecx, edi
mov edx, dword [eax]
call fcn.10027a90
mov ebx, dword [esp + 0x1c]
add edi, 0x250
mov byte [esp + 0x40], 0
mov dword [esp + 0x44], edi
lea eax, [ebx + 0x18]
mov dword [esp + 0x48], eax
lea eax, [ebx + 0x20]
mov dword [esp + 0x4c], eax
lea eax, [ebx + 0x258]
mov dword [esp + 0x50], eax
mov edx, dword [edi]
mov ecx, edx
add ecx, dword [esp + 0x18]
mov esi, dword [edi + 4]
mov eax, esi
adc eax, 0
mov dword [edi], ecx
mov dword [edi + 4], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub ecx, edx
sbb eax, esi
xor edx, edx
cmp edx, eax
jb 0x1000cf0b
ja 0x1000cf00
cmp dword [esp + 0x18], ecx
jb 0x1000cf0b
lea edx, [esp + 0x40]
mov ecx, ebx
call fcn.10032540
pop edi
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
push ecx
push str._jemalloc_:_invalid_tcache_id___u_._n
call fcn.10028f60
add esp, 8
call fcn.10038150
int3