Function at 0x1007ca20
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 [0x101f1014]
xor eax, ebp
mov dword [esp + 0x130], eax
test esi, esi
je 0x1007ca6c
cmp byte [esi], 0
je 0x1007ca6c
mov ebx, dword [ebp + 8]
lea edi, [ebx + 0x148]
mov edi, dword [edi]
test edi, edi
je 0x1007ca96
push dword [edi + 4]
push esi
call sym.nss3.dll_PL_strcasecmp
add esp, 8
test eax, eax
jne 0x1007ca52
xor edi, edi
jmp 0x1007ca7e
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.10157a00
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.1007e8f0
add esp, 0xc
xor edi, edi
test eax, eax
je 0x1007cac4
push 0
push 0xffffe023
jmp 0x1007cd98
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 0x1007cd6b
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 0x1007cd73
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 0x1007cc20
cmp eax, 3
jne 0x1007ccf1
cmp dword [esp + 0x1c], 0
je 0x1007cc7e
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.10079c70
add esp, 0xc
test eax, eax
je 0x1007cc5c
cmp dword [0x101f4f80], 0
mov esi, dword [ebp + 0xc]
je 0x1007cd61
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1007cd44
cmp dword [eax + 0x28], 0xffffe003
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
jne 0x1007cc7e
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 0x1007ce92
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.10079c70
add esp, 0xc
test eax, eax
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
jne 0x1007cc7e
jmp 0x1007cc63
cmp dword [esp + 0x1c], 0
jne 0x1007cced
mov dword [esp + 4], ecx
mov ecx, dword [ebx + 0xc]
movzx eax, word [esp + 0xc0]
cmp ecx, 4
jne 0x1007cc88
cmp ax, 2
jne 0x1007cc88
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0xc4]
cmp ecx, dword [eax]
jne 0x1007cce9
jmp 0x1007ce80
mov ecx, dword [esp + 4]
mov esi, dword [ebp + 0xc]
mov edi, ecx
mov ecx, dword [esp + 0x14]
mov edx, esi
call fcn.1007c830
mov ecx, edi
mov edx, dword [esp + 8]
test eax, eax
je 0x1007ce87
inc dword [esp + 0x18]
mov edi, dword [esp + 0xc]
jmp 0x1007ccf1
cmp ecx, 0x10
jne 0x1007cca1
cmp ax, 0x17
jne 0x1007cca1
mov eax, dword [ebx + 8]
movdqu xmm0, xmmword [esp + 0xc8]
jmp 0x1007ccd2
cmp ecx, 0x10
jne 0x1007cd01
cmp ax, 2
jne 0x1007cd01
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 0x1007ce80
mov ecx, dword [esp + 4]
inc dword [esp + 0x10]
mov ebx, dword [ebx + 0x28]
add ebx, 0xffffffd8
cmp ebx, edx
jne 0x1007cb3f
jmp 0x1007cd73
cmp ecx, 4
jne 0x1007cce9
cmp ax, 0x17
jne 0x1007cce9
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 0x1007ccd6
sub esp, 0x10
movdqa xmm0, xmmword [0x101b11e0]
movdqu xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
jmp 0x1007cbb3
call fcn.1001b2e0
jmp 0x1007cb9f
mov dword [esp + 0x10], 0
cmp dword [esp + 0x1c], 0
je 0x1007cd86
cmp dword [esp + 0x18], 0
jne 0x1007cd91
jmp 0x1007cab8
cmp dword [esp + 0x10], 0
je 0x1007cab8
push 0
push 0xffffd00c
call sym.nss3.dll_PR_SetError
add esp, 8
xor ebx, ebx
test edi, edi
je 0x1007cdb1
push 0
push edi
call sym.nss3.dll_PORT_FreeArena_Util
add esp, 8
cmp dword [esp + 0x28], 0
je 0x1007cdc7
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 0x1007ca7e
cmp dword [0x101f4f80], 0
je 0x1007ceb8
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
mov ebx, dword [ebp + 8]
je 0x1007ce9b
xor edi, edi
dec edi
cmp dword [eax + 0x28], 0xffffe023
jne 0x1007ca7e
add ebx, 0xcc
push ebx
call sym.nss3.dll_CERT_GetCommonName
add esp, 4
test eax, eax
je 0x1007ce39
mov ebx, eax
lea eax, [esp + 0x40]
push eax
push esi
call sym.nss3.dll_PR_StringToNetAddr
add esp, 8
test eax, eax
je 0x1007ce4d
mov ecx, ebx
mov edx, esi
call fcn.1007c830
mov edi, eax
jmp 0x1007ce71
push 0
push 0xffffd00c
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x1007ca7e
push ebx
push esi
call sym.nss3.dll_PL_strcasecmp
add esp, 8
test eax, eax
je 0x1007ce6f
push 0
push 0xffffd00c
call sym.nss3.dll_PR_SetError
add esp, 8
xor edi, edi
dec edi
jmp 0x1007ce71
xor edi, edi
push ebx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x1007ca7e
mov bl, 1
jmp 0x1007cda2
mov bl, 1
mov edi, dword [esp + 0xc]
jmp 0x1007cda2
mov edi, dword [esp + 0xc]
jmp 0x1007cd7a
sub esp, 0x10
movdqa xmm0, xmmword [0x101b11e0]
movdqu xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
jmp 0x1007cdf5
call fcn.1001b2e0
jmp 0x1007cdde