Function at 0x100bffd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xf0
mov eax, dword [0x101f1014]
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 0x100c044b
cmp dword [ebp + 0x18], 0
je 0x100c044b
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x100c044b
push eax
call sym.nss3.dll_PK11_MakeIDFromPubKey
add esp, 4
mov dword [ebp - 0xe0], eax
test eax, eax
je 0x100c044b
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 0x100c00ca
mov edx, dword [esi + 4]
test edx, edx
je 0x100c00ca
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 0x100c0108
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 0x100c00ee
lea ecx, [esi - 0xc]
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 0
je 0x100c012e
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 0x100c015c
xor eax, eax
push eax
push eax
push dword [ebp + 0x10]
call fcn.100b9480
mov edx, dword [ebp + 0xc]
add esp, 0xc
mov ecx, eax
test eax, eax
je 0x100c0462
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 0x100c01bc
xor eax, eax
push edx
push eax
push eax
push 0x107
push dword [ebp + 0x10]
push ecx
call fcn.100c75b0
add esp, 0x18
mov dword [ebp - 0xf0], eax
test eax, eax
jne 0x100c01c6
push 1
push dword [ebp - 0xe0]
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
mov esi, 0x54
jmp 0x100c033a
lock inc dword [edx + 0x2c]
mov dword [ebp - 0xf0], edx
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x24], 0
je 0x100c01ea
push eax
call fcn.100cb930
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [ebp - 0xf4], eax
test eax, eax
jne 0x100c0240
jmp 0x100c02d1
mov ecx, dword [eax + 0x38]
test ecx, ecx
je 0x100c02d1
mov dword [ebp - 0xf4], ecx
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0xec], eax
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0xe8], eax
test eax, eax
je 0x100c047f
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 0x100c0306
push dword [ebp - 0xf4]
push dword [ebp + 8]
call fcn.100cba60
add esp, 8
jmp 0x100c0314
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 0x100c040f
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 0x100c0421
mov dword [ebp - 0xe0], esi
call sym.nss3.dll_PK11_GetInternalSlot
mov esi, eax
test eax, eax
je 0x100c03e1
cmp esi, dword [ebp + 8]
je 0x100c03e1
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 0x100c03e5
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.100a31d0
add esp, 8
mov ebx, eax
push edi
call sym.nss3.dll_SECKEY_DestroyPrivateKey
add esp, 4
lock dec dword [esi + 0x48]
jne 0x100c03cf
push esi
call fcn.100cb320
add esp, 4
push 1
push dword [ebp - 0xe4]
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
jmp 0x100c044b
test esi, esi
je 0x100c03f4
lock dec dword [esi + 0x48]
jne 0x100c03f4
push esi
call fcn.100cb320
add esp, 4
push dword [ebp - 0xe0]
call fcn.100aaef0
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 0x100c044b
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.100a2340
add esp, 0x14
mov ebx, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10157a00
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 0x100c016e
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov dword [ebp - 0xe8], eax
jmp 0x100c021e