Function at 0x100c1b00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [0x101ef014]
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 [0x101f33ac], esi
jne 0x100c1b48
push str.moduleListLock
push 0xa
call fcn.100d2ee0
add esp, 8
mov dword [0x101f33ac], eax
call fcn.100ca500
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.100df910
add esp, 0x18
test eax, eax
jne 0x100c1cb6
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call fcn.100bfde0
add esp, 0x14
mov dword [ebp - 0x30], eax
mov edi, 0x101c9f9d
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 0x100c1bd9
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100c1bea
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 0x100c1bfe
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x100c1c0f
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x100c1c20
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
test ebx, ebx
je 0x100c1cb6
test byte [ebx + 0x58], 8
jne 0x100c1cb4
mov dword [ebp - 0x3c], edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x100c1c86
mov ebx, dword [edi + 0x20]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100c1f01
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 0x100c1c86
mov eax, dword [edi + 4]
test al, 2
je 0x100c1c86
mov dword [ebx + 4], eax
lea eax, [ebp - 0x28]
push eax
push ebx
call fcn.100b6260
add esp, 8
test eax, eax
je 0x100c1cca
cmp dword [ebx + 8], 0
je 0x100c1ca6
push ebx
call fcn.100b6d00
add esp, 4
push ebx
push 0x101f33c0
call fcn.100cedb0
add esp, 8
mov esi, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
mov eax, esi
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [ebp - 0x28], 0
je 0x100c1cde
push ebx
call sym.nss3.dll_SECMOD_DestroyModule
add esp, 4
mov esi, dword [ebp - 0x28]
jmp 0x100c1cb6
cmp dword [ebp + 0x10], 0
je 0x100c1ee5
cmp dword [ebx + 0x58], 0
je 0x100c1ee5
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 0x100c1e29
mov edi, dword [ebx + 0x48]
call dword [section..00cfg]
push esi
push edi
push esi
call ecx
add esp, 0xc
test eax, eax
je 0x100c1e29
mov edi, eax
cmp dword [eax], 0
je 0x100c1e68
mov eax, dword [ebx + 0x58]
shr eax, 1
and eax, 1
mov esi, dword [edi + eax*4]
test esi, esi
je 0x100c1e68
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 0x100c1e6f
cmp dword [ebp - 0x44], 0
je 0x100c1dc9
push str.printPolicyFeedback
push esi
call sym.nss3.dll_NSSUTIL_AddNSSFlagToModuleSpec
add esp, 8
mov esi, eax
cmp dword [ebp - 0x40], 0
je 0x100c1da3
push str.policyCheckIdentifier
push esi
call sym.nss3.dll_NSSUTIL_AddNSSFlagToModuleSpec
add esp, 8
mov dword [ebp - 0x38], eax
test esi, esi
je 0x100c1da0
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov esi, dword [ebp - 0x38]
cmp dword [ebp - 0x3c], 0
je 0x100c1dd9
push str.policyCheckValue
push esi
call sym.nss3.dll_NSSUTIL_AddNSSFlagToModuleSpec
add esp, 8
mov edi, eax
test esi, esi
je 0x100c1ddb
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x100c1ddb
push 1
push ebx
push esi
call sym.nss3.dll_SECMOD_LoadModule
add esp, 0xc
mov esi, eax
jmp 0x100c1df7
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 0x100c1df7
push edi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
test esi, esi
je 0x100c1ebf
cmp dword [esi + 0x54], 0
je 0x100c1e0b
cmp dword [esi + 8], 0
je 0x100c1e76
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 0x100c1d4e
jmp 0x100c1ebf
cmp dword [0x101f2f50], 0
je 0x100c1f54
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100c1f1e
cmp dword [eax + 0x28], 0
jne 0x100c1c97
push 0
push 0xffffe040
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x100c1c97
mov al, 1
mov dword [ebp - 0x2c], eax
jmp 0x100c1ec2
mov edi, 0xffffe040
jmp 0x100c1ead
cmp dword [0x101f2f50], 0
je 0x100c1f5e
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100c1f39
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 0x100c1edb
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 0x100c1c97
cmp dword [ebx + 0x5c], 0
je 0x100c1ef3
push ebx
call fcn.100cef80
jmp 0x100c1ef9
push ebx
call fcn.100ceef0
add esp, 4
jmp 0x100c1cb4
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov esi, eax
jmp 0x100c1c55
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
jmp 0x100c1e4a
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
jmp 0x100c1e97
call fcn.100029d0
jmp 0x100c1e36
call fcn.100029d0
jmp 0x100c1e83