Function at 0x10107e40
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 [0x101f1014]
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 0x10107e9a
push edi
call fcn.1010e6a0
add esp, 4
push dword [edi + 0xc4]
call fcn.1010d500
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 0x10107f1e
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.100f3930
add esp, 0x18
test eax, eax
je 0x10107f26
movzx eax, word [edi + 0x58]
xor esi, esi
cmp eax, 0x303
ja 0x101085bb
cmp dword [0x101f4f80], 0
je 0x10108623
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10108608
cmp dword [eax + 0x28], 0xffffe02d
je 0x101085bb
push 0x2f
push 2
push edi
call fcn.100f4470
add esp, 0xc
jmp 0x101085b8
xor esi, esi
dec esi
jmp 0x101085c6
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 0x101083a6
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.100f43c0
add esp, 0x14
test eax, eax
je 0x10107f7c
mov eax, 0xffffe001
jmp 0x101085a6
mov ecx, dword [esp + 0x1c]
mov edx, ecx
and edx, 0xffffff00
mov eax, 0xffffd01c
cmp edx, 0x100
jne 0x101085a6
cmp ecx, 0x10a
jne 0x101083a6
push edi
lea eax, [esp + 0x1c]
push eax
push 2
push esi
mov edi, dword [ebp + 8]
push edi
call fcn.100f43c0
add esp, 0x14
test eax, eax
jne 0x10107f72
movzx eax, word [esp + 0x1c]
mov word [esp + 0x24], ax
push eax
push dword [edi + 0xa24]
call fcn.10115ab0
add esp, 8
test eax, eax
lea edi, [esp + 0x14]
je 0x101083a6
push edi
lea eax, [esp + 0x1c]
push eax
push 2
push esi
mov eax, dword [ebp + 8]
push eax
call fcn.100f43c0
add esp, 0x14
test eax, eax
jne 0x10107f72
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.100f43c0
add esp, 0x14
test eax, eax
jne 0x10107f72
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.100f43c0
add esp, 0x14
test eax, eax
jne 0x10107f72
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.100f43c0
add esp, 0x14
test eax, eax
jne 0x10107f72
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.100f43c0
add esp, 0x14
test eax, eax
jne 0x10107f72
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.100f43c0
add esp, 0x14
test eax, eax
jne 0x10107f72
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.100f43c0
add esp, 0x14
test eax, eax
jne 0x10107f72
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.100f43c0
add esp, 0x14
test eax, eax
jne 0x10107f72
mov eax, dword [esp + 0x28]
add eax, 0xfffffffc
cmp eax, 2
ja 0x10108138
push dword [esp + 0x1c]
call fcn.10114b20
add esp, 4
test eax, eax
je 0x10107f72
cmp dword [eax + 8], 4
jne 0x10107f72
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.100f43c0
add esp, 0x14
test eax, eax
jne 0x10107f72
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.100f43c0
add esp, 0x14
test eax, eax
jne 0x10107f72
mov eax, dword [esp + 0x1c]
lea ecx, [eax - 0x31]
cmp ecx, 0xffffffd0
jb 0x10107f72
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.100f6ec0
add esp, 0x14
test eax, eax
jne 0x10107f72
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 1
push esi
push dword [ebp + 8]
call fcn.100f43c0
add esp, 0x14
test eax, eax
jne 0x10107f72
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x84], eax
test eax, eax
je 0x10108216
cmp eax, 1
jne 0x10107f72
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.100f6ff0
add esp, 0x14
test eax, eax
jne 0x10107f72
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 4
push esi
push dword [ebp + 8]
call fcn.100f43c0
add esp, 0x14
test eax, eax
jne 0x10107f72
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.100f43c0
add esp, 0x14
test eax, eax
jne 0x10107f72
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.100f6ff0
add esp, 0x14
test eax, eax
jne 0x10107f72
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 1
push esi
push dword [ebp + 8]
call fcn.100f43c0
add esp, 0x14
test eax, eax
jne 0x10107f72
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.100f6ec0
add esp, 0x14
test eax, eax
jne 0x10107f72
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.100f6ff0
add esp, 0x14
test eax, eax
jne 0x10107f72
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 4
push esi
push dword [ebp + 8]
call fcn.100f43c0
add esp, 0x14
test eax, eax
jne 0x10107f72
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.100f43c0
add esp, 0x14
test eax, eax
jne 0x10107f72
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.100f6ff0
add esp, 0x14
or eax, dword [esp + 0x14]
mov eax, 0xffffe001
jne 0x101085a6
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.10116bd0
add esp, 4
xor esi, esi
cmp eax, ebx
sbb edx, edi
jge 0x101085de
push 1
push dword [ebp + 8]
call fcn.100f8b00
add esp, 8
xor esi, esi
dec esi
test eax, eax
lea ebx, [esp + 8]
je 0x101085bb
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 0x1010859b
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 0x1010859b
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 0x10108501
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 0x1010859b
cmp dword [esp + 0xa8], 0
je 0x10108539
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 0x1010859b
cmp dword [esp + 0xb4], 0
je 0x10108573
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 0x1010859b
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x101085e4
cmp dword [esp + 0xcc], 0
je 0x101085e4
lea ecx, [esp + 0xc4]
push ecx
push eax
push 0
call sym.nss3.dll_SECITEM_CopyItem_Util
add esp, 0xc
test eax, eax
je 0x101085e4
push edi
call fcn.1010d500
add esp, 4
jmp 0x101085bb
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
lock inc dword [0x101f5a48]
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.10157a00
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ebx, [esp + 8]
jmp 0x101085bb
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 0x101085bb
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
jmp 0x10107eff
call fcn.1001b2e0
jmp 0x10107eeb