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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
mov ebx, ecx
push esi
push edi
movzx ecx, word [ebx + 0x4190]
call fcn.000f2310
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x136264
push dword [ebx + 0x4174]
mov eax, dword [ebx + 0x4184]
push dword [ebx + 0x4170]
mov esi, dword [ebx + 0x4180]
mov dword [ebp - 0xc], eax
movzx eax, byte [ebx + 0x4194]
cdq
push edx
push eax
mov dword [ebp - 0x20], esi
call fcn.00171bf0
add eax, dword [ebx + 0x4160]
mov ecx, edx
mov edx, dword [ebp - 0xc]
adc ecx, dword [ebx + 0x4164]
add eax, 0xffffffff
mov dword [ebp - 0x30], eax
adc ecx, 0xffffffff
mov dword [ebp - 0x2c], ecx
cmp edx, ecx
ja 0x13625b
jb 0x135eb0
cmp esi, eax
jae 0x13625b
movzx eax, word [ebx + 0x4190]
mov ecx, ebx
push eax
push edx
push esi
mov edx, edi
call fcn.00135490
mov ecx, eax
add esp, 0xc
movzx eax, word [ebx + 0x4190]
cmp ecx, eax
jne 0x1361e9
cdq
xorps xmm0, xmm0
test edx, edx
movlpd qword [ebp - 0x28], xmm0
mov edx, dword [ebp - 0xc]
jb 0x135eb0
ja 0x135eed
test eax, eax
je 0x135eb0
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], esi
nop dword [eax]
mov al, byte [esi + edi]
add esi, edi
and al, 0x7f
cmp al, 1
jne 0x136185
push ebx
mov edx, 2
mov ecx, esi
call 0x1431a0
add esp, 4
test al, al
je 0x136185
movzx eax, byte [esi + 1]
and eax, 1
not eax
test eax, eax
je 0x136185
mov edx, dword [ebx + 0x98]
cmp edx, 1
jne 0x135f5f
movzx eax, byte [esi + 0x17]
movzx ecx, byte [esi + 0x16]
shl eax, 8
add eax, ecx
movzx ecx, byte [esi + 0x15]
shl eax, 8
add eax, ecx
movzx ecx, byte [esi + 0x14]
jmp 0x135f79
movzx eax, byte [esi + 0x14]
movzx ecx, byte [esi + 0x15]
shl eax, 8
add eax, ecx
movzx ecx, byte [esi + 0x16]
shl eax, 8
add eax, ecx
movzx ecx, byte [esi + 0x17]
shl eax, 8
add eax, ecx
mov ecx, dword [ebx + 0x41a0]
and ecx, eax
movzx eax, byte [ebx + 0x4194]
sub ecx, 2
imul ecx, eax
xor eax, eax
add ecx, dword [ebx + 0x4168]
mov dword [ebp - 0x24], ecx
adc eax, dword [ebx + 0x416c]
mov dword [ebp - 0x18], eax
cmp edx, 1
jne 0x13604d
movzx eax, byte [esi + 0x1f]
cdq
mov edi, eax
mov eax, edx
shld eax, edi, 8
mov dword [ebp - 4], eax
movzx eax, byte [esi + 0x1e]
cdq
shl edi, 8
add edi, eax
mov eax, dword [ebp - 4]
adc eax, edx
shld eax, edi, 8
mov dword [ebp - 4], eax
movzx eax, byte [esi + 0x1d]
cdq
shl edi, 8
add edi, eax
mov eax, dword [ebp - 4]
adc eax, edx
shld eax, edi, 8
mov dword [ebp - 4], eax
movzx eax, byte [esi + 0x1c]
cdq
shl edi, 8
add edi, eax
mov eax, dword [ebp - 4]
adc eax, edx
shld eax, edi, 8
mov dword [ebp - 4], eax
movzx eax, byte [esi + 0x1b]
cdq
shl edi, 8
add edi, eax
mov eax, dword [ebp - 4]
adc eax, edx
shld eax, edi, 8
mov dword [ebp - 4], eax
movzx eax, byte [esi + 0x1a]
cdq
shl edi, 8
add edi, eax
mov eax, dword [ebp - 4]
adc eax, edx
shld eax, edi, 8
mov dword [ebp - 4], eax
movzx eax, byte [esi + 0x19]
cdq
shl edi, 8
add edi, eax
mov eax, dword [ebp - 4]
adc eax, edx
shld eax, edi, 8
mov dword [ebp - 4], eax
movzx eax, byte [esi + 0x18]
jmp 0x1360e5
movzx eax, byte [esi + 0x18]
cdq
mov edi, eax
mov eax, edx
shld eax, edi, 8
mov dword [ebp - 4], eax
movzx eax, byte [esi + 0x19]
cdq
shl edi, 8
add edi, eax
mov eax, dword [ebp - 4]
adc eax, edx
shld eax, edi, 8
mov dword [ebp - 4], eax
movzx eax, byte [esi + 0x1a]
cdq
shl edi, 8
add edi, eax
mov eax, dword [ebp - 4]
adc eax, edx
shld eax, edi, 8
mov dword [ebp - 4], eax
movzx eax, byte [esi + 0x1b]
cdq
shl edi, 8
add edi, eax
mov eax, dword [ebp - 4]
adc eax, edx
shld eax, edi, 8
mov dword [ebp - 4], eax
movzx eax, byte [esi + 0x1c]
cdq
shl edi, 8
add edi, eax
mov eax, dword [ebp - 4]
adc eax, edx
shld eax, edi, 8
mov dword [ebp - 4], eax
movzx eax, byte [esi + 0x1d]
cdq
shl edi, 8
add edi, eax
mov eax, dword [ebp - 4]
adc eax, edx
shld eax, edi, 8
mov dword [ebp - 4], eax
movzx eax, byte [esi + 0x1e]
cdq
shl edi, 8
add edi, eax
mov eax, dword [ebp - 4]
adc eax, edx
shld eax, edi, 8
mov dword [ebp - 4], eax
movzx eax, byte [esi + 0x1f]
cdq
shl edi, 8
add edi, eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], edi
adc dword [ebp - 4], edx
cmp eax, dword [ebx + 0x4164]
jb 0x136182
ja 0x13610a
cmp ecx, dword [ebx + 0x4160]
jb 0x136182
movzx ecx, word [ebx + 0x4190]
mov eax, ecx
cdq
mov edi, eax
mov esi, edx
lea eax, [ecx - 1]
cdq
add eax, dword [ebp - 0x10]
push esi
adc edx, dword [ebp - 4]
push edi
push edx
push eax
call fcn.00171f70
push esi
push edi
push edx
push eax
call fcn.00171bf0
push esi
push edi
push edx
push eax
call fcn.00171f70
mov ecx, dword [ebp - 0x24]
add eax, ecx
mov edi, dword [ebp - 0x18]
adc edx, edi
add eax, 0xffffffff
adc edx, 0xffffffff
cmp edx, dword [ebp - 0x2c]
ja 0x136182
jb 0x136159
cmp eax, dword [ebp - 0x30]
ja 0x136182
mov edx, dword [ebx + 0x4170]
mov eax, dword [ebx + 0x4174]
add edx, 7
mov esi, dword [ebp - 4]
adc eax, 0
shrd edx, eax, 3
shr eax, 3
cmp esi, eax
ja 0x1361ba
jb 0x136182
mov eax, dword [ebp - 0x10]
cmp eax, edx
jae 0x1361bd
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 0x1c]
movzx eax, word [ebx + 0x4190]
add esi, 0x20
cdq
adc dword [ebp - 0x14], 0
mov ecx, eax
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x14], edx
jb 0x135f00
ja 0x1361af
cmp esi, ecx
jb 0x135f00
mov esi, dword [ebp - 0x20]
mov edx, dword [ebp - 0xc]
jmp 0x135eb0
mov eax, dword [ebp - 0x10]
push dword [ebp - 8]
mov dword [ebx + 0x4400], ecx
mov dword [ebx + 0x4404], edi
mov dword [ebx + 0x4408], eax
mov dword [ebx + 0x440c], esi
call fcn.00158d47
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ecx, ecx
js 0x136235
call fcn.000ee7f0
mov ebx, dword [0x1aa224]
push ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x13622c
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 ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esi], 0x8000004
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
push eax
push esi
push str.exfatfs_get_alloc_bitmap
push str._s:_sector:__llu
call fcn.000ee650
push edi
call fcn.00158d47
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.00158d47
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret