Function at 0x100989e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov ebx, edx
mov esi, ecx
cmp dword [ebp + 0x24], 0
jne 0x10098a02
xor edi, edi
test byte [0x101dec90], 1
jne 0x10098df7
push 0x100999b0
push 0x101dec80
call sym.nss3.dll_PR_CallOnce
add esp, 8
xor edi, edi
dec edi
test eax, eax
jne 0x10098df7
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], esi
mov esi, dword [0x101dec8c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x10099487
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], ebx
xor esi, esi
inc esi
mov eax, dword [0x101dec98]
cmp byte [0x101dec90], 0
jne 0x10098aa5
cmp dword [0x101dec94], 0
mov ebx, dword [ebp + 0x24]
jne 0x10098aae
test eax, eax
je 0x10098aaa
push 0xffffffffffffffff
push dword [0x101dec9c]
call sym.nss3.dll_PR_WaitCondVar
add esp, 8
cmp dword [0x101dec94], 0
setne cl
or cl, byte [0x101dec90]
mov eax, dword [0x101dec98]
test cl, 1
jne 0x10098a9d
test eax, eax
jne 0x10098a6f
movzx esi, cl
and esi, 1
jmp 0x10098aae
mov ebx, dword [ebp + 0x24]
jmp 0x10098aae
xor eax, eax
xor esi, esi
inc eax
mov dword [0x101dec98], eax
push dword [0x101dec8c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov dword [ebp - 0x24], esi
test esi, esi
je 0x10098b21
mov eax, dword [ebp + 0x4c]
mov ecx, dword [ebp + 0x48]
mov edx, dword [ebp + 0x44]
mov esi, ecx
or esi, edx
or esi, eax
je 0x10098af5
test edx, edx
setne byte [0x101dee68]
test ecx, ecx
setne byte [0x101dee6c]
test eax, eax
setne byte [0x101dee70]
test ebx, ebx
je 0x10098b62
push 8
call sym.nss3.dll_PORT_ZAlloc_Util
add esp, 4
mov dword [ebx], eax
test eax, eax
je 0x10098b78
mov ebx, dword [ebp + 0x28]
test ebx, ebx
je 0x10098b81
cmp dword [ebx], 0x2b
ja 0x10098b8e
push 0
push 0xffffe005
jmp 0x10098d65
call fcn.100845f0
xor edi, edi
mov esi, 0
test eax, eax
jne 0x10098d74
call fcn.10085ef0
xor edi, edi
mov esi, 0
test eax, eax
jne 0x10098d74
call fcn.1008fba0
xor edi, edi
mov esi, 0
test eax, eax
jne 0x10098d74
jmp 0x10098ac9
mov esi, dword [0x101dec78]
mov edi, dword [0x101dec74]
mov eax, dword [0x101dec7c]
mov dword [ebp - 0x10], eax
jmp 0x10098bd1
xor edi, edi
xor esi, esi
jmp 0x10098d74
xor esi, esi
xor edi, edi
mov dword [ebp - 0x10], 0
jmp 0x10098bc4
mov edx, dword [ebx + 0x10]
mov ecx, dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebx + 0x1c]
push dword [ebx + 0x28]
push dword [ebx + 0x24]
push dword [ebx + 0x20]
push dword [ebx + 0x18]
push dword [ebx + 0x14]
call fcn.10098740
add esp, 0x1c
test eax, eax
je 0x10098d5e
mov esi, eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x10], eax
mov edi, dword [ebx + 0x10]
push 0
call fcn.100d8390
add esp, 4
mov ebx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x30]
test eax, eax
je 0x10098c42
test ecx, ecx
je 0x10098c42
xor eax, eax
cmp dword [ebp - 0x24], 0
je 0x10098c42
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x24], 0
je 0x10098c6e
mov dword [ebp - 0x14], esi
mov edi, dword [0x101dec8c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100994c1
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
test ebx, ebx
je 0x10098d05
mov eax, dword [ebx]
mov dword [eax + 4], 0x1413a91c
mov eax, dword [0x101dec94]
mov ecx, dword [ebx]
mov dword [ecx], eax
mov eax, dword [ebx]
mov dword [0x101dec94], eax
jmp 0x10098d0c
push 0x100d97a0
push 0x101df020
call sym.nss3.dll_PR_CallOnce
add esp, 8
test eax, eax
je 0x10098c8c
push 0
push 0xffffe013
call sym.nss3.dll_PR_SetError
add esp, 8
xor edi, edi
jmp 0x10098d74
call sym.nss3.dll_SECOID_Init
test eax, eax
jne 0x10098c84
call fcn.100a0d10
test eax, eax
je 0x1009915f
mov edi, dword [ebp - 0x18]
jmp 0x10098d74
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x14], esi
mov esi, dword [ebp + 0x2c]
push 0x57
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
mov edi, eax
xorps xmm0, xmm0
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
movups xmmword [eax + 0x20], xmm0
movups xmmword [eax + 0x30], xmm0
movups xmmword [eax + 0x40], xmm0
xor eax, eax
mov dword [edi + 0x53], eax
mov dword [edi + 0x4f], eax
test esi, esi
je 0x10098e01
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov dword [edi + eax], 0x64616572
mov dword [edi + eax + 4], 0x796c6e4f
mov byte [edi + eax + 8], 0
cmp dword [ebp + 0x30], 0
mov esi, dword [ebp - 0x14]
je 0x10098e2b
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov word [edi + eax], 0x2c
jmp 0x10098e0e
mov byte [0x101dec90], 1
mov esi, dword [ebp - 0x14]
dec dword [0x101dec98]
push dword [0x101dec9c]
call sym.nss3.dll_PR_NotifyAllCondVar
add esp, 4
push dword [0x101dec8c]
call sym.nss3.dll_PR_Unlock
add esp, 4
test ebx, ebx
je 0x10098d43
test esi, esi
je 0x10098d43
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
xor edi, edi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10098df7
push eax
call sym.nss3.dll_SECMOD_DestroyModule
add esp, 4
jmp 0x10098df7
push 0
push 0xffffe013
call sym.nss3.dll_PR_SetError
add esp, 8
xor edi, edi
xor esi, esi
mov ebx, dword [ebp + 0x24]
test ebx, ebx
je 0x10098d9c
mov eax, dword [ebx]
test eax, eax
je 0x10098d9c
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov dword [ebx], 0
test esi, esi
je 0x10098d9c
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov ebx, dword [0x101dec8c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100994a4
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], esi
dec dword [0x101dec98]
push dword [0x101dec9c]
call sym.nss3.dll_PR_NotifyCondVar
add esp, 4
push dword [0x101dec8c]
call sym.nss3.dll_PR_Unlock
add esp, 4
test edi, edi
je 0x10098df4
push edi
call sym.nss3.dll_SECMOD_DestroyModule
add esp, 4
xor edi, edi
dec edi
mov eax, edi
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [ebp + 0x30], 0
mov esi, dword [ebp - 0x14]
je 0x100991a9
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov dword [edi + eax], 0x65436f6e
mov dword [edi + eax + 4], 0x42447472
mov byte [edi + eax + 8], 0
cmp dword [ebp + 0x34], 0
je 0x10098e58
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov word [edi + eax], 0x2c
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov dword [edi + eax + 4], 0x424464
mov dword [edi + eax], 0x6f4d6f6e
cmp dword [ebp + 0x38], 0
je 0x10098e8c
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov word [edi + eax], 0x2c
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov dword [edi + eax], 0x63726f66
mov dword [edi + eax + 4], 0x65704f65
mov word [edi + eax + 8], 0x6e
cmp dword [ebp - 0x10], 0
je 0x10098eba
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov word [edi + eax], 0x2c
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
movups xmm0, xmmword [str.passwordRequired]
movups xmmword [edi + eax], xmm0
mov byte [edi + eax + 0x10], 0
cmp dword [ebp + 0x40], 0
je 0x10098ef6
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov word [edi + eax], 0x2c
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov dword [edi + eax], 0x6974706f
mov dword [edi + eax + 4], 0x657a696d
mov dword [edi + eax + 8], 0x63617053
mov word [edi + eax + 0xc], 0x65
push 0x22
push 0x27
push dword [ebp - 0x1c]
call fcn.100e6a20
add esp, 0xc
test eax, eax
je 0x10099148
mov dword [ebp - 0x10], eax
push 0x22
push 0x27
push dword [ebp - 0x18]
call fcn.100e6a20
add esp, 0xc
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10099039
push 0x22
push 0x27
push dword [ebp + 8]
call fcn.100e6a20
add esp, 0xc
test eax, eax
je 0x10099039
mov dword [ebp - 0x38], eax
push 0x22
push 0x27
push dword [ebp + 0xc]
call fcn.100e6a20
add esp, 0xc
test eax, eax
je 0x100991d6
mov dword [ebp - 0x3c], eax
push 0x22
push 0x27
push dword [ebp + 0x10]
call fcn.100e6a20
add esp, 0xc
test eax, eax
je 0x100991f3
mov dword [ebp - 0x34], eax
push 0x22
push 0x27
push dword [ebp + 0x14]
call fcn.100e6a20
add esp, 0xc
test eax, eax
je 0x10099241
mov dword [ebp - 0x30], eax
push 0x22
push 0x27
push dword [ebp + 0x18]
call fcn.100e6a20
add esp, 0xc
test eax, eax
je 0x1009924d
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], 0
push 0x22
push 0x27
push dword [ebp + 0x1c]
call fcn.100e6a20
add esp, 0xc
test eax, eax
je 0x10099063
mov dword [ebp - 0x20], eax
push 0x22
push 0x27
push dword [ebp + 0x20]
call fcn.100e6a20
add esp, 0xc
test eax, eax
je 0x1009906a
mov esi, eax
test ebx, ebx
mov eax, 0x101cc833
mov ecx, str._defaultModDB_internalKeySlot
cmovne ecx, eax
mov edx, dword [ebp - 0x14]
test edx, edx
cmovne eax, edx
mov ebx, dword [ebp - 0x40]
test ebx, ebx
mov edx, str.NSS_Internal_Module
cmovne edx, ebx
push ecx
push eax
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push edi
push dword [ebp - 0x3c]
push dword [ebp - 0x38]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push edx
push str.name__s__parameters_configdir_s_certPrefix_s_keyPrefix_s_secmod_s_flags_s_updatedir_s_updateCertPrefix_s_updateKeyPrefix_s_updateid_s_updateTokenDescription_s__s__NSS_flagsinternal_moduleDB_moduleDBOnly_critical_s_
call sym.nss3.dll_PR_smprintf
add esp, 0x38
mov dword [ebp - 0x2c], eax
jmp 0x1009906c
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
xor esi, esi
mov ebx, dword [sym.imp.mozglue.dll_free]
push edi
call ebx
add esp, 4
push dword [ebp - 0x10]
call ebx
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10099091
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x100990a2
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp - 0x3c]
test eax, eax
mov ebx, dword [ebp + 0x24]
je 0x100990b6
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x100990c7
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x100990d8
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x100990e9
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x100990fa
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
test esi, esi
je 0x10099108
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
xor edi, edi
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x10099157
push 1
push 0
push esi
call sym.nss3.dll_SECMOD_LoadModule
add esp, 0xc
mov ecx, esi
mov esi, eax
push ecx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
test esi, esi
je 0x100991eb
cmp dword [esi + 8], 0
je 0x100991e2
mov eax, esi
mov esi, dword [ebp - 0x14]
jmp 0x10098be7
push edi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x10098c67
mov esi, dword [ebp - 0x14]
jmp 0x10098d74
cmp dword [0x101deca0], 0
je 0x100991ff
mov eax, dword [ebp + 0x3c]
mov ecx, dword [0x101decc8]
mov dword [0x101dec3c], ecx
mov ecx, dword [ebp + 0x34]
or ecx, dword [ebp + 0x30]
or ecx, eax
jne 0x10099192
call fcn.100d1d30
test eax, eax
je 0x10099259
call sym.nss3.dll_PR_NewLock
mov dword [0x101dee8c], eax
call fcn.10084750
mov ebx, dword [ebp + 0x24]
jmp 0x10098bf0
cmp dword [ebp + 0x34], 0
jne 0x10098e40
cmp dword [ebp + 0x38], 0
jne 0x10098e6d
cmp dword [ebp - 0x10], 0
jne 0x10098ea1
cmp dword [ebp + 0x40], 0
jne 0x10098ecf
jmp 0x10098ef6
mov dword [ebp - 0x2c], 0
jmp 0x10099047
push esi
call sym.nss3.dll_SECMOD_DestroyModule
add esp, 4
mov esi, dword [ebp - 0x14]
jmp 0x10098c67
mov dword [ebp - 0x2c], 0
jmp 0x1009904e
call sym.nss3.dll_PR_NewLock
mov dword [0x101deca0], eax
test eax, eax
je 0x10098c84
push 0x50
call sym.nss3.dll_PORT_ZAlloc_Util
add esp, 4
mov dword [0x101decac], eax
test eax, eax
je 0x100992c1
mov dword [0x101deca4], 0xa
mov dword [0x101deca8], 0
jmp 0x1009916c
mov dword [ebp - 0x2c], 0
jmp 0x10099055
mov dword [ebp - 0x2c], 0
jmp 0x1009905c
push 4
push str.sql:
mov edi, dword [ebp - 0x1c]
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x100992f0
push 4
push str.dbm:
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x100992f0
push 7
push str.extern:
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x10099428
push 4
push str.rdb:
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test edi, edi
je 0x10099192
test eax, eax
jne 0x100992f6
jmp 0x10099192
mov dword [ebp - 0x14], esi
mov esi, dword [0x101deca0]
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_DeleteCriticalSection]
push esi
mov esi, dword [ebp - 0x14]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov dword [0x101deca0], 0
jmp 0x10098c84
add edi, 4
mov dword [ebp - 0x1c], edi
push dword [ebp - 0x1c]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov edi, eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10099315
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
jmp 0x10099317
xor eax, eax
mov dword [ebp - 0x10], eax
add eax, edi
add eax, 0xd
mov dword [ebp - 0x38], eax
push eax
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
test eax, eax
je 0x10099192
mov ebx, eax
push edi
push dword [ebp - 0x1c]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp byte [edi + ebx - 1], 0x2f
je 0x1009934e
mov byte [ebx + edi], 0x2f
inc edi
mov dword [ebx + edi + 8], 0x6c6c64
mov dword [ebx + edi + 4], 0x2e69626b
mov dword [ebx + edi], 0x6373736e
mov al, 1
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0x10], 0
jle 0x1009943a
push 0x2f
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_strrchr
add esp, 8
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1009943a
push dword [ebp - 0x38]
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
mov dword [ebp - 0x24], eax
test eax, eax
je 0x10099430
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
sub eax, ecx
inc eax
mov dword [ebp - 0x10], eax
push edi
push ebx
push dword [ebp - 0x24]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x24]
add eax, edi
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x10]
add eax, edi
mov ecx, dword [ebp - 0x24]
mov dword [ecx + eax], 0x6373736e
mov dword [ecx + eax + 4], 0x2e69626b
mov dword [ecx + eax + 8], 0x6c6c64
sub esp, 0x18
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], ecx
mov dword [esp], str.Root_Certs
call sym.nss3.dll_SECMOD_AddNewModuleEx
add esp, 0x18
call fcn.100d1d30
test eax, eax
je 0x10099433
push ebx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x10099476
add edi, 7
jmp 0x100992f3
push ebx
jmp 0x10099479
mov dword [ebp - 0x1c], 0
sub esp, 0x18
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], ebx
mov dword [esp], str.Root_Certs
call sym.nss3.dll_SECMOD_AddNewModuleEx
add esp, 0x18
push ebx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
cmp byte [ebp - 0x1c], 0
jne 0x10099192
cmp dword [ebp - 0x24], 0
je 0x10099192
push dword [ebp - 0x24]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x10099192
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov ebx, eax
jmp 0x10098a41
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov esi, eax
jmp 0x10098db8
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov esi, eax
jmp 0x10098c0f