Function at 0x10134c90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x138
mov dword [ebp - 0x130], ecx
mov esi, dword [ebp + 0x28]
mov eax, dword [0x101d2014]
xor eax, ebp
cmp esi, 0x11
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x101], 1
mov dword [ebp - 0x108], 4
mov dword [ebp - 0x10c], 0x10
mov dword [ebp - 0x110], 0
jb 0x10134cef
push 0
push 0xffffe005
call sym.nss3.dll_PR_SetError
add esp, 8
xor ebx, ebx
jmp 0x101351ba
mov eax, dword [ebp + 0x18]
lea ebx, [ebp - 0x100]
mov dword [ebp - 0x13c], edx
mov ecx, eax
mov edi, eax
and ecx, 0xff000000
and edi, 0xffffff
cmp ecx, 0x82000000
cmovne edi, eax
test esi, esi
je 0x10134d3f
mov eax, dword [ebp + 0x24]
lea edx, [ebp - 0x100]
mov ecx, esi
mov ebx, dword [eax + 8]
dec ecx
mov dword [edx + 8], ebx
lea ebx, [edx + 0xc]
movsd xmm0, qword [eax]
lea eax, [eax + 0xc]
movsd qword [edx], xmm0
mov edx, ebx
jne 0x10134d26
push 0
push esi
lea eax, [ebp - 0x100]
push eax
call fcn.10128510
add esp, 0xc
test eax, eax
jne 0x10134d6e
lea eax, [ebp - 0x108]
mov dword [ebx], 0
mov dword [ebx + 4], eax
mov dword [ebx + 8], 4
add ebx, 0xc
lea eax, [ebp - 0x100]
push 0x100
push esi
push eax
call fcn.10128510
add esp, 0xc
test eax, eax
jne 0x10134db0
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
call fcn.101230f0
add esp, 8
lea ecx, [ebp - 0x10c]
mov dword [ebx], 0x100
mov dword [ebx + 4], ecx
mov dword [ebx + 8], 4
add ebx, 0xc
mov dword [ecx], eax
test edi, edi
lea eax, [ebp - 0x100]
je 0x10134de4
push edi
push esi
push eax
call fcn.10128510
add esp, 0xc
test eax, eax
jne 0x10134dde
lea eax, [ebp - 0x101]
mov dword [ebx], edi
mov dword [ebx + 4], eax
mov dword [ebx + 8], 1
add ebx, 0xc
lea eax, [ebp - 0x100]
mov edi, dword [ebp + 0x1c]
mov ecx, dword [ebp + 8]
test edi, edi
jle 0x10134e2d
push 0x161
push esi
push eax
call fcn.10128510
add esp, 0xc
test eax, eax
jne 0x10134e1c
lea eax, [ebp - 0x110]
mov dword [ebx], 0x161
mov dword [ebx + 4], eax
mov dword [ebx + 8], 4
add ebx, 0xc
mov dword [eax], edi
mov esi, dword [ebp - 0x130]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x100]
jmp 0x10134e33
mov esi, dword [ebp - 0x130]
mov edi, dword [ebp + 0xc]
sub ebx, eax
cmp ecx, 1
jne 0x10134e57
cmp dword [esi + 0x124], 0
je 0x10134e57
mov eax, dword [esi + 0x128]
mov dword [ebp - 0x124], eax
jmp 0x10134f12
cmp dword [esi + 0x30], 0
jne 0x10134e9f
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x138], eax
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
mov dword [ebp - 0x134], eax
je 0x101351d1
mov esi, dword [ebp - 0x138]
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x134]
mov dword [esi + 8], eax
mov esi, dword [ebp - 0x130]
mov eax, dword [esi]
mov ecx, dword [ebp - 0x130]
mov esi, dword [ecx + 0x40]
mov ecx, dword [eax + 0x22]
call dword [section..00cfg]
lea eax, [ebp - 0x12c]
push eax
push dword [ebp + 8]
push esi
mov esi, dword [ebp - 0x130]
call ecx
add esp, 0xc
mov dword [ebp - 0x120], eax
cmp dword [esi + 0x30], 0
jne 0x10134ee6
push dword [esi + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x10134ef4
mov dword [ebp - 0x124], 0
mov ecx, dword [ebp + 8]
cmp ecx, 1
jne 0x10134f12
mov eax, dword [ebp - 0x124]
mov dword [esi + 0x128], eax
mov dword [esi + 0x124], 1
sar ebx, 2
xor eax, eax
test edi, edi
mov dword [ebp - 0x11c], ecx
jne 0x10134f38
xor eax, eax
push eax
push eax
push ecx
call fcn.10123c10
add esp, 0xc
test eax, eax
mov edi, eax
je 0x101350e4
mov ecx, dword [edi + 4]
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x118], ecx
mov ecx, dword [edi + 8]
imul eax, ebx, 0xaaaaaaab
test byte [ebp - 0x123], 2
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x138], eax
je 0x10134f7a
push ebx
push esi
call sym.nss3.dll_PK11_DoesMechanism
add esp, 8
test eax, eax
je 0x1013509b
mov edi, dword [ebp + 0x2c]
xor eax, eax
mov ecx, esi
mov edx, ebx
test edi, edi
sete al
push dword [ebp + 0x20]
push 1
push eax
call fcn.101317e0
add esp, 0xc
test eax, eax
je 0x101351a3
test edi, edi
mov edi, dword [ebp + 0x1c]
mov ebx, eax
mov dword [eax + 0x30], edi
mov dword [eax + 0x34], 4
je 0x10134fd5
push esi
call fcn.101363c0
add esp, 4
mov esi, eax
test eax, eax
jne 0x10135018
mov esi, dword [ebp - 0x130]
mov dword [ebp - 0x120], 0xb3
jmp 0x10135129
cmp dword [ebx + 0x28], 0
mov eax, dword [ebx + 8]
je 0x10134fe4
cmp dword [eax + 0x30], 0
jne 0x1013500d
mov edi, dword [eax + 0x3c]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x101351eb
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebx + 0x24]
test esi, esi
je 0x101350ff
mov eax, dword [ebp - 0x130]
mov edi, ebx
add edi, 4
mov eax, dword [eax]
mov ecx, dword [eax + 0xf6]
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x140], eax
call dword [section..00cfg]
lea eax, [ebp - 0x11c]
push edi
mov edi, dword [ebp + 0x1c]
push dword [ebp - 0x138]
lea edx, [ebp - 0x100]
push edx
push dword [ebp - 0x140]
push dword [ebp - 0x144]
push dword [ebp - 0x13c]
push eax
push esi
call ecx
add esp, 0x20
cmp dword [ebp + 0x2c], 0
mov dword [ebp - 0x120], eax
je 0x10135109
push esi
mov esi, dword [ebp - 0x130]
push esi
call fcn.101364f0
add esp, 8
jmp 0x10135129
mov edx, dword [ebp - 0x13c]
mov edi, esi
lea eax, [ebp - 0x120]
lea esi, [ebp - 0x11c]
mov ecx, edi
push dword [ebp + 0x2c]
push eax
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp - 0x138]
lea eax, [ebp - 0x100]
push eax
push ebx
push dword [ebp + 0x10]
push esi
call fcn.10135410
add esp, 0x24
test eax, eax
je 0x10135192
mov ebx, eax
jmp 0x101351a5
xor ecx, ecx
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x118], 0
jmp 0x10134f4a
mov dword [ebp - 0x120], 0xb3
cmp dword [ebx + 0x28], 0
mov eax, dword [ebx + 8]
mov esi, dword [ebp - 0x130]
je 0x1013511e
cmp dword [eax + 0x30], 0
jne 0x10135129
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x1013513e
push 1
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
cmp dword [ebp - 0x120], 0
je 0x101351ba
push ebx
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
xor ebx, ebx
cmp dword [ebp - 0x120], 0x30
je 0x101351ba
mov edx, dword [ebp - 0x13c]
lea eax, [ebp - 0x11c]
mov ecx, esi
push dword [ebp + 0x2c]
push 0
push dword [ebp + 0x20]
push edi
push dword [ebp - 0x138]
lea esi, [ebp - 0x100]
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call fcn.10135410
add esp, 0x24
mov ebx, eax
jmp 0x101351ba
cmp dword [ebp - 0x120], 0x30
mov esi, edi
mov ecx, ebx
jne 0x10134f7a
xor ebx, ebx
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x101351ba
push 1
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10192ef0
mov eax, ebx
add esp, 0x138
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov dword [ebp - 0x134], eax
jmp 0x10134e80
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x10134ffd