Function at 0x10098ce0
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 [0x101f1014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ecx]
mov edi, dword [eax + 0x14]
lock inc dword [edi + 8]
push edi
call fcn.100964d0
add esp, 4
mov esi, eax
push edi
call fcn.10096450
add esp, 4
test esi, esi
je 0x10098d3c
mov eax, dword [ebp + 0xc]
cmp eax, 0xce534351
je 0x10098d43
cmp eax, 1
mov esi, dword [ebp + 8]
je 0x10098d4f
cmp eax, 0xce534353
jne 0x10098de7
xor eax, eax
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x10098d56
xor edi, edi
jmp 0x10098dea
mov dword [ebp - 0x1c], 2
mov esi, dword [ebp + 8]
jmp 0x10098d56
mov dword [ebp - 0x1c], 0
mov ebx, dword [esi + 4]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x100992a4
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], edi
xor ebx, ebx
mov eax, dword [ebp - 0x1c]
cmp dword [esi + eax*4 + 0xc], 0
je 0x10098ddf
mov eax, dword [esi]
mov edi, dword [eax + 0x14]
lock inc dword [edi + 8]
push dword [edi + 0x40]
call sym.nss3.dll_PK11_IsFriendly
add esp, 4
test eax, eax
jne 0x10098dfd
mov eax, dword [edi + 0x40]
cmp dword [eax + 0x24], 0
je 0x10098df1
push 0
push eax
call sym.nss3.dll_PK11_IsLoggedIn
add esp, 8
mov ecx, dword [ebp + 8]
add ecx, 8
test eax, eax
jne 0x10098df7
cmp dword [ecx], 0
je 0x10098dd1
mov ecx, esi
call fcn.10098ae0
mov dword [esi + 8], 0
push edi
call fcn.10096450
add esp, 4
mov eax, dword [ebp - 0x1c]
jmp 0x10098e14
xor edi, edi
dec edi
jmp 0x100991f4
xor edi, edi
dec edi
xor ebx, ebx
jmp 0x100991ff
mov eax, dword [ebp + 8]
lea ecx, [eax + 8]
mov dword [ecx], 1
push edi
call fcn.10096450
add esp, 4
mov eax, dword [ebp - 0x1c]
cmp dword [esi + eax*4 + 0x18], 0
je 0x10098f67
mov edi, dword [esi + eax*4 + 0x24]
test edi, edi
je 0x10098f5e
call fcn.100941c0
test eax, eax
je 0x10098f5e
mov dword [ebp - 0x20], edi
push 0x20
mov dword [ebp - 0x28], eax
push eax
call fcn.10094240
add esp, 8
mov ebx, 0
mov dword [ebp - 0x24], eax
test eax, eax
je 0x100991e4
mov eax, dword [ebp + 0x18]
xor ebx, ebx
cmp eax, 1
mov edx, 0
sbb edx, edx
mov ecx, dword [ebp - 0x20]
mov edi, dword [ecx]
test edi, edi
je 0x100991e4
mov ecx, dword [ebp + 0x10]
or edx, eax
mov dword [ebp - 0x2c], edx
mov edx, ecx
mov dword [ebp - 0x18], 8
xor esi, esi
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], esi
mov esi, 0
cmp dword [ebp + 0x14], 0
je 0x10098ef5
mov eax, dword [edi + 0xc]
xor esi, esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x30], eax
test eax, eax
je 0x10098f5a
mov ebx, eax
lea eax, [esi + esi*2]
mov edx, dword [edx + eax*4]
mov ecx, dword [edi + 8]
add ecx, 8
cmp dword [ecx - 8], edx
je 0x10098ebc
add ecx, 0xc
dec ebx
jne 0x10098eaf
jmp 0x10098eef
mov edx, dword [ebp + 0x10]
mov edx, dword [edx + eax*4 + 8]
cmp edx, dword [ecx]
mov ebx, dword [ebp - 0x20]
jne 0x10098ef2
push edx
push dword [ecx - 4]
mov ecx, dword [ebp + 0x10]
push dword [ecx + eax*4 + 4]
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x10098ef2
inc esi
cmp esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x30]
jne 0x10098e99
jmp 0x10098efa
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebp + 0x10]
cmp esi, dword [ebp + 0x14]
jne 0x10098f31
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x1c]
mov dword [ecx + esi*4], edi
inc esi
mov edi, dword [ebp - 0x18]
cmp esi, edi
jne 0x10098f39
lea eax, [edi*8]
push eax
push ecx
call fcn.10094750
add esp, 8
test eax, eax
je 0x100991e2
mov dword [ebp - 0x24], eax
lea eax, [edi + edi]
mov esi, edi
mov edx, dword [ebp + 0x10]
jmp 0x10098f3b
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
jmp 0x10098f3b
mov eax, edi
mov edi, dword [ebx + 4]
test edi, edi
je 0x10098fe1
add ebx, 4
mov dword [ebp - 0x18], eax
cmp esi, dword [ebp - 0x2c]
jb 0x10098e80
jmp 0x10098fe1
xor esi, esi
jmp 0x10098ef5
xor edi, edi
xor ebx, ebx
jmp 0x100991f4
cmp dword [esi + eax*4 + 0xc], 0
je 0x10098e14
lea edi, [ebp - 0x14]
push edi
push 0xa
push 3
push dword [ebp + 0xc]
push 0
push dword [esi]
call fcn.100977f0
mov edx, edi
add esp, 0x18
mov edi, dword [edi]
test edi, edi
jne 0x100991f4
mov ecx, eax
test eax, eax
je 0x10099093
cmp dword [ecx], 0
je 0x10099093
xor edi, edi
mov eax, 4
inc edi
cmp dword [ecx + eax], 0
lea eax, [eax + 4]
jne 0x10098faf
mov dword [ebp - 0x18], ecx
cmp edi, 0xa
jb 0x100990c1
xor eax, eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + edx*4 + 0xc], eax
mov dword [ebp - 0x14], 0xffffffff
mov dword [ecx + edx*4 + 0x24], eax
jmp 0x10099145
xor ebx, ebx
test esi, esi
je 0x100991e4
lea eax, [esi*4 + 4]
push eax
push 0
call fcn.10094240
add esp, 8
mov dword [ebp - 0x18], eax
test eax, eax
je 0x100991e4
test esi, esi
jle 0x1009908b
xor ebx, ebx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + ebx*4]
mov esi, dword [eax + 4]
push 0x10
push 0
call fcn.10094240
add esp, 8
test eax, eax
je 0x10099199
mov edi, eax
mov eax, dword [esi]
mov dword [edi], eax
mov eax, dword [esi + 4]
lock inc dword [eax + 8]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1009907d
mov dword [ebp - 0x20], eax
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov esi, eax
inc esi
push esi
push 0
call fcn.10094240
add esp, 8
test eax, eax
je 0x1009907a
push esi
push dword [ebp - 0x20]
push eax
mov esi, eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, esi
add esp, 0xc
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [eax + ebx*4], edi
inc ebx
mov esi, dword [ebp - 0x1c]
cmp esi, ebx
jne 0x10099011
mov ebx, dword [ebp - 0x18]
jmp 0x100991e4
xor eax, eax
mov dword [ebp - 0x14], eax
mov edx, ecx
mov ecx, dword [ebp - 0x1c]
mov dword [esi + ecx*4 + 0x24], eax
mov eax, edx
push eax
call fcn.10094350
add esp, 4
xor ebx, ebx
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
mov dword [esi + eax*4 + 0x18], 1
jmp 0x1009918d
mov esi, edx
push eax
push 0
call fcn.10094240
add esp, 8
xor ecx, ecx
test eax, eax
sete cl
neg ecx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + edx*4 + 0x24], eax
test eax, eax
je 0x10099145
test edi, edi
mov eax, dword [ebp - 0x18]
je 0x100990a3
xor ebx, ebx
mov ecx, dword [eax + ebx*4]
cmp edx, 1
je 0x10099107
test edx, edx
jne 0x10099111
mov edx, 0x101bcc6c
push esi
push 0xa
jmp 0x10099119
mov edx, 0x101bcc94
push esi
push 0xb
jmp 0x10099119
mov edx, 0x101bccc0
push esi
push 7
call fcn.10099a70
add esp, 8
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ecx + edx*4 + 0x24]
mov dword [ecx + ebx*4], eax
cmp dword [ebp - 0x14], 0
jne 0x1009921c
inc ebx
cmp edi, ebx
mov eax, dword [ebp - 0x18]
jne 0x100990f1
jmp 0x100990a3
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
test edi, edi
je 0x1009917c
mov esi, dword [ebp - 0x18]
add esi, 4
push dword [edi + 4]
call fcn.10096ae0
add esp, 4
push dword [edi + 0xc]
call fcn.10094350
add esp, 4
push edi
call fcn.10094350
add esp, 4
mov edi, dword [esi]
add esi, 4
test edi, edi
jne 0x10099154
push dword [ebp - 0x18]
call fcn.10094350
add esp, 4
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x14]
test edi, edi
jne 0x100991f4
jmp 0x10098e14
mov eax, dword [ebp - 0x18]
mov dword [eax + ebx*4], 0
mov esi, dword [eax]
test esi, esi
je 0x100991d7
mov edi, dword [ebp - 0x18]
add edi, 4
push dword [esi + 4]
call fcn.10096ae0
add esp, 4
push dword [esi + 0xc]
call fcn.10094350
add esp, 4
push esi
call fcn.10094350
add esp, 4
mov esi, dword [edi]
add edi, 4
test esi, esi
jne 0x100991af
push dword [ebp - 0x18]
call fcn.10094350
add esp, 4
xor ebx, ebx
push dword [ebp - 0x28]
call fcn.100944c0
add esp, 4
mov esi, dword [ebp + 8]
xor edi, edi
push dword [esi + 4]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x10099208
mov dword [eax], edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10157a00
mov eax, ebx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
test ebx, ebx
mov edi, dword [ebp + 8]
je 0x1009924f
xor esi, esi
mov eax, dword [edi + edx*4 + 0x24]
mov eax, dword [eax + esi*4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
lock inc dword [eax + 8]
mov eax, dword [edi + edx*4 + 0x24]
mov eax, dword [eax + esi*4]
push dword [eax]
call fcn.100944c0
mov edx, dword [ebp - 0x1c]
add esp, 4
inc esi
cmp ebx, esi
jne 0x10099225
push dword [edi + edx*4 + 0x24]
mov esi, edx
call fcn.10094350
add esp, 4
mov dword [edi + esi*4 + 0x24], 0
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
test edi, edi
je 0x1009929c
mov esi, dword [ebp - 0x18]
add esi, 4
push dword [edi + 4]
call fcn.10096ae0
add esp, 4
push dword [edi + 0xc]
call fcn.10094350
add esp, 4
push edi
call fcn.10094350
add esp, 4
mov edi, dword [esi]
add esi, 4
test edi, edi
jne 0x10099274
push dword [ebp - 0x18]
jmp 0x100990a4
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov edi, eax
jmp 0x10098d6f