Function at 0x1010c2c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xa0
mov eax, dword [0x101d2014]
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor eax, ebp
test ebx, ebx
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x95], 1
mov byte [ebp - 0x96], 0
mov dword [ebp - 0x9c], 2
mov dword [ebp - 0xa0], 0x10
mov edi, dword [edx + 8]
jne 0x1010c312
cmp edi, dword [ebp + 8]
jne 0x1010c312
mov edi, dword [edx + 0xc]
jmp 0x1010c6a5
test edi, edi
je 0x1010c38e
push dword [edx + 0xc]
push edi
call fcn.10127af0
add esp, 8
test eax, eax
jne 0x1010c375
mov ebx, dword [edi + 0x3c]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x1010c785
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], esi
mov edx, dword [ebp + 0xc]
mov eax, dword [edi]
mov esi, dword [edi + 0x38]
mov ebx, dword [edx + 0xc]
mov ecx, dword [eax + 0x5a]
call dword [section..00cfg]
push ebx
push esi
call ecx
add esp, 8
push dword [edi + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov ebx, dword [ebp + 0x10]
lock dec dword [edi + 0x48]
jne 0x1010c384
push edi
call fcn.10135de0
add esp, 4
mov edx, dword [ebp + 0xc]
mov dword [edx + 8], 0
xor esi, esi
lea eax, [ebp - 0x9c]
mov edi, 4
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x94], 0
inc esi
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x88], 0x100
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x80], edi
test ebx, ebx
lea edi, [ebp - 0x95]
lea ecx, [ebp - 0x96]
cmovne ecx, edi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], esi
je 0x1010c400
mov eax, dword [edx + 4]
dec eax
cmp eax, 5
ja case.0x1010c3f4.3
jmp dword [eax*4 + 0x1019f304]
lea eax, [edx + 0x14]
jmp 0x1010c414
xor eax, eax
lea ebx, [ebp - 0x70]
jmp 0x1010c43e
lea eax, [edx + 0x38]
jmp 0x1010c414
lea eax, [edx + 0x2c]
jmp 0x1010c414
lea eax, [edx + 0x20]
push eax
call sym.nss3.dll_PK11_MakeIDFromPubKey
add esp, 4
mov edx, dword [ebp + 0xc]
test eax, eax
je case.0x1010c3f4.3
lea ebx, [ebp - 0x64]
mov dword [ebx - 0xc], 0x102
mov ecx, dword [eax + 4]
mov dword [ebx - 8], ecx
mov ecx, dword [eax + 8]
mov dword [ebx - 4], ecx
mov ecx, dword [edx + 4]
dec ecx
cmp ecx, 5
ja case.0x1010c451.5
mov dword [ebp - 0xac], eax
jmp dword [ecx*4 + 0x1019f31c]
mov dword [ebx], 0x106
mov dword [ebx + 4], edi
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], 0x104
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x18], 0x10a
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], esi
mov dword [ebp - 0xa0], 0
mov dword [ebx + 0x24], 0x120
lea esi, [ebx + 0x24]
mov eax, dword [edx + 0x18]
mov dword [ebx + 0x28], eax
mov eax, dword [edx + 0x1c]
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0x122
mov eax, dword [edx + 0x24]
mov dword [ebx + 0x34], eax
lea eax, [edx + 0x28]
jmp 0x1010c574
mov dword [ebx], 0x10a
mov dword [ebx + 4], edi
mov dword [ebx + 8], esi
mov dword [ebp - 0xa0], esi
mov dword [ebx + 0xc], 0x130
lea esi, [ebx + 0xc]
mov eax, dword [edx + 0x18]
mov dword [ebx + 0x10], eax
mov eax, dword [edx + 0x1c]
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], 0x131
mov eax, dword [edx + 0x24]
mov dword [ebx + 0x1c], eax
mov eax, dword [edx + 0x28]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], 0x132
mov eax, dword [edx + 0x30]
mov dword [ebx + 0x28], eax
mov eax, dword [edx + 0x34]
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0x11
mov eax, dword [edx + 0x3c]
mov dword [ebx + 0x34], eax
lea eax, [edx + 0x40]
jmp 0x1010c574
mov dword [ebx], 0x10a
mov dword [ebx + 4], edi
mov dword [ebx + 8], esi
mov dword [ebp - 0xa0], esi
mov dword [ebx + 0xc], 0x130
lea esi, [ebx + 0xc]
mov eax, dword [edx + 0x64]
mov dword [ebx + 0x10], eax
mov eax, dword [edx + 0x68]
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], 0x131
mov eax, dword [edx + 0x70]
mov dword [ebx + 0x1c], eax
mov eax, dword [edx + 0x74]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], 0x132
mov eax, dword [edx + 0x7c]
mov dword [ebx + 0x28], eax
mov eax, dword [edx + 0x80]
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0x11
mov eax, dword [edx + 0x54]
mov dword [ebx + 0x34], eax
lea eax, [edx + 0x58]
lea ecx, [ebx + 0x38]
add ebx, 0x3c
jmp 0x1010c5d5
mov dword [ebx], 0x10c
mov dword [ebx + 4], edi
mov dword [ebx + 8], 1
mov dword [ebp - 0xa0], 2
mov dword [ebx + 0xc], 0x130
lea esi, [ebx + 0xc]
lea ecx, [ebx + 0x2c]
mov eax, dword [edx + 0x18]
mov dword [ebx + 0x10], eax
mov eax, dword [edx + 0x1c]
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], 0x132
mov eax, dword [edx + 0x24]
mov dword [ebx + 0x1c], eax
mov eax, dword [edx + 0x28]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], 0x11
mov eax, dword [edx + 0x30]
mov dword [ebx + 0x28], eax
lea eax, [edx + 0x34]
add ebx, 0x30
mov dword [ebp - 0xa8], 0
mov eax, dword [eax]
mov edi, ebx
mov dword [ecx], eax
lea ecx, [ebp - 0x94]
sub edi, ecx
sar edi, 2
imul edi, edi, 0xaaaaaaab
cmp dword [edx + 4], 6
je 0x1010c618
sub ebx, esi
je 0x1010c618
sar ebx, 2
imul ebx, ebx, 0xaaaaaaab
push esi
call fcn.10127cf0
add esp, 4
add esi, 0xc
dec ebx
jne 0x1010c609
lea eax, [ebp - 0xa4]
push eax
push dword [ebp + 0x10]
push edi
lea eax, [ebp - 0x94]
push eax
push 0
mov esi, dword [ebp + 8]
push esi
call fcn.10127e70
add esp, 0x18
mov ebx, eax
mov eax, dword [ebp - 0xac]
test eax, eax
je 0x1010c64f
push 1
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
mov eax, dword [ebp - 0xa8]
test eax, eax
je 0x1010c664
push 1
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
xor edi, edi
test ebx, ebx
jne 0x1010c6a5
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0xc], eax
lock inc dword [esi + 0x48]
mov dword [ecx + 8], esi
mov edi, dword [ebp - 0xa4]
jmp 0x1010c6a5
test eax, eax
je case.0x1010c3f4.3
push 1
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
push 0
push 0xffffe00e
call sym.nss3.dll_PR_SetError
add esp, 8
xor edi, edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10192ef0
mov eax, edi
add esp, 0xa0
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebx], 0x10a
mov dword [ebx + 4], edi
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], 0x10c
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], esi
mov dword [ebp - 0xa0], 3
mov dword [ebx + 0x18], 0x180
mov eax, dword [edx + 0x14]
mov dword [ebx + 0x1c], eax
mov eax, dword [edx + 0x18]
mov dword [ebx + 0x20], eax
push str.NSS_USE_DECODED_CKA_EC_POINT
mov edi, edx
call sym.nss3.dll_PR_GetEnv
add esp, 4
test eax, eax
je 0x1010c728
mov dword [ebx + 0x24], 0x181
lea ecx, [ebx + 0x2c]
mov dword [ebp - 0xa8], 0
xor esi, esi
mov edx, edi
mov eax, dword [edi + 0x24]
mov dword [ebx + 0x28], eax
lea eax, [edi + 0x28]
jmp 0x1010c75d
lea eax, [edi + 0x20]
xor esi, esi
push sym.nss3.dll_SEC_OctetStringTemplate_Util
push eax
push esi
push esi
call sym.nss3.dll_SEC_ASN1EncodeItem_Util
add esp, 0x10
test eax, eax
je 0x1010c765
mov dword [ebx + 0x24], 0x181
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xa8], eax
mov ecx, dword [eax + 4]
add eax, 8
mov dword [ebx + 0x28], ecx
lea ecx, [ebx + 0x2c]
add ebx, 0x30
jmp 0x1010c5df
mov eax, dword [ebp - 0xac]
xor edi, edi
test eax, eax
je 0x1010c6a5
push 1
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
jmp 0x1010c6a5
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x1010c33f