Function at 0x10097730
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 [0x101ef014]
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.10094f30
add esp, 4
mov esi, eax
push edi
call fcn.10094eb0
add esp, 4
test esi, esi
je 0x1009778c
mov eax, dword [ebp + 0xc]
cmp eax, 0xce534351
je 0x10097793
cmp eax, 1
mov esi, dword [ebp + 8]
je 0x1009779f
cmp eax, 0xce534353
jne 0x10097837
xor eax, eax
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x100977a6
xor edi, edi
jmp 0x1009783a
mov dword [ebp - 0x1c], 2
mov esi, dword [ebp + 8]
jmp 0x100977a6
mov dword [ebp - 0x1c], 0
mov ebx, dword [esi + 4]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x10097cf3
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 0x1009782f
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 0x1009784d
mov eax, dword [edi + 0x40]
cmp dword [eax + 0x24], 0
je 0x10097841
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 0x10097847
cmp dword [ecx], 0
je 0x10097821
mov ecx, esi
call fcn.10097540
mov dword [esi + 8], 0
push edi
call fcn.10094eb0
add esp, 4
mov eax, dword [ebp - 0x1c]
jmp 0x10097864
xor edi, edi
dec edi
jmp 0x10097c43
xor edi, edi
dec edi
xor ebx, ebx
jmp 0x10097c4e
mov eax, dword [ebp + 8]
lea ecx, [eax + 8]
mov dword [ecx], 1
push edi
call fcn.10094eb0
add esp, 4
mov eax, dword [ebp - 0x1c]
cmp dword [esi + eax*4 + 0x18], 0
je 0x100979b7
mov edi, dword [esi + eax*4 + 0x24]
test edi, edi
je 0x100979ae
call fcn.10092c20
test eax, eax
je 0x100979ae
mov dword [ebp - 0x20], edi
push 0x20
mov dword [ebp - 0x28], eax
push eax
call fcn.10092ca0
add esp, 8
mov ebx, 0
mov dword [ebp - 0x24], eax
test eax, eax
je 0x10097c33
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 0x10097c33
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 0x10097945
mov eax, dword [edi + 0xc]
xor esi, esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x30], eax
test eax, eax
je 0x100979aa
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 0x1009790c
add ecx, 0xc
dec ebx
jne 0x100978ff
jmp 0x1009793f
mov edx, dword [ebp + 0x10]
mov edx, dword [edx + eax*4 + 8]
cmp edx, dword [ecx]
mov ebx, dword [ebp - 0x20]
jne 0x10097942
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 0x10097942
inc esi
cmp esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x30]
jne 0x100978e9
jmp 0x1009794a
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebp + 0x10]
cmp esi, dword [ebp + 0x14]
jne 0x10097981
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 0x10097989
lea eax, [edi*8]
push eax
push ecx
call fcn.100931b0
add esp, 8
test eax, eax
je 0x10097c31
mov dword [ebp - 0x24], eax
lea eax, [edi + edi]
mov esi, edi
mov edx, dword [ebp + 0x10]
jmp 0x1009798b
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
jmp 0x1009798b
mov eax, edi
mov edi, dword [ebx + 4]
test edi, edi
je 0x10097a31
add ebx, 4
mov dword [ebp - 0x18], eax
cmp esi, dword [ebp - 0x2c]
jb 0x100978d0
jmp 0x10097a31
xor esi, esi
jmp 0x10097945
xor edi, edi
xor ebx, ebx
jmp 0x10097c43
cmp dword [esi + eax*4 + 0xc], 0
je 0x10097864
lea edi, [ebp - 0x14]
push edi
push 0xa
push 3
push dword [ebp + 0xc]
push 0
push dword [esi]
call fcn.10096250
mov edx, edi
add esp, 0x18
mov edi, dword [edi]
test edi, edi
jne 0x10097c43
mov ecx, eax
test eax, eax
mov dword [ebp - 0x18], eax
je 0x10097ae3
cmp dword [ecx], 0
je 0x10097ae3
xor edi, edi
mov eax, 4
inc edi
cmp dword [ecx + eax], 0
lea eax, [eax + 4]
jne 0x10097a02
cmp edi, 0xa
jb 0x10097b10
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 0x10097b94
xor ebx, ebx
test esi, esi
je 0x10097c33
lea eax, [esi*4 + 4]
push eax
push 0
call fcn.10092ca0
add esp, 8
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10097c33
test esi, esi
jle 0x10097adb
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.10092ca0
add esp, 8
test eax, eax
je 0x10097be8
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 0x10097acd
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.10092ca0
add esp, 8
test eax, eax
je 0x10097aca
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 0x10097a61
mov ebx, dword [ebp - 0x18]
jmp 0x10097c33
xor eax, eax
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x1c]
mov dword [esi + ecx*4 + 0x24], eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.10092db0
add esp, 4
xor ebx, ebx
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
mov dword [esi + eax*4 + 0x18], 1
jmp 0x10097bdc
mov esi, edx
push eax
push 0
call fcn.10092ca0
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 0x10097b94
test edi, edi
mov eax, dword [ebp - 0x18]
je 0x10097af2
xor ebx, ebx
mov ecx, dword [eax + ebx*4]
cmp edx, 1
je 0x10097b56
test edx, edx
jne 0x10097b60
mov edx, 0x101baa8c
push esi
push 0xa
jmp 0x10097b68
mov edx, 0x101baab4
push esi
push 0xb
jmp 0x10097b68
mov edx, 0x101baae0
push esi
push 7
call fcn.100984b0
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 0x10097c6b
inc ebx
cmp edi, ebx
mov eax, dword [ebp - 0x18]
jne 0x10097b40
jmp 0x10097af2
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
test edi, edi
je 0x10097bcb
mov esi, dword [ebp - 0x18]
add esi, 4
push dword [edi + 4]
call fcn.10095540
add esp, 4
push dword [edi + 0xc]
call fcn.10092db0
add esp, 4
push edi
call fcn.10092db0
add esp, 4
mov edi, dword [esi]
add esi, 4
test edi, edi
jne 0x10097ba3
push dword [ebp - 0x18]
call fcn.10092db0
add esp, 4
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x14]
test edi, edi
jne 0x10097c43
jmp 0x10097864
mov eax, dword [ebp - 0x18]
mov dword [eax + ebx*4], 0
mov esi, dword [eax]
test esi, esi
je 0x10097c26
mov edi, dword [ebp - 0x18]
add edi, 4
push dword [esi + 4]
call fcn.10095540
add esp, 4
push dword [esi + 0xc]
call fcn.10092db0
add esp, 4
push esi
call fcn.10092db0
add esp, 4
mov esi, dword [edi]
add edi, 4
test esi, esi
jne 0x10097bfe
push dword [ebp - 0x18]
call fcn.10092db0
add esp, 4
xor ebx, ebx
push dword [ebp - 0x28]
call fcn.10092f20
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 0x10097c57
mov dword [eax], edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
mov eax, ebx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
test ebx, ebx
mov edi, dword [ebp + 8]
je 0x10097c9e
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.10092f20
mov edx, dword [ebp - 0x1c]
add esp, 4
inc esi
cmp ebx, esi
jne 0x10097c74
push dword [edi + edx*4 + 0x24]
mov esi, edx
call fcn.10092db0
add esp, 4
mov dword [edi + esi*4 + 0x24], 0
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
test edi, edi
je 0x10097ceb
mov esi, dword [ebp - 0x18]
add esi, 4
push dword [edi + 4]
call fcn.10095540
add esp, 4
push dword [edi + 0xc]
call fcn.10092db0
add esp, 4
push edi
call fcn.10092db0
add esp, 4
mov edi, dword [esi]
add esi, 4
test edi, edi
jne 0x10097cc3
push dword [ebp - 0x18]
jmp 0x10097af3
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov edi, eax
jmp 0x100977bf