Function at 0x100cf710
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x94
mov edx, dword [ebp + 0x20]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x2c]
mov ecx, dword [0x101db014]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
mov ebx, dword [esi + 8]
xor edi, edi
inc edi
mov ecx, ebx
push eax
push edi
push edi
call fcn.100cd640
add esp, 0xc
xor edi, edi
test eax, eax
je 0x100cf8c8
mov dword [ebp - 0x8c], ebx
mov ecx, dword [ebp + 0x24]
mov edx, ecx
and edx, 0xff000000
mov ebx, ecx
and ebx, 0xffffff
cmp edx, 0x82000000
cmovne ebx, ecx
mov ecx, eax
mov dword [ebp - 0x90], eax
mov dword [eax + 0x34], 1
mov ecx, dword [esi + 4]
cmp ecx, 8
ja case.default.0x100cf799
mov dword [ebp - 0x9c], eax
mov edx, dword [ebp + 0x28]
mov eax, dword [ebp + 0x1c]
mov esi, dword [ebp + 0xc]
jmp dword [ecx*4 + 0x101aabe8]
push 0
push 0xffffe00e
jmp 0x100cf8b2
mov edi, eax
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov byte [ebp - 0x40], dl
mov edx, dword [ecx + 8]
mov dword [ebp - 0x3f], edx
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x3b], ecx
mov dword [ebp - 0x37], 0x101dee90
mov byte [0x101def0f], 1
test eax, eax
je 0x100cf7de
mov eax, dword [eax + 4]
mov dword [ebp - 0x37], eax
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x4c]
lea edx, [ebp - 0x40]
mov dword [edx + 0xd], ecx
mov dword [edx + 0x11], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x70], 0x15
mov eax, dword [ebp - 0x90]
cmp dword [eax + 0x28], 0
mov eax, dword [eax + 8]
je 0x100cf80f
cmp dword [eax + 0x30], 0
jne 0x100cf835
mov ebx, dword [eax + 0x3c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100cfdc0
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], esi
mov eax, dword [ebp - 0x8c]
mov eax, dword [eax]
mov ecx, dword [eax + 0xfa]
mov edi, dword [ebp - 0x9c]
add edi, 4
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0xc]
mov ebx, dword [ebp - 0x90]
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x8c], eax
call dword [section..00cfg]
lea eax, [ebp - 0x78]
push edi
xor edx, edx
push edx
push edx
xor edi, edi
push esi
push eax
push dword [ebp - 0x8c]
call ecx
add esp, 0x18
mov esi, eax
mov eax, dword [ebx + 8]
cmp dword [ebx + 0x28], edi
je 0x100cf88e
cmp dword [eax + 0x30], 0
jne 0x100cf899
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
test esi, esi
mov edi, 0
je 0x100cfd52
push esi
call fcn.100b1140
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
push dword [ebp - 0x90]
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
mov eax, edi
add esp, 0x94
pop esi
pop edi
pop ebx
pop ebp
ret
mov byte [ebp - 0x84], 1
mov dword [ebp - 0x6c], 4
mov dword [ebp - 0x4c], 0x10
mov dword [ebp - 0x7c], 0
cmp dword [esi + 4], 4
jne case.0x100cf799.0
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x3c], ecx
mov edi, 4
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], 0x100
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], ebx
lea eax, [ebp - 0x84]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0x161
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
push edx
push dword [ebp + 0x20]
mov ebx, edx
call fcn.100bed00
add esp, 8
lea ecx, [ebp - 0x4c]
mov dword [ecx], eax
lea eax, [ebp - 0x7c]
mov dword [eax], ebx
mov ecx, dword [ebp - 0x90]
mov dword [ecx + 0x30], ebx
cmp ebx, 1
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x78], eax
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x74], eax
sbb edi, 0
mov dword [ebp - 0x98], edi
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x70], eax
cmp dword [ecx + 0x28], 0
mov eax, dword [ecx + 8]
je 0x100cf99b
cmp dword [eax + 0x30], 0
jne 0x100cf9c1
mov ebx, dword [eax + 0x3c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100cfddd
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], esi
mov eax, dword [ebp - 0x8c]
mov eax, dword [eax]
mov ecx, dword [eax + 0xfa]
mov esi, dword [ebp - 0x9c]
add esi, 4
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0xc]
mov ebx, dword [ebp - 0x90]
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x8c], eax
call dword [section..00cfg]
lea eax, [ebp - 0x40]
lea edx, [ebp - 0x78]
push esi
push dword [ebp - 0x98]
push eax
push edi
push edx
push dword [ebp - 0x8c]
call ecx
add esp, 0x18
mov esi, eax
cmp dword [ebx + 0x28], 0
mov eax, dword [ebx + 8]
jne 0x100cf888
jmp 0x100cf88e
mov byte [ebp - 0x7d], 1
mov dword [ebp - 0x7c], 4
mov dword [ebp - 0x84], 0x10
mov dword [ebp - 0x88], 0
cmp dword [esi + 4], 6
jne case.0x100cf799.0
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x3c], ecx
mov ecx, 4
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], 0x100
lea eax, [ebp - 0x84]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ebx
lea eax, [ebp - 0x7d]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0x161
lea edi, [ebp - 0x88]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x98], 4
mov dword [ebp - 0x14], ecx
push edx
push dword [ebp + 0x20]
mov ebx, edx
call fcn.100bed00
add esp, 8
lea edx, [ebp - 0x84]
mov dword [edx], eax
mov dword [edi], ebx
test ebx, ebx
je 0x100cfac0
mov ecx, ebx
jmp 0x100cfafa
lea ecx, [eax - 0x13]
cmp ecx, 0xa
ja 0x100cfad2
mov edx, 0x707
bt edx, ecx
jb 0x100cfae3
mov dword [ebp - 0x88], 0x14
mov ecx, 0x14
jmp 0x100cfafa
mov ecx, dword [eax*4 + 0x101aab70]
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x98], 3
mov edi, dword [ebp - 0x90]
mov dword [edi + 0x30], ecx
mov ebx, 0x14
push ebx
call sym.nss3.dll_PORT_ZAlloc_Util
add esp, 4
mov dword [eax], 2
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov edx, dword [esi + 0x28]
mov dword [eax + 0xc], edx
mov edx, dword [esi + 0x24]
mov dword [eax + 0x10], edx
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], ebx
mov eax, dword [edi + 8]
cmp dword [edi + 0x28], ecx
mov ecx, dword [ebp - 0x8c]
je 0x100cfb51
cmp dword [eax + 0x30], 0
jne 0x100cfb7d
mov ebx, dword [eax + 0x3c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100cfdfa
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], esi
mov ecx, dword [ebp - 0x8c]
mov eax, dword [ecx]
mov ecx, dword [eax + 0xfa]
mov edi, dword [ebp - 0x9c]
add edi, 4
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0xc]
mov ebx, dword [ebp - 0x90]
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0xa0], eax
call dword [section..00cfg]
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x78]
mov dword [ebp - 0x9c], edi
push edi
push dword [ebp - 0x98]
push edx
push esi
push eax
push dword [ebp - 0xa0]
call ecx
add esp, 0x18
mov esi, eax
cmp dword [ebx + 0x28], 0
mov eax, dword [ebx + 8]
je 0x100cfbdb
cmp dword [eax + 0x30], 0
jne 0x100cfbe6
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
test esi, esi
mov edi, 0
je 0x100cfd43
mov dword [ebp - 0xa0], esi
lea esi, [ebp - 0x6c]
mov dword [esi + 0x1c], 0x3f16bb09
push 8
push 0x800
push str.security
push esi
call sym.nss3.dll_PL_InitArenaPool
add esp, 0x10
mov eax, dword [ebp + 0xc]
add eax, 0x10
lea ebx, [ebp - 0x4c]
push eax
push sym.nss3.dll_SEC_ObjectIDTemplate_Util
push ebx
push esi
call sym.nss3.dll_SEC_QuickDERDecodeItem_Util
add esp, 0x10
test eax, eax
je 0x100cfd5d
push esi
call sym.nss3.dll_PORT_DestroyCheapArena
add esp, 4
mov ebx, dword [ebp - 0x8c]
mov ecx, dword [ebp + 0xc]
add ecx, 0x20
xor eax, eax
push sym.nss3.dll_SEC_OctetStringTemplate_Util
push ecx
push eax
push eax
call sym.nss3.dll_SEC_ASN1EncodeItem_Util
add esp, 0x10
test eax, eax
je 0x100cfdac
mov esi, eax
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 0x94]
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 4]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x90]
cmp dword [eax + 0x28], 0
mov eax, dword [eax + 8]
je 0x100cfc91
cmp dword [eax + 0x30], 0
jne 0x100cfcbd
mov ebx, dword [eax + 0x3c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x100cfe17
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], edi
mov ebx, dword [ebp - 0x8c]
mov eax, dword [ebx]
mov ecx, dword [eax + 0xfa]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0xc]
mov ebx, dword [ebp - 0x90]
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x8c], eax
call dword [section..00cfg]
push dword [ebp - 0x9c]
push dword [ebp - 0x98]
lea eax, [ebp - 0x40]
push eax
push edi
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x8c]
call ecx
add esp, 0x18
mov edi, eax
cmp dword [ebx + 0x28], 0
mov eax, dword [ebx + 8]
je 0x100cfd11
cmp dword [eax + 0x30], 0
jne 0x100cfd1c
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
push 1
push esi
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
push dword [ebp - 0x94]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, edi
test edi, edi
mov edi, 0
jne 0x100cfda6
jmp 0x100cfd52
push dword [ebp - 0x94]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov edi, dword [ebp - 0x90]
jmp 0x100cf8c8
push ebx
call sym.nss3.dll_SECOID_FindOID_Util
add esp, 4
test eax, eax
je 0x100cfc39
mov edi, dword [eax + 0xc]
push esi
call sym.nss3.dll_PORT_DestroyCheapArena
add esp, 4
cmp edi, 0x163
mov edi, 0
mov ebx, dword [ebp - 0x8c]
jne 0x100cfc48
push dword [ebp - 0x94]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp - 0xa0]
push eax
jmp 0x100cf8a7
push dword [ebp - 0x94]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp case.default.0x100cf799
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov esi, eax
jmp 0x100cf828
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov esi, eax
jmp 0x100cf9b4
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov esi, eax
jmp 0x100cfb6a
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov edi, eax
jmp 0x100cfcaa