Function at 0x10126e60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, dword [ebp + 8]
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x100
cmp dword [esi + 0x3dc], 0
je 0x10126e8a
xor ebx, ebx
jmp 0x10126e9d
cmp dword [esi + 0x3d8], 0
je 0x10126e86
cmp dword [esi + 0x3d4], 0
setne bl
cmp dword [esi + 0x538], 0
je 0x10126eaf
push 0
push 0xffffe001
jmp 0x10126ef6
cmp dword [esi + 0x534], 0
je 0x10126ecb
mov dword [esi + 0x538], fcn.10126e60
push 0
push 0xffffe892
jmp 0x10126ef6
mov ecx, esi
call fcn.10126c70
test eax, eax
je 0x10126f15
xor edi, edi
mov ebx, 0xffffe001
push edi
push ebx
call sym.nss3.dll_PR_SetError
add esp, 8
push 0x50
push 2
push esi
call fcn.100fa900
add esp, 0xc
push edi
push ebx
call sym.nss3.dll_PR_SetError
add esp, 8
xor edi, edi
dec edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
mov eax, edi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esi + 0x600]
mov eax, dword [esi + 0x1c]
cmp ecx, 2
jne 0x10126f76
bt eax, 0xa
jb 0x10126f37
push dword [esi + 0x168]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
test byte [esi + 0x20], 4
jne 0x10126f50
push 0
push 5
push esi
call fcn.100fd170
add esp, 0xc
mov edi, eax
test eax, eax
jne 0x10126f5c
mov dword [esi + 0x600], 4
xor edi, edi
test byte [esi + 0x1d], 4
jne 0x10126f70
push dword [esi + 0x168]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
test edi, edi
jne 0x10126efe
jmp 0x10126f96
bt eax, 0x1b
jae 0x10126f96
test ecx, ecx
jne 0x10126f96
cmp dword [esi + 0x9f8], 1
je 0x10126f96
cmp dword [esi + 0x614], 0
je 0x1012704f
mov ecx, esi
mov edx, 2
push 0
push 2
call fcn.101204a0
add esp, 8
test eax, eax
je 0x10126fb9
xor edi, edi
mov ebx, 0xffffd050
jmp 0x10126edd
mov ecx, esi
mov edx, 3
push 0
push 1
call fcn.101204a0
add esp, 8
test eax, eax
jne 0x10126ed6
movzx edi, bl
test byte [esi + 0x1d], 4
jne 0x10126feb
push dword [esi + 0x168]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
lea eax, [ebp - 0x14]
mov ecx, esi
mov edx, edi
push eax
call fcn.10126690
add esp, 4
mov edi, eax
test byte [esi + 0x1d], 4
jne 0x10127011
push dword [esi + 0x168]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
test edi, edi
je 0x1012708f
mov edi, dword [ebp - 0x14]
mov eax, dword [0x101de200]
cmp edi, 0x100
jne 0x101270f6
test eax, eax
je 0x10127199
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1012714e
push 0
push dword [eax + 0x28]
jmp 0x10126ef6
bt eax, 0xa
jb 0x10127063
push dword [esi + 0x168]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
push esi
call fcn.100fcc50
add esp, 4
mov edi, eax
test byte [esi + 0x1d], 4
jne 0x10127082
push dword [esi + 0x168]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
test edi, edi
jne 0x10126f01
jmp 0x10126f96
mov ecx, esi
mov edx, 3
push 0
push 2
call fcn.101204a0
add esp, 8
test eax, eax
jne 0x10126ea6
lea eax, [esi + 0x5d4]
mov edx, dword [esi + 0x5d0]
xor ebx, ebx
mov ecx, esi
push eax
push ebx
push str.res_master
push ebx
call fcn.10126540
add esp, 0x10
mov edi, eax
push dword [esi + 0x5d0]
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
mov dword [esi + 0x5d0], ebx
test edi, edi
jne 0x10126efe
mov ecx, esi
call fcn.101271c0
mov edi, eax
jmp 0x10126f01
test eax, eax
je 0x101271a3
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10127169
push 0
push dword [eax + 0x28]
call sym.nss3.dll_PR_SetError
add esp, 8
cmp dword [0x101de200], 0
je 0x101271ad
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10127181
mov ebx, dword [eax + 0x28]
push edi
push 2
push esi
call fcn.100fa900
add esp, 0xc
push 0
jmp 0x10126ef5
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x10127045
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x1012710e
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x10127138
call fcn.100745e0
jmp 0x10127031
call fcn.100745e0
jmp 0x101270fe
call fcn.100745e0
jmp 0x10127128