Function at 0x101064f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov dword [ebp - 0x2c], edx
mov esi, ecx
mov eax, dword [0x101d2014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lock inc dword [ecx + 4]
push ecx
call fcn.10107700
add esp, 4
mov edi, dword [esi + 0x54]
test edi, edi
je 0x101065da
mov eax, dword [edi + 4]
test eax, eax
je 0x101066e5
mov ebx, dword [0x101d5788]
mov dword [ebp - 0x30], eax
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x10106c81
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], edi
mov ebx, dword [ebp - 0x30]
mov edi, dword [ebx + 0x15c]
push dword [0x101d5788]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp dword [ebp - 0x2c], 0
jne 0x101066f1
test edi, edi
je 0x101066f1
lea eax, [ebp - 0x28]
push eax
push ebx
call sym.nss3.dll_CERT_GetCertTrust
add esp, 8
test eax, eax
je 0x10106bbf
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x10106801
push esi
push dword [eax + 8]
call fcn.1010bc40
add esp, 8
test eax, eax
je 0x101066dd
mov ebx, eax
mov eax, dword [ebp - 0x30]
mov ecx, ebx
mov edx, dword [eax]
call fcn.10106260
mov edi, eax
push ebx
call fcn.101079e0
add esp, 4
test edi, edi
jne 0x1010680d
jmp 0x101066dd
mov eax, dword [esi + 0x30]
lea ecx, [ebp - 0x28]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x34]
mov dword [ecx + 8], eax
push 0
push 1
push ecx
call fcn.100e8060
add esp, 0xc
test eax, eax
je 0x101067a7
mov ebx, eax
push 0x34
push 0
call fcn.100ff2b0
add esp, 8
test eax, eax
je 0x1010679e
mov dword [eax], 1
mov dword [eax + 4], ebx
mov dword [eax + 8], 0x10105da0
mov dword [eax + 0xc], 0x10105dc0
mov dword [eax + 0x10], 0x10105de0
mov dword [eax + 0x14], 0x10105eb0
mov dword [eax + 0x18], sym.nss3.dll_PR_DuplicateEnvironment
mov dword [eax + 0x1c], 0x10105ef0
mov dword [eax + 0x20], 0x10105f20
mov dword [eax + 0x24], 0x10105f50
mov dword [eax + 0x28], 0x10105ff0
mov dword [eax + 0x2c], 0x101060c0
mov dword [eax + 0x30], 0x101060f0
mov edi, eax
cmp dword [esi + 0x54], 0
je 0x101067ae
mov eax, dword [ebx]
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0x17c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 0x184]
mov dword [ebp - 0x2c], eax
mov eax, ebx
xor ebx, ebx
push 0x18c
push ebx
mov dword [ebp - 0x30], eax
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push ebx
push dword [ebp - 0x34]
call sym.nss3.dll_PORT_FreeArena_Util
mov eax, dword [ebp - 0x38]
add esp, 8
cmp dword [ebp - 0x2c], ebx
je 0x101066ca
test eax, eax
je 0x101066ca
lock dec dword [eax + 0x48]
jne 0x101066ca
push eax
call fcn.10135de0
add esp, 4
push edi
call fcn.100ff3c0
add esp, 4
push 1
call fcn.100ffa40
add esp, 4
mov ebx, dword [ebp - 0x30]
jmp 0x10106bbf
push 1
call fcn.100ffa40
jmp 0x101067a4
mov edi, dword [esi + 0x1c]
push esi
call fcn.10107e50
add esp, 4
test eax, eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x38], edi
je 0x101067bf
mov ecx, dword [eax]
test ecx, ecx
je 0x101067b6
mov edi, eax
xor ebx, ebx
mov dword [ebp - 0x34], eax
add edi, 4
test ebx, ebx
je 0x1010673d
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x34]
cmp dword [eax + 0x14], 0
je 0x10106748
push ebx
call fcn.10103710
add esp, 4
push dword [edi - 4]
jmp 0x1010673e
push ecx
call fcn.10103740
add esp, 4
mov ebx, eax
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
jne 0x1010671f
push dword [ebp - 0x34]
call fcn.10103830
add esp, 4
mov edi, dword [ebp - 0x38]
test ebx, ebx
je 0x101067bf
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebx + 0xc]
cmp dword [eax + 0x154], 0
sete al
test ecx, ecx
setne dl
cmp dword [ebp - 0x2c], 0
jne 0x10106be5
and al, dl
jne 0x10106be5
test edi, edi
je 0x101069c5
mov dword [ebp - 0x34], 0
jmp 0x101068f2
push ebx
call sym.nss3.dll_CERT_DestroyCertificate
add esp, 4
xor ebx, ebx
jmp 0x10106bbf
mov dword [esi + 0x54], edi
jmp 0x10106520
push eax
call fcn.10103830
add esp, 4
xor ebx, ebx
test edi, edi
mov ecx, 0
je 0x101067cd
mov ecx, dword [esi + 0x20]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], ecx
cmp dword [eax + 0x154], 0
lea edx, [eax + 0x154]
sete al
test ecx, ecx
mov cl, 1
setne ah
cmp dword [ebp - 0x2c], 0
jne 0x10106858
and al, ah
mov dword [ebp - 0x2c], 0
je 0x101068e7
jmp 0x1010685f
push ebx
push esi
call fcn.101061e0
add esp, 8
mov edi, eax
mov dword [ebp - 0x2c], edi
mov edi, dword [0x101d5784]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x10106cad
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], ebx
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0x160], eax
push dword [0x101d5784]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x10106bbf
mov dword [ebp - 0x2c], 0
test ah, ah
mov edi, 0
mov dword [ebp - 0x48], 0
je 0x101068e2
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x34], ecx
push dword [ebp - 0x40]
mov edi, dword [ebp - 0x2c]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ecx, eax
lea eax, [eax + edi + 1]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x4c], ecx
add ecx, edi
mov dword [ebp - 0x50], ecx
push eax
mov eax, dword [ebp - 0x30]
push dword [eax]
call sym.nss3.dll_PORT_ArenaAlloc_Util
add esp, 8
mov ecx, dword [ebp - 0x48]
mov edi, eax
test ecx, ecx
je 0x101068c6
mov eax, dword [ebp - 0x2c]
dec eax
push eax
push ecx
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x2c]
mov eax, edi
add eax, ecx
mov byte [edi + ecx - 1], 0x3a
push dword [ebp - 0x4c]
push dword [ebp - 0x40]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x34]
mov byte [edi + eax], 0
mov edx, dword [ebp - 0x3c]
mov dword [edx], edi
mov edi, dword [ebp - 0x38]
test edi, edi
je 0x101069b6
mov dword [ebp - 0x34], ecx
mov eax, dword [edi + 0x14]
test eax, eax
je 0x10106909
push esi
push eax
call fcn.10109b50
add esp, 8
mov edi, eax
test eax, eax
jne 0x10106943
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + 0x4c]
mov dword [esi + 0x38], eax
mov eax, dword [ecx + 0x50]
mov dword [esi + 0x3c], eax
mov eax, dword [ecx + 0x88]
mov dword [esi + 0x48], eax
mov eax, dword [ecx + 0x8c]
mov dword [esi + 0x4c], eax
push esi
mov eax, dword [ebp - 0x38]
push dword [eax + 8]
call fcn.1010bc40
add esp, 8
mov edi, eax
test eax, eax
je 0x10106b34
mov eax, dword [ebp - 0x30]
mov ecx, edi
mov edx, dword [eax]
call fcn.10106260
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x101069a8
mov eax, dword [0x101d5784]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], eax
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
mov dword [ebp - 0x38], eax
je 0x10106cc3
mov edi, dword [ebp - 0x40]
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x2c]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x160], ecx
push dword [0x101d5784]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov edi, dword [ebp - 0x3c]
push edi
call fcn.101079e0
add esp, 4
jmp 0x10106b3b
test cl, cl
mov dword [ebp - 0x2c], 0
jne 0x10106b4a
mov ecx, dword [ebx + 4]
mov esi, dword [ebp - 0x30]
mov eax, dword [esi + 0x17c]
mov ecx, dword [ecx + 0x34]
cmp eax, ecx
je 0x101069fe
test eax, eax
je 0x101069f1
lock dec dword [eax + 0x48]
jne 0x101069eb
push eax
call fcn.10135de0
add esp, 4
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x34]
lock inc dword [ecx + 0x48]
mov esi, dword [ebp - 0x30]
mov dword [esi + 0x17c], ecx
mov dword [esi + 0x184], 1
mov eax, dword [ebx]
mov dword [esi + 0x180], eax
push esi
push dword [ebp - 0x44]
call fcn.101061e0
add esp, 8
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x10106a66
mov esi, dword [0x101d5784]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x10106cda
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], edi
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x160], eax
push dword [0x101d5784]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [esi + 0x17c]
cmp dword [eax + 0x20], 0
je 0x10106b2f
cmp dword [eax + 0x11c], 0
je 0x10106b2f
mov esi, dword [ebp - 0x30]
cmp dword [esi + 0x188], 0
jne 0x10106b2f
mov ecx, dword [0x1019efac]
movsd xmm0, qword [0x1019efa4]
lea edi, [ebp - 0x1c]
mov dword [edi - 4], ecx
movsd qword [edi - 0xc], xmm0
mov dword [edi + 8], ecx
lea ecx, [ebp - 0x28]
movsd qword [edi], xmm0
push ecx
push dword [esi]
push 0xce534373
push dword [esi + 0x180]
push eax
call fcn.10127630
add esp, 0x14
mov dword [ebp - 0x38], eax
push edi
push dword [esi]
push 0xce534374
push dword [esi + 0x180]
push dword [esi + 0x17c]
call fcn.10127630
add esp, 0x14
or eax, dword [ebp - 0x38]
jne 0x10106b2f
cmp dword [ebp - 0x20], 0xd
je 0x10106afd
cmp dword [ebp - 0x14], 0xd
jne 0x10106b2f
push 0x18
mov esi, dword [ebp - 0x30]
push dword [esi]
call sym.nss3.dll_PORT_ArenaAlloc_Util
add esp, 8
movsd xmm0, qword [ebp - 0x28]
movsd xmm1, qword [ebp - 0x20]
movsd qword [eax], xmm0
movsd qword [eax + 8], xmm1
movsd xmm0, qword [ebp - 0x18]
movsd qword [eax + 0x10], xmm0
mov dword [esi + 0x188], eax
mov esi, dword [ebp - 0x44]
jmp 0x10106b41
mov dword [ebp - 0x2c], 0
cmp byte [ebp - 0x34], 0
jne 0x10106b4a
push ebx
call fcn.10103710
add esp, 4
mov eax, dword [esi + 0x18]
mov ebx, dword [ebp - 0x30]
mov dword [ebx + 0x11c], eax
mov esi, dword [0x101d5788]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x10106c97
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], edi
mov esi, dword [ebp - 0x44]
mov dword [ebx + 0x150], 0
mov dword [ebx + 0x14c], 1
mov dword [ebx + 0x15c], esi
push dword [0x101d5788]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp dword [ebp - 0x2c], 0
je 0x10106bbf
push ebx
call fcn.100e7a60
add esp, 4
xchg dword [ebx + 0x13c], eax
push esi
call fcn.10107760
add esp, 4
push esi
call fcn.101079e0
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10192ef0
mov eax, ebx
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x30]
mov byte [ebp - 0x34], dl
mov dword [ebp - 0x40], ecx
add eax, 0x154
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx + 4]
push dword [eax + 0x34]
call sym.nss3.dll_PK11_IsInternalKeySlot
add esp, 4
test eax, eax
je 0x10106c22
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x10106c60
push 0x3a
push eax
call sub.VCRUNTIME140.dll_strchr
add esp, 8
test eax, eax
mov byte [ebp - 0x34], 1
je 0x10106c69
push dword [ebx + 4]
call fcn.10101b30
add esp, 4
test eax, eax
je 0x10106cf0
mov edi, eax
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp byte [ebp - 0x34], 0
je 0x10106c57
mov edx, dword [ebp - 0x3c]
inc eax
xor ecx, ecx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x2c], eax
jmp 0x1010686f
xor edi, edi
xor ecx, ecx
jmp 0x101068df
xor ecx, ecx
xor edi, edi
jmp 0x101068df
mov edx, dword [ebp - 0x3c]
xor ecx, ecx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x48], 0
jmp 0x1010686f
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov edi, eax
jmp 0x1010654a
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov edi, eax
jmp 0x10106b72
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov ebx, eax
jmp 0x1010682c
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov dword [ebp - 0x38], eax
jmp 0x10106978
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov edi, eax
jmp 0x10106a3f
xor eax, eax
mov edx, dword [ebp - 0x3c]
xor ecx, ecx
inc eax
mov dword [ebp - 0x2c], eax
mov ah, byte [ebp - 0x34]
jmp 0x1010685f