Function at 0x100d09e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x138
mov dword [ebp - 0x130], ecx
mov esi, dword [ebp + 0x28]
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x101], 1
mov dword [ebp - 0x108], 4
mov dword [ebp - 0x10c], 0x10
mov dword [ebp - 0x110], 0
cmp esi, 0x11
jb 0x100d0a51
push 0
push 0xffffe005
call sym.nss3.dll_PR_SetError
add esp, 8
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
mov eax, ebx
add esp, 0x138
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x13c], edx
mov eax, dword [ebp + 0x18]
lea ebx, [ebp - 0x100]
mov ecx, eax
and ecx, 0xff000000
mov edi, eax
and edi, 0xffffff
cmp ecx, 0x82000000
cmovne edi, eax
test esi, esi
je 0x100d0aa1
mov eax, dword [ebp + 0x24]
lea edx, [ebp - 0x100]
mov ecx, esi
mov ebx, dword [eax + 8]
mov dword [edx + 8], ebx
lea ebx, [edx + 0xc]
movsd xmm0, qword [eax]
add eax, 0xc
movsd qword [edx], xmm0
mov edx, ebx
dec ecx
jne 0x100d0a88
push 0
push esi
lea eax, [ebp - 0x100]
push eax
call fcn.100c42e0
add esp, 0xc
test eax, eax
jne 0x100d0ad0
mov dword [ebx], 0
lea eax, [ebp - 0x108]
mov dword [ebx + 4], eax
mov dword [ebx + 8], 4
add ebx, 0xc
lea eax, [ebp - 0x100]
push 0x100
push esi
push eax
call fcn.100c42e0
add esp, 0xc
test eax, eax
jne 0x100d0b12
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
call fcn.100bed00
add esp, 8
lea ecx, [ebp - 0x10c]
mov dword [ecx], eax
mov dword [ebx], 0x100
mov dword [ebx + 4], ecx
mov dword [ebx + 8], 4
add ebx, 0xc
test edi, edi
lea eax, [ebp - 0x100]
je 0x100d0b46
push edi
push esi
push eax
call fcn.100c42e0
add esp, 0xc
test eax, eax
jne 0x100d0b40
mov dword [ebx], edi
lea eax, [ebp - 0x101]
mov dword [ebx + 4], eax
mov dword [ebx + 8], 1
add ebx, 0xc
lea eax, [ebp - 0x100]
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0x1c]
test edi, edi
jle 0x100d0b8f
push 0x161
push esi
push eax
call fcn.100c42e0
add esp, 0xc
test eax, eax
jne 0x100d0b7e
lea eax, [ebp - 0x110]
mov dword [eax], edi
mov dword [ebx], 0x161
mov dword [ebx + 4], eax
mov dword [ebx + 8], 4
add ebx, 0xc
mov esi, dword [ebp - 0x130]
lea eax, [ebp - 0x100]
mov ecx, dword [ebp + 8]
jmp 0x100d0b95
mov esi, dword [ebp - 0x130]
mov edi, dword [ebp + 0xc]
sub ebx, eax
cmp ecx, 1
jne 0x100d0bb9
cmp dword [esi + 0x124], 0
je 0x100d0bb9
mov eax, dword [esi + 0x128]
mov dword [ebp - 0x124], eax
jmp 0x100d0c74
cmp dword [esi + 0x30], 0
jne 0x100d0c01
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x138], eax
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x134], eax
test eax, eax
je 0x100d0f53
mov esi, dword [ebp - 0x138]
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x134]
mov dword [esi + 8], eax
mov esi, dword [ebp - 0x130]
mov eax, dword [esi]
mov ecx, dword [ebp - 0x130]
mov esi, dword [ecx + 0x40]
mov ecx, dword [eax + 0x22]
call dword [section..00cfg]
lea eax, [ebp - 0x12c]
push eax
push dword [ebp + 8]
push esi
mov esi, dword [ebp - 0x130]
call ecx
add esp, 0xc
mov dword [ebp - 0x120], eax
cmp dword [esi + 0x30], 0
jne 0x100d0c48
push dword [esi + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x100d0c56
mov dword [ebp - 0x124], 0
mov ecx, dword [ebp + 8]
cmp ecx, 1
jne 0x100d0c74
mov eax, dword [ebp - 0x124]
mov dword [esi + 0x128], eax
mov dword [esi + 0x124], 1
sar ebx, 2
mov dword [ebp - 0x11c], ecx
xor eax, eax
test edi, edi
jne 0x100d0c9a
xor eax, eax
push eax
push eax
push ecx
call fcn.100bf820
add esp, 0xc
mov edi, eax
test eax, eax
je 0x100d0e68
mov ecx, dword [edi + 4]
mov dword [ebp - 0x118], ecx
mov ecx, dword [edi + 8]
mov dword [ebp - 0x134], eax
mov edx, dword [ebp + 0x2c]
imul eax, ebx, 0xaaaaaaab
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x114], ecx
test byte [ebp - 0x123], 2
mov edi, dword [ebp + 0x14]
je 0x100d0ce3
push edi
push esi
mov ebx, edx
call sym.nss3.dll_PK11_DoesMechanism
mov edx, ebx
add esp, 8
test eax, eax
je 0x100d0e08
xor eax, eax
test edx, edx
sete al
mov ecx, esi
mov esi, edx
mov edx, edi
push dword [ebp + 0x20]
push 1
push eax
call fcn.100cd640
add esp, 0xc
test eax, eax
je 0x100d0f33
mov ebx, eax
mov edi, dword [ebp + 0x1c]
mov dword [eax + 0x30], edi
mov dword [eax + 0x34], 4
test esi, esi
je 0x100d0d42
push dword [ebp - 0x130]
call fcn.100d2250
add esp, 4
mov esi, eax
test eax, eax
jne 0x100d0d85
mov dword [ebp - 0x120], 0xb3
mov esi, dword [ebp - 0x130]
jmp 0x100d0ead
cmp dword [ebx + 0x28], 0
mov eax, dword [ebx + 8]
je 0x100d0d51
cmp dword [eax + 0x30], 0
jne 0x100d0d7a
mov edi, dword [eax + 0x3c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100d0f74
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebx + 0x24]
test esi, esi
je 0x100d0e83
mov eax, dword [ebp - 0x130]
mov eax, dword [eax]
mov ecx, dword [eax + 0xf6]
mov edi, ebx
add edi, 4
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 4]
mov dword [ebp - 0x144], edx
mov eax, dword [eax + 8]
mov dword [ebp - 0x140], eax
call dword [section..00cfg]
lea eax, [ebp - 0x11c]
push edi
mov edi, dword [ebp + 0x1c]
push dword [ebp - 0x138]
lea edx, [ebp - 0x100]
push edx
push dword [ebp - 0x140]
push dword [ebp - 0x144]
push dword [ebp - 0x13c]
push eax
push esi
call ecx
add esp, 0x20
mov dword [ebp - 0x120], eax
cmp dword [ebp + 0x2c], 0
je 0x100d0e8d
push esi
mov esi, dword [ebp - 0x130]
push esi
call fcn.100d2380
add esp, 8
jmp 0x100d0ead
lea eax, [ebp - 0x120]
mov ebx, esi
mov ecx, esi
mov esi, edx
mov edx, dword [ebp - 0x13c]
push esi
push eax
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp - 0x138]
lea eax, [ebp - 0x100]
push eax
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x11c]
push eax
call fcn.100d1260
add esp, 0x24
test eax, eax
je 0x100d0f21
mov esi, eax
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x100d0e61
push 1
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
mov ebx, esi
jmp 0x100d0a3a
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x118], 0
xor ecx, ecx
jmp 0x100d0cac
mov dword [ebp - 0x120], 0xb3
cmp dword [ebx + 0x28], 0
mov eax, dword [ebx + 8]
mov esi, dword [ebp - 0x130]
je 0x100d0ea2
cmp dword [eax + 0x30], 0
jne 0x100d0ead
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x100d0ec2
push 1
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
cmp dword [ebp - 0x120], 0
je 0x100d0a3a
push ebx
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
xor ebx, ebx
cmp dword [ebp - 0x120], 0x30
je 0x100d0a3a
lea eax, [ebp - 0x11c]
mov ecx, esi
mov edx, dword [ebp - 0x13c]
push dword [ebp + 0x2c]
push 0
push dword [ebp + 0x20]
push edi
push dword [ebp - 0x138]
lea esi, [ebp - 0x100]
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call fcn.100d1260
add esp, 0x24
mov ebx, eax
jmp 0x100d0a3a
cmp dword [ebp - 0x120], 0x30
mov esi, ebx
mov edx, dword [ebp + 0x2c]
jne 0x100d0ce3
xor ebx, ebx
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x100d0a3a
push 1
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
jmp 0x100d0a3a
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov dword [ebp - 0x134], eax
jmp 0x100d0be2
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov esi, eax
jmp 0x100d0d6a