Function at 0x100911b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov esi, edx
mov edi, ecx
cmp dword [ebp + 0x24], 0
jne 0x100911d2
xor ebx, ebx
test byte [0x101f3048], 1
jne 0x100914bf
push 0x100921a0
push 0x101f3028
call sym.nss3.dll_PR_CallOnce
add esp, 8
test eax, eax
je 0x100911f0
xor ebx, ebx
dec ebx
jmp 0x100914bf
mov dword [ebp - 0x14], edi
mov edi, dword [0x101f3034]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x10091c12
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], ebx
mov bl, 1
mov eax, dword [0x101f3050]
cmp byte [0x101f3048], 0
jne 0x1009126d
cmp dword [0x101f304c], 0
jne 0x1009126d
test eax, eax
je 0x10091269
push 0xffffffffffffffff
push dword [0x101f3054]
call sym.nss3.dll_PR_WaitCondVar
add esp, 8
cmp dword [0x101f304c], 0
setne bl
or bl, byte [0x101f3048]
mov eax, dword [0x101f3050]
test bl, 1
jne 0x1009126d
test eax, eax
jne 0x10091239
jmp 0x1009126d
xor eax, eax
xor ebx, ebx
inc eax
mov dword [0x101f3050], eax
push dword [0x101f3034]
call sym.nss3.dll_PR_Unlock
add esp, 4
test bl, 1
je 0x10091327
mov eax, dword [ebp + 0x4c]
mov ecx, dword [ebp + 0x48]
mov edx, dword [ebp + 0x44]
mov edi, ecx
or edi, edx
or edi, eax
je 0x100912b6
test edx, edx
setne byte [0x101f3210]
test ecx, ecx
setne byte [0x101f3214]
test eax, eax
setne byte [0x101f3218]
mov edi, dword [ebp + 0x24]
test edi, edi
je 0x10091346
push 8
call sym.nss3.dll_PORT_ZAlloc_Util
add esp, 4
mov dword [edi], eax
test eax, eax
je 0x1009135e
mov edi, dword [ebp + 0x28]
test edi, edi
je 0x1009136a
mov eax, 0xffffe005
cmp dword [edi], 0x2c
jb 0x10091584
mov edx, dword [edi + 0x10]
mov ecx, dword [edi + 0xc]
push dword [edi + 8]
push dword [edi + 0x1c]
push dword [edi + 0x28]
push dword [edi + 0x24]
push dword [edi + 0x20]
push dword [edi + 0x18]
push dword [edi + 0x14]
call fcn.10090f10
add esp, 0x1c
test eax, eax
je 0x1009157f
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x18], eax
mov edi, dword [edi + 0x10]
jmp 0x1009137a
call fcn.1007c8f0
xor edi, edi
test eax, eax
jne 0x1009133f
call fcn.1007e250
test eax, eax
je 0x1009141f
xor ecx, ecx
jmp 0x10091431
mov eax, dword [0x101f3020]
mov dword [ebp - 0x1c], eax
mov edi, dword [0x101f301c]
mov eax, dword [0x101f3024]
mov dword [ebp - 0x18], eax
jmp 0x10091384
mov dword [ebp - 0x14], 0
jmp 0x10091461
mov dword [ebp - 0x1c], 0
xor edi, edi
mov dword [ebp - 0x18], 0
push 0
call fcn.100d09d0
add esp, 4
cmp dword [ebp + 0x30], 0
setne al
cmp dword [ebp + 0x34], 0
setne cl
and cl, al
xor eax, eax
test cl, bl
je 0x100913ef
mov dword [ebp - 0x14], eax
mov edi, dword [0x101f3034]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x10091cad
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov esi, dword [ebp + 0x24]
test esi, esi
je 0x100914c9
mov eax, dword [esi]
mov dword [eax + 4], 0x1413a91c
mov eax, dword [0x101f304c]
mov ecx, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi]
mov dword [0x101f304c], eax
jmp 0x100914d0
push 0x100d1e10
push 0x101f33c8
call sym.nss3.dll_PR_CallOnce
add esp, 8
test eax, eax
je 0x1009150b
push 0
push 0xffffe013
call sym.nss3.dll_PR_SetError
add esp, 8
xor edi, edi
mov ecx, dword [ebp - 0x1c]
jmp 0x10091431
call fcn.10087e90
mov ecx, 0
test eax, eax
je 0x1009128a
mov dword [ebp - 0x14], edi
mov esi, dword [ebp + 0x24]
test esi, esi
je 0x10091461
mov eax, dword [esi]
test eax, eax
je 0x10091461
push eax
mov edi, ecx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov dword [esi], 0
test edi, edi
je 0x10091461
push edi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov edi, dword [0x101f3034]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x10091c2f
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
dec dword [0x101f3050]
push dword [0x101f3054]
call sym.nss3.dll_PR_NotifyCondVar
add esp, 4
push dword [0x101f3034]
call sym.nss3.dll_PR_Unlock
add esp, 4
xor ebx, ebx
dec ebx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100914bf
push eax
call sym.nss3.dll_SECMOD_DestroyModule
add esp, 4
mov eax, ebx
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
mov byte [0x101f3048], 1
dec dword [0x101f3050]
push dword [0x101f3054]
call sym.nss3.dll_PR_NotifyAllCondVar
add esp, 4
push dword [0x101f3034]
call sym.nss3.dll_PR_Unlock
add esp, 4
test esi, esi
mov eax, dword [ebp - 0x1c]
je 0x10091507
test eax, eax
je 0x10091507
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
xor ebx, ebx
jmp 0x100914af
mov dword [ebp - 0x40], edi
mov edi, dword [ebp + 0x2c]
push 0x57
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
mov ecx, 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 [ecx + 0x53], eax
mov dword [ecx + 0x4f], eax
test edi, edi
mov dword [ebp - 0x10], ecx
je 0x100915a0
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov ecx, dword [ebp - 0x10]
add esp, 4
mov dword [ecx + eax], 0x64616572
mov dword [ecx + eax + 4], 0x796c6e4f
mov byte [ecx + eax + 8], 0
cmp dword [ebp + 0x30], 0
mov edi, dword [ebp + 0x24]
je 0x100915cd
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov ecx, dword [ebp - 0x10]
add esp, 4
mov word [ecx + eax], 0x2c
jmp 0x100915ad
mov eax, 0xffffe013
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x14], 0
mov esi, dword [ebp + 0x24]
jmp 0x1009143b
cmp dword [ebp + 0x30], 0
mov edi, dword [ebp + 0x24]
je 0x1009197c
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov ecx, dword [ebp - 0x10]
add esp, 4
mov dword [ecx + eax], 0x65436f6e
mov dword [ecx + eax + 4], 0x42447472
mov byte [ecx + eax + 8], 0
cmp dword [ebp + 0x34], 0
je 0x10091600
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov ecx, dword [ebp - 0x10]
add esp, 4
mov word [ecx + eax], 0x2c
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov ecx, dword [ebp - 0x10]
add esp, 4
mov dword [ecx + eax + 4], 0x424464
mov dword [ecx + eax], 0x6f4d6f6e
cmp dword [ebp + 0x38], 0
je 0x1009163a
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov ecx, dword [ebp - 0x10]
add esp, 4
mov word [ecx + eax], 0x2c
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov ecx, dword [ebp - 0x10]
add esp, 4
mov dword [ecx + eax], 0x63726f66
mov dword [ecx + eax + 4], 0x65704f65
mov word [ecx + eax + 8], 0x6e
cmp dword [ebp - 0x18], 0
je 0x1009166e
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov ecx, dword [ebp - 0x10]
add esp, 4
mov word [ecx + eax], 0x2c
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov ecx, dword [ebp - 0x10]
add esp, 4
movups xmm0, xmmword [str.passwordRequired]
movups xmmword [ecx + eax], xmm0
mov byte [ecx + eax + 0x10], 0
cmp dword [ebp + 0x40], 0
je 0x100916b0
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov ecx, dword [ebp - 0x10]
add esp, 4
mov word [ecx + eax], 0x2c
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov ecx, dword [ebp - 0x10]
add esp, 4
mov dword [ecx + eax], 0x6974706f
mov dword [ecx + eax + 4], 0x657a696d
mov dword [ecx + eax + 8], 0x63617053
mov word [ecx + eax + 0xc], 0x65
push 0x22
push 0x27
push dword [ebp - 0x14]
call fcn.100def50
add esp, 0xc
test eax, eax
je 0x1009196b
mov dword [ebp - 0x18], eax
push 0x22
push 0x27
push esi
call fcn.100def50
add esp, 0xc
mov dword [ebp - 0x34], eax
test eax, eax
je 0x100917f3
push 0x22
push 0x27
push dword [ebp + 8]
call fcn.100def50
add esp, 0xc
test eax, eax
je 0x100917f3
mov dword [ebp - 0x3c], eax
push 0x22
push 0x27
push dword [ebp + 0xc]
call fcn.100def50
add esp, 0xc
test eax, eax
je 0x100919a9
mov dword [ebp - 0x38], eax
push 0x22
push 0x27
push dword [ebp + 0x10]
call fcn.100def50
add esp, 0xc
test eax, eax
je 0x100919c3
mov dword [ebp - 0x30], eax
push 0x22
push 0x27
push dword [ebp + 0x14]
call fcn.100def50
add esp, 0xc
test eax, eax
je 0x100919cf
mov dword [ebp - 0x2c], eax
push 0x22
push 0x27
push dword [ebp + 0x18]
call fcn.100def50
add esp, 0xc
test eax, eax
je 0x100919db
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
push 0x22
push 0x27
push dword [ebp + 0x1c]
call fcn.100def50
add esp, 0xc
test eax, eax
je 0x1009181d
mov dword [ebp - 0x20], eax
push 0x22
push 0x27
push dword [ebp + 0x20]
call fcn.100def50
add esp, 0xc
test eax, eax
je 0x10091824
mov esi, eax
test edi, edi
mov ecx, 0x101e0242
mov edx, str._defaultModDB_internalKeySlot
cmovne edx, ecx
mov eax, dword [ebp - 0x1c]
test eax, eax
cmovne ecx, eax
mov edi, dword [ebp - 0x40]
test edi, edi
mov eax, str.NSS_Internal_Module
cmovne eax, edi
push edx
push ecx
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 0x10]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp - 0x34]
push dword [ebp - 0x18]
push eax
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 - 0x28], eax
jmp 0x10091826
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
xor esi, esi
mov edi, dword [sym.imp.mozglue.dll_free]
push dword [ebp - 0x10]
call edi
add esp, 4
push dword [ebp - 0x18]
call edi
add esp, 4
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x1009184d
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x1009185e
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x1009186f
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x10091880
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x10091891
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x100918a2
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x100918b3
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
test esi, esi
je 0x100918c1
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
xor edi, edi
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x1009141a
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 0x1009141a
mov eax, esi
cmp dword [esi + 8], 0
je 0x100919b5
test bl, 1
jne 0x1009139a
mov edi, eax
call sym.nss3.dll_SECOID_Init
test eax, eax
jne 0x1009141a
call fcn.10099530
test eax, eax
jne 0x1009141a
cmp dword [0x101f3038], 0
je 0x100919e7
mov eax, dword [ebp + 0x3c]
mov ecx, dword [0x101f3070]
mov dword [0x101f2fe4], ecx
mov ecx, dword [ebp + 0x30]
or ecx, eax
or ecx, dword [ebp + 0x34]
jne 0x10091955
call fcn.100c9e40
test eax, eax
je 0x10091a29
call sym.nss3.dll_PR_NewLock
mov dword [0x101f3234], eax
call fcn.1007ca60
mov eax, edi
jmp 0x1009139a
push dword [ebp - 0x10]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x10091418
cmp dword [ebp + 0x34], 0
jne 0x100915e5
cmp dword [ebp + 0x38], 0
jne 0x10091618
cmp dword [ebp - 0x18], 0
jne 0x10091652
cmp dword [ebp + 0x40], 0
jne 0x10091686
jmp 0x100916b0
mov dword [ebp - 0x28], 0
jmp 0x10091801
push eax
call sym.nss3.dll_SECMOD_DestroyModule
add esp, 4
jmp 0x1009141a
mov dword [ebp - 0x28], 0
jmp 0x10091808
mov dword [ebp - 0x28], 0
jmp 0x1009180f
mov dword [ebp - 0x28], 0
jmp 0x10091816
call sym.nss3.dll_PR_NewLock
mov dword [0x101f3038], eax
test eax, eax
je 0x1009141a
push 0x50
call sym.nss3.dll_PORT_ZAlloc_Util
add esp, 4
mov dword [0x101f3044], eax
test eax, eax
je 0x10091a9b
mov dword [0x101f303c], 0xa
mov dword [0x101f3040], 0
jmp 0x1009192f
push 4
push str.sql:
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x10091ac4
push 4
push str.dbm:
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x10091ac4
push 7
push str.extern:
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x10091c4c
push 4
push str.rdb:
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test esi, esi
je 0x10091955
test eax, eax
jne 0x10091ac8
jmp 0x10091955
mov esi, dword [0x101f3038]
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_DeleteCriticalSection]
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov dword [0x101f3038], 0
jmp 0x1009141a
add dword [ebp - 0x14], 4
push dword [ebp - 0x14]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov esi, eax
cmp dword [ebp + 0xc], 0
je 0x10091aeb
push dword [ebp + 0xc]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov dword [ebp - 0x18], eax
jmp 0x10091af2
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
add eax, esi
add eax, 0xd
mov dword [ebp - 0x34], eax
push eax
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10091955
push esi
push dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp byte [esi + ebx - 1], 0x2f
je 0x10091b30
mov eax, dword [ebp - 0x10]
mov byte [eax + esi], 0x2f
inc esi
mov eax, dword [ebp - 0x10]
mov dword [eax + esi + 8], 0x6c6c64
mov dword [eax + esi + 4], 0x2e69626b
mov dword [eax + esi], 0x6373736e
mov bl, 1
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x18], 0
jle 0x10091c5f
push 0x2f
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_strrchr
add esp, 8
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10091c5f
push dword [ebp - 0x34]
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10091c55
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
sub eax, ecx
mov dword [ebp - 0x18], eax
inc eax
mov dword [ebp - 0x34], eax
push esi
push dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, ebx
add eax, esi
push dword [ebp - 0x34]
push dword [ebp + 0xc]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x18]
add eax, esi
inc eax
mov dword [ebx + eax], 0x6373736e
mov dword [ebx + eax + 4], 0x2e69626b
mov dword [ebx + eax + 8], 0x6c6c64
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
call fcn.100c9e40
test eax, eax
je 0x10091c5d
push dword [ebp - 0x10]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x10091c9c
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov ebx, eax
jmp 0x1009120f
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov esi, eax
jmp 0x1009147d
add dword [ebp - 0x14], 7
jmp 0x10091ac8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
jmp 0x10091c9c
xor ebx, ebx
sub esp, 0x18
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
mov esi, dword [ebp - 0x10]
mov dword [esp + 4], esi
mov dword [esp], str.Root_Certs
call sym.nss3.dll_SECMOD_AddNewModuleEx
add esp, 0x18
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
test bl, bl
jne 0x10091955
cmp dword [ebp - 0x14], 0
je 0x10091955
push dword [ebp - 0x14]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x10091955
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov esi, eax
jmp 0x100913b9