Function at 0x100f0140
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [0x101d2014]
mov edi, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
call fcn.10106d10
add esp, 4
test eax, eax
mov dword [ebp - 0x14], eax
je 0x100f0439
mov esi, eax
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x100f01e8
mov dword [ebp - 0x18], eax
push 0
push esi
call fcn.10107d40
add esp, 8
mov ebx, eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x100f01b4
test ebx, ebx
je 0x100f01b4
push ebx
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x100f01fe
mov dword [edi + 0x154], 0
push ebx
call fcn.100ff3c0
add esp, 4
mov eax, dword [ebp + 0xc]
xor ebx, ebx
test eax, eax
je 0x100f01fe
test ebx, ebx
jne 0x100f01fe
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov edi, eax
inc edi
push edi
push 0
call fcn.100ff2b0
add esp, 8
test eax, eax
je 0x100f01fc
mov ebx, eax
push edi
push dword [ebp + 0xc]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x100f01fe
push 0
push 0xffffe018
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x100f043e
xor ebx, ebx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], ebx
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 0x1c], eax
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x100f0455
mov ebx, dword [ebp - 0x1c]
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], edi
push esi
mov edi, dword [ebp - 0x18]
push dword [edi + 0x14]
call fcn.101091e0
add esp, 8
mov eax, dword [edi + 0x14]
push dword [eax + 8]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov dword [esi + 0x1c], 0
cmp dword [esi + 0x28], 0
je 0x100f03bb
call sym.nss3.dll_PK11_GetInternalKeySlot
mov edi, esi
mov dword [ebp - 0x1c], eax
lea eax, [esi + 0x40]
lea ebx, [esi + 0x48]
lea edx, [esi + 0x38]
add edi, 0x28
xor ecx, ecx
mov dword [ebp - 0x18], eax
lea eax, [esi + 0x30]
inc ecx
push ecx
mov ecx, dword [ebp + 8]
push dword [ecx + 0x118]
push ebx
push dword [ebp - 0x18]
push edx
push eax
mov ebx, dword [ebp - 0x20]
push ebx
push edi
mov eax, 1
push eax
push 0
mov edi, dword [ebp - 0x1c]
push dword [edi + 0x13c]
call fcn.101020c0
add esp, 0x2c
mov dword [ebp - 0x18], eax
push ebx
call fcn.100ff3c0
add esp, 4
lock dec dword [edi + 0x48]
jne 0x100f02c9
push edi
call fcn.10135de0
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100f0412
push eax
push esi
call fcn.101078a0
add esp, 8
lea eax, [ebp - 0x14]
push 1
push eax
push dword [0x101d5808]
call fcn.1010a6a0
add esp, 0xc
mov edi, dword [0x101d5788]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100f046b
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
mov dword [edi + 8], esi
mov dword [eax + 0x15c], 0
push dword [0x101d5788]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov esi, dword [ebp - 0x14]
xor edx, edx
mov ecx, esi
call fcn.101064f0
test eax, eax
je 0x100f0430
mov ebx, dword [0x101d5788]
mov edi, eax
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100f0481
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], esi
mov dword [edi + 0x150], 0
mov dword [edi + 0x14c], 1
push dword [0x101d5788]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [ebp + 0x10]
xor esi, esi
test eax, eax
je 0x100f0441
push eax
push edi
call fcn.10106ff0
add esp, 8
test eax, eax
jne 0x100f0439
jmp 0x100f0441
push dword [ebp + 8]
call fcn.10111140
add esp, 4
test eax, eax
je 0x100f0261
mov edi, eax
push eax
call sym.nss3.dll_PK11_MakeIDFromPubKey
add esp, 4
mov ebx, eax
push 1
push edi
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
test ebx, ebx
je 0x100f0261
lea eax, [esi + 0x28]
push dword [ebx + 4]
push dword [ebx + 8]
push eax
push dword [esi]
call fcn.100ffe70
add esp, 0x10
push 1
push ebx
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
jmp 0x100f0261
call fcn.100ff930
xor esi, esi
dec esi
cmp eax, 0x23
jne 0x100f0441
push 0
push 0xffffe08a
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x100f0441
push esi
call fcn.10104ae0
add esp, 4
call fcn.100f0030
xor esi, esi
dec esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10192ef0
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov edi, eax
jmp 0x100f0223
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x100f030e
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x100f0368