Function at 0x100995b0
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 [0x101f1014]
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.100964d0
add esp, 4
mov edi, eax
push esi
call fcn.10096450
add esp, 4
test edi, edi
je 0x1009963f
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebx + 4]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x10099875
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 0x10099646
mov eax, 0
cmp esi, 1
mov ebx, dword [ebp + 8]
je 0x1009964e
cmp esi, 0xce534353
jne 0x10099805
xor eax, eax
inc eax
jmp 0x1009964e
xor edi, edi
jmp 0x10099810
mov eax, 2
mov ebx, dword [ebp + 8]
cmp dword [ebx + eax*4 + 0xc], 0
je 0x10099805
cmp dword [ebx + eax*4 + 0x18], 0
je 0x10099805
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 0x100996c4
mov eax, dword [esi + 0x40]
cmp dword [eax + 0x24], 0
je 0x100996bb
push 0
push eax
call sym.nss3.dll_PK11_IsLoggedIn
add esp, 8
lea ecx, [ebx + 8]
test eax, eax
jne 0x100996be
cmp dword [ecx], 0
je 0x100996ad
mov ecx, ebx
call fcn.10098ae0
mov dword [ebx + 8], 0
push esi
call fcn.10096450
add esp, 4
jmp 0x10099805
lea ecx, [ebx + 8]
mov dword [ecx], 1
push esi
call fcn.10096450
add esp, 4
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebx + eax*4 + 0x24]
test edi, edi
je 0x10099730
mov edx, dword [edi]
test edx, edx
je 0x10099730
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 0x1009970d
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 0x10099824
mov edx, dword [edi + esi*4 + 4]
inc esi
add eax, 4
test edx, edx
jne 0x100996ee
test esi, esi
je 0x10099730
push eax
push edi
call fcn.10094750
add esp, 8
mov ecx, dword [ebp - 0x1c]
mov dword [ebx + ecx*4 + 0x24], eax
jmp 0x10099745
push 8
push 0
call fcn.10094240
add esp, 8
mov ecx, dword [ebp - 0x1c]
mov dword [ebx + ecx*4 + 0x24], eax
xor esi, esi
test eax, eax
je 0x100997cf
push 0x10
push 0
call fcn.10094240
add esp, 8
mov edi, eax
test eax, eax
je 0x100997b4
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 0x100997b4
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.10094240
add esp, 8
test eax, eax
je 0x100997b1
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 0x100997d4
test eax, eax
jne 0x100997e3
lea eax, [ebp - 0x14]
mov ecx, edi
mov edx, 0x101bcc6c
push eax
push 0xa
jmp 0x100997f0
xor edi, edi
dec edi
jmp 0x10099805
lea eax, [ebp - 0x14]
mov ecx, edi
mov edx, 0x101bcc94
push eax
push 0xb
jmp 0x100997f0
lea eax, [ebp - 0x14]
mov ecx, edi
mov edx, 0x101bccc0
push eax
push 7
call fcn.10099a70
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.10157a00
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 0x1009985f
push dword [ecx + 4]
mov dword [ebp - 0x18], ecx
call fcn.10096ae0
add esp, 4
mov eax, dword [ebp - 0x18]
push dword [eax + 0xc]
call fcn.10094350
add esp, 4
push dword [ebp - 0x18]
call fcn.10094350
add esp, 4
mov eax, dword [edi + esi*4]
push dword [eax]
call fcn.100944c0
add esp, 4
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebx + eax*4 + 0x24]
jmp 0x10099745
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov edi, eax
jmp 0x1009960a