Function at 0x100be820
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 [0x101f1014]
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 0x100be85b
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 0x100be8ea
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 [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100bec55
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 0x100be8f0
push esi
call fcn.100aaef0
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
jmp 0x100be902
test al, 2
jne 0x100be8f6
jmp 0x100be905
cmp byte [ebp - 0x11], 0
je 0x100be905
mov eax, dword [ebp + 8]
push dword [eax + 0x14]
push ebx
call fcn.100a4690
add esp, 8
cmp dword [ebx + 0x30], 0
jne 0x100be931
mov edi, dword [ebx + 0x3c]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100bec72
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 0x100be95d
mov eax, dword [ebx + 0x38]
mov dword [ebp - 0x20], eax
cmp dword [ebx + 0x30], 0
jne 0x100be96e
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 0x100be9b5
mov esi, dword [ebx + 0x3c]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x100bec38
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 0x100be9ce
cmp dword [ebx + 0x30], 0
je 0x100be97b
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 0x100bea77
mov esi, eax
cmp byte [ebp - 0x34], 0
je 0x100bea0a
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp dword [ebp - 0x30], 0
jne 0x100bebf7
cmp dword [ebx + 0x30], 0
jne 0x100bea4a
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x34], eax
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x100becac
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 0x100bebf7
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x100bebf7
mov eax, dword [edi + 0x18]
test al, 1
jne 0x100beb26
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 0x100bead7
mov dword [ebp - 0x48], edi
mov esi, dword [ecx + 0x3c]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x100bec8f
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 0x100beb08
mov eax, dword [ebp - 0x40]
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
test edi, edi
je 0x100bec26
push edi
call fcn.100aaef0
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x100beb40
test al, 4
je 0x100beb40
push 1
push dword [ebp - 0x44]
push dword [edi + 0x14]
push 0
push dword [ebp - 0x38]
push ebx
call fcn.100a4990
add esp, 0x18
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0xae]
mov esi, dword [edx + 4]
mov eax, dword [ebp + 0x18]
mov edx, dword [eax + 4]
mov dword [ebp - 0x3c], edx
mov edi, dword [eax + 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 0x100beb8a
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp dword [ebp - 0x30], 0
jne 0x100bebea
cmp dword [ebx + 0x30], 0
jne 0x100bebc6
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x34], eax
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x100becca
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 0x100bebea
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 0x100bec22
push esi
call fcn.100aaef0
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.10157a00
mov eax, esi
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
jmp 0x100bec0e
cmp byte [ebp - 0x11], 0
mov edi, dword [ebp + 8]
jne 0x100beb2a
jmp 0x100beb40
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov edi, eax
jmp 0x100be994
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov esi, eax
jmp 0x100be89c
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov esi, eax
jmp 0x100be924
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov edi, eax
jmp 0x100beac4
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov dword [ebp - 0x30], eax
jmp 0x100bea37
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov dword [ebp - 0x30], eax
jmp 0x100bebb3