Function at 0x100affc0
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 + 0x14]
mov esi, dword [ebp + 8]
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
cmp dword [esi + 0x18], 0
mov eax, dword [esi + 0xc]
je 0x100afff3
cmp dword [eax + 0x30], 0
je 0x100afff3
mov ebx, dword [esi + 0x14]
jmp 0x100afff6
mov ebx, dword [eax + 0x3c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100b0361
mov edi, eax
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], edi
cmp dword [esi + 0x18], 0
je 0x100b0064
mov edx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0xc]
cmp dword [esi + 0x34], 0
je 0x100b00ad
mov eax, dword [esi]
cmp eax, 0x105
je 0x100b00b2
cmp eax, 0x104
mov dword [ebp - 0x28], edi
jne 0x100b00fe
cmp dword [esi + 0x18], 0
mov eax, dword [esi + 0xc]
je 0x100b0277
cmp dword [eax + 0x30], 0
je 0x100b0277
lea eax, [esi + 0x14]
jmp 0x100b027a
mov edi, dword [esi + 0x20]
test edi, edi
je 0x100b0235
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax + 0x46]
mov ebx, dword [esi + 0x10]
call dword [section..00cfg]
push 0
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push edi
push ebx
call ecx
add esp, 0x14
test eax, eax
je 0x100b001f
push eax
call fcn.100b1140
add esp, 4
jmp 0x100b023a
mov dword [ebp - 0x28], edi
jmp 0x100b00fe
mov edx, 8
lea eax, [ebp - 0x1c]
mov dword [eax], edx
mov eax, dword [esi + 0xc]
mov ebx, dword [esi + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax + 0x8e]
call dword [section..00cfg]
lea eax, [ebp - 0x18]
lea edx, [ebp - 0x1c]
push edx
push eax
mov eax, 8
push eax
push edi
push ebx
call ecx
mov edx, dword [ebp + 0x1c]
add esp, 0x14
lea eax, [ebp - 0x1c]
mov eax, dword [eax]
mov ebx, dword [ebp + 0xc]
sub edx, eax
add edi, eax
mov dword [ebp - 0x28], edi
mov dword [esi + 0x34], 0
mov dword [ebp - 0x30], 0
xor edi, edi
mov dword [ebp - 0x2c], 0
mov ecx, dword [esi]
cmp ecx, 0x105
je 0x100b0161
mov eax, 0x91
cmp ecx, 0x104
jne 0x100b019d
mov dword [ebp - 0x24], edi
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x20], ecx
mov eax, dword [eax]
mov ecx, dword [eax + 0x7e]
mov edi, edx
call dword [section..00cfg]
lea eax, [ebp - 0x1c]
push eax
push ebx
push edi
push dword [ebp - 0x28]
push dword [ebp - 0x20]
call ecx
add esp, 0x14
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x1c]
add dword [edx], ecx
jmp 0x100b0196
mov dword [ebp - 0x24], edi
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x20], ecx
mov eax, dword [eax]
mov ecx, dword [eax + 0x8e]
mov edi, edx
call dword [section..00cfg]
lea eax, [ebp - 0x1c]
push eax
push ebx
push edi
push dword [ebp - 0x28]
push dword [ebp - 0x20]
call ecx
add esp, 0x14
test eax, eax
mov ebx, dword [ebp - 0x24]
je 0x100b01b8
push eax
call fcn.100b1140
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
xor ebx, ebx
dec ebx
xor eax, eax
jmp 0x100b01bb
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
cmp dword [esi + 0x34], 0
je 0x100b01f7
cmp dword [esi], 0x104
jne 0x100b01f0
push dword [ebp - 0x1c]
mov edi, dword [ebp - 0x2c]
push edi
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
test edi, edi
je 0x100b01f0
push dword [ebp - 0x2c]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov dword [esi + 0x34], 0
cmp dword [esi + 0x18], 0
jne 0x100b0227
lea eax, [esi + 0x24]
mov edx, dword [esi + 0x20]
mov ecx, esi
push eax
call fcn.100ae860
add esp, 4
mov dword [esi + 0x20], eax
xor ecx, ecx
cmp eax, 1
sbb ecx, ecx
or ebx, ecx
mov ecx, esi
call fcn.100af050
cmp dword [esi + 0x18], 0
je 0x100b0264
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x30], 0
je 0x100b0267
push dword [esi + 0x14]
jmp 0x100b026a
mov eax, 0xffffe001
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
cmp dword [esi + 0x18], 0
mov eax, dword [esi + 0xc]
je 0x100b025c
cmp dword [eax + 0x30], 0
je 0x100b025c
push dword [esi + 0x14]
jmp 0x100b0342
push dword [eax + 0x3c]
jmp 0x100b0342
mov eax, dword [esi + 0xc]
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x100b034d
add eax, 0x3c
push dword [eax]
call sym.nss3.dll_PR_Unlock
add esp, 4
lea eax, [ebp - 0x18]
push 8
push eax
call sym.nss3.dll_PK11_GenerateRandom
add esp, 8
mov dword [ebp - 0x24], eax
cmp dword [esi + 0x18], 0
mov eax, dword [esi + 0xc]
je 0x100b02a9
cmp dword [eax + 0x30], 0
je 0x100b02a9
mov edi, dword [esi + 0x14]
jmp 0x100b02ac
mov edi, dword [eax + 0x3c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100b037c
mov ebx, eax
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], ebx
mov ebx, dword [ebp + 0x14]
push ebx
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
test eax, eax
je 0x100b0327
mov ecx, dword [esi + 0xc]
mov edi, eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx]
mov ecx, dword [eax + 0x7e]
call dword [section..00cfg]
lea eax, [ebp - 0x1c]
push eax
push edi
push 8
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x20]
call ecx
add esp, 0x14
lea eax, [ebp - 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x2c], edi
add edi, eax
mov dword [ebp - 0x30], eax
sub ebx, eax
mov dword [ebp - 0x20], ebx
mov ebx, edi
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp + 0x1c]
jmp 0x100b010e
cmp dword [esi + 0x18], 0
mov eax, dword [esi + 0xc]
je 0x100b033d
cmp dword [eax + 0x30], 0
je 0x100b033d
add esi, 0x14
mov eax, esi
jmp 0x100b0340
add eax, 0x3c
push dword [eax]
call sym.nss3.dll_PR_Unlock
add esp, 4
xor ebx, ebx
dec ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
mov eax, ebx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x100b000a
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x100b02c0