Function at 0x100c30b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [0x101f1014]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
cmp dword [0x101f53dc], esi
jne 0x100c30f8
push str.moduleListLock
push 0xa
call fcn.100d44a0
add esp, 8
mov dword [0x101f53dc], eax
call fcn.100cbac0
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x1c]
lea edi, [ebp - 0x18]
lea ebx, [ebp - 0x14]
push eax
push ecx
push edx
push edi
push ebx
push dword [ebp + 8]
call fcn.100e0ed0
add esp, 0x18
test eax, eax
jne 0x100c3266
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call fcn.100c1390
add esp, 0x14
mov dword [ebp - 0x30], eax
mov edi, 0x101cc248
push dword [ebp - 0x20]
push str.printPolicyFeedback
push edi
call sym.nss3.dll_NSSUTIL_ArgHasFlag
add esp, 0xc
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x20]
push ebx
push str.policyCheckIdentifier
push edi
call sym.nss3.dll_NSSUTIL_ArgHasFlag
add esp, 0xc
mov dword [ebp - 0x40], eax
push ebx
push str.policyCheckValue
push edi
call sym.nss3.dll_NSSUTIL_ArgHasFlag
add esp, 0xc
mov edi, eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100c3189
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100c319a
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
mov ebx, dword [ebp - 0x30]
je 0x100c31ae
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x100c31bf
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x100c31d0
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
test ebx, ebx
je 0x100c3266
test byte [ebx + 0x58], 8
jne 0x100c3264
mov dword [ebp - 0x3c], edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x100c3236
mov ebx, dword [edi + 0x20]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100c34b1
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], esi
inc dword [edi + 0x24]
push dword [edi + 0x20]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov ebx, dword [ebp - 0x30]
mov dword [ebx + 0x50], edi
cmp dword [ebx + 4], 0
je 0x100c3236
mov eax, dword [edi + 4]
test al, 2
je 0x100c3236
mov dword [ebx + 4], eax
lea eax, [ebp - 0x28]
push eax
push ebx
call fcn.100b7820
add esp, 8
test eax, eax
je 0x100c327a
cmp dword [ebx + 8], 0
je 0x100c3256
push ebx
call fcn.100b82c0
add esp, 4
push ebx
push 0x101f53f0
call fcn.100d0370
add esp, 8
mov esi, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10157a00
mov eax, esi
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [ebp - 0x28], 0
je 0x100c328e
push ebx
call sym.nss3.dll_SECMOD_DestroyModule
add esp, 4
mov esi, dword [ebp - 0x28]
jmp 0x100c3266
cmp dword [ebp + 0x10], 0
je 0x100c3495
cmp dword [ebx + 0x58], 0
je 0x100c3495
xor esi, esi
push esi
push esi
call sym.nss3.dll_PR_SetError
add esp, 8
mov ecx, dword [ebx + 0x4c]
test ecx, ecx
je 0x100c33d9
mov edi, dword [ebx + 0x48]
call dword [section..00cfg]
push esi
push edi
push esi
call ecx
add esp, 0xc
test eax, eax
je 0x100c33d9
mov edi, eax
cmp dword [eax], 0
je 0x100c3418
mov eax, dword [ebx + 0x58]
shr eax, 1
and eax, 1
mov esi, dword [edi + eax*4]
test esi, esi
je 0x100c3418
mov cl, 1
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x34], edi
lea eax, [edi + eax*4]
add eax, 4
mov dword [ebp - 0x30], eax
push dword [ebp + 8]
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x100c341f
cmp dword [ebp - 0x44], 0
je 0x100c3379
push str.printPolicyFeedback
push esi
call sym.nss3.dll_NSSUTIL_AddNSSFlagToModuleSpec
add esp, 8
mov esi, eax
cmp dword [ebp - 0x40], 0
je 0x100c3353
push str.policyCheckIdentifier
push esi
call sym.nss3.dll_NSSUTIL_AddNSSFlagToModuleSpec
add esp, 8
mov dword [ebp - 0x38], eax
test esi, esi
je 0x100c3350
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov esi, dword [ebp - 0x38]
cmp dword [ebp - 0x3c], 0
je 0x100c3389
push str.policyCheckValue
push esi
call sym.nss3.dll_NSSUTIL_AddNSSFlagToModuleSpec
add esp, 8
mov edi, eax
test esi, esi
je 0x100c338b
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x100c338b
push 1
push ebx
push esi
call sym.nss3.dll_SECMOD_LoadModule
add esp, 0xc
mov esi, eax
jmp 0x100c33a7
mov edi, esi
push 1
push ebx
push edi
call sym.nss3.dll_SECMOD_LoadModule
add esp, 0xc
mov esi, eax
test edi, edi
je 0x100c33a7
push edi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
test esi, esi
je 0x100c346f
cmp dword [esi + 0x54], 0
je 0x100c33bb
cmp dword [esi + 8], 0
je 0x100c3426
push esi
call sym.nss3.dll_SECMOD_DestroyModule
add esp, 4
mov eax, dword [ebp - 0x30]
mov esi, dword [eax]
add eax, 4
test esi, esi
jne 0x100c32fe
jmp 0x100c346f
cmp dword [0x101f4f80], 0
je 0x100c3504
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100c34ce
cmp dword [eax + 0x28], 0
jne 0x100c3247
push 0
push 0xffffe040
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x100c3247
mov al, 1
mov dword [ebp - 0x2c], eax
jmp 0x100c3472
mov edi, 0xffffe040
jmp 0x100c345d
cmp dword [0x101f4f80], 0
je 0x100c350e
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100c34e9
mov eax, dword [eax + 0x28]
test eax, eax
mov edi, 0xffffe040
cmovne edi, eax
push esi
call sym.nss3.dll_SECMOD_DestroyModule
add esp, 4
push 0
push edi
call sym.nss3.dll_PR_SetError
add esp, 8
mov dword [ebp - 0x2c], 0
mov edi, dword [ebp - 0x34]
mov ecx, dword [ebx + 0x4c]
test ecx, ecx
je 0x100c348b
mov esi, dword [ebx + 0x48]
call dword [section..00cfg]
push edi
push esi
push 3
call ecx
add esp, 0xc
cmp byte [ebp - 0x2c], 0
je 0x100c3247
cmp dword [ebx + 0x5c], 0
je 0x100c34a3
push ebx
call fcn.100d0540
jmp 0x100c34a9
push ebx
call fcn.100d04b0
add esp, 4
jmp 0x100c3264
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov esi, eax
jmp 0x100c3205
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
jmp 0x100c33fa
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
jmp 0x100c3447
call fcn.1001b2e0
jmp 0x100c33e6
call fcn.1001b2e0
jmp 0x100c3433