Function at 0x1009b6a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov dword [ebp - 0x2c], edx
mov esi, ecx
mov eax, dword [0x101f1014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lock inc dword [ecx + 4]
push ecx
call fcn.1009c910
add esp, 4
mov ebx, dword [esi + 0x54]
test ebx, ebx
je 0x1009b78d
mov eax, dword [ebx + 4]
test eax, eax
je 0x1009b964
mov dword [ebp - 0x30], eax
mov ebx, dword [0x101f5020]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x1009be51
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], edi
mov eax, dword [ebp - 0x30]
mov edi, dword [eax + 0x15c]
push dword [0x101f5020]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp dword [ebp - 0x2c], 0
jne 0x1009b89f
test edi, edi
je 0x1009b89f
lea eax, [ebp - 0x28]
push eax
mov edi, dword [ebp - 0x30]
push edi
call sym.nss3.dll_CERT_GetCertTrust
add esp, 8
test eax, eax
je 0x1009b970
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x1009ba0c
push esi
push dword [eax + 8]
call fcn.100a1020
add esp, 8
test eax, eax
je 0x1009b970
mov ebx, eax
mov edx, dword [edi]
mov ecx, eax
call fcn.1009b420
mov dword [ebp - 0x2c], eax
push ebx
call fcn.1009cc00
add esp, 4
cmp dword [ebp - 0x2c], 0
jne 0x1009ba19
jmp 0x1009b970
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.1007bc60
add esp, 0xc
test eax, eax
je 0x1009b96e
mov edi, eax
push 0x34
push 0
call fcn.10094240
add esp, 8
test eax, eax
je 0x1009b953
mov ebx, eax
mov dword [eax], 1
mov dword [eax + 4], edi
mov dword [eax + 8], 0x1009af60
mov dword [eax + 0xc], 0x1009af80
mov dword [eax + 0x10], 0x1009afa0
mov dword [eax + 0x14], 0x1009b070
mov dword [eax + 0x18], sym.nss3.dll_SECMOD_CanDeleteInternalModule
mov dword [eax + 0x1c], 0x1009b0b0
mov dword [eax + 0x20], 0x1009b0e0
mov dword [eax + 0x24], 0x1009b110
mov dword [eax + 0x28], 0x1009b1b0
mov dword [eax + 0x2c], 0x1009b280
mov dword [eax + 0x30], 0x1009b2b0
mov eax, dword [eax + 4]
test eax, eax
je 0x1009b95b
cmp dword [esi + 0x54], 0
je 0x1009ba61
mov ecx, dword [eax + 0x184]
mov dword [ebp - 0x34], ecx
mov edi, dword [eax]
mov ecx, dword [eax + 0x17c]
mov dword [ebp - 0x2c], ecx
xor ecx, ecx
push 0x18c
push ecx
mov dword [ebp - 0x30], eax
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
push eax
push edi
call sym.nss3.dll_PORT_FreeArena_Util
mov eax, dword [ebp - 0x2c]
add esp, 8
test eax, eax
je 0x1009b884
cmp dword [ebp - 0x34], 0
je 0x1009b884
lock dec dword [eax + 0x48]
jne 0x1009b884
push eax
call fcn.100cb320
add esp, 4
push ebx
call fcn.10094350
add esp, 4
push 1
call fcn.10094a30
add esp, 4
mov edi, dword [ebp - 0x30]
jmp 0x1009b970
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x34], eax
push esi
call fcn.1009d090
add esp, 4
test eax, eax
mov edi, dword [ebp - 0x30]
je 0x1009b99f
mov ecx, dword [eax]
test ecx, ecx
je 0x1009b996
mov dword [ebp - 0x38], eax
mov edi, eax
add edi, 4
xor ebx, ebx
test ebx, ebx
je 0x1009b8eb
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x34]
cmp dword [eax + 0x14], 0
je 0x1009b8f6
push ebx
call fcn.10098840
add esp, 4
push dword [edi - 4]
jmp 0x1009b8ec
push ecx
call fcn.10098870
add esp, 4
mov ebx, eax
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
jne 0x1009b8cd
push dword [ebp - 0x38]
call fcn.10098960
add esp, 4
test ebx, ebx
mov edi, dword [ebp - 0x30]
je 0x1009b99f
mov ecx, dword [ebx + 0xc]
cmp dword [edi + 0x154], 0
sete al
mov dword [ebp - 0x38], ecx
test ecx, ecx
setne cl
cmp dword [ebp - 0x2c], 0
jne 0x1009ba69
and al, cl
jne 0x1009ba69
mov edx, dword [ebp - 0x34]
test edx, edx
je 0x1009bb67
mov dword [ebp - 0x2c], 0
jmp 0x1009bce3
push edi
call sym.nss3.dll_CERT_DestroyCertificate
jmp 0x1009b96b
push ebx
call fcn.10094350
add esp, 4
push 1
call fcn.10094a30
add esp, 4
xor edi, edi
push esi
call fcn.1009c980
add esp, 4
push esi
call fcn.1009cc00
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10157a00
mov eax, edi
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call fcn.10098960
add esp, 4
mov edx, dword [ebp - 0x34]
test edx, edx
je 0x1009b9ec
mov ebx, dword [esi + 0x20]
cmp dword [edi + 0x154], 0
sete al
test ebx, ebx
setne cl
cmp dword [ebp - 0x2c], 0
jne 0x1009b9c6
and al, cl
je 0x1009bcdc
add edi, 0x154
test ebx, ebx
je 0x1009bcd6
mov dword [ebp - 0x38], ebx
xor ebx, ebx
mov al, 1
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0
xor ecx, ecx
jmp 0x1009bad7
mov dword [ebp - 0x34], 0
cmp dword [ebp - 0x2c], 0
je 0x1009bdb9
mov dword [edi + 0x154], 0
jmp 0x1009bdb9
push edi
push esi
call fcn.1009b3a0
add esp, 8
mov dword [ebp - 0x2c], eax
mov edi, dword [0x101f501c]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x1009be8b
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], ebx
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov dword [edi + 0x160], eax
push dword [0x101f501c]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x1009b970
mov dword [esi + 0x54], ebx
jmp 0x1009b6d0
add edi, 0x154
mov eax, dword [ebx + 4]
push dword [eax + 0x34]
call sym.nss3.dll_PK11_IsInternalKeySlot
add esp, 4
test eax, eax
je 0x1009ba9f
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x1009be37
push 0x3a
push eax
call sub.VCRUNTIME140.dll_strchr
add esp, 8
test eax, eax
je 0x1009be45
push dword [ebx + 4]
call fcn.10096b50
add esp, 4
test eax, eax
mov dword [ebp - 0x40], eax
je 0x1009bee4
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
inc eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x2c], 0
mov eax, 0
cmp dword [ebp - 0x38], 0
mov ecx, dword [ebp - 0x40]
je 0x1009bb46
mov dword [ebp - 0x4c], edi
push dword [ebp - 0x38]
mov edi, ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov edx, eax
mov ecx, dword [ebp - 0x3c]
add eax, ecx
inc eax
mov dword [ebp - 0x44], edx
add edx, ecx
mov dword [ebp - 0x48], edx
push eax
mov eax, dword [ebp - 0x30]
push dword [eax]
call sym.nss3.dll_PORT_ArenaAlloc_Util
add esp, 8
mov dword [ebp - 0x40], eax
test edi, edi
je 0x1009bb2a
mov eax, dword [ebp - 0x3c]
dec eax
push eax
push edi
mov edi, dword [ebp - 0x40]
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x3c]
mov byte [edi + ecx - 1], 0x3a
mov eax, edi
add eax, ecx
push dword [ebp - 0x44]
push dword [ebp - 0x38]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x48]
mov byte [eax + ecx], 0
mov edi, dword [ebp - 0x4c]
mov dword [edi], eax
mov edx, dword [ebp - 0x34]
test edx, edx
jne 0x1009bce3
mov dword [ebp - 0x34], 0
cmp byte [ebp - 0x2c], 0
mov edi, dword [ebp - 0x30]
jne 0x1009bdb9
mov eax, dword [edi + 0x17c]
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + 0x34]
cmp eax, ecx
je 0x1009bb9a
test eax, eax
je 0x1009bb90
lock dec dword [eax + 0x48]
jne 0x1009bb8a
push eax
call fcn.100cb320
add esp, 4
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x34]
lock inc dword [ecx + 0x48]
mov dword [edi + 0x17c], ecx
mov dword [edi + 0x184], 1
mov eax, dword [ebx]
mov dword [edi + 0x180], eax
push edi
push esi
call fcn.1009b3a0
add esp, 8
mov dword [ebp - 0x34], eax
test eax, eax
je 0x1009bc09
mov eax, dword [0x101f501c]
mov dword [ebp - 0x38], eax
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x1009bec6
mov edi, dword [ebp - 0x38]
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x2c]
mov dword [edi + 8], eax
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
mov dword [edi + 0x160], eax
push dword [0x101f501c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [edi + 0x17c]
cmp dword [eax + 0x20], 0
je 0x1009bdb0
cmp dword [eax + 0x11c], 0
je 0x1009bdb0
cmp dword [edi + 0x188], 0
jne 0x1009bdb0
mov ecx, dword [0x101bcce4]
lea edi, [ebp - 0x1c]
mov dword [edi - 4], ecx
movsd xmm0, qword [0x101bccdc]
movsd qword [edi - 0xc], xmm0
movsd qword [edi], xmm0
mov dword [edi + 8], ecx
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x30]
push dword [ecx]
push 0xce534373
mov ecx, dword [ebp - 0x30]
push dword [ecx + 0x180]
push eax
call fcn.100bd110
add esp, 0x14
mov dword [ebp - 0x2c], eax
push edi
mov edi, dword [ebp - 0x30]
push dword [edi]
push 0xce534374
push dword [edi + 0x180]
push dword [edi + 0x17c]
call fcn.100bd110
add esp, 0x14
or eax, dword [ebp - 0x2c]
jne 0x1009bdb0
cmp dword [ebp - 0x20], 0xd
je 0x1009bcae
cmp dword [ebp - 0x14], 0xd
jne 0x1009bdb0
push 0x18
push dword [edi]
call sym.nss3.dll_PORT_ArenaAlloc_Util
add esp, 8
movups xmm0, xmmword [ebp - 0x28]
movups xmmword [eax], xmm0
movsd xmm0, qword [ebp - 0x18]
movsd qword [eax + 0x10], xmm0
mov dword [edi + 0x188], eax
jmp 0x1009bdb0
mov dword [edi], 0
xor ebx, ebx
mov al, 1
mov dword [ebp - 0x2c], eax
mov eax, dword [edx + 0x14]
test eax, eax
je 0x1009bcfd
push esi
push eax
call fcn.1009edf0
mov edx, dword [ebp - 0x34]
add esp, 8
mov edi, eax
test eax, eax
jne 0x1009bd30
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
push dword [edx + 8]
call fcn.100a1020
add esp, 8
mov edi, eax
test eax, eax
je 0x1009bda0
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
mov ecx, edi
call fcn.1009b420
mov dword [ebp - 0x34], eax
test eax, eax
je 0x1009bd95
mov dword [ebp - 0x40], edi
mov eax, dword [0x101f501c]
mov dword [ebp - 0x3c], eax
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x1009bea8
mov edi, dword [ebp - 0x3c]
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x38]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
mov dword [eax + 0x160], ecx
push dword [0x101f501c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov edi, dword [ebp - 0x40]
push edi
call fcn.1009cc00
add esp, 4
jmp 0x1009bda7
mov dword [ebp - 0x34], 0
cmp byte [ebp - 0x2c], 0
mov edi, dword [ebp - 0x30]
jne 0x1009bdb9
push ebx
call fcn.10098840
add esp, 4
mov eax, dword [esi + 0x18]
mov dword [edi + 0x11c], eax
mov ebx, dword [0x101f5020]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x30], esi
mov esi, eax
test eax, eax
je 0x1009be6e
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], esi
mov dword [edi + 0x150], 0
mov dword [edi + 0x14c], 1
mov esi, dword [ebp - 0x30]
mov dword [edi + 0x15c], esi
push dword [0x101f5020]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp dword [ebp - 0x34], 0
je 0x1009b970
push edi
call fcn.1007b5e0
add esp, 4
xchg dword [edi + 0x13c], eax
jmp 0x1009b970
mov dword [ebp - 0x2c], 0
xor eax, eax
jmp 0x1009bb46
mov dword [ebp - 0x2c], 0
jmp 0x1009b9de
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov edi, eax
jmp 0x1009b6fa
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov esi, eax
jmp 0x1009bde1
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov ebx, eax
jmp 0x1009ba35
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov dword [ebp - 0x38], eax
jmp 0x1009bd65
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov dword [ebp - 0x2c], eax
jmp 0x1009bbdc
xor eax, eax
jmp 0x1009babe