Function at 0x100831e0
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 [0x101db014]
xor eax, ebp
mov dword [esp + 0x130], eax
test esi, esi
je 0x1008322a
cmp byte [esi], 0
je 0x1008322a
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x148]
test edi, edi
je 0x10083254
push dword [edi + 4]
push esi
call sym.nss3.dll_PL_strcasecmp
add esp, 8
test eax, eax
je 0x10083293
mov edi, dword [edi]
jmp 0x10083212
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.1014dc80
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea edi, [esp + 0x24]
mov dword [edi + 4], 0
push edi
push 0x53
mov eax, dword [ebp + 8]
push dword [eax + 0x114]
call fcn.10085020
add esp, 0xc
xor edx, edx
test eax, eax
je 0x10083297
push 0
push 0xffffe023
mov ebx, edx
call sym.nss3.dll_PR_SetError
mov edx, ebx
add esp, 8
xor ebx, ebx
jmp 0x10083585
xor edi, edi
jmp 0x1008323c
lea eax, [esp + 0xc0]
push eax
push esi
call sym.nss3.dll_PR_StringToNetAddr
add esp, 8
mov ebx, eax
push 0x800
call sym.nss3.dll_PORT_NewArena_Util
add esp, 4
mov edx, eax
mov dword [esp + 0x18], 0
test eax, eax
mov dword [esp + 4], eax
je 0x10083551
push edi
push edx
call sym.nss3.dll_CERT_DecodeAltNameExtension
mov edx, dword [esp + 0xc]
add esp, 8
mov dword [esp + 0x10], 0
test eax, eax
je 0x10083559
mov ecx, eax
mov dword [esp + 0x1c], 0x80
lea eax, [esp + 0x40]
mov dword [esp + 0x14], eax
mov edi, ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x20], ebx
mov eax, dword [edi]
cmp eax, 8
je 0x100833f3
cmp eax, 3
jne 0x1008345b
test ebx, ebx
je 0x10083453
mov eax, dword [edi + 8]
mov esi, dword [edi + 0xc]
mov dword [esp + 0x30], 1
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
lea ebx, [esp + 0x30]
push ebx
mov ebx, esi
push esi
push eax
call fcn.100805a0
add esp, 0xc
test eax, eax
je 0x10083435
cmp dword [0x101de200], 0
mov esi, dword [ebp + 0xc]
je 0x10083547
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1008352a
cmp dword [eax + 0x28], 0xffffe003
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0xc]
jne 0x10083453
mov esi, ebx
lea ebx, [ebx + ebx*2]
add ebx, 3
push ebx
push edx
call sym.nss3.dll_PORT_ArenaAlloc_Util
add esp, 8
test eax, eax
je 0x10083679
mov ecx, dword [edi + 8]
mov dword [esp + 8], ecx
mov dword [esp + 0x30], 1
mov dword [esp + 0x14], eax
mov ecx, eax
mov dword [esp + 0x1c], ebx
mov edx, ebx
lea ebx, [esp + 0x30]
push ebx
push esi
push dword [esp + 0x10]
call fcn.100805a0
add esp, 0xc
test eax, eax
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0xc]
mov esi, dword [ebp + 0xc]
jne 0x10083453
jmp 0x10083438
test ebx, ebx
je 0x100833fd
inc dword [esp + 0x10]
jmp 0x1008345b
mov eax, dword [edi + 0xc]
cmp eax, 0x10
je 0x1008346e
cmp eax, 4
jne 0x100833f7
movzx eax, word [esp + 0xc0]
cmp ax, 0x17
je 0x10083494
cmp ax, 2
jne 0x100833f7
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0xc4]
cmp ecx, dword [eax]
mov ecx, dword [esp + 0xc]
jne 0x100833f7
jmp 0x10083672
mov esi, dword [ebp + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, esi
call fcn.10082ff0
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 4]
test eax, eax
je 0x10083672
inc dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
mov edi, dword [edi + 0x28]
add edi, 0xffffffd8
cmp ecx, edi
jne 0x10083317
jmp 0x10083559
movzx eax, word [esp + 0xc0]
cmp ax, 2
je 0x100834de
cmp ax, 0x17
jne 0x100833f7
mov eax, dword [edi + 8]
movdqu xmm0, xmmword [esp + 0xc8]
jmp 0x1008350e
mov eax, dword [edi + 8]
mov eax, dword [eax]
bswap eax
push eax
call sub.wsock32.dll_htonl
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 4]
mov dword [esp + 8], eax
mov eax, ebx
xor ebx, ebx
mov dword [esp + 0x34], ebx
xor ebx, ebx
mov dword [esp + 0x30], ebx
mov ebx, eax
mov dword [esp + 0x38], 0xffff0000
mov eax, dword [esp + 8]
mov dword [esp + 0x3c], eax
movdqu xmm0, xmmword [esp + 0xc8]
movdqu xmm1, xmmword [esp + 0x30]
jmp 0x10083512
mov eax, dword [esp + 0xc4]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 0x34], eax
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], 0xffff0000
mov eax, dword [esp + 8]
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 8]
movdqu xmm0, xmmword [esp + 0x30]
movdqu xmm1, xmmword [eax]
pcmpeqb xmm1, xmm0
pmovmskb eax, xmm1
cmp eax, 0xffff
jne 0x100833f7
jmp 0x10083672
sub esp, 0x10
movdqa xmm0, xmmword [0x1019c190]
movdqu xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x10083386
call fcn.100745e0
jmp 0x10083372
mov dword [esp + 0x10], 0
test ebx, ebx
je 0x10083617
cmp dword [esp + 0x18], 0
je 0x10083622
push 0
push 0xffffd00c
call sym.nss3.dll_PR_SetError
mov edx, dword [esp + 0xc]
add esp, 8
xor ebx, ebx
lea edi, [esp + 0x24]
test edx, edx
je 0x10083594
push 0
push edx
call sym.nss3.dll_PORT_FreeArena_Util
add esp, 8
cmp dword [esp + 0x28], 0
je 0x100835a6
push 0
push edi
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
xor edi, edi
test bl, bl
jne 0x1008323c
cmp dword [0x101de200], 0
je 0x100836a2
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10083685
xor edi, edi
dec edi
cmp dword [eax + 0x28], 0xffffe023
jne 0x1008323c
mov eax, dword [ebp + 8]
add eax, 0xcc
push eax
call sym.nss3.dll_CERT_GetCommonName
add esp, 4
test eax, eax
je 0x1008362b
mov ebx, eax
lea eax, [esp + 0x40]
push eax
push esi
call sym.nss3.dll_PR_StringToNetAddr
add esp, 8
test eax, eax
je 0x1008363f
mov ecx, ebx
mov edx, esi
call fcn.10082ff0
mov edi, eax
jmp 0x10083663
cmp dword [esp + 0x10], 0
jne 0x1008356c
lea edi, [esp + 0x24]
jmp 0x10083279
push 0
push 0xffffd00c
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x1008323c
push ebx
push esi
call sym.nss3.dll_PL_strcasecmp
add esp, 8
test eax, eax
je 0x10083661
push 0
push 0xffffd00c
call sym.nss3.dll_PR_SetError
add esp, 8
xor edi, edi
dec edi
jmp 0x10083663
xor edi, edi
push ebx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x1008323c
mov bl, 1
jmp 0x10083581
mov edx, dword [esp + 4]
mov esi, dword [ebp + 0xc]
jmp 0x10083561
sub esp, 0x10
movdqa xmm0, xmmword [0x1019c190]
movdqu xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x100835d1
call fcn.100745e0
jmp 0x100835bd