Function at 0x10100950
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov ecx, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ecx + 0x44]
mov esi, dword [ebx + 4]
test eax, eax
mov dword [ebp - 0x20], ecx
je 0x10100984
push eax
call fcn.100ff5c0
add esp, 4
test eax, eax
mov dword [ebp - 0x14], eax
jne 0x1010098b
jmp 0x10100b8a
mov dword [ebp - 0x14], 0
mov edi, dword [ebx]
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp + 0xc]
test edi, edi
je 0x101009bd
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x10100bae
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], ebx
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
cmp dword [esi + 8], 0
je 0x101009dc
mov al, 1
xor ebx, ebx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], eax
jmp 0x10100a70
mov ecx, dword [ebp - 0x20]
mov edi, eax
mov ecx, dword [ecx + 0x62]
call dword [section..00cfg]
push edi
push esi
push dword [ebp + 8]
push dword [ebp - 0x1c]
call ecx
add esp, 0x10
cmp eax, 0x12
ja 0x10100b71
mov ecx, 0x60001
bt ecx, eax
jae 0x10100b71
mov edi, dword [ebp + 0x10]
mov al, 1
mov dword [ebp - 0x18], eax
test edi, edi
je 0x10100a64
lea ebx, [esi + 8]
mov ecx, dword [ebx]
lea eax, [ecx + 1]
cmp eax, 1
ja 0x10100a30
xor eax, eax
mov dword [ebx - 4], eax
mov dword [ebx], eax
jmp 0x10100a59
mov edx, dword [ebx - 8]
cmp edx, 0xce534352
je 0x10100a42
cmp edx, 3
je 0x10100a42
mov eax, ecx
push eax
push dword [ebp + 0x14]
call fcn.100ff2b0
add esp, 8
test eax, eax
mov dword [ebx - 4], eax
je 0x10100b97
add ebx, 0xc
dec edi
jne 0x10100a1d
mov ebx, dword [ebp + 0x10]
jmp 0x10100a66
xor ebx, ebx
mov dword [ebp - 0x10], 0
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x62]
call dword [section..00cfg]
push dword [ebp + 0x10]
push esi
push edi
push dword [ebp - 0x1c]
call ecx
add esp, 0x10
mov edx, eax
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
mov eax, dword [eax]
test eax, eax
je 0x10100aa7
push eax
mov edi, edx
call sym.nss3.dll_PR_Unlock
mov edx, edi
mov edi, dword [ebp + 0x14]
add esp, 4
cmp edx, 0x12
ja 0x10100b33
mov eax, 0x60001
bt eax, edx
jae 0x10100b33
mov ecx, dword [ebp - 0x18]
test edi, edi
sete al
xor cl, 1
or cl, al
jne 0x10100ae3
mov ecx, edi
mov edi, edx
mov edx, dword [ebp - 0x14]
push 0
call fcn.100ff690
mov edx, edi
mov edi, dword [ebp + 0x14]
add esp, 4
test eax, eax
jne 0x10100b43
mov ecx, dword [ebp + 0x10]
xor edi, edi
cmp ecx, 2
jb 0x10100b8d
add edx, 0xffffffef
cmp edx, 1
ja 0x10100b8d
mov ebx, dword [ebp + 0x18]
mov eax, dword [esi + 8]
inc eax
cmp eax, 1
ja 0x10100b29
mov dword [esi + 8], 0
push dword [ebp + 0x1c]
push ebx
push dword [ebp + 0x14]
push 1
push esi
push dword [ebp + 8]
mov edi, ecx
call fcn.10100950
mov ecx, edi
add esp, 0x18
add esi, 0xc
dec ecx
jne 0x10100b00
xor edi, edi
jmp 0x10100b8d
push 0x22
call fcn.100ffa40
add esp, 4
cmp byte [ebp - 0x10], 0
jne 0x10100b8a
test edi, edi
je 0x10100b55
mov edx, dword [ebp - 0x14]
mov ecx, edi
push 1
call fcn.100ff690
jmp 0x10100b87
xor edi, edi
dec edi
test ebx, ebx
je 0x10100b8d
add esi, 4
push dword [esi]
call fcn.100ff3c0
add esp, 4
add esi, 0xc
dec ebx
jne 0x10100b5f
jmp 0x10100b8d
mov eax, dword [ebx]
test eax, eax
je 0x10100b80
push eax
call sym.nss3.dll_PR_Unlock
add esp, 4
push 0x22
call fcn.100ffa40
add esp, 4
xor edi, edi
dec edi
mov eax, edi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0x18]
xor edi, edi
dec edi
mov eax, dword [eax]
test eax, eax
je 0x10100b8d
push eax
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x10100b8d
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov ebx, eax
jmp 0x101009ad