Function at 0x1010a590
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [ebp + 8]
mov ecx, dword [0x101f1014]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
push eax
call fcn.10112950
add esp, 4
xor esi, esi
dec esi
test eax, eax
je 0x1010a9c5
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x1010a5e8
cmp dword [ebp + 0x10], 0
je 0x1010a5e8
mov edi, eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1010a5fc
mov ecx, dword [ebp + 0x18]
cmp ecx, 0x19
jb 0x1010a600
push 0
push 0xffffe005
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x1010a9c5
xor ecx, ecx
jmp 0x1010a614
lea esi, [ebp - 0x2c]
push ecx
push eax
push esi
mov ebx, edx
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebx
add esp, 0xc
mov ecx, dword [esi]
xor esi, esi
cmp dword [edx + 0xdc], 0
je 0x1010a668
mov dword [ebp - 0x30], ecx
lea eax, [edx + 0xd8]
xor ebx, ebx
push eax
call sym.nss3.dll_SECOID_FindOIDTag
add esp, 4
cmp eax, 0x7b
jle 0x1010a66f
cmp eax, 0x7c
mov ecx, dword [ebp - 0x30]
je 0x1010a69e
cmp eax, 0xc8
mov edx, dword [ebp + 0xc]
je 0x1010a6b2
cmp eax, 0x133
jne 0x1010a74f
mov ebx, dword [edx + 0x130]
add ebx, ebx
and ebx, 0x100
jmp 0x1010a74f
xor ebx, ebx
jmp 0x1010a74f
cmp eax, 0x10
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x30]
je 0x1010a683
cmp eax, 0x61
jne 0x1010a74f
movzx ebx, word [edx + 0x130]
mov eax, ebx
and eax, 0x80
shr ebx, 4
and ebx, 2
or ebx, eax
jmp 0x1010a74f
mov edx, dword [ebp + 0xc]
mov ebx, dword [edx + 0x130]
shr ebx, 5
and ebx, 4
jmp 0x1010a74f
mov eax, dword [edx + 0x130]
mov ebx, eax
shr ebx, 3
and ebx, 0x10
test al, 0x20
je 0x1010a74f
cmp dword [edx + 0x94], 0
je 0x1010a73f
lea eax, [edx + 0x90]
mov cx, 5
mov dword [ebp - 0x38], ecx
push eax
call sym.nss3.dll_SECOID_FindOIDTag
add esp, 4
cmp eax, 0xc8
jle 0x1010a708
lea ecx, [eax - 0x113]
cmp ecx, 6
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x30]
jae 0x1010a718
mov ax, 6
mov dword [ebp - 0x38], eax
jmp 0x1010a746
lea ecx, [eax - 0x10]
cmp ecx, 5
jae 0x1010a72f
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x30]
jmp 0x1010a746
lea ecx, [eax - 0x133]
cmp ecx, 2
mov ecx, dword [ebp - 0x30]
jb 0x1010a746
cmp eax, 0xc9
je 0x1010a6ff
jmp 0x1010a73f
add eax, 0xffffff3e
cmp eax, 3
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x30]
jb 0x1010a746
mov dword [ebp - 0x38], 0
movzx ebx, bx
mov eax, dword [ebp - 0x38]
bts ebx, eax
cmp ecx, 1
sbb esi, esi
bts esi, ecx
and si, bx
je 0x1010a7cb
mov ecx, dword [ebp + 0x10]
mov ebx, edx
call fcn.1010aaa0
test eax, eax
je 0x1010a9c2
mov dword [ebp - 0x38], eax
push 0x40
call sym.nss3.dll_PORT_ZAlloc_Util
add esp, 4
mov ecx, eax
test eax, eax
je 0x1010a7df
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x2c], eax
mov dword [ecx + 0x38], eax
mov dword [ecx + 0x3c], eax
mov dword [ebp - 0x30], ecx
mov word [ecx + 8], si
mov esi, dword [ebp - 0x28]
push ebx
call fcn.1009bef0
add esp, 4
test eax, eax
je 0x1010a7b6
lock inc dword [eax + 4]
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x10], ebx
test esi, esi
je 0x1010a7e9
push esi
call fcn.100866a0
add esp, 4
jmp 0x1010a7f7
push 0
push 0xffffe005
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x1010a9c2
mov ebx, 0xffffe013
jmp 0x1010a9a3
xor eax, eax
inc eax
push eax
push eax
push ebx
call sym.nss3.dll_CERT_CertChainFromCert
add esp, 0xc
mov ebx, 0xffffe013
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x14], eax
test eax, eax
je 0x1010a9a3
mov edx, dword [ebp - 0x38]
call fcn.1010aea0
test eax, eax
jne 0x1010a97c
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x1010a835
push 1
push eax
call fcn.100dbf00
mov ecx, dword [ebp - 0x30]
add esp, 8
test esi, esi
je 0x1010a853
push esi
push 0
call sym.nss3.dll_SECITEM_DupArray
mov ecx, dword [ebp - 0x30]
add esp, 8
mov dword [ecx + 0x20], eax
test eax, eax
jne 0x1010a85a
jmp 0x1010a9a3
mov dword [ecx + 0x20], 0
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x34]
lea edx, [eax + 0x24]
cmp dword [ecx + 0x2c], 0
je 0x1010a880
push 0
push edx
mov dword [ebp - 0x3c], edx
call sym.nss3.dll_SECITEM_FreeItem_Util
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
add esp, 8
test esi, esi
je 0x1010a8a4
cmp dword [esi + 8], 0
je 0x1010a8a4
push esi
push edx
push 0
call sym.nss3.dll_SECITEM_CopyItem_Util
mov ecx, dword [ebp - 0x30]
add esp, 0xc
test eax, eax
mov eax, dword [ebp - 0x34]
jne 0x1010a9a3
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], edx
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x14], 0
add eax, 0x30
cmp dword [ecx + 0x38], 0
mov esi, eax
je 0x1010a8cd
push 0
push esi
call sym.nss3.dll_SECITEM_FreeItem_Util
mov ecx, dword [ebp - 0x30]
add esp, 8
mov dword [ebp - 0x34], esi
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x1010a8ea
push eax
call fcn.101169f0
add esp, 4
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x3c], 0
mov esi, ebx
test ebx, ebx
mov ebx, dword [ebp - 0x3c]
je 0x1010a95c
test ebx, ebx
je 0x1010a95c
mov eax, dword [ebx + 4]
test eax, eax
je 0x1010a962
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x1010a962
lea edx, [ebp - 0x14]
push edx
push ecx
push eax
call fcn.10128970
add esp, 0xc
test eax, eax
jne 0x1010a971
push ebx
push dword [ebp - 0x34]
push 0
call sym.nss3.dll_SECITEM_CopyItem_Util
add esp, 0xc
test eax, eax
jne 0x1010a971
push esi
call sym.nss3.dll_SECKEY_CopyPrivateKey
add esp, 4
test eax, eax
je 0x1010a971
mov ebx, eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x14]
call fcn.1008e690
test eax, eax
je 0x1010a971
push eax
push ebx
call fcn.10116960
add esp, 8
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x3c], eax
mov eax, dword [ebp - 0x14]
jmp 0x1010a9d9
xor eax, eax
or esi, ebx
je 0x1010a9d9
push 0
push 0xffffe005
call sym.nss3.dll_PR_SetError
add esp, 8
push dword [ebp - 0x14]
call fcn.10128b10
add esp, 4
cmp dword [0x101f4f80], 0
je 0x1010aa8f
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1010aa74
mov ebx, dword [eax + 0x28]
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.1010a4a0
add esp, 4
push 0
push ebx
call sym.nss3.dll_PR_SetError
add esp, 8
push dword [ebp - 0x38]
call fcn.101169f0
add esp, 4
xor esi, esi
dec esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10157a00
mov eax, esi
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call fcn.10128b10
add esp, 4
mov esi, edi
add esi, 0x208
mov ebx, dword [edi + 0x208]
cmp ebx, esi
je 0x1010aa46
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + 0xc]
movzx eax, word [eax + 8]
mov dword [ebp - 0x34], eax
not eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], edx
mov eax, ebx
mov ebx, dword [ebx]
mov ecx, dword [eax + 8]
test word [ebp - 0x34], cx
je 0x1010aa42
test edx, edx
je 0x1010aa1f
cmp dword [eax + 0xc], edx
jne 0x1010aa42
and cx, word [ebp - 0x3c]
mov word [eax + 8], cx
jne 0x1010aa42
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
push eax
call fcn.1010a4a0
mov edx, dword [ebp - 0x40]
add esp, 4
cmp ebx, esi
jne 0x1010aa09
mov ecx, dword [ebp - 0x30]
mov dword [ecx], esi
mov eax, dword [edi + 0x20c]
mov dword [ecx + 4], eax
mov eax, dword [edi + 0x20c]
mov dword [eax], ecx
mov dword [edi + 0x20c], ecx
push dword [ebp - 0x38]
call fcn.101169f0
add esp, 4
xor esi, esi
jmp 0x1010a9c5
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
jmp 0x1010a99d
call fcn.1001b2e0
jmp 0x1010a989