Function at 0x10129710
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 0x10129750
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 0x1012977c
mov edi, dword [ebx + 0x3c]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x10129988
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 0x101297aa
mov eax, dword [ebx + 0x38]
mov dword [ebp - 0x14], eax
mov al, 1
jmp 0x101297ac
xor eax, eax
cmp dword [ebx + 0x30], 0
jne 0x101297c1
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 0x101297dd
cmp dword [ebx + 0x30], 0
je 0x101297dd
mov dword [ebp - 0x30], 0
jmp 0x1012980b
mov edi, dword [ebx + 0x3c]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x10129972
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 + 0x76]
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 0x101298a6
cmp byte [ebp - 0x30], 0
mov esi, eax
je 0x1012983e
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp byte [ebp - 0x28], 0
jne 0x1012993b
cmp dword [ebx + 0x30], 0
jne 0x1012987b
mov edi, dword [ebx + 0x3c]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
mov dword [ebp - 0x28], eax
je 0x1012999e
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 0x1012993b
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x1012993b
mov eax, dword [ebx]
mov edi, dword [ebp + 0x20]
mov esi, dword [ebp + 0x14]
mov ecx, dword [eax + 0x7a]
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 0x101298dc
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp byte [ebp - 0x28], 0
jne 0x10129937
cmp dword [ebx + 0x30], 0
jne 0x10129915
mov edi, dword [ebx + 0x3c]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
mov dword [ebp - 0x28], eax
je 0x101299b5
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 0x10129937
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
test esi, esi
je 0x10129966
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 0x10129952
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x101297f6
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x1012976f
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov dword [ebp - 0x28], eax
jmp 0x10129868
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov dword [ebp - 0x28], eax
jmp 0x10129902