Function at 0x1012d5e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [0x101d2014]
xor ebx, ebx
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
cmp dword [0x101d5b48], ebx
jne 0x1012d628
push str.moduleListLock
push 0xa
call fcn.1013de80
add esp, 8
mov dword [0x101d5b48], eax
call fcn.10136550
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x1c]
lea esi, [ebp - 0x18]
lea edi, [ebp - 0x14]
push eax
push ecx
push edx
push esi
push edi
push dword [ebp + 8]
call fcn.1014a5b0
add esp, 0x18
test eax, eax
jne 0x1012d772
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call fcn.1012b6b0
add esp, 0x14
mov esi, eax
push dword [ebp - 0x20]
push str.printPolicyFeedback
push 0x101ae0c0
call sym.nss3.dll_NSSUTIL_ArgHasFlag
add esp, 0xc
mov edi, eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1012d690
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1012d6a1
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1012d6b2
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x1012d6c3
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1012d6d4
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
test esi, esi
je 0x1012d772
test byte [esi + 0x58], 8
jne 0x1012d770
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], edi
test eax, eax
je 0x1012d742
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x30], eax
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x1012d925
mov edi, dword [ebp - 0x30]
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], ebx
mov edi, dword [ebp + 0xc]
inc dword [edi + 0x24]
push dword [edi + 0x20]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov dword [esi + 0x50], edi
cmp dword [esi + 4], 0
je 0x1012d742
mov eax, edi
mov eax, dword [edi + 4]
test al, 2
je 0x1012d742
mov dword [esi + 4], eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.10122030
add esp, 8
test eax, eax
je 0x1012d786
cmp dword [esi + 8], 0
je 0x1012d762
push esi
call fcn.10122a50
add esp, 4
push esi
push 0x101d5b5c
call fcn.1013a5c0
add esp, 8
mov ebx, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10192ef0
mov eax, ebx
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [ebp - 0x28], 0
je 0x1012d79a
push esi
call sym.nss3.dll_SECMOD_DestroyModule
add esp, 4
mov ebx, dword [ebp - 0x28]
jmp 0x1012d772
cmp dword [ebp + 0x10], 0
je 0x1012d909
cmp dword [esi + 0x58], 0
je 0x1012d909
xor edi, edi
push edi
push edi
call sym.nss3.dll_PR_SetError
add esp, 8
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x1012d88b
mov ebx, dword [esi + 0x48]
call dword [section..00cfg]
push edi
push ebx
push edi
call ecx
add esp, 0xc
test eax, eax
je 0x1012d88b
cmp dword [eax], 0
mov cl, 1
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], ecx
je 0x1012d8e4
mov ecx, dword [esi + 0x58]
lea ebx, [eax + 4]
and ecx, 2
mov edi, dword [eax + ecx*2]
test ecx, ecx
cmove ebx, eax
test edi, edi
je 0x1012d8e4
add ebx, 4
push dword [ebp + 8]
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x1012d8ae
cmp dword [ebp - 0x38], 0
mov dword [ebp - 0x30], ebx
je 0x1012d856
push str.printPolicyFeedback
push edi
call sym.nss3.dll_NSSUTIL_AddNSSFlagToModuleSpec
add esp, 8
mov edi, eax
push 1
push esi
push eax
call sym.nss3.dll_SECMOD_LoadModule
add esp, 0xc
mov ebx, eax
test edi, edi
je 0x1012d864
push edi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x1012d864
push 1
push esi
push edi
call sym.nss3.dll_SECMOD_LoadModule
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x1012d8e4
cmp dword [ebx + 0x54], 0
je 0x1012d874
cmp dword [ebx + 8], 0
je 0x1012d8b7
push ebx
call sym.nss3.dll_SECMOD_DestroyModule
add esp, 4
mov ebx, dword [ebp - 0x30]
mov edi, dword [ebx]
add ebx, 4
test edi, edi
jne 0x1012d80b
jmp 0x1012d8e4
call sym.nss3.dll_PR_GetCurrentThread
cmp dword [eax + 0x28], 0
jne 0x1012d753
push 0
push 0xffffe040
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x1012d753
push 0
push 0xffffe040
jmp 0x1012d8d5
call sym.nss3.dll_PR_GetCurrentThread
mov eax, dword [eax + 0x28]
mov edi, 0xffffe040
test eax, eax
cmovne edi, eax
push ebx
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 ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x1012d8ff
mov edi, dword [esi + 0x48]
call dword [section..00cfg]
push dword [ebp - 0x34]
push edi
push 3
call ecx
add esp, 0xc
cmp byte [ebp - 0x2c], 0
je 0x1012d753
cmp dword [esi + 0x5c], 0
je 0x1012d917
push esi
call fcn.1013a770
jmp 0x1012d91d
push esi
call fcn.1013a6f0
add esp, 4
jmp 0x1012d770
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov ebx, eax
jmp 0x1012d70c