Function at 0x10106880
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xd8
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [esp + 0xd0], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
cmp dword [edi + 0xc4], eax
je 0x101068da
push edi
call fcn.1010d0e0
add esp, 4
push dword [edi + 0xc4]
call fcn.1010bf40
add esp, 4
mov dword [edi + 0xc4], 0
lea ebx, [esp + 8]
push dword [esi + 8]
push ebx
push 0
call sym.nss3.dll_SECITEM_AllocItem_Util
add esp, 0xc
test eax, eax
je 0x1010695e
lea eax, [esp + 0x10]
push dword [eax]
push eax
push dword [eax - 4]
push dword [esi + 8]
push dword [esi + 4]
push edi
call fcn.100f2370
add esp, 0x18
test eax, eax
je 0x10106966
movzx eax, word [edi + 0x58]
xor esi, esi
cmp eax, 0x303
ja 0x10106ffb
cmp dword [0x101f2f50], 0
je 0x10107063
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10107048
cmp dword [eax + 0x28], 0xffffe02d
je 0x10106ffb
push 0x2f
push 2
push edi
call fcn.100f2eb0
add esp, 0xc
jmp 0x10106ff8
xor esi, esi
dec esi
jmp 0x10107006
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
lea eax, [esp + 0x20]
push 0xb0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test esi, esi
je 0x10106de6
lea edi, [esp + 0x14]
lea eax, [esp + 0x18]
lea esi, [esp + 0x1c]
push edi
push eax
push 2
push esi
push dword [ebp + 8]
call fcn.100f2e00
add esp, 0x14
test eax, eax
je 0x101069bc
mov eax, 0xffffe001
jmp 0x10106fe6
mov ecx, dword [esp + 0x1c]
mov edx, ecx
and edx, 0xffffff00
mov eax, 0xffffd01c
cmp edx, 0x100
jne 0x10106fe6
cmp ecx, 0x10a
jne 0x10106de6
push edi
lea eax, [esp + 0x1c]
push eax
push 2
push esi
mov edi, dword [ebp + 8]
push edi
call fcn.100f2e00
add esp, 0x14
test eax, eax
jne 0x101069b2
movzx eax, word [esp + 0x1c]
mov word [esp + 0x24], ax
push eax
push dword [edi + 0xa24]
call fcn.101144f0
add esp, 8
test eax, eax
lea edi, [esp + 0x14]
je 0x10106de6
push edi
lea eax, [esp + 0x1c]
push eax
push 2
push esi
mov eax, dword [ebp + 8]
push eax
call fcn.100f2e00
add esp, 0x14
test eax, eax
jne 0x101069b2
movzx eax, word [esp + 0x1c]
mov word [esp + 0x26], ax
push edi
lea eax, [esp + 0x1c]
push eax
push 1
push esi
push dword [ebp + 8]
call fcn.100f2e00
add esp, 0x14
test eax, eax
jne 0x101069b2
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
push edi
lea eax, [esp + 0x1c]
push eax
push 4
push esi
push dword [ebp + 8]
call fcn.100f2e00
add esp, 0x14
test eax, eax
jne 0x101069b2
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
push edi
lea eax, [esp + 0x1c]
push eax
push 1
push esi
push dword [ebp + 8]
call fcn.100f2e00
add esp, 0x14
test eax, eax
jne 0x101069b2
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
push edi
lea eax, [esp + 0x1c]
push eax
push 4
push esi
push dword [ebp + 8]
call fcn.100f2e00
add esp, 0x14
test eax, eax
jne 0x101069b2
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 4
push esi
push dword [ebp + 8]
call fcn.100f2e00
add esp, 0x14
test eax, eax
jne 0x101069b2
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 4
push esi
push dword [ebp + 8]
call fcn.100f2e00
add esp, 0x14
test eax, eax
jne 0x101069b2
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 1
push esi
push dword [ebp + 8]
call fcn.100f2e00
add esp, 0x14
test eax, eax
jne 0x101069b2
mov eax, dword [esp + 0x28]
add eax, 0xfffffffc
cmp eax, 2
ja 0x10106b78
push dword [esp + 0x1c]
call fcn.10113560
add esp, 4
test eax, eax
je 0x101069b2
cmp dword [eax + 8], 4
jne 0x101069b2
mov dword [esp + 0x40], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 4
push esi
push dword [ebp + 8]
call fcn.100f2e00
add esp, 0x14
test eax, eax
jne 0x101069b2
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 2
push esi
push dword [ebp + 8]
call fcn.100f2e00
add esp, 0x14
test eax, eax
jne 0x101069b2
mov eax, dword [esp + 0x1c]
lea ecx, [eax - 0x31]
cmp ecx, 0xffffffd0
jb 0x101069b2
lea ecx, [esp + 0x4e]
mov word [ecx - 2], ax
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x1c]
push edx
push eax
push ecx
push dword [ebp + 8]
call fcn.100f5900
add esp, 0x14
test eax, eax
jne 0x101069b2
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 1
push esi
push dword [ebp + 8]
call fcn.100f2e00
add esp, 0x14
test eax, eax
jne 0x101069b2
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x84], eax
test eax, eax
je 0x10106c56
cmp eax, 1
jne 0x101069b2
lea eax, [esp + 0x88]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
push ecx
push 2
push eax
push dword [ebp + 8]
call fcn.100f5a30
add esp, 0x14
test eax, eax
jne 0x101069b2
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 4
push esi
push dword [ebp + 8]
call fcn.100f2e00
add esp, 0x14
test eax, eax
jne 0x101069b2
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x9c], eax
mov dword [esp + 0x98], 0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 4
push esi
push dword [ebp + 8]
call fcn.100f2e00
add esp, 0x14
test eax, eax
jne 0x101069b2
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xa4]
or dword [ecx - 0xc], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 2
push ecx
push dword [ebp + 8]
call fcn.100f5a30
add esp, 0x14
test eax, eax
jne 0x101069b2
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 1
push esi
push dword [ebp + 8]
call fcn.100f2e00
add esp, 0x14
test eax, eax
jne 0x101069b2
xor eax, eax
cmp dword [esp + 0x1c], 0
setne al
mov dword [esp + 0x80], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 4
push esi
push dword [ebp + 8]
call fcn.100f5900
add esp, 0x14
test eax, eax
jne 0x101069b2
push dword [esp + 0x1c]
call sub.wsock32.dll_ntohl
lea ecx, [esp + 0xb0]
mov dword [ecx - 0x10], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 1
push ecx
push dword [ebp + 8]
call fcn.100f5a30
add esp, 0x14
test eax, eax
jne 0x101069b2
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 4
push esi
push dword [ebp + 8]
call fcn.100f2e00
add esp, 0x14
test eax, eax
jne 0x101069b2
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xbc], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 4
push esi
push dword [ebp + 8]
call fcn.100f2e00
add esp, 0x14
test eax, eax
jne 0x101069b2
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xc4]
mov dword [ecx - 4], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 2
push ecx
push dword [ebp + 8]
call fcn.100f5a30
add esp, 0x14
or eax, dword [esp + 0x14]
mov eax, 0xffffe001
jne 0x10106fe6
mov dword [esp + 0x20], 1
mov edi, dword [esp + 0x9c]
mov ebx, 0x3baec000
add ebx, dword [esp + 0x98]
adc edi, 0
mov eax, dword [ebp + 8]
push eax
call fcn.10115610
add esp, 4
xor esi, esi
cmp eax, ebx
sbb edx, edi
jge 0x1010701e
push 1
push dword [ebp + 8]
call fcn.100f7540
add esp, 8
xor esi, esi
dec esi
test eax, eax
lea ebx, [esp + 8]
je 0x10106ffb
mov edi, eax
movzx eax, word [esp + 0x24]
mov word [edi + 0x4a], ax
movsd xmm0, qword [esp + 0x98]
movsd qword [edi + 0x50], xmm0
movzx eax, word [esp + 0x26]
mov word [edi + 0x9a], ax
mov eax, dword [esp + 0x28]
mov dword [edi + 0x60], eax
mov eax, dword [esp + 0x2c]
mov dword [edi + 0x64], eax
mov eax, dword [esp + 0x30]
mov dword [edi + 0x68], eax
mov eax, dword [esp + 0x34]
mov dword [edi + 0x6c], eax
mov eax, dword [esp + 0x38]
mov dword [edi + 0x70], eax
mov eax, dword [esp + 0x40]
mov dword [edi + 0x2c], eax
mov eax, dword [esp + 0x3c]
mov dword [edi + 0x74], eax
lea eax, [edi + 0x130]
push dword [ebp + 0xc]
push eax
push 0
call sym.nss3.dll_SECITEM_CopyItem_Util
add esp, 0xc
test eax, eax
jne 0x10106fdb
mov eax, dword [esp + 0xa0]
mov dword [edi + 0x124], eax
mov eax, dword [esp + 0xbc]
mov dword [edi + 0x12c], eax
movzx ecx, word [esp + 0x4c]
cmp ecx, 0x30
ja 0x10106fdb
lea eax, [edi + 0x9d]
lea edx, [esp + 0x4e]
push ecx
push edx
push eax
mov dword [esp + 0x10], ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 4]
mov byte [edi + 0xcd], al
lea ecx, [esp + 0x4e]
mov eax, dword [ecx - 6]
mov dword [edi + 0xd0], eax
mov al, 1
mov byte [edi + 0xea], al
mov byte [edi + 0xce], al
mov al, byte [ecx + 0x32]
mov byte [edi + 0xcf], al
cmp dword [ecx + 0x3e], 0
je 0x10106f41
lea eax, [esp + 0x88]
xor ecx, ecx
push 1
push ecx
push ecx
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x178]
call sym.nss3.dll_CERT_NewTempCertificate
add esp, 0x14
mov dword [edi + 0x18], eax
test eax, eax
je 0x10106fdb
cmp dword [esp + 0xa8], 0
je 0x10106f79
lea ebx, [edi + 0xec]
xor eax, eax
push eax
push ebx
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
lea eax, [esp + 0xa4]
push eax
push ebx
lea ebx, [esp + 0x10]
xor eax, eax
push eax
call sym.nss3.dll_SECITEM_CopyItem_Util
add esp, 0xc
test eax, eax
jne 0x10106fdb
cmp dword [esp + 0xb4], 0
je 0x10106fb3
mov ebx, edi
add ebx, 0x104
xor eax, eax
push eax
push ebx
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
lea eax, [esp + 0xb0]
push eax
push ebx
lea ebx, [esp + 0x10]
xor eax, eax
push eax
call sym.nss3.dll_SECITEM_CopyItem_Util
add esp, 0xc
test eax, eax
jne 0x10106fdb
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10107024
cmp dword [esp + 0xcc], 0
je 0x10107024
lea ecx, [esp + 0xc4]
push ecx
push eax
push 0
call sym.nss3.dll_SECITEM_CopyItem_Util
add esp, 0xc
test eax, eax
je 0x10107024
push edi
call fcn.1010bf40
add esp, 4
jmp 0x10106ffb
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
lock inc dword [0x101f3a18]
xor esi, esi
dec esi
push 0
push ebx
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
mov ecx, dword [esp + 0xd0]
xor ecx, ebp
call fcn.10156ff0
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ebx, [esp + 8]
jmp 0x10106ffb
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x718], 1
mov dword [ecx + 0xc4], edi
mov eax, dword [esp + 0xc0]
mov dword [ecx + 0x9ec], eax
xor esi, esi
jmp 0x10106ffb
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
jmp 0x1010693f
call fcn.100029d0
jmp 0x1010692b