Function at 0x1007b480
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x138
mov esi, dword [ebp + 0xc]
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [esp + 0x130], eax
test esi, esi
je 0x1007b4cc
cmp byte [esi], 0
je 0x1007b4cc
mov ebx, dword [ebp + 8]
lea edi, [ebx + 0x148]
mov edi, dword [edi]
test edi, edi
je 0x1007b4f6
push dword [edi + 4]
push esi
call sym.nss3.dll_PL_strcasecmp
add esp, 8
test eax, eax
jne 0x1007b4b2
xor edi, edi
jmp 0x1007b4de
push 0
push 0xffffe005
call sym.nss3.dll_PR_SetError
add esp, 8
xor edi, edi
dec edi
mov ecx, dword [esp + 0x130]
xor ecx, ebp
call fcn.10156ff0
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 0x24]
mov dword [eax + 4], 0
push eax
push 0x53
push dword [ebx + 0x114]
call fcn.1007d350
add esp, 0xc
xor edi, edi
test eax, eax
je 0x1007b524
push 0
push 0xffffe023
jmp 0x1007b7f8
lea eax, [esp + 0xc0]
push eax
push esi
call sym.nss3.dll_PR_StringToNetAddr
add esp, 8
mov dword [esp + 0x1c], eax
push 0x800
call sym.nss3.dll_PORT_NewArena_Util
add esp, 4
mov edi, eax
mov dword [esp + 0x18], 0
test eax, eax
je 0x1007b7cb
lea eax, [esp + 0x24]
push eax
push edi
call sym.nss3.dll_CERT_DecodeAltNameExtension
add esp, 8
mov dword [esp + 0x10], 0
test eax, eax
je 0x1007b7d3
mov edx, eax
mov ecx, 0x80
lea eax, [esp + 0x40]
mov dword [esp + 0x14], eax
mov ebx, edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], edx
mov dword [esp + 0xc], edi
mov eax, dword [ebx]
cmp eax, 8
je 0x1007b680
cmp eax, 3
jne 0x1007b751
cmp dword [esp + 0x1c], 0
je 0x1007b6de
mov eax, dword [ebx + 8]
mov esi, dword [ebx + 0xc]
mov dword [esp + 0x30], 1
mov edx, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 4], edx
lea edi, [esp + 0x30]
push edi
mov edi, esi
push esi
push eax
call fcn.100786d0
add esp, 0xc
test eax, eax
je 0x1007b6bc
cmp dword [0x101f2f50], 0
mov esi, dword [ebp + 0xc]
je 0x1007b7c1
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1007b7a4
cmp dword [eax + 0x28], 0xffffe003
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
jne 0x1007b6de
lea eax, [edi + edi*2]
add eax, 3
mov dword [esp + 4], eax
push eax
push dword [esp + 0x10]
call sym.nss3.dll_PORT_ArenaAlloc_Util
add esp, 8
test eax, eax
je 0x1007b8f2
mov ecx, dword [ebx + 8]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x30], 1
mov dword [esp + 0x14], eax
mov ecx, eax
mov edx, dword [esp + 4]
lea eax, [esp + 0x30]
push eax
push edi
push dword [esp + 0x28]
call fcn.100786d0
add esp, 0xc
test eax, eax
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
jne 0x1007b6de
jmp 0x1007b6c3
cmp dword [esp + 0x1c], 0
jne 0x1007b74d
mov dword [esp + 4], ecx
mov ecx, dword [ebx + 0xc]
movzx eax, word [esp + 0xc0]
cmp ecx, 4
jne 0x1007b6e8
cmp ax, 2
jne 0x1007b6e8
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0xc4]
cmp ecx, dword [eax]
jne 0x1007b749
jmp 0x1007b8e0
mov ecx, dword [esp + 4]
mov esi, dword [ebp + 0xc]
mov edi, ecx
mov ecx, dword [esp + 0x14]
mov edx, esi
call fcn.1007b290
mov ecx, edi
mov edx, dword [esp + 8]
test eax, eax
je 0x1007b8e7
inc dword [esp + 0x18]
mov edi, dword [esp + 0xc]
jmp 0x1007b751
cmp ecx, 0x10
jne 0x1007b701
cmp ax, 0x17
jne 0x1007b701
mov eax, dword [ebx + 8]
movdqu xmm0, xmmword [esp + 0xc8]
jmp 0x1007b732
cmp ecx, 0x10
jne 0x1007b761
cmp ax, 2
jne 0x1007b761
mov eax, dword [esp + 0xc4]
xor ecx, ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], 0xffff0000
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 8]
movdqu xmm0, xmmword [esp + 0x30]
movdqu xmm1, xmmword [eax]
pcmpeqb xmm1, xmm0
pmovmskb eax, xmm1
cmp eax, 0xffff
je 0x1007b8e0
mov ecx, dword [esp + 4]
inc dword [esp + 0x10]
mov ebx, dword [ebx + 0x28]
add ebx, 0xffffffd8
cmp ebx, edx
jne 0x1007b59f
jmp 0x1007b7d3
cmp ecx, 4
jne 0x1007b749
cmp ax, 0x17
jne 0x1007b749
mov eax, dword [ebx + 8]
mov eax, dword [eax]
bswap eax
push eax
call sub.wsock32.dll_htonl
mov edx, dword [esp + 8]
xor ecx, ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], 0xffff0000
mov dword [esp + 0x3c], eax
movdqu xmm0, xmmword [esp + 0xc8]
movdqu xmm1, xmmword [esp + 0x30]
jmp 0x1007b736
sub esp, 0x10
movdqa xmm0, xmmword [0x101af1a0]
movdqu xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
jmp 0x1007b613
call fcn.100029d0
jmp 0x1007b5ff
mov dword [esp + 0x10], 0
cmp dword [esp + 0x1c], 0
je 0x1007b7e6
cmp dword [esp + 0x18], 0
jne 0x1007b7f1
jmp 0x1007b518
cmp dword [esp + 0x10], 0
je 0x1007b518
push 0
push 0xffffd00c
call sym.nss3.dll_PR_SetError
add esp, 8
xor ebx, ebx
test edi, edi
je 0x1007b811
push 0
push edi
call sym.nss3.dll_PORT_FreeArena_Util
add esp, 8
cmp dword [esp + 0x28], 0
je 0x1007b827
push 0
lea eax, [esp + 0x28]
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
xor edi, edi
test bl, bl
jne 0x1007b4de
cmp dword [0x101f2f50], 0
je 0x1007b918
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
mov ebx, dword [ebp + 8]
je 0x1007b8fb
xor edi, edi
dec edi
cmp dword [eax + 0x28], 0xffffe023
jne 0x1007b4de
add ebx, 0xcc
push ebx
call sym.nss3.dll_CERT_GetCommonName
add esp, 4
test eax, eax
je 0x1007b899
mov ebx, eax
lea eax, [esp + 0x40]
push eax
push esi
call sym.nss3.dll_PR_StringToNetAddr
add esp, 8
test eax, eax
je 0x1007b8ad
mov ecx, ebx
mov edx, esi
call fcn.1007b290
mov edi, eax
jmp 0x1007b8d1
push 0
push 0xffffd00c
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x1007b4de
push ebx
push esi
call sym.nss3.dll_PL_strcasecmp
add esp, 8
test eax, eax
je 0x1007b8cf
push 0
push 0xffffd00c
call sym.nss3.dll_PR_SetError
add esp, 8
xor edi, edi
dec edi
jmp 0x1007b8d1
xor edi, edi
push ebx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x1007b4de
mov bl, 1
jmp 0x1007b802
mov bl, 1
mov edi, dword [esp + 0xc]
jmp 0x1007b802
mov edi, dword [esp + 0xc]
jmp 0x1007b7da
sub esp, 0x10
movdqa xmm0, xmmword [0x101af1a0]
movdqu xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
jmp 0x1007b855
call fcn.100029d0
jmp 0x1007b83e