Function at 0x100cfe40
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 [0x101db014]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 8]
cmp dword [ecx + 4], 6
jae 0x100cfe8f
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.100cf710
add esp, 0x28
mov esi, eax
jmp 0x100cfff8
jne 0x100cffe7
mov ecx, dword [ecx + 8]
mov dword [ebp - 0xa0], ecx
mov byte [ebp - 0x81], 1
mov dword [ebp - 0x88], 4
mov dword [ebp - 0x8c], 0x10
mov dword [ebp - 0x90], 0
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 4], 6
jne 0x100cffe7
cmp dword [ebp + 0x2c], 8
ja case.0x100d003e.3
mov ecx, 0x1e6
mov edi, dword [ebp + 0x2c]
bt ecx, edi
jae case.0x100d003e.3
mov ecx, dword [ebp - 0xa0]
push eax
xor eax, eax
inc eax
push eax
push eax
call fcn.100cd640
add esp, 0xc
test eax, eax
mov edi, dword [ebp + 0x1c]
je 0x100cfff6
mov dword [ebp - 0xb0], 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 - 0xa8], ecx
mov ebx, 1
mov dword [ecx + 0x34], ebx
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], ebx
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.100bed00
add esp, 8
lea ecx, [ebp - 0x8c]
mov dword [ecx], eax
mov dword [ebx], esi
test esi, esi
je 0x100d000f
mov ebx, dword [ebp - 0xa8]
mov dword [ebx + 0x30], esi
push 0x14
call sym.nss3.dll_PORT_ZAlloc_Util
add esp, 4
test eax, eax
je 0x100d005d
mov edx, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x2c]
mov dword [eax], ecx
test edx, edx
je 0x100d0074
mov ecx, dword [edx + 8]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 4]
jmp 0x100d007d
push 0
push 0xffffe00e
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
mov eax, esi
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [eax - 0x13]
cmp ecx, 0xa
mov ebx, dword [ebp - 0xa8]
ja 0x100d002b
mov edx, 0x707
bt edx, ecx
jb 0x100d01bd
mov dword [ebp - 0x90], 0
mov eax, dword [ebp + 0x2c]
dec eax
cmp eax, 7
ja case.0x100d003e.3
jmp dword [eax*4 + 0x101aac0c]
mov ecx, dword [ebp + 0xc]
call fcn.100d11b0
mov esi, eax
mov dword [ebp - 0x90], eax
test eax, eax
jne 0x100cffb4
push ebx
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
jmp 0x100cfff6
push 0
push 0xffffe006
jmp 0x100cffee
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 dword [ebp - 0x80], edi
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], 0x14
cmp dword [ebx + 0x28], 0
mov eax, dword [ebx + 8]
je 0x100d00b1
cmp dword [eax + 0x30], 0
jne 0x100d00d7
mov edi, dword [eax + 0x3c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100d090f
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov eax, dword [ebp - 0xa0]
mov eax, dword [eax]
mov ecx, dword [eax + 0xfa]
mov eax, dword [ebp - 0xb0]
lea esi, [eax + 4]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0xc]
mov ebx, dword [ebp - 0xa8]
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 - 0xa4], esi
push esi
push dword [ebp - 0x9c]
push edx
push edi
push eax
push dword [ebp - 0x94]
call ecx
add esp, 0x18
mov edi, eax
cmp dword [ebx + 0x28], 0
mov eax, dword [ebx + 8]
je 0x100d013b
cmp dword [eax + 0x30], 0
jne 0x100d0146
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
test edi, edi
mov esi, dword [ebp - 0x98]
je 0x100d01ac
mov dword [ebp - 0x94], edi
lea edi, [ebp - 0x30]
mov dword [edi + 0x1c], 0x3f16bb09
push 8
push 0x800
push str.security
push edi
call sym.nss3.dll_PL_InitArenaPool
add esp, 0x10
mov eax, dword [ebp + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x6c]
push eax
push sym.nss3.dll_SEC_ObjectIDTemplate_Util
push ecx
push edi
call sym.nss3.dll_SEC_QuickDERDecodeItem_Util
add esp, 0x10
mov ebx, 2
test eax, eax
jne 0x100d01e5
lea eax, [ebp - 0x6c]
push eax
call sym.nss3.dll_SECOID_FindOID_Util
add esp, 4
test eax, eax
je 0x100d01d9
mov eax, dword [eax + 0xc]
jmp 0x100d01db
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov esi, ebx
jmp 0x100cfff8
mov esi, dword [eax*4 + 0x101aab70]
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x9c], 3
jmp 0x100cffb4
xor eax, eax
xor ebx, ebx
cmp eax, 0x163
sete bl
push edi
call sym.nss3.dll_PORT_DestroyCheapArena
add esp, 4
cmp ebx, 1
jne 0x100d0204
mov ebx, dword [ebp - 0xa8]
mov edi, dword [ebp - 0x94]
jmp 0x100d04a2
mov eax, dword [ebp + 0xc]
add eax, 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
mov ebx, dword [ebp - 0xa8]
mov edi, dword [ebp - 0x94]
je 0x100d04a2
mov ecx, dword [eax + 8]
mov dword [esi + 0xc], ecx
mov dword [ebp - 0xb8], eax
mov eax, dword [eax + 4]
mov dword [esi + 0x10], eax
cmp dword [ebx + 0x28], 0
mov eax, dword [ebx + 8]
je 0x100d0251
cmp dword [eax + 0x30], 0
jne 0x100d0277
mov edi, dword [eax + 0x3c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100d092c
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov eax, dword [ebp - 0xa0]
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 - 0xa4]
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 0x100d02c0
cmp dword [eax + 0x30], 0
jne 0x100d02cb
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp dword [ebp + 0x2c], 1
je 0x100d052a
test edi, edi
mov esi, dword [ebp - 0x98]
je 0x100d08ca
mov dword [ebp - 0x94], edi
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0x8c], 0x10
mov edi, dword [ebp + 0xc]
mov ecx, edi
call fcn.100d11b0
mov dword [ebp - 0x90], eax
test eax, eax
je 0x100d0535
mov dword [ebx + 0x30], eax
mov dword [esi], 1
xor ecx, ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov eax, dword [edi + 0x28]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x24]
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 8]
cmp dword [ebx + 0x28], ecx
je 0x100d0342
cmp dword [eax + 0x30], 0
jne 0x100d0368
mov edi, dword [eax + 0x3c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100d0949
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov eax, dword [ebp - 0xa0]
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 - 0xa4]
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 0x100d03b1
cmp dword [eax + 0x30], 0
jne 0x100d03bc
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
test esi, esi
mov esi, dword [ebp - 0x98]
je 0x100d0473
mov ecx, dword [ebp - 0xb8]
mov eax, dword [ecx + 8]
mov dword [esi + 0xc], eax
mov eax, dword [ecx + 4]
mov dword [esi + 0x10], eax
cmp dword [ebx + 0x28], 0
mov eax, dword [ebx + 8]
je 0x100d03eb
cmp dword [eax + 0x30], 0
jne 0x100d0411
mov edi, dword [eax + 0x3c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100d0966
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov eax, dword [ebp - 0xa0]
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 - 0xa4]
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 0x100d045a
cmp dword [eax + 0x30], 0
jne 0x100d0465
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
test edi, edi
mov esi, dword [ebp - 0x98]
jne 0x100d08ca
mov edx, dword [ebp + 0x2c]
lea eax, [edx - 2]
cmp eax, 7
jae 0x100d048c
mov ecx, 0x79
bt ecx, eax
jb 0x100d054a
push 0
push 0xffffe005
call sym.nss3.dll_PR_SetError
add esp, 8
xor ebx, ebx
jmp 0x100d08b4
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
push ebx
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
push edi
call fcn.100b1140
add esp, 4
push 0
push eax
jmp 0x100cffee
mov dword [ebp - 0x90], 0x14
mov esi, 0x14
jmp 0x100cffb4
mov dword [ebp - 0x90], 0x1c
mov esi, 0x1c
jmp 0x100cffb4
mov dword [ebp - 0x90], 0x20
mov esi, 0x20
jmp 0x100cffb4
mov dword [ebp - 0x90], 0x30
mov esi, 0x30
jmp 0x100cffb4
mov dword [ebp - 0x90], 0x40
mov esi, 0x40
jmp 0x100cffb4
mov esi, dword [ebp - 0x98]
jmp 0x100d08ca
push 1
push dword [ebp - 0xb8]
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
jmp 0x100d01f9
mov esi, dword [edx*4 + 0x101aab7c]
mov eax, dword [ebp - 0xbc]
mov ecx, eax
test eax, eax
jne 0x100d0587
push 0
push dword [ebp + 0x20]
call fcn.100bed00
add esp, 8
lea edx, [eax - 0x13]
mov ecx, esi
cmp edx, 0xa
ja 0x100d0587
mov ecx, 0x707
bt ecx, edx
mov ecx, esi
jae 0x100d0587
mov ecx, dword [eax*4 + 0x101aab70]
mov eax, esi
shl eax, 8
sub eax, esi
sub eax, esi
cmp ecx, eax
jbe 0x100d05a0
push 0
push 0xffffe005
jmp 0x100d0836
xor edi, edi
mov eax, ecx
xor edx, edx
div esi
imul esi, eax
cmp esi, ecx
adc eax, 0
mov dword [ebp - 0xa0], eax
mov esi, dword [ebp + 0x30]
test esi, esi
je 0x100d05c6
cmp dword [esi + 4], 0
je 0x100d05c6
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 0x100d082f
mov ecx, eax
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax*4 + 0x101aab98]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xa4], ecx
mov dword [ecx], 0x1000000
test edi, edi
je 0x100d0618
mov eax, dword [ebp - 0xa4]
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 - 0xa8]
call fcn.100ce230
add esp, 0x10
mov ecx, eax
test eax, eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xb4], ecx
cmovne eax, ecx
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xa0], 0
je 0x100d0842
xor edi, edi
mov dword [ebp - 0x94], 0
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x74], ecx
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 ecx, dword [ebp - 0x9c]
mov dword [esp + 0xc], ecx
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 0x100d086f
mov esi, eax
cmp dword [ebp - 0xa0], 1
jne 0x100d0710
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0xbc]
push dword [ebp - 0xac]
push dword [ebp + 0x20]
push eax
push dword [ebp - 0x9c]
push esi
jmp 0x100d0742
sub esp, 0x24
xorps xmm0, xmm0
movups xmmword [esp + 0x14], xmm0
mov eax, dword [ebp - 0xac]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x9c]
mov dword [esp + 4], eax
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 0x100d086f
mov eax, edi
inc eax
mov edi, dword [ebp - 0x94]
test edi, edi
je 0x100d080a
mov dword [ebp - 0xc0], eax
cmp eax, dword [ebp - 0xa0]
jne 0x100d07a9
lea eax, [ebx + 4]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], 4
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0xbc]
push dword [ebp - 0xac]
push dword [ebp + 0x20]
lea eax, [ebp - 0x6c]
push eax
push 0x360
push edi
jmp 0x100d07e2
lea eax, [ebx + 4]
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 ecx, 0x360
mov dword [esp + 0xc], ecx
lea eax, [ebp - 0x6c]
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edi
call sym.nss3.dll_PK11_DeriveWithTemplate
add esp, 0x24
mov esi, eax
push ebx
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
push edi
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
mov ebx, esi
test esi, esi
mov eax, dword [ebp - 0xc0]
je 0x100d0865
mov ecx, dword [ebp - 0xa4]
inc byte [ecx + 3]
mov dword [ebp - 0x94], ebx
mov edi, eax
cmp eax, dword [ebp - 0xa0]
mov eax, dword [ebp - 0xb0]
jne 0x100d068d
jmp 0x100d084a
push 0
push 0xffffe013
call sym.nss3.dll_PR_SetError
add esp, 8
xor ebx, ebx
jmp 0x100d08ae
xor ebx, ebx
mov ecx, dword [ebp - 0xa4]
push ecx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
cmp dword [ebp - 0xb4], 0
je 0x100d08ae
push dword [ebp - 0xb4]
jmp 0x100d08a6
mov dword [ebp - 0x94], 0
push dword [ebp - 0xa4]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
cmp dword [ebp - 0xb4], 0
je 0x100d0895
push dword [ebp - 0xb4]
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
xor ebx, ebx
cmp dword [ebp - 0x94], 0
je 0x100d08ae
push dword [ebp - 0x94]
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
mov esi, dword [ebp - 0x98]
push dword [ebp - 0xa8]
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
xor edi, edi
mov eax, ebx
test ebx, ebx
je 0x100d08f3
push 1
push dword [ebp - 0xb8]
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov esi, ebx
test edi, edi
jne 0x100d04ac
jmp 0x100cfff8
push 1
push dword [ebp - 0xb8]
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
push esi
call dword [sym.imp.mozglue.dll_free]
jmp 0x100d0063
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov esi, eax
jmp 0x100d00ca
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov esi, eax
jmp 0x100d026a
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov esi, eax
jmp 0x100d035b
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov esi, eax
jmp 0x100d0404