Function at 0x10128cb0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov edx, dword [0x101d2014]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
xor edx, ebp
mov dword [ebp - 0x10], edx
xor edx, edx
test eax, eax
mov ebx, dword [edi + 8]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], ecx
je 0x10128ceb
mov ecx, dword [eax + 4]
mov dword [ebp - 0x28], ecx
mov eax, dword [eax + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 0x18]
test al, 1
jne 0x10128d84
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x20], 2
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x11]
mov dword [ebp - 0x1c], eax
mov byte [eax], 0
mov dword [ebp - 0x18], 1
mov edi, dword [ebx + 0x3c]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x101290f9
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov eax, dword [ebx]
mov esi, dword [ebx + 0x38]
mov ecx, dword [eax + 0x62]
call dword [section..00cfg]
lea eax, [ebp - 0x20]
push 1
push eax
push dword [ebp - 0x34]
push esi
call ecx
add esp, 0x10
mov esi, eax
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
test esi, esi
je 0x10128fc4
push esi
call fcn.10115520
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
mov edi, dword [ebp + 8]
jmp 0x10128d94
test al, 2
je 0x10128d94
push dword [edi + 0x14]
push ebx
call fcn.1010f2e0
add esp, 8
cmp dword [ebx + 0x30], 0
jne 0x10128dc3
mov edi, dword [ebx + 0x3c]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x1012910f
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov edi, dword [ebp + 8]
mov eax, dword [ebx]
mov esi, dword [ebx + 0x40]
mov ecx, dword [eax + 0x32]
call dword [section..00cfg]
lea eax, [ebp - 0x20]
push eax
push sym.nss3.dll_PR_DuplicateEnvironment
push ebx
push 4
push esi
call ecx
add esp, 0x14
test eax, eax
je 0x10128df1
mov eax, dword [ebx + 0x38]
mov cl, 1
mov dword [ebp - 0x20], eax
jmp 0x10128df3
xor ecx, ecx
cmp dword [ebx + 0x30], 0
jne 0x10128e08
push dword [ebx + 0x3c]
mov esi, ecx
call sym.nss3.dll_PR_Unlock
mov ecx, esi
add esp, 4
mov eax, dword [ebp - 0x20]
test cl, cl
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], eax
jne 0x10128e30
cmp dword [ebx + 0x30], 0
je 0x10128e30
mov al, 1
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], eax
jmp 0x10128e6b
mov edi, dword [ebx + 0x3c]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x101290e3
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov edi, dword [ebp + 8]
mov al, 1
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], eax
xor eax, eax
inc eax
mov dword [ebp - 0x44], eax
mov eax, dword [ebx]
mov esi, dword [edi + 0xc]
mov ecx, dword [eax + 0xaa]
call dword [section..00cfg]
lea eax, [ebp - 0x2c]
push esi
push eax
push dword [ebp - 0x34]
call ecx
add esp, 0xc
test eax, eax
je 0x10128f07
cmp byte [ebp - 0x3c], 0
mov esi, eax
je 0x10128ea0
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp byte [ebp - 0x30], 0
jne 0x1012909f
cmp dword [ebx + 0x30], 0
jne 0x10128eda
mov edi, dword [ebx + 0x3c]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
mov dword [ebp - 0x30], eax
je 0x10129125
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x30]
mov dword [edi + 8], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x36]
call dword [section..00cfg]
push dword [ebp - 0x34]
call ecx
add esp, 4
cmp dword [ebx + 0x30], 0
jne 0x1012909f
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x1012909f
mov eax, dword [edi + 0x18]
mov edx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x14]
test al, 1
jne 0x10128fd6
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
cmp byte [ebp - 0x38], 0
lea edx, [ebp - 0x11]
mov dword [ebp - 0x20], 0x202
mov dword [ebp - 0x1c], edx
mov byte [edx], 0
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x40], ecx
je 0x10128f6d
mov edi, dword [ecx + 0x3c]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x1012913c
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx]
mov esi, dword [ecx + 0x38]
mov ecx, dword [eax + 0x62]
call dword [section..00cfg]
push 1
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x48]
push esi
call ecx
add esp, 0x10
cmp byte [ebp - 0x38], 0
mov esi, eax
je 0x10128fa0
mov eax, dword [ebp - 0x40]
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
test esi, esi
je 0x101290ce
push esi
call fcn.10115520
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
jmp 0x10128ff4
cmp byte [ebp - 0x11], 0
mov edi, dword [ebp + 8]
jne 0x10128d88
jmp 0x10128d94
test al, 4
je 0x10128ff4
push 1
push dword [ebp - 0x44]
push dword [edi + 0x14]
push 0
push dword [ebp - 0x34]
push ebx
mov edi, edx
call fcn.1010f5c0
mov edx, edi
add esp, 0x18
mov eax, dword [esi + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx]
mov edi, dword [edx + 4]
mov esi, dword [esi + 4]
mov ecx, dword [eax + 0xae]
mov dword [ebp - 0x38], edi
mov edi, dword [edx + 8]
call dword [section..00cfg]
lea eax, [ebp - 0x20]
push eax
push esi
push edi
push dword [ebp - 0x38]
push dword [ebp - 0x34]
call ecx
add esp, 0x14
cmp byte [ebp - 0x3c], 0
mov esi, eax
je 0x10129038
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp byte [ebp - 0x30], 0
jne 0x10129092
cmp dword [ebx + 0x30], 0
jne 0x1012906e
mov edi, dword [ebx + 0x3c]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
mov dword [ebp - 0x30], eax
je 0x10129152
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x30]
mov dword [edi + 8], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x36]
call dword [section..00cfg]
push dword [ebp - 0x34]
call ecx
add esp, 4
cmp dword [ebx + 0x30], 0
jne 0x10129092
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x14]
test esi, esi
mov dword [ecx + 8], eax
je 0x101290ca
push esi
call fcn.10115520
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
dec esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10192ef0
mov eax, esi
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
jmp 0x101290b6
cmp byte [ebp - 0x11], 0
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
jne 0x10128fda
jmp 0x10128ff4
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x10128e49
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x10128d2c
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x10128db3
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov dword [ebp - 0x30], eax
jmp 0x10128eca
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x10128f5a
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov dword [ebp - 0x30], eax
jmp 0x1012905e