Function at 0x100c7e90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb8
mov eax, dword [ebp + 0x34]
mov esi, dword [ebp + 0x28]
mov ebx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x20]
mov ecx, dword [0x101ef014]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 8]
cmp dword [ecx + 4], 6
jae 0x100c7ee8
push eax
push esi
push ebx
push edx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
call fcn.100c7750
add esp, 0x28
mov esi, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
mov eax, esi
jmp 0x100c7f5f
jne 0x100c7f42
mov ecx, dword [ecx + 8]
mov byte [ebp - 0x81], 1
mov dword [ebp - 0x88], 4
mov dword [ebp - 0x8c], 0x10
mov dword [ebp - 0x90], 0
mov edi, dword [ebp + 0xc]
cmp dword [edi + 4], 6
jne 0x100c7f42
mov dword [ebp - 0x98], ecx
mov edi, dword [ebp + 0x2c]
lea ecx, [edi - 9]
cmp ecx, 0xfffffffd
ja 0x100c7f6a
mov ecx, edi
and ecx, 0xfffffffb
add ecx, 0xfffffffd
cmp ecx, 0xfffffffd
ja 0x100c7f6a
push 0
push 0xffffe006
jmp 0x100c7f49
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.10156ff0
mov eax, edi
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
inc edi
mov ecx, dword [ebp - 0x98]
push eax
push edi
push edi
call fcn.100c55e0
add esp, 0xc
xor edi, edi
test eax, eax
je 0x100c7f53
mov dword [ebp - 0xb8], eax
mov ecx, eax
mov eax, ebx
and eax, 0xff000000
mov edx, ebx
and edx, 0xffffff
cmp eax, 0x82000000
cmovne edx, ebx
mov dword [ebp - 0xb0], ecx
mov edi, 1
mov dword [ecx + 0x34], edi
mov dword [ebp - 0x60], 0
lea eax, [ebp - 0x88]
mov dword [ebp - 0x5c], eax
mov ecx, 4
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], 0x100
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0xac], edx
mov dword [ebp - 0x48], edx
lea eax, [ebp - 0x81]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], 0x161
lea ebx, [ebp - 0x90]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x9c], 4
mov dword [ebp - 0x34], ecx
push esi
push dword [ebp + 0x20]
call fcn.100b7390
add esp, 8
lea ecx, [ebp - 0x8c]
mov dword [ecx], eax
mov dword [ebx], esi
test esi, esi
je 0x100c8056
mov edi, dword [ebp - 0xb0]
mov dword [edi + 0x30], esi
push 0x14
call sym.nss3.dll_PORT_ZAlloc_Util
add esp, 4
test eax, eax
je 0x100c80a4
mov edx, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x2c]
mov dword [eax], ecx
test edx, edx
je 0x100c80b2
mov ecx, dword [edx + 8]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 4]
jmp 0x100c80bb
lea ecx, [eax - 0x13]
cmp ecx, 0xa
mov edi, dword [ebp - 0xb0]
ja 0x100c8072
mov edx, 0x707
bt edx, ecx
jb 0x100c821d
mov dword [ebp - 0x90], 0
mov eax, dword [ebp + 0x2c]
dec eax
cmp eax, 7
ja case.0x100c8089.3
jmp dword [eax*4 + 0x101bdf5c]
mov ecx, dword [ebp + 0xc]
call fcn.100c9210
mov esi, eax
mov dword [ebp - 0x90], eax
test eax, eax
jne 0x100c802e
push edi
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
jmp 0x100c7f51
mov dword [eax + 4], 0
xor ecx, ecx
mov dword [eax + 8], ecx
mov edx, dword [ebp + 0xc]
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 - 0x80], ecx
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], 0x14
cmp dword [edi + 0x28], 0
mov eax, dword [edi + 8]
je 0x100c80f2
cmp dword [eax + 0x30], 0
jne 0x100c8118
mov edi, dword [eax + 0x3c]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100c89af
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov eax, dword [ebp - 0x98]
mov eax, dword [eax]
mov ecx, dword [eax + 0xfa]
mov eax, dword [ebp - 0xb8]
lea esi, [eax + 4]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0xc]
mov ebx, dword [ebp - 0xb0]
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x94], eax
call dword [section..00cfg]
lea edx, [ebp - 0x60]
lea eax, [ebp - 0x80]
mov dword [ebp - 0xa8], esi
push esi
push dword [ebp - 0x9c]
push edx
push edi
push eax
push dword [ebp - 0x94]
call ecx
add esp, 0x18
mov esi, eax
cmp dword [ebx + 0x28], 0
mov eax, dword [ebx + 8]
je 0x100c817c
cmp dword [eax + 0x30], 0
jne 0x100c8187
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov dword [ebp - 0x94], esi
test esi, esi
mov edi, dword [ebp + 0xc]
je 0x100c81f5
lea esi, [ebp - 0x30]
mov dword [esi + 0x1c], 0x3f16bb09
push 8
push 0x800
push str.security
push esi
call sym.nss3.dll_PL_InitArenaPool
add esp, 0x10
lea eax, [edi + 0x10]
lea ecx, [ebp - 0x6c]
push eax
push sym.nss3.dll_SEC_ObjectIDTemplate_Util
mov edi, ecx
push ecx
push esi
call sym.nss3.dll_SEC_QuickDERDecodeItem_Util
add esp, 0x10
test eax, eax
je 0x100c820b
push 0x100dbba0
push 0x101f39cc
call sym.nss3.dll_PR_CallOnce
add esp, 8
cmp dword [0x101f39d8], 0
je 0x100c8239
lea eax, [ebp - 0x30]
push eax
call sym.nss3.dll_PL_FreeArenaPool
jmp 0x100c8242
push dword [ebp - 0xa4]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov edi, ebx
jmp 0x100c7f53
push edi
call sym.nss3.dll_SECOID_FindOID_Util
add esp, 4
test eax, eax
je 0x100c824a
mov esi, dword [eax + 0xc]
jmp 0x100c824c
mov esi, dword [eax*4 + 0x101bdec0]
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x9c], 3
jmp 0x100c802e
lea eax, [ebp - 0x30]
push eax
call sym.nss3.dll_PL_FinishArenaPool
add esp, 4
mov edi, dword [ebp + 0xc]
jmp 0x100c828d
xor esi, esi
mov edi, dword [ebp + 0xc]
push 0x100dbba0
push 0x101f39cc
call sym.nss3.dll_PR_CallOnce
add esp, 8
cmp dword [0x101f39d8], 0
je 0x100c8275
lea eax, [ebp - 0x30]
push eax
call sym.nss3.dll_PL_FreeArenaPool
jmp 0x100c827e
lea eax, [ebp - 0x30]
push eax
call sym.nss3.dll_PL_FinishArenaPool
add esp, 4
cmp esi, 0x163
je 0x100c864e
lea eax, [edi + 0x20]
xor ecx, ecx
push sym.nss3.dll_SEC_OctetStringTemplate_Util
push eax
push ecx
push ecx
call sym.nss3.dll_SEC_ASN1EncodeItem_Util
add esp, 0x10
test eax, eax
je 0x100c864e
mov edx, dword [eax + 8]
mov ecx, dword [ebp - 0xa4]
mov dword [ecx + 0xc], edx
mov dword [ebp - 0xa0], eax
mov eax, dword [eax + 4]
mov dword [ecx + 0x10], eax
cmp dword [ebx + 0x28], 0
mov eax, dword [ebx + 8]
je 0x100c82d1
cmp dword [eax + 0x30], 0
jne 0x100c82f7
mov edi, dword [eax + 0x3c]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100c89cc
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov eax, dword [ebp - 0x98]
mov eax, dword [eax]
mov ecx, dword [eax + 0xfa]
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0xc]
mov edi, dword [ebx + 0x24]
call dword [section..00cfg]
push dword [ebp - 0xa8]
push dword [ebp - 0x9c]
lea eax, [ebp - 0x60]
push eax
push esi
lea eax, [ebp - 0x80]
push eax
push edi
call ecx
add esp, 0x18
mov edi, eax
cmp dword [ebx + 0x28], 0
mov eax, dword [ebx + 8]
je 0x100c8340
cmp dword [eax + 0x30], 0
jne 0x100c834b
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp dword [ebp + 0x2c], 1
mov esi, dword [ebp + 0xc]
je 0x100c84ef
test edi, edi
je 0x100c84ef
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x8c], 0x10
mov ecx, esi
call fcn.100c9210
mov dword [ebp - 0x90], eax
test eax, eax
je 0x100c8638
mov dword [ebx + 0x30], eax
mov edx, dword [ebp - 0xa4]
mov dword [edx], 1
xor ecx, ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov eax, dword [esi + 0x28]
mov dword [edx + 0xc], eax
mov eax, dword [esi + 0x24]
mov dword [edx + 0x10], eax
mov eax, dword [ebx + 8]
cmp dword [ebx + 0x28], ecx
je 0x100c83bc
cmp dword [eax + 0x30], 0
jne 0x100c83e2
mov edi, dword [eax + 0x3c]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100c89e9
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov eax, dword [ebp - 0x98]
mov eax, dword [eax]
mov ecx, dword [eax + 0xfa]
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0xc]
mov edi, dword [ebx + 0x24]
call dword [section..00cfg]
push dword [ebp - 0xa8]
push dword [ebp - 0x9c]
lea eax, [ebp - 0x60]
push eax
push esi
lea eax, [ebp - 0x80]
push eax
push edi
call ecx
add esp, 0x18
mov esi, eax
cmp dword [ebx + 0x28], 0
mov eax, dword [ebx + 8]
je 0x100c842b
cmp dword [eax + 0x30], 0
jne 0x100c8436
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
test esi, esi
je 0x100c858f
mov edx, dword [ebp - 0xa0]
mov eax, dword [edx + 8]
mov ecx, dword [ebp - 0xa4]
mov dword [ecx + 0xc], eax
mov eax, dword [edx + 4]
mov dword [ecx + 0x10], eax
cmp dword [ebx + 0x28], 0
mov eax, dword [ebx + 8]
je 0x100c8465
cmp dword [eax + 0x30], 0
jne 0x100c848b
mov edi, dword [eax + 0x3c]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100c8a06
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov eax, dword [ebp - 0x98]
mov eax, dword [eax]
mov ecx, dword [eax + 0xfa]
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0xc]
mov edi, dword [ebx + 0x24]
call dword [section..00cfg]
push dword [ebp - 0xa8]
push dword [ebp - 0x9c]
lea eax, [ebp - 0x60]
push eax
push esi
lea eax, [ebp - 0x80]
push eax
push edi
call ecx
add esp, 0x18
mov esi, eax
cmp dword [ebx + 0x28], 0
mov eax, dword [ebx + 8]
je 0x100c84d4
cmp dword [eax + 0x30], 0
jne 0x100c84df
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
test esi, esi
je 0x100c858f
mov dword [ebp - 0x94], esi
jmp 0x100c84f5
mov dword [ebp - 0x94], edi
mov edi, ebx
mov eax, dword [ebp - 0xa0]
push 1
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
push dword [ebp - 0xa4]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov ebx, edi
cmp dword [ebp - 0x94], 0
jne 0x100c865d
jmp 0x100c7f53
mov dword [ebp - 0x90], 0x14
mov esi, 0x14
jmp 0x100c802e
mov dword [ebp - 0x90], 0x1c
mov esi, 0x1c
jmp 0x100c802e
mov dword [ebp - 0x90], 0x20
mov esi, 0x20
jmp 0x100c802e
mov dword [ebp - 0x90], 0x30
mov esi, 0x30
jmp 0x100c802e
mov dword [ebp - 0x90], 0x40
mov esi, 0x40
jmp 0x100c802e
mov edx, dword [ebp + 0x2c]
lea eax, [edx - 2]
cmp eax, 7
jae 0x100c85f9
mov ecx, 0x79
bt ecx, eax
jae 0x100c85f9
mov esi, dword [edx*4 + 0x101bdecc]
mov edi, dword [edx*4 + 0x101bdee8]
mov eax, dword [ebp - 0x94]
mov ecx, eax
test eax, eax
jne 0x100c85e8
push 0
push dword [ebp + 0x20]
call fcn.100b7390
add esp, 8
lea edx, [eax - 0x13]
mov ecx, esi
cmp edx, 0xa
ja 0x100c85e8
mov ecx, 0x707
bt ecx, edx
mov ecx, esi
jae 0x100c85e8
mov ecx, dword [eax*4 + 0x101bdec0]
mov edx, esi
shl edx, 8
sub edx, esi
sub edx, esi
cmp ecx, edx
jbe 0x100c867c
push 0
push 0xffffe005
call sym.nss3.dll_PR_SetError
add esp, 8
push dword [ebp - 0xb0]
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
mov eax, dword [ebp - 0xa0]
push 1
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
push dword [ebp - 0xa4]
call dword [sym.imp.mozglue.dll_free]
jmp 0x100c80aa
mov dword [ebp - 0x94], edi
push 1
push dword [ebp - 0xa0]
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
push dword [ebp - 0xa4]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
push ebx
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
push dword [ebp - 0x94]
call fcn.100a9930
add esp, 4
push 0
push eax
jmp 0x100c7f49
mov dword [ebp - 0x9c], edi
xor edi, edi
mov eax, ecx
xor edx, edx
div esi
imul esi, eax
cmp esi, ecx
adc eax, 0
mov dword [ebp - 0xc0], eax
mov esi, dword [ebp + 0x30]
test esi, esi
je 0x100c86a8
cmp dword [esi + 4], 0
je 0x100c86a8
mov edi, dword [esi + 8]
lea eax, [edi + 4]
mov dword [ebp - 0xc4], eax
push eax
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
test eax, eax
je 0x100c88ff
mov dword [ebp - 0xb4], eax
mov dword [eax], 0x1000000
test edi, edi
je 0x100c86e8
mov eax, dword [ebp - 0xb4]
add eax, 4
push edi
push dword [esi + 4]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x30], 0x362
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0x360
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x24], eax
push dword [ebp - 0xac]
push 4
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0xb0]
call fcn.100c6260
add esp, 0x10
mov ecx, eax
test eax, eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xbc], ecx
cmovne eax, ecx
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0xc0], 0
je 0x100c890b
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x98], 0
mov eax, dword [ebp - 0xb8]
mov ebx, dword [ebp - 0x9c]
mov edx, dword [ebp - 0xb4]
mov dword [ebp - 0x74], edx
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0x70], ecx
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], 8
sub esp, 0x24
xorps xmm0, xmm0
movups xmmword [esp + 0x14], xmm0
mov ecx, dword [ebp - 0xac]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], ebx
lea ecx, [ebp - 0x6c]
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [esp + 4], 0x362
call sym.nss3.dll_PK11_DeriveWithTemplate
add esp, 0x24
test eax, eax
je 0x100c8969
mov esi, eax
cmp dword [ebp - 0xc0], 1
jne 0x100c87e5
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x94]
push dword [ebp - 0xac]
push dword [ebp + 0x20]
push eax
push ebx
push esi
jmp 0x100c8811
sub esp, 0x24
xorps xmm0, xmm0
movups xmmword [esp + 0x14], xmm0
mov eax, dword [ebp - 0xac]
mov dword [esp + 0x10], eax
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [esp + 0xc], 0x360
mov dword [esp + 8], 0
call sym.nss3.dll_PK11_DeriveWithTemplate
add esp, 0x24
mov ebx, eax
push esi
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
test ebx, ebx
je 0x100c8969
mov edi, ebx
mov ecx, dword [ebp - 0x98]
test ecx, ecx
mov ebx, dword [ebp - 0x9c]
je 0x100c88dc
lea eax, [edi + 4]
cmp dword [ebp - 0xa8], 1
jne 0x100c8878
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], 4
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x94]
push dword [ebp - 0xac]
push dword [ebp + 0x20]
lea eax, [ebp - 0x6c]
push eax
push 0x360
push ecx
jmp 0x100c88ae
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], 4
sub esp, 0x24
xorps xmm0, xmm0
movups xmmword [esp + 0x14], xmm0
mov eax, dword [ebp - 0xac]
mov dword [esp + 0x10], eax
mov edx, 0x360
mov dword [esp + 0xc], edx
lea eax, [ebp - 0x6c]
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], ecx
mov ebx, ecx
call sym.nss3.dll_PK11_DeriveWithTemplate
add esp, 0x24
mov esi, eax
push edi
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
push ebx
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
mov edi, esi
test esi, esi
mov ebx, dword [ebp - 0x9c]
je 0x100c895f
mov edx, dword [ebp - 0xb4]
inc byte [edx + 3]
mov dword [ebp - 0x98], edi
dec dword [ebp - 0xa8]
mov eax, dword [ebp - 0xb8]
jne 0x100c876d
jmp 0x100c8913
push 0
push 0xffffe013
jmp 0x100c8600
xor edi, edi
mov edx, dword [ebp - 0xb4]
push edx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
cmp dword [ebp - 0xbc], 0
je 0x100c8934
push dword [ebp - 0xbc]
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
push dword [ebp - 0xb0]
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
mov dword [ebp - 0x94], 0
test edi, edi
mov eax, dword [ebp - 0xa0]
jne 0x100c84fd
jmp 0x100c861c
mov dword [ebp - 0x98], 0
push dword [ebp - 0xb4]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
cmp dword [ebp - 0xbc], 0
je 0x100c898f
push dword [ebp - 0xbc]
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
cmp dword [ebp - 0x98], 0
je 0x100c8608
push dword [ebp - 0x98]
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
jmp 0x100c8608
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov esi, eax
jmp 0x100c810b
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov esi, eax
jmp 0x100c82ea
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov esi, eax
jmp 0x100c83d5
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov esi, eax
jmp 0x100c847e