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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x20]
mov esi, dword [esi + eax*4]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], ecx
cmp dword [0x1aa220], ebx
je 0x134134
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push str.unix_make_data_run_indirect
push str._s:_level__d_block__llu_n
push 2
call fcn.00158e14
add esp, 4
push eax
call fcn.000f0dc0
add esp, 0x18
test byte [edi + 0x68], 0x70
je 0x13414e
mov edx, dword [edi + 0x154]
mov ecx, dword [edi + 0x158]
mov dword [ebp - 0x18], edx
mov dword [ebp - 8], ecx
jmp 0x13415b
mov eax, dword [edi + 0x50]
mov dword [ebp - 0x18], 1
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x18]
cmp eax, dword [edi + 0x44]
jb 0x1341d1
ja 0x13416d
mov eax, dword [ebp + 0x14]
cmp eax, dword [edi + 0x40]
jbe 0x1341d1
call fcn.000ee7f0
mov edi, dword [0x1aa224]
push edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x1341ac
push 0xc08
call fcn.0015c8ae
add esp, 4
mov esi, eax
push 0xc08
push 0
push esi
call fcn.00153d90
add esp, 0xc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [ebp + 0x18]
mov dword [esi], 0x8000009
push dword [ebp + 0x14]
push str.unix:_Indirect_block_address_too_large:__llu
call fcn.000ee5f0
add esp, 0xc
or eax, 0xffffffff
or edx, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x28
call fcn.000f2310
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1341c5
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp - 0x18]
push dword [ebp - 8]
mov dword [eax + 0x18], edi
mov edi, dword [ebp - 0xc]
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x1c], ebx
mov eax, edx
or eax, ecx
mov eax, dword [ebp + 0xc]
jne 0x13421e
push 0
push dword [eax]
call fcn.00153d90
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov dword [eax + 0x20], 2
jmp 0x134266
push ecx
push edx
mov edx, dword [eax]
mov ecx, edi
call fcn.00135490
add esp, 0xc
cmp eax, dword [ebp - 8]
je 0x134263
test eax, eax
js 0x134244
call fcn.000ee7f0
mov ecx, 0x8000004
call fcn.000ee550
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push str.unix_make_data_run_indir:_Block__llu
call fcn.000ee650
or eax, 0xffffffff
add esp, 0xc
or edx, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
push eax
call fcn.00130d70
mov eax, dword [edi + 0x68]
add esp, 4
cmp eax, 0x10
je 0x134457
cmp eax, 0x20
je 0x134457
test eax, 0x2180
jne 0x134457
cmp eax, 0x40
jne 0x1344cb
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 8]
shr ebx, 3
mov dword [ebp - 0x1c], 0
mov ecx, dword [eax]
test ebx, ebx
je 0x1344cb
add ecx, 2
mov dword [ebp - 8], ecx
nop dword [eax + eax]
cmp dword [edi + 0x98], 1
jne 0x13437e
movzx eax, byte [ecx + 5]
cdq
mov ecx, eax
mov eax, edx
shld eax, ecx, 8
mov dword [ebp + 0x18], eax
mov eax, dword [ebp - 8]
shl ecx, 8
movzx eax, byte [eax + 4]
cdq
add ecx, eax
mov eax, dword [ebp + 0x18]
adc eax, edx
shld eax, ecx, 8
mov dword [ebp + 0x18], eax
mov eax, dword [ebp - 8]
shl ecx, 8
movzx eax, byte [eax + 3]
cdq
add ecx, eax
mov eax, dword [ebp + 0x18]
adc eax, edx
shld eax, ecx, 8
mov dword [ebp + 0x18], eax
mov eax, dword [ebp - 8]
shl ecx, 8
movzx eax, byte [eax + 2]
cdq
add ecx, eax
mov eax, dword [ebp + 0x18]
adc eax, edx
shld eax, ecx, 8
mov dword [ebp + 0x18], eax
mov eax, dword [ebp - 8]
shl ecx, 8
movzx eax, byte [eax + 1]
cdq
add ecx, eax
mov eax, dword [ebp + 0x18]
adc eax, edx
shld eax, ecx, 8
mov dword [ebp + 0x18], eax
mov eax, dword [ebp - 8]
shl ecx, 8
movzx eax, byte [eax]
cdq
add ecx, eax
mov eax, dword [ebp + 0x18]
adc eax, edx
shld eax, ecx, 8
mov dword [ebp + 0x18], eax
mov eax, dword [ebp - 8]
shl ecx, 8
movzx eax, byte [eax - 1]
cdq
add ecx, eax
mov eax, dword [ebp + 0x18]
adc eax, edx
shld eax, ecx, 8
mov dword [ebp + 0x18], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax - 2]
jmp 0x13442a
movzx eax, byte [ecx - 2]
cdq
mov ecx, eax
mov eax, edx
shld eax, ecx, 8
mov dword [ebp + 0x18], eax
mov eax, dword [ebp - 8]
shl ecx, 8
movzx eax, byte [eax - 1]
cdq
add ecx, eax
mov eax, dword [ebp + 0x18]
adc eax, edx
shld eax, ecx, 8
mov dword [ebp + 0x18], eax
mov eax, dword [ebp - 8]
shl ecx, 8
movzx eax, byte [eax]
cdq
add ecx, eax
mov eax, dword [ebp + 0x18]
adc eax, edx
shld eax, ecx, 8
mov dword [ebp + 0x18], eax
mov eax, dword [ebp - 8]
shl ecx, 8
movzx eax, byte [eax + 1]
cdq
add ecx, eax
mov eax, dword [ebp + 0x18]
adc eax, edx
shld eax, ecx, 8
mov dword [ebp + 0x18], eax
mov eax, dword [ebp - 8]
shl ecx, 8
movzx eax, byte [eax + 2]
cdq
add ecx, eax
mov eax, dword [ebp + 0x18]
adc eax, edx
shld eax, ecx, 8
mov dword [ebp + 0x18], eax
mov eax, dword [ebp - 8]
shl ecx, 8
movzx eax, byte [eax + 3]
cdq
add ecx, eax
mov eax, dword [ebp + 0x18]
adc eax, edx
shld eax, ecx, 8
mov dword [ebp + 0x18], eax
mov eax, dword [ebp - 8]
shl ecx, 8
movzx eax, byte [eax + 4]
cdq
add ecx, eax
mov eax, dword [ebp + 0x18]
adc eax, edx
shld eax, ecx, 8
mov dword [ebp + 0x18], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 5]
shl ecx, 8
cdq
add ecx, eax
mov eax, dword [ebp - 0x1c]
adc dword [ebp + 0x18], edx
mov dword [esi + eax*8], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esi + eax*8 + 4], ecx
inc eax
mov ecx, dword [ebp - 8]
add ecx, 8
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], ecx
cmp eax, ebx
jb 0x1342c0
jmp 0x1344cb
mov eax, dword [ebp + 0xc]
xor edi, edi
mov ebx, dword [ebp - 8]
shr ebx, 2
mov edx, dword [eax]
test ebx, ebx
je 0x1344c8
add edx, 2
nop dword [eax + eax]
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x98], 1
jne 0x134497
movzx eax, byte [edx + 1]
movzx ecx, byte [edx]
shl eax, 8
add eax, ecx
movzx ecx, byte [edx - 1]
shl eax, 8
add eax, ecx
movzx ecx, byte [edx - 2]
jmp 0x1344b0
movzx eax, byte [edx - 2]
movzx ecx, byte [edx - 1]
shl eax, 8
add eax, ecx
movzx ecx, byte [edx]
shl eax, 8
add eax, ecx
movzx ecx, byte [edx + 1]
shl eax, 8
add edx, 4
add eax, ecx
mov dword [esi + edi*8 + 4], 0
mov dword [esi + edi*8], eax
inc edi
cmp edi, ebx
jb 0x134470
mov edi, dword [ebp - 0xc]
cmp dword [ebp + 0x10], 1
jne 0x134503
push dword [ebp + 0x20]
mov edx, dword [ebp - 0x20]
mov ecx, edi
push dword [ebp + 0x1c]
push ebx
push esi
call 0x133f50
mov esi, edx
mov ecx, eax
and eax, esi
add esp, 0x10
cmp eax, 0xffffffff
je 0x1341c5
mov edx, dword [ebp + 0x1c]
mov eax, edx
sub eax, ecx
mov ecx, dword [ebp + 0x20]
sbb ecx, esi
jmp 0x134572
mov eax, dword [ebp - 0x14]
xorps xmm0, xmm0
xor edi, edi
movlpd qword [ebp + 0x14], xmm0
test ebx, ebx
je 0x13456c
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
nop word [eax + eax]
and ecx, edx
cmp ecx, 0xffffffff
je 0x1341c5
push dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
push eax
push dword [esi + edi*8 + 4]
mov eax, dword [ebp + 0x10]
push dword [esi + edi*8]
dec eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.001340e0
mov ecx, eax
add esp, 0x1c
and eax, edx
cmp eax, 0xffffffff
je 0x1341c5
mov eax, dword [ebp - 0x14]
sub eax, ecx
mov dword [ebp - 0x14], eax
sbb dword [ebp - 0x10], edx
inc edi
cmp edi, ebx
jb 0x134520
mov edx, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x10]
sub edx, eax
mov eax, dword [ebp + 0x20]
pop edi
sbb eax, ecx
mov dword [ebp + 0xc], eax
mov eax, edx
mov edx, dword [ebp + 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret