Function at 0x1017d590
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, dword [ebp + 0x10]
push dword [0x101d6710]
push dword [ebp + 8]
call sym.nss3.dll_PR_GetIdentitiesLayer
add esp, 8
test eax, eax
je 0x1017d613
mov ebx, dword [eax + 4]
test esi, esi
mov dword [ebx], eax
je 0x1017d651
test ebx, ebx
je 0x1017d647
mov eax, dword [ebx + 0x1c]
bt eax, 0xa
jb 0x1017d5dd
push dword [ebx + 0x16c]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
mov eax, dword [ebx + 0x1c]
mov edi, dword [ebp + 0xc]
bt eax, 0xa
jb 0x1017d5f4
push dword [ebx + 0x170]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
dec edi
lea ecx, [ebx + 0x1c]
cmp edi, 0x28
ja case.0x1017d605.4
xor esi, esi
xor edx, edx
jmp dword [edi*4 + 0x101ab338]
mov edx, dword [ecx]
jmp 0x1017d7b1
cmp dword [0x101d4d40], 0
je 0x1017d85f
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1017d826
xor ecx, ecx
test esi, esi
mov dword [eax + 0x28], 0xffffe891
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
je 0x1017d651
mov dword [esi], 0
xor esi, esi
jmp 0x1017d683
cmp dword [0x101d4d40], 0
je 0x1017d869
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1017d83a
xor ecx, ecx
xor esi, esi
mov dword [eax + 0x28], 0xffffe005
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
dec esi
jmp 0x1017d7ee
movzx edx, word [ebx + 0x14]
jmp case.0x1017d605.2
mov edx, dword [ebx + 0x20]
jmp 0x1017d737
mov edx, dword [ecx]
shr edx, 0x16
jmp 0x1017d7b1
mov edx, dword [ebx + 0x20]
jmp 0x1017d7b1
mov edx, dword [ecx]
shr edx, 0x1e
jmp 0x1017d7b1
mov edx, dword [ecx]
shr edx, 0x15
jmp 0x1017d7b1
mov edx, dword [ecx]
shr edx, 0xf
jmp 0x1017d7b1
mov edx, dword [ecx]
shr edx, 0xa
jmp 0x1017d7b1
mov edx, dword [ecx]
shr edx, 0x1b
jmp 0x1017d7b1
mov edx, dword [ecx]
shr edx, 0xc
jmp 0x1017d7b1
mov edx, dword [ecx]
shr edx, 0x10
jmp 0x1017d7b1
mov edx, dword [ecx]
shr edx, 0x14
jmp 0x1017d7b1
mov edx, dword [ecx]
shr edx, 0x17
jmp 0x1017d7b1
mov edx, dword [ecx]
shr edx, 6
jmp 0x1017d7b1
mov edx, dword [ecx]
shr edx, 0x12
jmp 0x1017d7b1
mov edx, dword [ecx]
shr edx, 8
jmp 0x1017d7b1
mov edx, dword [ecx]
shr edx, 0x18
jmp 0x1017d7b1
mov edx, dword [ecx]
shr edx, 0x1a
jmp 0x1017d7b1
mov edx, dword [ecx]
shr edx, 2
jmp 0x1017d7b1
movzx eax, word [ebx + 0x24]
xor edx, edx
cmp eax, 0x300
sete dl
jmp case.0x1017d605.2
mov edx, dword [ecx]
shr edx, 0x11
jmp 0x1017d7b1
mov edx, dword [ecx]
shr edx, 5
jmp 0x1017d7b1
mov edx, dword [ecx]
shr edx, 0xd
jmp 0x1017d766
mov edx, dword [ecx]
shr edx, 3
and edx, 3
jmp case.0x1017d605.2
mov edx, dword [ecx]
shr edx, 0x1f
jmp case.0x1017d605.2
mov edx, dword [ecx]
shr edx, 0x13
jmp 0x1017d7b1
mov edx, dword [ecx]
shr edx, 0x19
jmp 0x1017d7b1
mov edx, dword [ecx]
shr edx, 7
jmp 0x1017d7b1
mov edx, dword [ecx]
shr edx, 0x1c
jmp 0x1017d7b1
movzx eax, word [ebx + 0x26]
xor edx, edx
cmp eax, 0x300
seta dl
jmp case.0x1017d605.2
mov edx, dword [ecx]
shr edx, 9
jmp 0x1017d7b1
mov edx, dword [ecx]
shr edx, 0xb
jmp 0x1017d7b1
mov edx, dword [ecx]
shr edx, 0x1d
and edx, 1
mov eax, dword [ecx]
bt eax, 0xa
jb 0x1017d7d1
push dword [ebx + 0x170]
mov edi, edx
call sym.nss3.dll_PR_ExitMonitor
mov edx, edi
add esp, 4
mov eax, dword [ebx + 0x1c]
bt eax, 0xa
jb 0x1017d7e9
push dword [ebx + 0x16c]
mov edi, edx
call sym.nss3.dll_PR_ExitMonitor
mov edx, edi
add esp, 4
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [0x101d4d40], 0
mov edi, ecx
je 0x1017d873
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1017d84e
xor edx, edx
xor esi, esi
mov ecx, edi
mov dword [eax + 0x28], 0xffffe005
dec esi
mov dword [eax + 0x2c], edx
mov dword [eax + 0x30], edx
jmp case.0x1017d605.2
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
jmp 0x1017d634
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
jmp 0x1017d672
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
jmp 0x1017d810
call sym.nss3.dll_PR_Init
jmp 0x1017d620
call sym.nss3.dll_PR_Init
jmp 0x1017d65e
call sym.nss3.dll_PR_Init
jmp 0x1017d800