Function at 0x10129440
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [0x101d2014]
mov ecx, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
mov ebx, dword [ecx + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10129480
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], ecx
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
cmp dword [ebx + 0x30], 0
jne 0x101294ac
mov edi, dword [ebx + 0x3c]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x101296be
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 + 0x40]
mov ecx, dword [eax + 0x32]
call dword [section..00cfg]
lea eax, [ebp - 0x14]
push eax
push sym.nss3.dll_PR_DuplicateEnvironment
push ebx
push 4
push esi
call ecx
add esp, 0x14
test eax, eax
je 0x101294da
mov eax, dword [ebx + 0x38]
mov dword [ebp - 0x14], eax
mov al, 1
jmp 0x101294dc
xor eax, eax
cmp dword [ebx + 0x30], 0
jne 0x101294f1
push dword [ebx + 0x3c]
mov esi, eax
call sym.nss3.dll_PR_Unlock
mov eax, esi
add esp, 4
mov edi, dword [ebp - 0x14]
test al, al
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], edi
jne 0x1012950d
cmp dword [ebx + 0x30], 0
je 0x1012950d
mov dword [ebp - 0x30], 0
jmp 0x1012953b
mov edi, dword [ebx + 0x3c]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x101296a8
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov edi, dword [ebp - 0x2c]
mov al, 1
mov dword [ebp - 0x30], eax
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
mov ecx, dword [eax + 0x86]
mov esi, dword [edx + 4]
call dword [section..00cfg]
lea eax, [ebp - 0x20]
push esi
push eax
push edi
call ecx
add esp, 0xc
test eax, eax
je 0x101295d9
cmp byte [ebp - 0x30], 0
mov esi, eax
je 0x10129571
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp byte [ebp - 0x28], 0
jne 0x10129671
cmp dword [ebx + 0x30], 0
jne 0x101295ae
mov edi, dword [ebx + 0x3c]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
mov dword [ebp - 0x28], eax
je 0x101296d4
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x28]
mov dword [edi + 8], eax
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x36]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
cmp dword [ebx + 0x30], 0
jne 0x10129671
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x10129671
mov eax, dword [ebx]
mov edi, dword [ebp + 0x20]
mov esi, dword [ebp + 0x14]
mov ecx, dword [eax + 0x8a]
call dword [section..00cfg]
lea eax, [ebp - 0x24]
push eax
push esi
push dword [ebp + 0x24]
push edi
mov edi, dword [ebp - 0x2c]
push edi
call ecx
add esp, 0x14
cmp byte [ebp - 0x30], 0
mov esi, eax
je 0x10129612
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp byte [ebp - 0x28], 0
jne 0x1012966d
cmp dword [ebx + 0x30], 0
jne 0x1012964b
mov edi, dword [ebx + 0x3c]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
mov dword [ebp - 0x28], eax
je 0x101296eb
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x28]
mov dword [edi + 8], eax
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x36]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
cmp dword [ebx + 0x30], 0
jne 0x1012966d
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
test esi, esi
je 0x1012969c
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, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x24]
xor esi, esi
mov dword [eax], ecx
jmp 0x10129688
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x10129526
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x1012949f
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov dword [ebp - 0x28], eax
jmp 0x1012959b
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov dword [ebp - 0x28], eax
jmp 0x10129638