Function at 0x100fd940
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
cmp dword [ebp + 0x24], 0
mov ebx, edx
mov esi, ecx
jne 0x100fd962
xor edi, edi
test byte [0x101d57d0], 1
jne 0x100fe249
push 0x100fe880
push 0x101d57c0
call sym.nss3.dll_PR_CallOnce
add esp, 8
xor edi, edi
dec edi
test eax, eax
jne 0x100fe249
mov dword [ebp - 0x20], esi
mov esi, dword [0x101d57cc]
mov dword [ebp - 0x28], ebx
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x100fe3d3
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], ebx
xor ebx, ebx
inc ebx
mov eax, dword [0x101d57d8]
cmp byte [0x101d57d0], 0
jne 0x100fda08
cmp dword [0x101d57d4], 0
jne 0x100fda08
test eax, eax
je 0x100fda04
push 0xffffffffffffffff
push dword [0x101d57dc]
call sym.nss3.dll_PR_WaitCondVar
add esp, 8
cmp dword [0x101d57d4], 0
mov eax, dword [0x101d57d8]
setne cl
or cl, byte [0x101d57d0]
test eax, eax
je 0x100fd9fc
mov edx, ecx
and dl, 1
je 0x100fd9cc
movzx ebx, cl
and ebx, 1
jmp 0x100fda08
xor eax, eax
xor ebx, ebx
inc eax
mov dword [0x101d57d8], eax
push dword [0x101d57cc]
call sym.nss3.dll_PR_Unlock
add esp, 4
test ebx, ebx
je 0x100fda83
mov ecx, dword [ebp + 0x48]
mov edx, dword [ebp + 0x44]
mov eax, dword [ebp + 0x4c]
mov esi, ecx
or esi, edx
or esi, eax
je 0x100fda4c
test edx, edx
setne byte [0x101d59a8]
test ecx, ecx
setne byte [0x101d59ac]
test eax, eax
setne byte [0x101d59b0]
mov esi, dword [ebp + 0x24]
test esi, esi
je 0x100fdac4
push 8
call sym.nss3.dll_PORT_ZAlloc_Util
add esp, 4
test eax, eax
mov dword [esi], eax
je 0x100fdd06
mov esi, dword [ebp + 0x28]
test esi, esi
je 0x100fdae0
cmp dword [esi], 0x2b
ja 0x100fdaf7
push 0
push 0xffffe005
jmp 0x100fdcfe
call fcn.100e9fc0
xor edi, edi
test eax, eax
mov ecx, 0
jne 0x100fe1c1
call fcn.100eb870
xor edi, edi
test eax, eax
mov ecx, 0
jne 0x100fe1c1
call fcn.100f4c90
xor edi, edi
test eax, eax
mov ecx, 0
jne 0x100fe1c1
jmp 0x100fda20
mov eax, dword [0x101d57b8]
mov edx, dword [0x101d57b4]
mov ecx, dword [0x101d57bc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
jmp 0x100fdb3b
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
jmp 0x100fdb31
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 0x1c]
push dword [esi + 0x28]
push dword [esi + 0x24]
push dword [esi + 0x20]
push dword [esi + 0x18]
push dword [esi + 0x14]
call fcn.100fd6e0
add esp, 0x1c
test eax, eax
je 0x100fdcf7
mov edx, dword [esi + 4]
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
push 0
call fcn.1013bf00
add esp, 4
mov eax, dword [ebp + 0x34]
mov esi, dword [ebp + 0x30]
test eax, eax
je 0x100fdbac
test esi, esi
je 0x100fdbac
xor edi, edi
test ebx, ebx
je 0x100fdbac
test ebx, ebx
je 0x100fdbd8
mov dword [ebp - 0x28], edi
mov edi, dword [0x101d57cc]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100fe3ff
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov ebx, dword [ebp + 0x24]
mov dword [edi + 8], esi
test ebx, ebx
je 0x100fdc9e
mov eax, dword [ebx]
mov dword [eax + 4], 0x1413a91c
mov eax, dword [0x101d57d4]
mov ecx, dword [ebx]
mov dword [ecx], eax
mov eax, dword [ebx]
mov dword [0x101d57d4], eax
jmp 0x100fdca5
push 0x1013d240
push 0x101d5b60
call sym.nss3.dll_PR_CallOnce
add esp, 8
test eax, eax
je 0x100fdc3d
push 0
push 0xffffe013
call sym.nss3.dll_PR_SetError
add esp, 8
xor edi, edi
jmp 0x100fe1be
mov ebx, eax
call sym.nss3.dll_SECOID_Init
test eax, eax
jne 0x100fe1be
call fcn.101058d0
test eax, eax
jne 0x100fe1be
cmp dword [0x101d57e0], 0
je 0x100fe0d8
mov eax, dword [ebp + 0x3c]
mov ecx, dword [0x101d5808]
or ebx, esi
mov dword [ebp - 0x28], edi
or ebx, eax
mov dword [0x101d577c], ecx
jne 0x100fdc26
call fcn.10135ea0
test eax, eax
je 0x100fe126
call sym.nss3.dll_PR_NewLock
mov dword [0x101d59cc], eax
call fcn.100ea120
mov edi, dword [ebp - 0x28]
jmp 0x100fdb57
mov esi, 0x57
push esi
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
mov edi, eax
push esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [ebp + 0x2c], 0
je 0x100fdd0f
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp dword [ebp + 0x30], 0
mov esi, dword [ebp - 0x20]
mov dword [edi + eax], 0x64616572
mov dword [edi + eax + 4], 0x796c6e4f
mov byte [edi + eax + 8], 0
je 0x100fdd39
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov word [edi + eax], 0x2c
jmp 0x100fdd1c
mov byte [0x101d57d0], 1
mov esi, dword [ebp - 0x28]
dec dword [0x101d57d8]
push dword [0x101d57dc]
call sym.nss3.dll_PR_NotifyAllCondVar
add esp, 4
push dword [0x101d57cc]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [ebp - 0x18]
test ebx, ebx
je 0x100fdcdf
test eax, eax
je 0x100fdcdf
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
xor edi, edi
test esi, esi
je 0x100fe249
push esi
call sym.nss3.dll_SECMOD_DestroyModule
add esp, 4
jmp 0x100fe249
push 0
push 0xffffe013
call sym.nss3.dll_PR_SetError
add esp, 8
xor edi, edi
xor ecx, ecx
jmp 0x100fe1c1
cmp dword [ebp + 0x30], 0
mov esi, dword [ebp - 0x20]
je 0x100fe078
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 0x100fdd66
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 0x100fdd9a
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 - 0x14], 0
je 0x100fddcc
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 ecx, edi
add ecx, eax
push 0x11
push str.passwordRequired
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp dword [ebp + 0x40], 0
je 0x100fde08
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 esi
call fcn.10149c80
add esp, 0xc
test eax, eax
je 0x100fe069
mov esi, eax
push 0x22
push 0x27
push dword [ebp - 0x28]
call fcn.10149c80
add esp, 0xc
test eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], esi
je 0x100fdf5a
push 0x22
push 0x27
push dword [ebp + 8]
call fcn.10149c80
add esp, 0xc
test eax, eax
je 0x100fdf5a
mov dword [ebp - 0x38], eax
push 0x22
push 0x27
push dword [ebp + 0xc]
call fcn.10149c80
add esp, 0xc
test eax, eax
je 0x100fe0ad
mov dword [ebp - 0x3c], eax
push 0x22
push 0x27
push dword [ebp + 0x10]
call fcn.10149c80
add esp, 0xc
test eax, eax
je 0x100fe0cc
mov dword [ebp - 0x34], eax
push 0x22
push 0x27
push dword [ebp + 0x14]
call fcn.10149c80
add esp, 0xc
test eax, eax
je 0x100fe11a
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1c], 0
push 0x22
push 0x27
push dword [ebp + 0x18]
call fcn.10149c80
add esp, 0xc
test eax, eax
je 0x100fdf7d
mov dword [ebp - 0x2c], eax
push 0x22
push 0x27
push dword [ebp + 0x1c]
call fcn.10149c80
add esp, 0xc
test eax, eax
je 0x100fdf84
mov dword [ebp - 0x24], eax
push 0x22
push 0x27
push dword [ebp + 0x20]
call fcn.10149c80
add esp, 0xc
test eax, eax
je 0x100fdf8b
cmp dword [ebp + 0x24], 0
mov edx, dword [ebp - 0x18]
mov esi, eax
mov eax, 0x101c3b42
mov ecx, str._defaultModDB_internalKeySlot
mov dword [ebp - 0x1c], str.NSS_Internal_Module
cmovne ecx, eax
test edx, edx
cmovne eax, edx
cmp dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x1c]
cmovne edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
push ecx
push eax
mov dword [ebp - 0x10], esi
push esi
push dword [ebp - 0x24]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push edi
push dword [ebp - 0x3c]
push dword [ebp - 0x38]
push dword [ebp - 0x28]
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
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 - 0x1c], eax
jmp 0x100fdf92
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x10], 0
mov esi, dword [sym.imp.mozglue.dll_free]
push edi
call esi
add esp, 4
push dword [ebp - 0x14]
call esi
add esp, 4
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x100fdfb7
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x100fdfc8
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x1c]
test eax, eax
je 0x100fdfdc
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x100fdfed
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x100fdffe
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x100fe00f
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x100fe020
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x100fe031
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
xor edi, edi
test esi, esi
je 0x100fe1be
push 1
push 0
push esi
call sym.nss3.dll_SECMOD_LoadModule
add esp, 0xc
mov edi, eax
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
test edi, edi
je 0x100fe0c2
cmp dword [edi + 8], 0
je 0x100fe0b9
mov eax, dword [ebp + 0x34]
mov esi, dword [ebp + 0x30]
jmp 0x100fdb4f
push edi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x100fdbd1
cmp dword [ebp + 0x34], 0
jne 0x100fdd4e
cmp dword [ebp + 0x38], 0
jne 0x100fdd7b
cmp dword [ebp - 0x14], 0
jne 0x100fddaf
cmp dword [ebp + 0x40], 0
jne 0x100fdde1
test edi, edi
jne 0x100fde08
jmp 0x100fdbd1
mov dword [ebp - 0x1c], 0
jmp 0x100fdf68
push edi
call sym.nss3.dll_SECMOD_DestroyModule
add esp, 4
mov ecx, dword [ebp - 0x18]
xor edi, edi
jmp 0x100fe1c1
mov dword [ebp - 0x1c], 0
jmp 0x100fdf6f
call sym.nss3.dll_PR_NewLock
test eax, eax
mov dword [0x101d57e0], eax
je 0x100fe1be
push 0x50
call sym.nss3.dll_PORT_ZAlloc_Util
add esp, 4
test eax, eax
mov dword [0x101d57ec], eax
je 0x100fe19a
mov dword [0x101d57e4], 0xa
mov dword [0x101d57e8], 0
jmp 0x100fdc01
mov dword [ebp - 0x1c], 0
jmp 0x100fdf76
push 4
push str.sql:
mov esi, dword [ebp - 0x20]
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x100fe253
push 4
push str.dbm:
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x100fe253
push 7
push str.extern:
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x100fe3b7
push 4
push str.rdb:
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test esi, esi
je 0x100fdc26
test eax, eax
jne 0x100fe259
jmp 0x100fdc26
mov esi, dword [0x101d57e0]
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 [0x101d57e0], 0
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp + 0x24]
test esi, esi
je 0x100fe1ee
mov eax, dword [esi]
test eax, eax
je 0x100fe1ee
push eax
mov ebx, ecx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
test ebx, ebx
mov dword [esi], 0
je 0x100fe1ee
push ebx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov ebx, dword [0x101d57cc]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100fe3e9
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], esi
dec dword [0x101d57d8]
push dword [0x101d57dc]
call sym.nss3.dll_PR_NotifyCondVar
add esp, 4
push dword [0x101d57cc]
call sym.nss3.dll_PR_Unlock
add esp, 4
test edi, edi
je 0x100fe246
push edi
call sym.nss3.dll_SECMOD_DestroyModule
add esp, 4
xor edi, edi
dec edi
mov eax, edi
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
add esi, 4
mov dword [ebp - 0x20], esi
push dword [ebp - 0x20]
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 0x100fe278
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
jmp 0x100fe27a
xor eax, eax
lea ebx, [edi + eax + 0xd]
mov dword [ebp - 0x14], eax
push ebx
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
test eax, eax
je 0x100fdc26
mov esi, eax
mov dword [ebp - 0x10], ebx
push edi
push dword [ebp - 0x20]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp byte [edi + esi - 1], 0x2f
je 0x100fe2b0
mov byte [esi + edi], 0x2f
inc edi
cmp dword [ebp - 0x14], 0
mov al, 1
mov dword [esi + edi + 8], 0x6c6c64
mov dword [esi + edi + 4], 0x2e69626b
mov dword [esi + edi], 0x6373736e
mov dword [ebp - 0x20], eax
jle 0x100fe382
push 0x2f
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_strrchr
add esp, 8
test eax, eax
mov ebx, 0
mov dword [ebp - 0x38], eax
je 0x100fe384
push dword [ebp - 0x10]
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
test eax, eax
mov dword [ebp - 0x14], eax
je 0x100fe3bf
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x38]
sub ebx, eax
inc ebx
push edi
push esi
push dword [ebp - 0x14]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x14]
add eax, edi
push ebx
push dword [ebp + 0xc]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x14]
add ebx, edi
mov dword [eax + ebx], 0x6373736e
mov dword [eax + ebx + 4], 0x2e69626b
mov dword [eax + ebx + 8], 0x6c6c64
mov ecx, eax
xor eax, eax
push eax
push eax
push eax
mov dword [ebp - 0x20], 0
push eax
push ecx
push str.Root_Certs
call sym.nss3.dll_SECMOD_AddNewModuleEx
add esp, 0x18
call fcn.10135ea0
test eax, eax
je 0x100fe3ce
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov ebx, dword [ebp - 0x14]
jmp 0x100fe3b4
xor ebx, ebx
xor eax, eax
push eax
push eax
push eax
push eax
push esi
push str.Root_Certs
call sym.nss3.dll_SECMOD_AddNewModuleEx
add esp, 0x18
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
cmp byte [ebp - 0x20], 0
jne 0x100fdc26
test ebx, ebx
je 0x100fdc26
push ebx
jmp 0x100fe3c0
add esi, 7
jmp 0x100fe256
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x100fdc26
mov ebx, dword [ebp - 0x14]
jmp 0x100fe384
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov ebx, eax
jmp 0x100fd9a1
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x100fe20a
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x100fdb76