Function at 0x100bea20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xf0
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc5], 1
mov byte [ebp - 0xc6], 0
mov dword [ebp - 0xcc], 3
xor ebx, ebx
cmp dword [ebp + 8], 0
je 0x100bee9b
cmp dword [ebp + 0x18], 0
je 0x100bee9b
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x100bee9b
push eax
call sym.nss3.dll_PK11_MakeIDFromPubKey
add esp, 4
mov dword [ebp - 0xe0], eax
test eax, eax
je 0x100bee9b
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x88]
mov dword [ecx - 0x3c], ebx
cmp dword [ebp + 0x24], 0
lea edx, [ebp - 0xc6]
lea eax, [ebp - 0xc5]
mov esi, eax
cmove esi, edx
mov dword [ecx - 0x38], esi
mov dword [ecx - 0x34], ebx
mov dword [ecx - 0x30], 0
lea esi, [ebp - 0xcc]
mov dword [ecx - 0x2c], esi
mov esi, 4
mov dword [ecx - 0x28], esi
mov dword [ecx - 0x24], 0x100
lea edi, [ebp + 0x2c]
mov dword [ecx - 0x20], edi
mov dword [ecx - 0x1c], esi
mov dword [ecx - 0x18], 2
cmp dword [ebp + 0x28], 0
cmovne edx, eax
mov dword [ecx - 0x14], edx
mov dword [ecx - 0x10], ebx
mov dword [ecx - 0xc], 0x103
mov dword [ecx - 8], edx
mov dword [ecx - 4], ebx
mov edi, dword [ebp + 0x34]
mov esi, dword [ebp + 0x1c]
test esi, esi
je 0x100beb1a
mov edx, dword [esi + 4]
test edx, edx
je 0x100beb1a
lea ecx, [ebp - 0x7c]
mov dword [ecx - 0xc], 3
mov dword [ecx - 8], edx
mov edx, dword [esi + 8]
mov dword [ecx - 4], edx
mov ebx, dword [ebp + 0x30]
mov dword [ecx], 0x102
mov esi, dword [ebp - 0xe0]
mov edx, dword [esi + 4]
mov dword [ecx + 4], edx
mov edx, dword [esi + 8]
mov dword [ecx + 8], edx
lea esi, [ecx + 0xc]
test edi, edi
jle 0x100beb58
xor ecx, ecx
mov edx, dword [ebx + ecx*4]
mov dword [esi], edx
mov dword [esi + 4], eax
mov dword [esi + 8], 1
inc ecx
add esi, 0xc
cmp edi, ecx
jne 0x100beb3e
lea ecx, [esi - 0xc]
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 0
je 0x100beb7e
mov dword [esi], 0xd5a0db00
mov esi, dword [ebp + 0x20]
mov edx, dword [esi + 4]
mov dword [ecx + 0x10], edx
mov edx, dword [esi + 8]
mov dword [ecx + 0x14], edx
add ecx, 0x18
mov esi, ecx
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xdc], ecx
xor ecx, ecx
test eax, eax
jne 0x100bebac
xor eax, eax
push eax
push eax
push dword [ebp + 0x10]
call fcn.100b7ec0
mov edx, dword [ebp + 0xc]
add esp, 0xc
mov ecx, eax
test eax, eax
je 0x100beeb2
mov dword [ebp - 0xe4], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0xd8], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0xd4], ecx
mov ecx, dword [ebp + 8]
cmp dword [edx + 8], ecx
je 0x100bec0c
xor eax, eax
push edx
push eax
push eax
push 0x107
push dword [ebp + 0x10]
push ecx
call fcn.100c6000
add esp, 0x18
mov dword [ebp - 0xf0], eax
test eax, eax
jne 0x100bec16
push 1
push dword [ebp - 0xe0]
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
mov esi, 0x54
jmp 0x100bed8a
lock inc dword [edx + 0x2c]
mov dword [ebp - 0xf0], edx
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x24], 0
je 0x100bec3a
push eax
call fcn.100ca370
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [ebp - 0xf4], eax
test eax, eax
jne 0x100bec90
jmp 0x100bed21
mov ecx, dword [eax + 0x38]
test ecx, ecx
je 0x100bed21
mov dword [ebp - 0xf4], ecx
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0xec], eax
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0xe8], eax
test eax, eax
je 0x100beecf
mov eax, dword [ebp - 0xec]
add eax, 0x1c
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0xe8]
mov ecx, dword [ebp - 0xec]
mov dword [ecx + 8], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xc4]
sub esi, eax
sar esi, 2
imul eax, esi, 0xaaaaaaab
mov dword [ebp - 0xec], eax
mov eax, dword [ecx]
mov ecx, dword [eax + 0xf6]
mov eax, dword [ebp + 0x18]
mov edx, dword [eax + 4]
mov dword [ebp - 0xe8], edx
mov esi, dword [eax + 8]
mov eax, dword [ebp - 0xf0]
mov eax, dword [eax + 4]
mov dword [ebp - 0xf8], eax
call dword [section..00cfg]
lea eax, [ebp - 0xd0]
lea edx, [ebp - 0xdc]
push eax
push dword [ebp - 0xec]
lea eax, [ebp - 0xc4]
push eax
push esi
push dword [ebp - 0xe8]
push dword [ebp - 0xf8]
push edx
push dword [ebp - 0xf4]
call ecx
add esp, 0x20
mov esi, eax
cmp dword [ebp + 0x24], 0
je 0x100bed56
push dword [ebp - 0xf4]
push dword [ebp + 8]
call fcn.100ca4a0
add esp, 8
jmp 0x100bed64
push 0
push 0xffffe002
call sym.nss3.dll_PR_SetError
add esp, 8
push dword [ebp - 0xf0]
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
xor esi, esi
inc esi
push esi
push dword [ebp - 0xe0]
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
push esi
jmp 0x100bee5f
mov eax, dword [ebp + 8]
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
push dword [ebp - 0xf0]
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
push 1
push dword [ebp - 0xe0]
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
test esi, esi
je 0x100bee71
mov dword [ebp - 0xe0], esi
call sym.nss3.dll_PK11_GetInternalSlot
mov esi, eax
test eax, eax
je 0x100bee31
cmp esi, dword [ebp + 8]
je 0x100bee31
xor eax, eax
push dword [ebp + 0x38]
push edi
push ebx
push dword [ebp + 0x2c]
push eax
push eax
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 0xfc]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call sym.nss3.dll_PK11_UnwrapPrivKey
add esp, 0x34
test eax, eax
je 0x100bee35
mov edi, eax
xor eax, eax
cmp dword [ebp + 0x28], 0
sete al
xor ecx, ecx
cmp dword [ebp + 0x24], 0
sete cl
lea ecx, [ecx + ecx*4]
shl eax, 6
or eax, ecx
add eax, 0x45
mov ecx, dword [ebp + 8]
mov edx, edi
push eax
push 0
call fcn.100a1c10
add esp, 8
mov ebx, eax
push edi
call sym.nss3.dll_SECKEY_DestroyPrivateKey
add esp, 4
lock dec dword [esi + 0x48]
jne 0x100bee1f
push esi
call fcn.100c9d60
add esp, 4
push 1
push dword [ebp - 0xe4]
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
jmp 0x100bee9b
test esi, esi
je 0x100bee44
lock dec dword [esi + 0x48]
jne 0x100bee44
push esi
call fcn.100c9d60
add esp, 4
push dword [ebp - 0xe0]
call fcn.100a9930
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
push 1
push dword [ebp - 0xe4]
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
xor ebx, ebx
jmp 0x100bee9b
push 1
push dword [ebp - 0xe4]
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
xor eax, eax
push dword [ebp + 0x38]
push dword [ebp - 0xd0]
push eax
push eax
push dword [ebp + 8]
call fcn.100a0d80
add esp, 0x14
mov ebx, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
mov eax, ebx
add esp, 0xf0
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0xd8], 0
xor ecx, ecx
mov dword [ebp - 0xe4], 0
xor eax, eax
jmp 0x100bebbe
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov dword [ebp - 0xe8], eax
jmp 0x100bec6e