Function at 0x100bd260
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [0x101ef014]
xor edx, ebp
mov dword [ebp - 0x10], edx
mov ebx, dword [esi + 8]
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], ecx
test eax, eax
je 0x100bd29b
mov ecx, dword [eax + 4]
mov dword [ebp - 0x28], ecx
mov eax, dword [eax + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x18]
test al, 1
jne 0x100bd32a
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x11]
mov byte [eax], 0
mov dword [ebp - 0x20], 2
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 1
mov edi, dword [ebx + 0x3c]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100bd6a2
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov eax, dword [ebx]
mov esi, dword [ebx + 0x38]
mov ecx, dword [eax + 0x62]
call dword [section..00cfg]
lea eax, [ebp - 0x20]
push 1
push eax
push dword [ebp - 0x38]
push esi
call ecx
add esp, 0x10
mov esi, eax
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
test esi, esi
je 0x100bd330
push esi
call fcn.100a9930
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
jmp 0x100bd342
test al, 2
jne 0x100bd336
jmp 0x100bd345
cmp byte [ebp - 0x11], 0
je 0x100bd345
mov eax, dword [ebp + 8]
push dword [eax + 0x14]
push ebx
call fcn.100a30d0
add esp, 8
cmp dword [ebx + 0x30], 0
jne 0x100bd371
mov edi, dword [ebx + 0x3c]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100bd6bf
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov eax, dword [ebx]
mov esi, dword [ebx + 0x40]
mov ecx, dword [eax + 0x32]
call dword [section..00cfg]
lea eax, [ebp - 0x20]
push eax
push sym.nss3.dll_SECMOD_CanDeleteInternalModule
push ebx
push 4
push esi
call ecx
add esp, 0x14
mov esi, eax
test eax, eax
je 0x100bd39d
mov eax, dword [ebx + 0x38]
mov dword [ebp - 0x20], eax
cmp dword [ebx + 0x30], 0
jne 0x100bd3ae
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], esi
test esi, esi
je 0x100bd3f5
mov esi, dword [ebx + 0x3c]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x100bd685
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], edi
mov al, 1
mov dword [ebp - 0x34], eax
xor eax, eax
inc eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x3c], 0
jmp 0x100bd40e
cmp dword [ebx + 0x30], 0
je 0x100bd3bb
mov dword [ebp - 0x44], 0
mov al, 1
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], 0
mov eax, dword [ebx]
mov ecx, dword [eax + 0xaa]
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0xc]
call dword [section..00cfg]
lea eax, [ebp - 0x2c]
push esi
push eax
push dword [ebp - 0x38]
call ecx
add esp, 0xc
test eax, eax
je 0x100bd4b7
mov esi, eax
cmp byte [ebp - 0x34], 0
je 0x100bd44a
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp dword [ebp - 0x30], 0
jne 0x100bd641
cmp dword [ebx + 0x30], 0
jne 0x100bd48a
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x34], eax
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x100bd6f9
mov edi, dword [ebp - 0x34]
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x30]
mov dword [edi + 8], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x36]
call dword [section..00cfg]
push dword [ebp - 0x38]
call ecx
add esp, 4
cmp dword [ebx + 0x30], 0
jne 0x100bd641
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x100bd641
mov edx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x14]
mov eax, dword [edi + 0x18]
test al, 1
jne 0x100bd572
mov ecx, dword [edi + 8]
mov edi, dword [edi + 0xc]
lea eax, [ebp - 0x11]
mov byte [eax], 0
mov dword [ebp - 0x20], 0x202
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 1
cmp byte [ebp - 0x3c], 0
mov dword [ebp - 0x40], ecx
je 0x100bd51d
mov dword [ebp - 0x48], edi
mov esi, dword [ecx + 0x3c]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x100bd6dc
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], edi
mov ecx, dword [ebp - 0x40]
mov edi, dword [ebp - 0x48]
mov eax, dword [ecx]
mov esi, dword [ecx + 0x38]
mov ecx, dword [eax + 0x62]
call dword [section..00cfg]
push 1
lea eax, [ebp - 0x20]
push eax
push edi
push esi
call ecx
add esp, 0x10
mov edi, eax
cmp byte [ebp - 0x3c], 0
je 0x100bd54e
mov eax, dword [ebp - 0x40]
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
test edi, edi
mov esi, dword [ebp + 0x14]
je 0x100bd670
push edi
call fcn.100a9930
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
mov edx, dword [ebp + 0x18]
jmp 0x100bd590
test al, 4
je 0x100bd590
push 1
push dword [ebp - 0x44]
push dword [edi + 0x14]
push 0
push dword [ebp - 0x38]
push ebx
mov edi, edx
call fcn.100a33d0
mov edx, edi
add esp, 0x18
mov eax, dword [esi + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0xae]
mov esi, dword [esi + 4]
mov eax, dword [edx + 4]
mov dword [ebp - 0x3c], eax
mov edi, dword [edx + 8]
call dword [section..00cfg]
lea eax, [ebp - 0x20]
push eax
push esi
push edi
push dword [ebp - 0x3c]
push dword [ebp - 0x38]
call ecx
add esp, 0x14
mov esi, eax
cmp byte [ebp - 0x34], 0
je 0x100bd5d4
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp dword [ebp - 0x30], 0
jne 0x100bd634
cmp dword [ebx + 0x30], 0
jne 0x100bd610
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x34], eax
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x100bd717
mov edi, dword [ebp - 0x34]
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x30]
mov dword [edi + 8], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x36]
call dword [section..00cfg]
push dword [ebp - 0x38]
call ecx
add esp, 4
cmp dword [ebx + 0x30], 0
jne 0x100bd634
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 8], eax
test esi, esi
je 0x100bd66c
push esi
call fcn.100a9930
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
dec esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
mov eax, esi
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
jmp 0x100bd658
cmp byte [ebp - 0x11], 0
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
jne 0x100bd576
jmp 0x100bd590
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov edi, eax
jmp 0x100bd3d4
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov esi, eax
jmp 0x100bd2dc
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov esi, eax
jmp 0x100bd364
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov edi, eax
jmp 0x100bd50a
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov dword [ebp - 0x30], eax
jmp 0x100bd477
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov dword [ebp - 0x30], eax
jmp 0x100bd5fd