Function at 0x100cec10
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x14], eax
xor ebx, ebx
lea eax, [ebp - 0x18]
mov dword [eax], ebx
lea ecx, [ebp - 0x1c]
mov dword [ecx], ebx
mov dword [ebp - 0x2c], 1
mov esi, dword [ebp + 0x10]
push ecx
push eax
push esi
push edi
push 0x106
push 0x104
push dword [ebp + 8]
call fcn.100cea80
add esp, 0x1c
test eax, eax
je 0x100cec92
lea ebx, [edi + 0x18]
cmp dword [edi + 0x1c], 0
je 0x100cedd3
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x100cee02
mov ecx, esi
push dword [ebp + 0x18]
push ebx
push dword [ebp + 8]
call fcn.100cef30
add esp, 0xc
mov ebx, eax
jmp 0x100ceebe
mov eax, dword [ebp - 0x18]
test eax, eax
mov dword [ebp - 0x4c], eax
cmovne edi, eax
mov dword [ebp - 0x40], edi
mov eax, dword [ebp - 0x1c]
test eax, eax
mov dword [ebp - 0x48], eax
cmovne esi, eax
mov dword [ebp - 0x3c], esi
mov edx, dword [esi + 8]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x28], esi
mov ecx, dword [ebp + 0xc]
test ecx, ecx
mov dword [ebp - 0x30], edx
jne 0x100cecdd
xor eax, eax
push eax
push eax
push esi
call fcn.100bf820
mov edx, dword [ebp - 0x30]
add esp, 0xc
mov ebx, eax
mov ecx, eax
test eax, eax
je 0x100ceed2
mov eax, dword [ecx + 4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x34], ecx
mov eax, dword [ecx + 8]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x20], eax
mov esi, dword [ebp + 0x18]
mov eax, dword [esi + 8]
mov dword [ebp - 0x14], eax
lea ebx, [ebp - 0x2c]
push ebx
push edx
call fcn.100c3ab0
mov ecx, dword [ebp - 0x30]
add esp, 8
mov dword [ebp - 0x44], eax
cmp dword [ebx], 0
mov esi, dword [ebp - 0x40]
je 0x100ced19
cmp dword [ecx + 0x30], 0
jne 0x100ced42
mov edi, dword [ecx + 0x3c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x100cef05
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], ebx
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx]
mov ecx, dword [eax + 0xf2]
mov eax, dword [ebp + 0x18]
mov ebx, dword [eax + 4]
mov esi, dword [esi + 4]
mov eax, dword [ebp - 0x3c]
mov edi, dword [eax + 4]
call dword [section..00cfg]
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x28]
push eax
push ebx
push esi
push edi
push edx
mov esi, dword [ebp - 0x44]
push esi
call ecx
mov ecx, dword [ebp - 0x30]
add esp, 0x18
mov ebx, eax
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x100ced85
cmp dword [ecx + 0x30], 0
jne 0x100ced96
push dword [ecx + 0x3c]
call sym.nss3.dll_PR_Unlock
mov ecx, dword [ebp - 0x30]
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
push esi
push ecx
call fcn.100c3b70
add esp, 0xc
test ebx, ebx
je 0x100cee37
mov ecx, dword [ebp - 0x40]
lea edi, [ecx + 0x18]
cmp dword [ecx + 0x1c], 0
mov esi, dword [ebp + 0x18]
je 0x100cee6c
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x34]
push esi
push edi
push dword [ebp + 8]
call fcn.100cef30
add esp, 0xc
mov ebx, eax
jmp 0x100cee42
mov eax, dword [edi + 8]
test eax, eax
je 0x100cee9d
push ebx
push 0
push 0x11
push dword [edi + 4]
push eax
call fcn.100c3370
add esp, 0x14
test eax, eax
jne 0x100ceeac
mov eax, dword [edi + 0x20]
mov dword [edi + 0x30], eax
jmp 0x100cec6f
xor eax, eax
push eax
push eax
mov eax, dword [ebp + 8]
mov esi, eax
push eax
call fcn.100bf820
add esp, 0xc
mov edi, eax
mov ecx, dword [ebp + 0x10]
mov edx, eax
push dword [ebp + 0x18]
push ebx
push esi
call fcn.100cef30
add esp, 0xc
mov ebx, eax
test edi, edi
je 0x100ceebe
push 1
push edi
jmp 0x100cee62
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x18]
mov dword [ecx + 8], eax
xor ebx, ebx
push dword [ebp - 0x4c]
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
push dword [ebp - 0x48]
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x100ceebe
push 1
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
jmp 0x100ceebe
mov eax, dword [ecx + 8]
test eax, eax
je 0x100ceeee
push edi
push 0
push 0x11
push dword [ecx + 4]
push eax
mov dword [ebp - 0x30], edi
mov edi, ecx
call fcn.100c3370
add esp, 0x14
mov ebx, eax
test eax, eax
jne 0x100cee42
mov eax, dword [edi + 0x20]
mov dword [edi + 0x30], eax
mov edi, dword [ebp - 0x30]
jmp 0x100cedbc
push 0
push 0xffffe028
call sym.nss3.dll_PR_SetError
add esp, 8
push 0
push 0xffffe040
call sym.nss3.dll_PR_SetError
add esp, 8
xor ebx, ebx
dec ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
mov eax, ebx
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x34], 0
jmp 0x100cecec
push 0
push 0xffffe028
call sym.nss3.dll_PR_SetError
add esp, 8
xor ebx, ebx
dec ebx
jmp 0x100cee42
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov ebx, eax
jmp 0x100ced32