Function at 0x10097ff0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov ebx, dword [ebp + 8]
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebx]
mov esi, dword [eax + 0x14]
lock inc dword [esi + 8]
push esi
call fcn.10094f30
add esp, 4
mov edi, eax
push esi
call fcn.10094eb0
add esp, 4
test edi, edi
je 0x1009807f
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebx + 4]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x100982b5
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], edi
xor edi, edi
cmp esi, 0xce534351
je 0x10098086
mov eax, 0
cmp esi, 1
mov ebx, dword [ebp + 8]
je 0x1009808e
cmp esi, 0xce534353
jne 0x10098245
xor eax, eax
inc eax
jmp 0x1009808e
xor edi, edi
jmp 0x10098250
mov eax, 2
mov ebx, dword [ebp + 8]
cmp dword [ebx + eax*4 + 0xc], 0
je 0x10098245
cmp dword [ebx + eax*4 + 0x18], 0
je 0x10098245
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx]
mov esi, dword [eax + 0x14]
lock inc dword [esi + 8]
push dword [esi + 0x40]
call sym.nss3.dll_PK11_IsFriendly
add esp, 4
test eax, eax
jne 0x10098104
mov eax, dword [esi + 0x40]
cmp dword [eax + 0x24], 0
je 0x100980fb
push 0
push eax
call sym.nss3.dll_PK11_IsLoggedIn
add esp, 8
lea ecx, [ebx + 8]
test eax, eax
jne 0x100980fe
cmp dword [ecx], 0
je 0x100980ed
mov ecx, ebx
call fcn.10097540
mov dword [ebx + 8], 0
push esi
call fcn.10094eb0
add esp, 4
jmp 0x10098245
lea ecx, [ebx + 8]
mov dword [ecx], 1
push esi
call fcn.10094eb0
add esp, 4
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebx + eax*4 + 0x24]
test edi, edi
je 0x10098170
mov edx, dword [edi]
test edx, edx
je 0x10098170
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
xor esi, esi
mov eax, 8
mov dword [ebp - 0x18], ecx
mov edx, dword [edx + 4]
cmp dword [edx + 4], ecx
jne 0x1009814d
mov ebx, dword [edx]
mov ecx, edi
mov edi, dword [ebp + 0xc]
cmp ebx, dword [edi]
mov edi, ecx
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp + 8]
je 0x10098264
mov edx, dword [edi + esi*4 + 4]
inc esi
add eax, 4
test edx, edx
jne 0x1009812e
test esi, esi
je 0x10098170
push eax
push edi
call fcn.100931b0
add esp, 8
mov ecx, dword [ebp - 0x1c]
mov dword [ebx + ecx*4 + 0x24], eax
jmp 0x10098185
push 8
push 0
call fcn.10092ca0
add esp, 8
mov ecx, dword [ebp - 0x1c]
mov dword [ebx + ecx*4 + 0x24], eax
xor esi, esi
test eax, eax
je 0x1009820f
push 0x10
push 0
call fcn.10092ca0
add esp, 8
mov edi, eax
test eax, eax
je 0x100981f4
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ecx + 4]
lock inc dword [eax + 8]
mov dword [edi + 4], eax
mov eax, dword [ecx + 8]
mov dword [edi + 8], eax
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x100981f4
mov dword [ebp - 0x18], eax
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
inc eax
mov dword [ebp - 0x20], eax
push eax
push 0
call fcn.10092ca0
add esp, 8
test eax, eax
je 0x100981f1
push dword [ebp - 0x20]
push dword [ebp - 0x18]
push eax
mov dword [ebp - 0x18], eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x10098214
test eax, eax
jne 0x10098223
lea eax, [ebp - 0x14]
mov ecx, edi
mov edx, 0x101baa8c
push eax
push 0xa
jmp 0x10098230
xor edi, edi
dec edi
jmp 0x10098245
lea eax, [ebp - 0x14]
mov ecx, edi
mov edx, 0x101baab4
push eax
push 0xb
jmp 0x10098230
lea eax, [ebp - 0x14]
mov ecx, edi
mov edx, 0x101baae0
push eax
push 7
call fcn.100984b0
add esp, 8
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ebx + ecx*4 + 0x24]
mov dword [ecx + esi*4], eax
mov edi, dword [ebp - 0x14]
push dword [ebx + 4]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
mov eax, edi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [edx + 4], 0
mov eax, dword [edi + esi*4]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x1009829f
push dword [ecx + 4]
mov dword [ebp - 0x18], ecx
call fcn.10095540
add esp, 4
mov eax, dword [ebp - 0x18]
push dword [eax + 0xc]
call fcn.10092db0
add esp, 4
push dword [ebp - 0x18]
call fcn.10092db0
add esp, 4
mov eax, dword [edi + esi*4]
push dword [eax]
call fcn.10092f20
add esp, 4
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebx + eax*4 + 0x24]
jmp 0x10098185
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov edi, eax
jmp 0x1009804a