Function at 0x100c6280
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xf0
mov eax, dword [0x101db014]
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 0x100c66fd
cmp dword [ebp + 0x18], 0
je 0x100c66fd
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x100c66fd
push eax
call sym.nss3.dll_PK11_MakeIDFromPubKey
add esp, 4
mov dword [ebp - 0xe0], eax
test eax, eax
je 0x100c66fd
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 0x100c637a
mov edx, dword [esi + 4]
test edx, edx
je 0x100c637a
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 0x100c63ba
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 0x100c639e
mov ecx, esi
add ecx, 0xfffffff4
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 0
je 0x100c63e3
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
mov edx, dword [ebp + 8]
add ecx, 0x18
mov esi, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xdc], ecx
xor ecx, ecx
test eax, eax
jne 0x100c640e
xor eax, eax
push eax
push eax
push dword [ebp + 0x10]
call fcn.100bf820
mov edx, dword [ebp + 8]
add esp, 0xc
mov ecx, eax
test eax, eax
je 0x100c6714
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 + 0xc]
cmp dword [ecx + 8], edx
je 0x100c646e
xor eax, eax
push ecx
push eax
push eax
push 0x107
push dword [ebp + 0x10]
push edx
call fcn.100cdfd0
add esp, 0x18
mov dword [ebp - 0xf0], eax
test eax, eax
jne 0x100c6478
push 1
push dword [ebp - 0xe0]
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
mov esi, 0x54
jmp 0x100c65ec
lock inc dword [ecx + 0x2c]
mov dword [ebp - 0xf0], ecx
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x24], 0
je 0x100c649c
push eax
call fcn.100d2250
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [ebp - 0xf4], eax
test eax, eax
jne 0x100c64f2
jmp 0x100c6583
mov ecx, dword [eax + 0x38]
test ecx, ecx
je 0x100c6583
mov dword [ebp - 0xf4], ecx
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0xec], eax
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0xe8], eax
test eax, eax
je 0x100c6731
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 0x100c65b8
push dword [ebp - 0xf4]
push dword [ebp + 8]
call fcn.100d2380
add esp, 8
jmp 0x100c65c6
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 0x100c66c1
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 0x100c66d3
mov dword [ebp - 0xe0], esi
call sym.nss3.dll_PK11_GetInternalSlot
mov esi, eax
test eax, eax
je 0x100c6693
cmp esi, dword [ebp + 8]
je 0x100c6693
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 0x100c6693
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.100a95e0
add esp, 8
mov ebx, eax
push edi
call sym.nss3.dll_SECKEY_DestroyPrivateKey
add esp, 4
lock dec dword [esi + 0x48]
jne 0x100c6681
push esi
call fcn.100d1c70
add esp, 4
push 1
push dword [ebp - 0xe4]
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
jmp 0x100c66fd
test esi, esi
je 0x100c66a6
lock dec dword [esi + 0x48]
jne 0x100c66a6
push esi
call fcn.100d1c70
add esp, 4
push dword [ebp - 0xe0]
call fcn.100b1140
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 0x100c66fd
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.100a8740
add esp, 0x14
mov ebx, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
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 0x100c6420
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov dword [ebp - 0xe8], eax
jmp 0x100c64d0