Function at 0x10133810
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x94
mov ecx, dword [0x101d2014]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x2c]
mov edx, dword [ebp + 0x20]
xor ecx, ebp
xor edi, edi
mov dword [ebp - 0x10], ecx
inc edi
mov ebx, dword [esi + 8]
mov ecx, ebx
push eax
push edi
push edi
call fcn.101317e0
add esp, 0xc
xor edi, edi
test eax, eax
je 0x101339d3
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 0x90], ebx
mov dword [eax + 0x34], 1
mov dword [ebp - 0x8c], eax
mov edx, ecx
mov ebx, ecx
and edx, 0xff000000
and ebx, 0xffffff
cmp edx, 0x82000000
mov edx, eax
cmovne ebx, ecx
mov ecx, dword [esi + 4]
cmp ecx, 8
ja case.default.0x10133899
mov dword [ebp - 0x94], eax
mov esi, dword [ebp + 0x28]
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0xc]
jmp dword [ecx*4 + 0x101a231c]
push 0
push 0xffffe00e
jmp 0x101339bd
mov ebx, edx
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edi, eax
mov eax, dword [ebp + 0x18]
mov byte [ebp - 0x40], dl
test eax, eax
mov edx, dword [ecx + 8]
mov dword [ebp - 0x3f], edx
mov ecx, dword [ecx + 4]
mov byte [0x101d5a4f], 1
mov dword [ebp - 0x3b], ecx
mov dword [ebp - 0x37], 0x101d59d0
je 0x101338e0
mov eax, dword [eax + 4]
mov dword [ebp - 0x37], eax
mov eax, dword [ebx + 0x4c]
lea ecx, [ebp - 0x40]
mov dword [ecx + 0xd], eax
mov eax, dword [ebx + 0x48]
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x70], 0x15
mov dword [ecx + 0x11], eax
mov eax, dword [ebp - 0x8c]
cmp dword [eax + 0x28], 0
mov eax, dword [eax + 8]
je 0x10133911
cmp dword [eax + 0x30], 0
jne 0x10133937
mov ebx, dword [eax + 0x3c]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x10133ee5
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], esi
mov eax, dword [ebp - 0x90]
mov ebx, dword [ebp - 0x8c]
mov esi, dword [ebp - 0x94]
mov eax, dword [eax]
mov edx, dword [ebx + 0x24]
add esi, 4
mov ecx, dword [eax + 0xfa]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x90], edx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x94], eax
call dword [section..00cfg]
xor edi, edi
lea eax, [ebp - 0x78]
push esi
push edi
push edi
push dword [ebp - 0x94]
push eax
push dword [ebp - 0x90]
call ecx
add esp, 0x18
cmp dword [ebx + 0x28], edi
mov esi, eax
mov eax, dword [ebx + 8]
je 0x10133999
cmp dword [eax + 0x30], 0
jne 0x101339a4
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
test esi, esi
mov edi, 0
je 0x10133ebd
push esi
call fcn.10115520
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
push dword [ebp - 0x8c]
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10192ef0
mov eax, edi
add esp, 0x94
pop esi
pop edi
pop ebx
pop ebp
ret
mov byte [ebp - 0x84], 1
mov dword [ebp - 0x6c], 4
mov dword [ebp - 0x4c], 0x10
mov dword [ebp - 0x7c], 0
cmp dword [edx + 4], 4
jne case.0x10133899.0
lea ecx, [ebp - 0x6c]
mov edi, 4
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], 0x100
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], ebx
lea eax, [ebp - 0x84]
lea ebx, [ebp - 0x7c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0x161
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
push esi
push dword [ebp + 0x20]
call fcn.101230f0
add esp, 8
lea ecx, [ebp - 0x4c]
mov edx, dword [ebp + 0xc]
mov dword [ebx], esi
cmp esi, 1
mov dword [ecx], eax
mov ecx, dword [ebp - 0x8c]
mov eax, dword [ebp + 0x1c]
sbb edi, 0
mov dword [ebp - 0x9c], edi
mov dword [ecx + 0x30], esi
mov dword [ebp - 0x78], eax
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x74], eax
mov eax, dword [edx + 0x34]
mov dword [ebp - 0x70], eax
cmp dword [ecx + 0x28], 0
mov eax, dword [ecx + 8]
je 0x10133aa4
cmp dword [eax + 0x30], 0
jne 0x10133aca
mov ebx, dword [eax + 0x3c]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x10133efb
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], esi
mov eax, dword [ebp - 0x90]
mov ebx, dword [ebp - 0x8c]
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 0x94]
mov eax, dword [eax]
mov edx, dword [ebx + 0x24]
mov edi, dword [edi + 0xc]
add esi, 4
mov ecx, dword [eax + 0xfa]
mov dword [ebp - 0x90], edx
call dword [section..00cfg]
lea eax, [ebp - 0x40]
lea edx, [ebp - 0x78]
push esi
push dword [ebp - 0x9c]
push eax
push edi
push edx
push dword [ebp - 0x90]
call ecx
add esp, 0x18
cmp dword [ebx + 0x28], 0
jmp 0x1013398c
mov byte [ebp - 0x7d], 1
mov dword [ebp - 0x7c], 4
mov dword [ebp - 0x84], 0x10
mov dword [ebp - 0x88], 0
cmp dword [edx + 4], 6
jne case.0x10133899.0
lea ecx, [ebp - 0x7c]
mov edx, 4
lea eax, [ebp - 0x84]
mov dword [ebp - 0x40], 0
lea edi, [ebp - 0x88]
mov dword [ebp - 0x9c], 4
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], 0x100
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x7d]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0x161
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edx
push esi
push dword [ebp + 0x20]
call fcn.101230f0
add esp, 8
lea ecx, [ebp - 0x84]
test esi, esi
mov dword [edi], esi
mov dword [ecx], eax
jne 0x10133bf2
lea ecx, [eax - 0x13]
cmp ecx, 0xa
ja 0x10133bca
mov edx, 0x707
bt edx, ecx
jb 0x10133bdb
mov esi, 0x14
mov dword [ebp - 0x88], 0x14
jmp 0x10133bf2
mov esi, dword [eax*4 + 0x101a22a4]
mov dword [ebp - 0x9c], 3
mov dword [ebp - 0x88], esi
mov edi, dword [ebp - 0x8c]
mov dword [edi + 0x30], esi
mov esi, 0x14
push esi
call sym.nss3.dll_PORT_ZAlloc_Util
add esp, 4
mov edx, dword [ebp + 0xc]
xor ebx, ebx
mov dword [eax], 2
mov dword [ebp - 0x98], eax
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov ecx, dword [edx + 0x28]
mov dword [eax + 0xc], ecx
mov ecx, dword [edx + 0x24]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], esi
mov ecx, dword [ebp - 0x90]
cmp dword [edi + 0x28], ebx
mov eax, dword [edi + 8]
je 0x10133c4c
cmp dword [eax + 0x30], 0
jne 0x10133c78
mov ebx, dword [eax + 0x3c]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x10133f11
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x90]
mov dword [ebx + 8], esi
mov eax, dword [ecx]
mov ebx, dword [ebp - 0x8c]
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0x94]
mov edx, dword [ebx + 0x24]
mov ecx, dword [eax + 0xfa]
mov esi, dword [esi + 0xc]
add edi, 4
mov dword [ebp - 0xa0], edx
call dword [section..00cfg]
lea eax, [ebp - 0x78]
lea edx, [ebp - 0x40]
mov dword [ebp - 0x94], edi
push edi
push dword [ebp - 0x9c]
push edx
push esi
push eax
push dword [ebp - 0xa0]
call ecx
add esp, 0x18
mov esi, eax
cmp dword [ebx + 0x28], 0
mov eax, dword [ebx + 8]
je 0x10133cd6
cmp dword [eax + 0x30], 0
jne 0x10133ce1
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
test esi, esi
mov edi, 0
mov dword [ebp - 0xa0], esi
je 0x10133d74
lea esi, [ebp - 0x6c]
mov dword [esi + 0x1c], 0x3f16bb09
push 8
push 0x800
push str.security
push esi
call sym.nss3.dll_PL_InitArenaPool
add esp, 0x10
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x4c]
add eax, 0x10
push eax
push sym.nss3.dll_SEC_ObjectIDTemplate_Util
push ecx
push esi
call sym.nss3.dll_SEC_QuickDERDecodeItem_Util
add esp, 0x10
mov ebx, 2
test eax, eax
jne 0x10133d51
lea eax, [ebp - 0x4c]
push eax
call sym.nss3.dll_SECOID_FindOID_Util
add esp, 4
xor ebx, ebx
test eax, eax
je 0x10133d51
cmp dword [eax + 0xc], 0x163
sete bl
push 0x10146a00
push 0x101d6144
call sym.nss3.dll_PR_CallOnce
add esp, 8
cmp dword [0x101d6150], 0
je 0x10133d91
push esi
call sym.nss3.dll_PL_FreeArenaPool
jmp 0x10133d97
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x10133ebd
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x10133ebd
push esi
call sym.nss3.dll_PL_FinishArenaPool
add esp, 4
mov ecx, dword [ebp + 0xc]
cmp ebx, 1
jne 0x10133dc1
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x10133db6
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp - 0xa0]
jmp 0x10133eb7
xor eax, eax
add ecx, 0x20
push sym.nss3.dll_SEC_OctetStringTemplate_Util
push ecx
push eax
push eax
call sym.nss3.dll_SEC_ASN1EncodeItem_Util
add esp, 0x10
test eax, eax
je 0x10133ec8
mov esi, eax
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 0x98]
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 4]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x8c]
cmp dword [eax + 0x28], 0
mov eax, dword [eax + 8]
je 0x10133e07
cmp dword [eax + 0x30], 0
jne 0x10133e2d
mov ebx, dword [eax + 0x3c]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x10133f27
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], edi
mov eax, dword [ebp - 0x90]
mov ebx, dword [ebp - 0x8c]
mov edi, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebx + 0x24]
mov edi, dword [edi + 0xc]
mov ecx, dword [eax + 0xfa]
mov dword [ebp - 0x90], edx
call dword [section..00cfg]
push dword [ebp - 0x94]
push dword [ebp - 0x9c]
lea eax, [ebp - 0x40]
push eax
push edi
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x90]
call ecx
add esp, 0x18
mov edi, eax
cmp dword [ebx + 0x28], 0
mov eax, dword [ebx + 8]
je 0x10133e87
cmp dword [eax + 0x30], 0
jne 0x10133e92
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
push 1
push esi
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
push dword [ebp - 0x98]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
test edi, edi
mov eax, edi
mov edi, 0
je 0x10133ebd
push eax
jmp 0x101339b2
mov edi, dword [ebp - 0x8c]
jmp 0x101339d3
mov eax, dword [ebp - 0x98]
test eax, eax
je case.default.0x10133899
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp case.default.0x10133899
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x1013392a
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x10133abd
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x10133c65
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov edi, eax
jmp 0x10133e20