Function at 0x100c52a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov ecx, dword [ebp + 8]
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ebx, dword [ecx + 8]
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100c52e0
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], ecx
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
cmp dword [ebx + 0x30], 0
jne 0x100c530c
mov edi, dword [ebx + 0x3c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100c552d
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 - 0x14]
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 0x100c5338
mov eax, dword [ebx + 0x38]
mov dword [ebp - 0x14], eax
cmp dword [ebx + 0x30], 0
jne 0x100c5349
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], esi
test esi, esi
je 0x100c5383
mov esi, dword [ebx + 0x3c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x100c5510
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], edi
mov al, 1
mov dword [ebp - 0x2c], eax
jmp 0x100c5390
cmp dword [ebx + 0x30], 0
je 0x100c5356
mov dword [ebp - 0x2c], 0
mov eax, dword [ebx]
mov ecx, dword [eax + 0x86]
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
call dword [section..00cfg]
lea eax, [ebp - 0x20]
push esi
push eax
mov esi, dword [ebp - 0x30]
push esi
call ecx
add esp, 0xc
test eax, eax
je 0x100c543b
mov edi, eax
cmp byte [ebp - 0x2c], 0
je 0x100c53cd
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp dword [ebp - 0x28], 0
jne 0x100c54d9
cmp dword [ebx + 0x30], 0
jne 0x100c5410
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x2c], eax
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x100c554a
mov esi, dword [ebp - 0x2c]
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x28]
mov dword [esi + 8], eax
mov esi, dword [ebp - 0x30]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x36]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
cmp dword [ebx + 0x30], 0
jne 0x100c54d9
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x100c54d9
mov edi, dword [ebp + 0x20]
mov esi, dword [ebp + 0x14]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x8a]
call dword [section..00cfg]
lea eax, [ebp - 0x24]
push eax
push esi
mov esi, dword [ebp - 0x30]
push dword [ebp + 0x24]
push edi
push esi
call ecx
add esp, 0x14
mov edi, eax
cmp byte [ebp - 0x2c], 0
je 0x100c5474
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp dword [ebp - 0x28], 0
jne 0x100c54d5
cmp dword [ebx + 0x30], 0
jne 0x100c54b3
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x2c], eax
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x100c5568
mov esi, dword [ebp - 0x2c]
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x28]
mov dword [esi + 8], eax
mov esi, dword [ebp - 0x30]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x36]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
cmp dword [ebx + 0x30], 0
jne 0x100c54d5
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
test edi, edi
je 0x100c5504
push edi
call fcn.100b1140
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.1014dc80
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
xor esi, esi
jmp 0x100c54f0
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov edi, eax
jmp 0x100c536f
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov esi, eax
jmp 0x100c52ff
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov dword [ebp - 0x28], eax
jmp 0x100c53fa
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov dword [ebp - 0x28], eax
jmp 0x100c549d