Function at 0x1011d790
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, dword [ebp + 8]
mov edi, dword [esi + 0xc4]
push 0x29
push esi
call fcn.10104970
add esp, 8
test eax, eax
je 0x1011d800
mov eax, dword [esi + 0xa1c]
lea ebx, [esi + 0x718]
cmp dword [eax + 0x10], 1
jne 0x1011d82d
cmp dword [ebx], 0
je 0x1011da60
mov dword [ebp - 0x10], ebx
mov ecx, dword [esi + 0x494]
lea edx, [ecx + 0x10]
add eax, 0x20
test ecx, ecx
cmovne eax, edx
mov ebx, dword [eax]
movzx eax, word [edi + 0x9a]
push eax
call fcn.100f2660
add esp, 4
test eax, eax
je 0x1011da8e
mov eax, dword [eax + 0x10]
jmp 0x1011da90
mov eax, dword [esi + 0x5dc]
test eax, eax
je 0x1011d81d
push eax
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
mov dword [esi + 0x5dc], 0
xor eax, eax
mov dword [esi + 0x718], eax
mov dword [esi + 0xa1c], eax
jmp 0x1011d833
mov dword [ebx], 0
lea ebx, [esi + 0x718]
lea ecx, [esi + 0x634]
mov edx, dword [esi + 0x48c]
movups xmm0, xmmword [edx]
movups xmmword [esi + 0x634], xmm0
movsd xmm0, qword [edx + 0x10]
movsd qword [esi + 0x644], xmm0
mov dword [esi + 0x48c], ecx
test eax, eax
je 0x1011d8da
mov dword [esi + 0x640], 9
cmp dword [esi + 0x718], 0
je 0x1011d906
mov dword [ebp - 0x10], ebx
mov eax, dword [edi + 0x60]
mov dword [esi + 0x80], eax
mov eax, dword [edi + 0x64]
mov dword [esi + 0x84], eax
push dword [edi + 0x70]
call fcn.10113560
add esp, 4
mov dword [esi + 0x98], eax
mov eax, dword [edi + 0x74]
mov dword [esi + 0x88], eax
mov ebx, dword [edi + 0x18]
test ebx, ebx
je 0x1011d8c7
push ebx
call fcn.1009a930
add esp, 4
test eax, eax
je 0x1011d8c4
lock inc dword [eax + 4]
mov dword [esi + 0x78], ebx
lock inc dword [0x101f39f4]
lock inc dword [0x101f3a10]
mov ebx, dword [ebp - 0x10]
jmp 0x1011d910
cmp dword [ebx], 0
je 0x1011d8f5
push 0x29
push esi
call fcn.101049b0
add esp, 8
test eax, eax
je 0x1011d8f5
lock inc dword [0x101f39f8]
cmp dword [edi + 4], 1
jne 0x1011d910
push esi
call fcn.1010d0e0
add esp, 4
jmp 0x1011d910
mov dword [esi + 0x80], 9
push edi
call fcn.1010bf40
add esp, 4
push 0
push esi
call fcn.100f7540
add esp, 8
mov dword [esi + 0xc4], eax
test eax, eax
je 0x1011d9db
mov edi, eax
cmp dword [ebx], 0
mov dword [ebp - 0x10], ebx
je 0x1011d957
mov ebx, dword [esi + 0x78]
test ebx, ebx
je 0x1011d954
push ebx
call fcn.1009a930
add esp, 4
test eax, eax
je 0x1011d954
lock inc dword [eax + 4]
mov dword [edi + 0x18], ebx
movzx eax, word [esi + 0x58]
mov word [edi + 0x4a], ax
lea eax, [esi + 0x9d4]
mov edi, dword [esi + 0x9d4]
cmp edi, eax
je 0x1011da42
push dword [edi + 8]
push esi
call fcn.101155e0
add esp, 8
test eax, eax
je 0x1011da57
mov ebx, eax
lea eax, [esi + 0x5e4]
mov ecx, esi
mov edx, edi
push eax
push dword [ebx + 0xc]
call fcn.101194f0
add esp, 8
xor ecx, ecx
dec ecx
test eax, eax
jne 0x1011dacd
mov eax, dword [edi + 8]
mov dword [esi + 0x94], eax
mov eax, dword [eax + 8]
cmp eax, 2
je 0x1011dad7
cmp eax, 4
jne 0x1011daf5
xor ecx, ecx
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0
sete cl
xor ecx, 5
jmp 0x1011dae9
cmp dword [0x101f2f50], 0
je 0x1011dbc0
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1011db8a
push 0
push dword [eax + 0x28]
call sym.nss3.dll_PR_SetError
add esp, 8
cmp dword [0x101f2f50], 0
je 0x1011dbca
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1011dba5
mov edi, dword [eax + 0x28]
push 0x50
push 2
push esi
call fcn.100f2eb0
add esp, 0xc
push 0
push edi
jmp 0x1011dac2
xor edi, edi
mov ebx, 0xffffd08b
push edi
push ebx
call sym.nss3.dll_PR_SetError
add esp, 8
push 0x6d
jmp 0x1011dab5
xor edi, edi
mov ebx, 0xffffd08a
jmp 0x1011daa9
lea eax, [esi + 0x634]
mov ecx, dword [esi + 0x48c]
movups xmm0, xmmword [ecx]
movups xmmword [esi + 0x634], xmm0
movsd xmm0, qword [ecx + 0x10]
movsd qword [esi + 0x644], xmm0
mov dword [esi + 0x48c], eax
jmp 0x1011d866
xor eax, eax
cmp ebx, eax
jne 0x1011daa2
mov eax, dword [esi + 0xa1c]
mov ebx, dword [ebp - 0x10]
jmp 0x1011d839
xor edi, edi
mov ebx, 0xffffd01d
push edi
push ebx
call sym.nss3.dll_PR_SetError
add esp, 8
push 0x2f
push 2
push esi
call fcn.100f2eb0
add esp, 0xc
push edi
push ebx
call sym.nss3.dll_PR_SetError
add esp, 8
xor ecx, ecx
dec ecx
mov eax, ecx
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
xor ecx, ecx
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0
setne cl
lea ecx, [ecx*4 + 2]
mov dword [esi + 0x638], ecx
mov dword [esi + 0x8c], eax
mov eax, dword [ebx + 0xc]
push dword [eax + 4]
call fcn.1008d800
add esp, 4
mov dword [esi + 0x90], eax
mov ecx, esi
call fcn.1011dbe0
test eax, eax
jne 0x1011daca
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.10123a50
add esp, 0x10
test eax, eax
jne 0x1011daca
mov ecx, esi
call fcn.1011dd30
test eax, eax
jne 0x1011daca
cmp dword [esi + 0x60c], 1
jne 0x1011db4a
push 0
push 2
push esi
call fcn.10118b30
add esp, 0xc
mov ecx, esi
mov edx, 2
push 0
push 1
call fcn.10119920
add esp, 8
test eax, eax
je 0x1011db79
xor edi, edi
mov ebx, 0xffffd050
push edi
push ebx
call sym.nss3.dll_PR_SetError
add esp, 8
push 0x50
jmp 0x1011dab5
mov dword [esi + 0x450], 0x8f
xor ecx, ecx
jmp 0x1011dacd
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
jmp 0x1011d9fc
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
jmp 0x1011da2a
call fcn.100029d0
jmp 0x1011d9e8
call fcn.100029d0
jmp 0x1011da16