Function at 0x1000b270
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
mov eax, dword [ebp + 8]
sub esp, 0x99c
push ebx
push esi
push edi
test eax, eax
je 0x1000b2ae
mov edx, dword [ebp + 0xc]
mov ecx, eax
test edx, edx
je 0x1000b2a2
push 1
push 0
call fcn.10009ea0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.1000ab80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x10050928], 0
je 0x1000b2d3
call fcn.100052f0
test al, al
je 0x1000b2d3
push 0xc
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
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 0x1000b6f2
mov ecx, 0x950
call fcn.10033a20
mov ebx, eax
test ebx, ebx
je 0x1000bd99
xorps xmm0, xmm0
mov byte [ebx], 0
xor eax, eax
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 + 0xb8], xmm0
movlpd qword [esp + 0xc0], xmm0
movlpd qword [esp + 0xd0], xmm0
movlpd qword [esp + 0xd8], xmm0
movlpd qword [esp + 0xe0], xmm0
movaps xmm0, xmmword [0x1004e200]
push 0x8c
push eax
mov word [esp + 0x125], ax
mov byte [esp + 0x127], al
mov dword [esp + 0x128], eax
mov dword [esp + 0x12c], eax
mov byte [esp + 0x130], al
mov dword [esp + 0x148], eax
mov dword [esp + 0x14c], eax
mov dword [esp + 0x150], eax
mov dword [esp + 0x154], eax
lea eax, [esp + 0x158]
movups xmmword [esp + 0xf0], xmm0
mov word [esp + 0x68], 0
xorps xmm0, xmm0
mov byte [esp + 0x6a], 0
push eax
mov dword [esp + 0xd4], 0
mov word [esp + 0x104], 0xffff
movups xmmword [esp + 0x106], xmm0
mov word [esp + 0x126], 0
movups xmmword [esp + 0x116], xmm0
mov byte [esp + 0x128], 0
movlpd qword [esp + 0x13c], xmm0
movlpd qword [esp + 0x144], xmm0
call fcn.10036180
add esp, 0xc
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
mov dword [esp + 0x258], 0
mov dword [esp + 0x25c], 1
mov dword [esp + 0x260], 0
mov dword [esp + 0x264], 1
xor eax, eax
mov dword [esp + 0x268], 0
push 0x6d8
xorps xmm0, xmm0
mov word [esp + 0x2a1], ax
push eax
mov byte [esp + 0x2a7], al
mov dword [esp + 0x2c8], eax
lea eax, [esp + 0x2d0]
push eax
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 dword [esp + 0x298], 1
mov dword [esp + 0x29c], 0
mov dword [esp + 0x2a0], 1
mov dword [esp + 0x2a4], 0
mov byte [esp + 0x2a8], 6
movlpd qword [esp + 0x2ac], xmm0
movlpd qword [esp + 0x2b4], xmm0
movlpd qword [esp + 0x2bc], xmm0
movlpd qword [esp + 0x2c4], xmm0
call fcn.10036180
add esp, 0xc
mov dword [esp + 0x9a0], 0
lea edi, [ebx + 8]
mov byte [esp + 0x9a4], 0
mov ecx, 0x252
lea esi, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
push ebx
push dword [0x10056a08]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1000bda8
cmp byte [ebx + 0x244], 0
lea edi, [ebx + 8]
mov dword [esp + 0x24], edi
je 0x1000b71e
xor dl, dl
mov ecx, edi
call fcn.10032cd0
mov edi, eax
mov dword [esp + 0x24], eax
cmp byte [edi + 0x23c], 0
jne 0x1000ba21
mov eax, dword [ebp + 0xc]
cmp eax, 0x1000
ja 0x1000b73b
add eax, 7
shr eax, 3
movzx ebx, byte [eax + 0x10056040]
mov dword [esp + 0x14], ebx
jmp 0x1000b748
mov ecx, eax
call fcn.10001010
mov ebx, eax
mov dword [esp + 0x14], eax
cmp ebx, 0x68
jae 0x1000ba0d
mov eax, dword [ebx*4 + 0x10055e80]
lea esi, [edi + 0x260]
cmp eax, 0x3800
mov dword [esp + 0x10], eax
setbe byte [esp + 0xc]
cmp byte [edi + 1], 0
jne 0x1000b78b
lea ecx, [edi + 0x940]
mov edx, 0xe
push 0
call fcn.100010c0
mov eax, dword [esp + 0x14]
add esp, 4
test esi, esi
je 0x1000b979
cmp eax, 0x3800
ja 0x1000b863
lea eax, [ebx*2 + 1]
add eax, ebx
lea ecx, [esi + eax*8]
mov eax, dword [ecx]
movzx edx, ax
mov dword [esp + 0x18], ecx
mov ebx, dword [eax]
add eax, 4
cmp dx, word [ecx + 0x10]
je 0x1000b7c5
mov dword [ecx], eax
jmp 0x1000b991
cmp dx, word [ecx + 0x14]
je 0x1000b7d6
mov dword [ecx], eax
mov word [ecx + 0x10], ax
jmp 0x1000b991
push 0
xor edx, edx
mov ecx, edi
call fcn.100014e0
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
jne 0x1000b7f3
xor ebx, ebx
jmp 0x1000b991
mov ecx, dword [esp + 0x18]
mov esi, dword [esi]
call fcn.100010a0
mov ecx, esi
mov bl, al
call fcn.10001610
mov esi, dword [esp + 0x14]
mov ecx, edi
push 1
test bl, bl
je 0x1000b81f
mov edx, dword [esp + 0x10]
push 0
push esi
jmp 0x1000b984
mov ebx, dword [esp + 0x1c]
lea edx, [edi + 0x260]
push esi
push ebx
call fcn.10031340
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x2a]
add esp, 0xc
mov ecx, edi
push eax
push esi
lea eax, [edi + 0x260]
push ebx
push eax
call fcn.10030c20
add esp, 0x10
mov ebx, eax
cmp byte [esp + 0x1e], 0
jne 0x1000b991
xor ebx, ebx
jmp 0x1000b991
mov ecx, dword [esi]
call fcn.10001610
cmp ebx, eax
jae 0x1000b979
mov esi, dword [esi]
lea eax, [ebx*2 + 1]
add eax, ebx
lea ecx, [edi + 0x260]
lea eax, [ecx + eax*8]
mov ecx, eax
mov dword [esp + 0x18], eax
call fcn.100010a0
mov ecx, esi
mov bl, al
call fcn.10001610
test bl, bl
jne 0x1000b975
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
movzx edx, ax
mov ebx, dword [eax]
add eax, 4
cmp dx, word [ecx + 0x10]
je 0x1000b8bd
mov dword [ecx], eax
jmp 0x1000b991
cmp dx, word [ecx + 0x14]
je 0x1000b8ce
mov dword [ecx], eax
mov word [ecx + 0x10], ax
jmp 0x1000b991
push 0
xor edx, edx
mov ecx, edi
call fcn.100014e0
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
jne 0x1000b8eb
xor ebx, ebx
jmp 0x1000b991
mov esi, dword [esp + 0x14]
lea edx, [edi + 0x260]
mov eax, dword [esp + 0x18]
mov ecx, edi
push 0
push esi
push eax
call fcn.10031340
mov ebx, dword [ebp + 0xc]
add esp, 0xc
cmp ebx, 0x1000
ja 0x1000b928
lea eax, [ebx + 7]
shr eax, 3
movzx eax, byte [eax + 0x10056040]
mov ecx, dword [eax*4 + 0x10055e80]
jmp 0x1000b95c
cmp ebx, 0x70000000
jbe 0x1000b934
xor ecx, ecx
jmp 0x1000b95c
lea ecx, [ebx*2 - 1]
call fcn.10001000
mov ecx, 4
cmp eax, 7
jb 0x1000b94d
lea ecx, [eax - 3]
mov eax, 1
shl eax, cl
dec eax
lea ecx, [eax + ebx]
not eax
and ecx, eax
mov edx, dword [esp + 0xc]
push 0
push ecx
mov ecx, edi
call fcn.100270a0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1000b995
jmp 0x1000b991
mov ebx, dword [esp + 0x14]
push dword [esp + 0xc]
xor edx, edx
mov ecx, edi
push 0
push ebx
push dword [ebp + 0xc]
call fcn.10011370
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x1000ba0d
mov ecx, dword [esp + 0x24]
add edi, 0x240
mov byte [esp + 0x2c], 1
mov dword [esp + 0x30], edi
lea eax, [ecx + 8]
mov dword [esp + 0x34], eax
lea eax, [ecx + 0x10]
mov dword [esp + 0x38], eax
lea eax, [ecx + 0x248]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x3c], 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 + 0x38]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub ecx, edx
sbb eax, esi
xor edx, edx
cmp edx, eax
jb 0x1000bd90
ja 0x1000b9f7
cmp dword [esp + 0x10], ecx
jb 0x1000bd90
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x2c]
call fcn.10032540
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0xc
call eax
xor ebx, ebx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 0x1000
ja 0x1000ba3e
add eax, 7
shr eax, 3
movzx esi, byte [eax + 0x10056040]
mov dword [esp + 0x14], esi
jmp 0x1000ba4b
mov ecx, eax
call fcn.10001010
mov esi, eax
mov dword [esp + 0x14], eax
cmp esi, 0x68
jae 0x1000bd5a
mov al, byte [edi + 1]
xor ecx, ecx
mov edx, dword [esi*4 + 0x10055e80]
test al, al
mov dword [esp + 0x18], edx
setg cl
dec ecx
cmp edx, 0x3800
mov dword [esp + 0xc], ecx
setbe byte [esp + 0x28]
test al, al
jg 0x1000baa2
cmp byte [edi], 0
jne 0x1000ba8e
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], ebx
jmp 0x1000bad2
lea ebx, [edi + 0x260]
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], ebx
jmp 0x1000bad2
mov edx, ecx
xor ebx, ebx
push 1
mov ecx, edi
mov dword [esp + 0x24], ebx
call fcn.100014b0
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1000bad2
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x20], ebx
cmp ecx, dword [0x100582b8]
jae 0x1000bd5a
cmp byte [edi + 1], 0
jne 0x1000baed
lea ecx, [edi + 0x940]
mov edx, 0xe
push 0
call fcn.100010c0
add esp, 4
test ebx, ebx
je 0x1000bcd3
cmp dword [esp + 0x18], 0x3800
ja 0x1000bbc2
lea eax, [esi*2 + 1]
add eax, esi
lea ecx, [ebx + eax*8]
mov eax, dword [ecx]
movzx edx, ax
mov dword [esp + 0xc], ecx
mov ebx, dword [eax]
add eax, 4
cmp dx, word [ecx + 0x10]
je 0x1000bb2a
mov dword [ecx], eax
jmp 0x1000bced
cmp dx, word [ecx + 0x14]
je 0x1000bb3b
mov dword [ecx], eax
mov word [ecx + 0x10], ax
jmp 0x1000bced
mov edx, dword [esp + 0x10]
mov ecx, edi
push 0
call fcn.100014e0
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1000bb5a
xor ebx, ebx
jmp 0x1000bced
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0xc]
mov esi, dword [edx]
call fcn.100010a0
mov ecx, esi
mov bl, al
call fcn.10001610
mov esi, dword [esp + 0x14]
mov ecx, edi
push 1
test bl, bl
jne 0x1000bcd9
mov ebx, dword [esp + 0x24]
mov edx, ebx
push esi
push dword [esp + 0x14]
call fcn.10031340
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x2b]
add esp, 0xc
mov ecx, edi
push eax
push esi
push dword [esp + 0x14]
push ebx
call fcn.10030c20
add esp, 0x10
mov ebx, eax
cmp byte [esp + 0x1f], 0
jne 0x1000bced
xor ebx, ebx
jmp 0x1000bced
mov ecx, dword [ebx]
call fcn.10001610
cmp esi, eax
jae 0x1000bcd3
mov eax, dword [esp + 0x14]
mov esi, dword [ebx]
lea eax, [eax + eax*2]
lea eax, [eax + 1]
lea eax, [ebx + eax*8]
mov ecx, eax
mov dword [esp + 0xc], eax
call fcn.100010a0
mov ecx, esi
mov bl, al
call fcn.10001610
test bl, bl
jne 0x1000bccf
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
movzx edx, ax
mov ebx, dword [eax]
add eax, 4
cmp dx, word [ecx + 0x10]
je 0x1000bc17
mov dword [ecx], eax
jmp 0x1000bced
cmp dx, word [ecx + 0x14]
je 0x1000bc28
mov dword [ecx], eax
mov word [ecx + 0x10], ax
jmp 0x1000bced
mov edx, dword [esp + 0x10]
mov ecx, edi
push 0
call fcn.100014e0
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1000bc47
xor ebx, ebx
jmp 0x1000bced
mov esi, dword [esp + 0x14]
mov ecx, edi
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x20]
push 0
push esi
push eax
call fcn.10031340
mov ebx, dword [ebp + 0xc]
add esp, 0xc
cmp ebx, 0x1000
ja 0x1000bc82
lea eax, [ebx + 7]
shr eax, 3
movzx eax, byte [eax + 0x10056040]
mov ecx, dword [eax*4 + 0x10055e80]
jmp 0x1000bcb6
cmp ebx, 0x70000000
jbe 0x1000bc8e
xor ecx, ecx
jmp 0x1000bcb6
lea ecx, [ebx*2 - 1]
call fcn.10001000
mov ecx, 4
cmp eax, 7
jb 0x1000bca7
lea ecx, [eax - 3]
mov eax, 1
shl eax, cl
dec eax
lea ecx, [ebx + eax]
not eax
and ecx, eax
mov edx, dword [esp + 0x10]
push 0
push ecx
mov ecx, edi
call fcn.100270a0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1000bcf1
jmp 0x1000bced
mov esi, dword [esp + 0x14]
push dword [esp + 0x28]
mov ecx, edi
mov edx, dword [esp + 0x14]
push 0
push esi
push dword [ebp + 0xc]
call fcn.10011370
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x1000bd5a
mov ecx, dword [esp + 0x24]
add edi, 0x240
mov byte [esp + 0x40], 1
mov dword [esp + 0x44], edi
lea eax, [ecx + 8]
mov dword [esp + 0x48], eax
lea eax, [ecx + 0x10]
mov dword [esp + 0x4c], eax
lea eax, [ecx + 0x248]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x50], 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 + 0x4c]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub ecx, edx
sbb eax, esi
xor edx, edx
cmp edx, eax
jb 0x1000bd65
ja 0x1000bd4b
cmp dword [esp + 0x18], ecx
jb 0x1000bd65
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x40]
call fcn.10032540
jmp 0x1000bd65
mov eax, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0xc
call eax
xor ebx, ebx
mov eax, dword [ebp + 8]
mov edx, ebx
mov dword [esp + 0x54], eax
mov ecx, 8
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x54]
push eax
push ebx
mov dword [esp + 0x64], 0
call fcn.100248b0
add esp, 8
pop edi
pop esi
mov eax, ebx
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