Function at 0x10082c20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, dword [ebp + 8]
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
call fcn.1009a930
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10082f17
mov ebx, eax
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x10082cca
mov dword [ebp - 0x1c], eax
push 0
push ebx
call fcn.1009b9d0
add esp, 8
mov edi, eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10082c94
test edi, edi
je 0x10082c94
push edi
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x10082cd8
mov dword [esi + 0x154], 0
push edi
call fcn.10092db0
add esp, 4
xor edi, edi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10082cd8
test edi, edi
jne 0x10082cd8
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.10092ca0
add esp, 8
test eax, eax
je 0x10082cd6
mov esi, eax
push edi
push dword [ebp + 0xc]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov edi, esi
jmp 0x10082cd8
push 0
push 0xffffe018
jmp 0x10082ee6
xor edi, edi
mov dword [ebp - 0x24], edi
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x10082f33
mov esi, dword [ebp - 0x18]
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], edi
push ebx
mov esi, dword [ebp - 0x1c]
push dword [esi + 0x14]
call fcn.1009ce50
add esp, 8
mov eax, dword [esi + 0x14]
push dword [eax + 8]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov dword [ebx + 0x1c], 0
lea esi, [ebx + 0x28]
cmp dword [ebx + 0x28], 0
jne 0x10082d67
push dword [ebp + 8]
call fcn.100a5150
add esp, 4
test eax, eax
je 0x10082d67
mov edi, eax
push dword [eax + 4]
push dword [eax + 8]
push esi
push dword [ebx]
call fcn.100938d0
add esp, 0x10
push 1
push edi
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
call sym.nss3.dll_PK11_GetInternalKeySlot
mov dword [ebp - 0x1c], eax
push eax
call fcn.100cbb00
add esp, 4
test eax, eax
je 0x10082ecd
mov edi, eax
lea eax, [ebx + 0x48]
mov dword [ebp - 0x20], eax
lea ecx, [ebx + 0x40]
lea edx, [ebx + 0x38]
mov dword [ebp - 0x18], esi
mov esi, ebx
add esi, 0x30
xor eax, eax
inc eax
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x118]
push dword [ebp - 0x20]
push ecx
push edx
push esi
mov esi, dword [ebp - 0x24]
push esi
push dword [ebp - 0x18]
xor eax, eax
inc eax
push eax
push 0
push edi
call fcn.10095b40
add esp, 0x2c
mov dword [ebp - 0x18], eax
push edi
call fcn.10095540
add esp, 4
push esi
call fcn.10092db0
add esp, 4
mov eax, dword [ebp - 0x1c]
lock dec dword [eax + 0x48]
jne 0x10082de6
push eax
call fcn.100c9d60
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10082ef0
push eax
push ebx
call fcn.1009b500
add esp, 8
lea eax, [ebp - 0x14]
push 1
push eax
push dword [0x101f3070]
call fcn.1009e450
add esp, 0xc
mov edi, dword [0x101f2ff0]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x10082f50
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov eax, dword [ebp + 8]
mov dword [eax + 0x15c], 0
push dword [0x101f2ff0]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov esi, dword [ebp - 0x14]
mov ecx, esi
xor edx, edx
call fcn.1009a0e0
test eax, eax
je 0x10082f0e
mov edi, eax
mov ebx, dword [0x101f2ff0]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x10082f6d
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 [0x101f2ff0]
call sym.nss3.dll_PR_Unlock
add esp, 4
xor esi, esi
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10082f1f
push eax
push edi
call fcn.1009ac30
add esp, 8
test eax, eax
jne 0x10082f17
jmp 0x10082f1f
mov eax, dword [ebp - 0x1c]
lock dec dword [eax + 0x48]
jne 0x10082edf
push eax
call fcn.100c9d60
add esp, 4
push 0
push 0xffffe041
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x10082f1c
call fcn.10093380
xor esi, esi
dec esi
cmp eax, 0x23
jne 0x10082f1f
push 0
push 0xffffe08a
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x10082f1f
push esi
call fcn.100986e0
add esp, 4
call fcn.10082b10
xor esi, esi
dec esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov edi, eax
jmp 0x10082cfd
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov esi, eax
jmp 0x10082e2b
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov esi, eax
jmp 0x10082e85