Function at 0x10179f40
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [ebp + 8]
test byte [esi + 0x180], 1
jne 0x10179f69
mov ebx, dword [ebp + 0x14]
test ebx, 0xfffffffd
je 0x10179f85
push 0
push 0xffffe89d
jmp 0x10179f70
push 0
push 0xffffe8d7
call sym.nss3.dll_PR_SetError
add esp, 8
xor edi, edi
dec edi
mov eax, edi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 0xc]
push esi
call fcn.10180570
add esp, 4
test eax, eax
jne 0x1017a04d
mov eax, dword [esi + 0x1c]
bt eax, 8
jb 0x1017a04d
bt eax, 0xa
jb 0x10179fc0
push dword [esi + 0x168]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
mov eax, dword [esi + 0x1fc]
test eax, eax
je 0x1017a039
push 0
push eax
push dword [esi + 0x1f8]
push esi
call fcn.10175700
add esp, 0x10
test eax, eax
js 0x1017a00b
mov ecx, dword [esi + 0x1fc]
sub ecx, eax
test eax, eax
mov dword [esi + 0x1fc], ecx
je 0x1017a039
test ecx, ecx
je 0x1017a039
mov edx, dword [esi + 0x1f8]
add eax, edx
push ecx
push eax
push edx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
jmp 0x1017a039
cmp dword [0x101d4d40], 0
je 0x1017a2dd
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1017a2ab
cmp dword [eax + 0x28], 0xffffe892
jne 0x1017a249
test byte [esi + 0x1d], 4
jne 0x1017a04d
push dword [esi + 0x168]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
lea eax, [esi + 0x60c]
cmp dword [esi + 0x60c], eax
je 0x1017a067
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.1018a180
cmp dword [esi + 0x38], 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
je 0x1017a089
xor edx, edx
mov ecx, esi
inc edx
call fcn.1017a300
test eax, eax
je 0x1017a0e3
xor edi, edi
dec edi
jmp 0x1017a1cd
test byte [esi + 0x1d], 4
jne 0x1017a09d
push dword [esi + 0x16c]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
mov ecx, dword [esi + 0xcc]
test ecx, ecx
je 0x1017a0c5
call dword [section..00cfg]
push esi
call ecx
add esp, 4
mov edi, eax
test eax, eax
jne 0x1017a0c7
mov ecx, dword [esi + 0xcc]
test ecx, ecx
jne 0x1017a0a7
jmp 0x1017a0c7
xor edi, edi
test byte [esi + 0x1d], 4
jne 0x1017a0db
push dword [esi + 0x16c]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
test edi, edi
js 0x1017a1cd
cmp dword [ebp - 0x10], 0
je 0x1017a21a
mov eax, dword [esi + 0x1c]
bt eax, 0xa
jb 0x1017a107
push dword [esi + 0x16c]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
mov eax, dword [esi + 0x1c]
bt eax, 0xa
jb 0x1017a11b
push dword [esi + 0x164]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
mov eax, dword [esi + 0x1a4]
mov edi, dword [esi + 0x1a8]
sub edi, eax
je 0x1017a169
cmp edi, dword [ebp - 0x10]
jle 0x1017a221
cmp dword [esi + 0x9f8], 1
jne 0x1017a221
add edi, eax
mov dword [esi + 0x1a4], edi
push 0
push 0xffffd085
call sym.nss3.dll_PR_SetError
add esp, 8
xor edi, edi
dec edi
jmp 0x1017a260
cmp dword [esi + 0x190], 0
jne 0x1017a1b0
push 0
push esi
call fcn.10173560
add esp, 8
test eax, eax
jg 0x1017a160
mov edi, eax
test eax, eax
je 0x1017a25e
cmp dword [0x101d4d40], 0
je 0x1017a2e7
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1017a2bf
cmp dword [eax + 0x28], 0xffffe892
jne 0x1017a260
mov eax, dword [esi + 0x1a4]
mov edi, dword [esi + 0x1a8]
sub edi, eax
jne 0x1017a12b
push 0
push 0xffffe892
jmp 0x1017a150
cmp dword [0x101d4d40], 0
je 0x1017a2d3
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1017a297
cmp dword [eax + 0x28], 0xffffe892
jne 0x10179f7b
mov eax, dword [ebp - 0x18]
cmp dword [eax], eax
je 0x10179f7b
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push esi
call fcn.1018a180
add esp, 0x18
jmp 0x10179f80
xor edi, edi
jmp 0x10179f7b
mov ecx, dword [ebp - 0x10]
cmp edi, ecx
cmovg edi, ecx
add eax, dword [esi + 0x18c]
push edi
push eax
push dword [ebp - 0x14]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
test bl, 2
jne 0x1017a260
add dword [esi + 0x1a4], edi
jmp 0x1017a260
xor edi, edi
dec edi
test byte [esi + 0x1d], 4
jne 0x10179f7b
push dword [esi + 0x168]
jmp 0x1017a28a
xor edi, edi
mov eax, dword [esi + 0x1c]
bt eax, 0xa
jb 0x1017a27a
push dword [esi + 0x164]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
mov eax, dword [esi + 0x1c]
bt eax, 0xa
jb 0x10179f7b
push dword [esi + 0x16c]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
jmp 0x10179f7b
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
jmp 0x1017a1ee
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
jmp 0x1017a02c
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
jmp 0x1017a1a3
call sym.nss3.dll_PR_Init
jmp 0x1017a1da
call sym.nss3.dll_PR_Init
jmp 0x1017a018
call sym.nss3.dll_PR_Init
jmp 0x1017a18f