Function at 0x1007e660
Capabilities:
Get thread local storage value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ebx, dword [0x101f3008]
test ebx, ebx
je 0x1007e6f1
mov edi, edx
mov dword [ebp - 0x60], ecx
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x1007f342
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], esi
test edi, edi
je 0x1007e6fa
mov eax, dword [0x101f300c]
test eax, eax
je 0x1007e6fa
mov ebx, dword [ebp + 8]
push edi
push eax
call sym.nss3.dll_PL_HashTableLookup
add esp, 8
test eax, eax
je 0x1007e73a
mov esi, eax
push dword [0x101f3008]
call sym.nss3.dll_PR_Unlock
add esp, 4
test ebx, ebx
je 0x1007e83a
push 0
push 0xffffe001
call sym.nss3.dll_PR_SetError
add esp, 8
xor eax, eax
jmp 0x1007e83d
push 0
push 0xffffe001
jmp 0x1007e71b
xor esi, esi
mov edi, 0xffffe001
push esi
push edi
call sym.nss3.dll_PR_SetError
add esp, 8
push dword [0x101f3008]
call sym.nss3.dll_PR_Unlock
add esp, 4
push esi
push edi
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
dec esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
mov eax, esi
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
push 8
call sym.nss3.dll_PORT_ZAlloc_Util
add esp, 4
test eax, eax
je 0x1007e8c0
mov esi, eax
push edi
call sym.nss3.dll_SECITEM_DupItem_Util
add esp, 4
mov dword [esi], eax
cmp dword [ebp + 0x18], 0
je 0x1007e8d7
test ebx, ebx
mov ebx, dword [ebp + 0x1c]
jne 0x1007e8e9
mov dword [esi + 4], 0
push 0x40
call sym.nss3.dll_PORT_ZAlloc_Util
add esp, 4
test eax, eax
je 0x1007e8e9
xor ecx, ecx
push ecx
push ecx
mov dword [ebp - 0x3c], eax
call fcn.100d2ee0
mov edx, dword [ebp - 0x3c]
add esp, 8
mov dword [edx], eax
test eax, eax
je 0x1007ec43
mov ecx, dword [ebp - 0x60]
test ecx, ecx
je 0x1007e7c5
mov eax, dword [ecx + 0x11c]
mov dword [edx + 8], eax
lea eax, [ecx + 0x3c]
push eax
call sym.nss3.dll_SECITEM_DupItem_Util
mov edx, dword [ebp - 0x3c]
add esp, 4
mov dword [edx + 4], eax
push 0
call sym.nss3.dll_SECITEM_DupItem_Util
add esp, 4
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 0x10], eax
push edi
call sym.nss3.dll_SECITEM_DupItem_Util
add esp, 4
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 0xc], eax
xorps xmm0, xmm0
movups xmmword [ecx + 0x30], xmm0
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0x18]
mov dword [eax], ecx
mov dword [ebx], 1
mov eax, dword [eax]
push dword [eax]
call fcn.100d31d0
add esp, 4
mov eax, dword [0x101f300c]
test eax, eax
je 0x1007f1fc
push esi
push dword [esi]
push eax
call sym.nss3.dll_PL_HashTableAdd
add esp, 0xc
mov edi, eax
push dword [0x101f3008]
call sym.nss3.dll_PR_Unlock
add esp, 4
test edi, edi
mov edi, dword [ebp + 0x18]
jne 0x1007e845
jmp 0x1007e8fa
mov eax, dword [esi + 4]
mov ebx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
mov dword [edi], eax
cmp dword [ebx], 0
jne 0x1007e856
mov eax, dword [edi]
push dword [eax]
call fcn.100d3060
add esp, 4
mov esi, dword [edi]
test esi, esi
je 0x1007e723
xor ecx, ecx
cmp dword [esi + 0x24], 1
mov eax, dword [ebx]
mov dword [ebp - 0x54], eax
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x3c], eax
mov edi, dword [esi + 0x30]
mov edx, 0
mov dword [ebp - 0x50], esi
je 0x1007e9bf
xor ecx, ecx
mov al, 1
mov dword [ebp - 0x58], eax
test byte [esi + 0x20], 2
jne 0x1007e8d3
call sym.nss3.dll_PR_Now
mov ecx, eax
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1007e927
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], ecx
mov ecx, dword [esi + 0x18]
xor edx, edx
mov esi, dword [ecx + edx*4]
test esi, esi
je 0x1007e8b9
cmp dword [esi + 4], 0
je 0x1007e917
inc edx
cmp eax, edx
jne 0x1007e8ac
jmp 0x1007e91e
push dword [0x101f3008]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x1007e723
xor edx, edx
jmp 0x1007e927
push 0
push 0xffffe001
call sym.nss3.dll_PR_SetError
add esp, 8
mov ebx, dword [ebp + 0x1c]
push dword [0x101f3008]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov edi, dword [ebp + 0x18]
cmp dword [ebx], 1
jne 0x1007e90b
mov eax, dword [edi]
push dword [eax]
call fcn.100d32c0
add esp, 4
mov ecx, esi
call fcn.1007e3d0
jmp 0x1007e723
mov dword [ebp - 0x58], 0
mov esi, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
mov eax, edi
or eax, dword [ebp - 0x3c]
je 0x1007e9bf
test byte [esi + 0x20], 2
jne 0x1007e9bf
mov ebx, edx
mov edx, dword [esi + 0x30]
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x48], eax
mov eax, ecx
mov dword [ebp - 0x4c], edx
sub eax, edx
mov dword [ebp - 0x5c], eax
mov eax, ebx
sbb eax, dword [ebp - 0x48]
cmp byte [ebp - 0x58], 0
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ebx
je 0x1007e990
cmp ecx, dword [ebp - 0x4c]
sbb ebx, dword [ebp - 0x48]
jl 0x1007e9b9
xor ebx, ebx
xor edx, edx
mov esi, 0x3938700
cmp esi, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x50]
sbb edx, eax
mov dword [ebp - 0x4c], 0
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
jge 0x1007ed2d
jmp 0x1007e9bf
cmp ecx, dword [ebp - 0x4c]
sbb ebx, dword [ebp - 0x48]
jl 0x1007e9b9
xor ebx, ebx
cmp dword [ebp - 0x5c], 0x23c34601
sbb eax, 0
mov dword [ebp - 0x4c], 0
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
jl 0x1007ed2d
jmp 0x1007e9bf
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], ecx
cmp dword [ebp - 0x54], 0
jne 0x1007e9d5
push dword [esi]
call fcn.100d3140
add esp, 4
push dword [esi]
call fcn.100d31d0
add esp, 4
mov eax, dword [ebp - 0x3c]
xor eax, dword [esi + 0x34]
xor edi, dword [esi + 0x30]
xor ebx, ebx
or edi, eax
mov dword [ebp - 0x4c], 0
jne 0x1007ed0d
xor eax, eax
lea edi, [ebp - 0x38]
mov dword [edi + 8], eax
mov dword [edi + 4], eax
mov dword [edi + 0xc], eax
push 0x800
call sym.nss3.dll_PORT_NewArena_Util
add esp, 4
mov dword [edi], eax
push dword [ebp + 0x14]
push dword [esi + 0xc]
push edi
call fcn.100bae70
add esp, 0xc
movzx ecx, word [esi + 0x20]
cmp eax, 0xffffffff
je 0x1007ec56
and ecx, 0xfffd
mov word [esi + 0x20], cx
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x1007ec63
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x4c], 0
test eax, eax
je 0x1007ec63
mov edi, dword [eax + 8]
test edi, edi
je 0x1007ec2e
mov dword [ebp - 0x5c], eax
push 0x1c
call sym.nss3.dll_PORT_ZAlloc_Util
add esp, 4
test eax, eax
je 0x1007ec52
mov ebx, eax
lock inc dword [edi + 0x70]
mov dword [eax], edi
mov dword [eax + 4], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x1007eba8
xor edi, edi
mov dword [ebp - 0x58], ebx
mov eax, dword [esi + 0x18]
test eax, eax
je 0x1007ec24
mov eax, dword [eax + edi*4]
test eax, eax
je 0x1007ec24
mov dword [ebp - 0x3c], ecx
mov ecx, dword [eax]
test ecx, ecx
je 0x1007ebf2
mov edx, dword [ebx]
test edx, edx
je 0x1007ebf2
mov dword [ebp - 0x48], 0xffffe099
cmp eax, ebx
je 0x1007ec14
mov esi, dword [ebx + 4]
cmp esi, dword [eax + 4]
jne 0x1007eb7e
cmp esi, 1
je 0x1007eb95
test esi, esi
jne 0x1007eb7e
mov eax, dword [edx + 0xb0]
cmp eax, dword [ecx + 0xb0]
mov esi, dword [ebp - 0x50]
jne 0x1007eb81
mov eax, dword [edx + 0xb4]
cmp eax, dword [ecx + 0xb4]
jne 0x1007eb81
push dword [ecx + 0xac]
push dword [edx + 0xac]
call sym.nss3.dll_SECITEM_CompareItem_Util
add esp, 8
test eax, eax
je 0x1007ec14
mov eax, dword [esi + 0x18]
test eax, eax
je 0x1007ebf2
mov edx, dword [esi + 0x14]
cmp edx, edi
jbe 0x1007ebf2
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x1007ebf2
mov edx, dword [eax + edx*4 - 4]
mov dword [eax + edi*4], edx
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
mov dword [edx + eax*4 - 4], 0
dec dword [esi + 0x14]
cmp dword [esi + 0x1c], ecx
jne 0x1007eb71
mov dword [esi + 0x1c], 0
call fcn.1007f570
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x3c], eax
jmp 0x1007eb81
mov esi, dword [ebp - 0x50]
inc edi
mov ecx, dword [ebp - 0x3c]
cmp edi, ecx
mov ebx, dword [ebp - 0x58]
jb 0x1007ea98
jmp 0x1007ec35
mov eax, dword [edx + 0xac]
cmp eax, dword [ecx + 0xac]
mov esi, dword [ebp - 0x50]
jne 0x1007eb81
jmp 0x1007ec14
mov ecx, 4
push ecx
push dword [esi + 0x18]
call dword [sym.imp.mozglue.dll_realloc]
add esp, 8
test eax, eax
je 0x1007ec0a
mov ecx, dword [esi + 0x14]
lea edx, [ecx + 1]
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], edx
mov dword [eax + ecx*4], ebx
mov eax, dword [ebp + 0xc]
or eax, dword [ebp + 0x10]
mov eax, dword [ebp - 0x5c]
je 0x1007ec2e
mov ecx, esi
mov edx, ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.1007f620
mov eax, dword [ebp - 0x5c]
add esp, 0xc
jmp 0x1007ec2e
push 0
push 0xffffe001
call sym.nss3.dll_PR_SetError
add esp, 8
mov dword [ebp - 0x48], 0xffffe001
jmp 0x1007ec14
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x48], 0xffffe013
push 0
push dword [ebp - 0x48]
call sym.nss3.dll_PR_SetError
add esp, 8
mov ebx, dword [ebp - 0x58]
mov ecx, ebx
call fcn.1007f570
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax]
jmp 0x1007ea51
shl ecx, 2
add ecx, 4
jns 0x1007ebad
jmp 0x1007ec0d
push edx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x1007e8e9
movzx ecx, word [esi + 0x20]
or ecx, 2
mov word [esi + 0x20], cx
xor eax, eax
dec eax
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x1007ecf2
mov edi, dword [ebp - 0x30]
test edi, edi
je 0x1007ece7
xor ecx, ecx
dec ecx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x1007ecde
mov eax, ecx
lock xadd dword [ebx + 0x70], eax
dec eax
test eax, eax
jg 0x1007ecde
mov eax, dword [ebx + 0xb0]
test eax, eax
je 0x1007eca7
lock dec dword [eax + 0x48]
jne 0x1007eca7
push eax
call fcn.100c9d60
xor ecx, ecx
dec ecx
add esp, 4
mov eax, dword [ebx + 0xb8]
test eax, eax
je 0x1007ecca
cmp dword [eax + 0x14], 1
jne 0x1007ecca
push 1
push dword [ebx + 0xac]
call sym.nss3.dll_SECITEM_FreeItem_Util
xor ecx, ecx
dec ecx
add esp, 8
mov eax, dword [ebx]
test eax, eax
je 0x1007ecde
push 0
push eax
call sym.nss3.dll_PORT_FreeArena_Util
xor ecx, ecx
dec ecx
add esp, 8
mov edi, dword [edi]
test edi, edi
jne 0x1007ec78
mov eax, dword [ebp - 0x38]
push 0
push eax
call sym.nss3.dll_PORT_FreeArena_Util
add esp, 8
cmp dword [esi + 0x24], 1
jne 0x1007ecff
mov dword [esi + 0x24], 0
call sym.nss3.dll_PR_Now
mov dword [esi + 0x34], edx
mov dword [esi + 0x30], eax
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x54], 0
jne 0x1007ed1d
push dword [esi]
call fcn.100d3060
add esp, 4
push dword [esi]
call fcn.100d32c0
add esp, 4
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
test ebx, ebx
jne 0x1007ed40
mov eax, ecx
or eax, edx
jne 0x1007ed40
call sym.nss3.dll_PR_Now
mov ecx, eax
jmp 0x1007ed52
test ebx, ebx
je 0x1007ed52
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x58], eax
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x48], eax
jmp 0x1007ed7a
mov eax, dword [esi + 0x38]
mov edi, dword [esi + 0x3c]
mov dword [ebp - 0x58], eax
sub ecx, eax
mov dword [ebp - 0x48], edi
sbb edx, edi
jl 0x1007ed7a
mov dword [ebp - 0x3c], 0
cmp ecx, 0x3938701
sbb edx, 0
jl 0x1007ef5d
cmp dword [esi + 0x14], 0
je 0x1007ef5a
mov eax, ebx
xor ebx, ebx
mov dword [ebp - 0x3c], eax
xor edx, edx
mov eax, dword [esi + 0x18]
mov eax, dword [eax + ebx*4]
test eax, eax
je 0x1007ef24
cmp dword [eax + 4], 0
jne 0x1007ef24
mov edi, dword [eax]
test edi, edi
je 0x1007ee99
mov eax, dword [edi + 0xb0]
test eax, eax
je 0x1007ee99
mov ecx, dword [edi + 0xb4]
mov dword [ebp - 0x38], ecx
test ecx, ecx
je 0x1007ee99
push eax
mov dword [ebp - 0x44], edx
call fcn.100cbb00
mov edx, dword [ebp - 0x44]
add esp, 4
mov dword [ebp - 0x34], eax
test eax, eax
je 0x1007ee99
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 0
call fcn.10093500
call fcn.10092c20
test eax, eax
je 0x1007ee8b
mov ecx, eax
xor edx, edx
push edx
push edx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
push edx
push ecx
mov dword [ebp - 0x40], 0
push edx
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x5c], ecx
call fcn.10094bc0
add esp, 0x20
test eax, eax
jne 0x1007ee66
add edi, 0x2c
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x24]
push eax
push edi
call sym.nss3.dll_SECITEM_CompareItem_Util
add esp, 8
mov ecx, dword [ebp - 0x28]
mov edx, 0xce534351
xor ecx, edx
xor edx, edx
or ecx, eax
sete dl
mov dword [ebp - 0x40], edx
push dword [ebp - 0x5c]
call fcn.10092e60
add esp, 4
push dword [ebp - 0x34]
call fcn.10095540
add esp, 4
cmp dword [ebp - 0x40], 0
mov edx, dword [ebp - 0x44]
jne 0x1007ef24
jmp 0x1007ee99
push dword [ebp - 0x40]
call fcn.10095540
add esp, 4
mov edx, dword [ebp - 0x44]
cmp edx, 1
je 0x1007eeb8
cmp dword [ebp - 0x54], 0
jne 0x1007eeae
push dword [esi]
call fcn.100d3140
add esp, 4
push dword [esi]
call fcn.100d31d0
add esp, 4
mov eax, dword [esi + 0x38]
xor eax, dword [ebp - 0x58]
mov ecx, dword [esi + 0x3c]
xor ecx, dword [ebp - 0x48]
or ecx, eax
mov edx, 1
jne 0x1007ef24
mov eax, dword [esi + 0x18]
test eax, eax
je 0x1007ef0d
mov edx, dword [esi + 0x14]
cmp edx, ebx
jbe 0x1007ef0d
mov ecx, dword [eax + ebx*4]
test ecx, ecx
je 0x1007ef0d
mov edx, dword [eax + edx*4 - 4]
mov dword [eax + ebx*4], edx
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
mov dword [edx + eax*4 - 4], 0
dec dword [esi + 0x14]
cmp dword [esi + 0x1c], ecx
jne 0x1007ef06
mov dword [esi + 0x1c], 0
call fcn.1007f570
jmp 0x1007ef1c
push 0
push 0xffffe001
call sym.nss3.dll_PR_SetError
add esp, 8
xor eax, eax
inc eax
mov dword [ebp - 0x3c], eax
mov edx, eax
inc ebx
cmp ebx, dword [esi + 0x14]
jb 0x1007ed8d
cmp edx, 1
jne 0x1007ef5d
call sym.nss3.dll_PR_Now
mov dword [esi + 0x3c], edx
mov dword [esi + 0x38], eax
cmp dword [ebp - 0x54], 0
jne 0x1007ef4e
push dword [esi]
call fcn.100d3060
add esp, 4
push dword [esi]
call fcn.100d32c0
add esp, 4
jmp 0x1007ef5d
mov dword [ebp - 0x3c], ebx
cmp dword [ebp - 0x60], 0
je 0x1007efd5
cmp dword [esi + 4], 0
jne 0x1007efd5
push 2
push dword [ebp - 0x60]
call sym.nss3.dll_CERT_CheckCertUsage
add esp, 8
test eax, eax
jne 0x1007efd5
cmp dword [ebp - 0x54], 0
jne 0x1007ef8a
push dword [esi]
call fcn.100d3140
add esp, 4
push dword [esi]
call fcn.100d31d0
add esp, 4
cmp dword [esi + 4], 0
jne 0x1007efbb
mov ecx, dword [ebp - 0x60]
mov eax, dword [ecx + 0x11c]
mov dword [esi + 8], eax
add ecx, 0x3c
push ecx
call sym.nss3.dll_SECITEM_DupItem_Util
add esp, 4
mov dword [esi + 4], eax
xor eax, eax
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x54], 0
jne 0x1007efcb
push dword [esi]
call fcn.100d3060
add esp, 4
push dword [esi]
call fcn.100d32c0
add esp, 4
xor eax, eax
mov ecx, dword [ebp + 0xc]
or ecx, dword [ebp + 0x10]
je 0x1007f0a2
cmp dword [esi + 4], 0
je 0x1007f0a2
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x1007f0a2
xor edi, edi
xor eax, eax
mov edx, dword [esi + 0x18]
mov ebx, dword [edx + edi*4]
test ebx, ebx
je 0x1007f077
cmp dword [ebx + 0x10], 1
je 0x1007f04a
test eax, eax
jne 0x1007f02d
cmp dword [ebp - 0x54], 0
jne 0x1007f020
push dword [esi]
call fcn.100d3140
add esp, 4
push dword [esi]
call fcn.100d31d0
add esp, 4
mov ecx, dword [esi + 0x14]
xor eax, eax
inc eax
cmp edi, ecx
jae 0x1007f04a
mov ecx, dword [esi + 0x18]
xor eax, eax
inc eax
cmp ebx, dword [ecx + edi*4]
jne 0x1007f04a
cmp dword [ebx + 0x10], 1
mov eax, 1
jne 0x1007f085
test eax, eax
je 0x1007f077
cmp dword [ebp - 0x3c], 0
jne 0x1007f077
cmp dword [ebp - 0x54], 0
jne 0x1007f064
push dword [esi]
call fcn.100d3060
add esp, 4
push dword [esi]
call fcn.100d32c0
add esp, 4
mov dword [ebp - 0x3c], 0
xor eax, eax
inc edi
mov ecx, dword [esi + 0x14]
cmp edi, ecx
jb 0x1007effc
jmp 0x1007f0a2
mov ecx, esi
mov edx, ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.1007f620
add esp, 0xc
xor eax, eax
inc eax
mov dword [ebp - 0x3c], eax
jmp 0x1007f077
cmp dword [ebp - 0x3c], 0
jne 0x1007f0b2
cmp dword [esi + 0x28], 0
je 0x1007f1ef
test eax, eax
jne 0x1007f0d0
cmp dword [ebp - 0x54], 0
jne 0x1007f0c6
push dword [esi]
call fcn.100d3140
add esp, 4
push dword [esi]
call fcn.100d31d0
add esp, 4
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1007f19e
mov ecx, dword [esi + 0x18]
xor edx, edx
mov edi, dword [ecx + edx*4]
test edi, edi
je 0x1007f198
cmp dword [edi + 0x10], 0
je 0x1007f198
cmp dword [edi + 0x14], 0
je 0x1007f198
inc edx
cmp eax, edx
jne 0x1007f0e0
and word [esi + 0x20], 0xfffe
jne 0x1007f1a5
push 0x1007f820
push 4
push eax
push ecx
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
add esp, 0x10
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x18]
mov ebx, dword [ecx + eax*4 - 4]
test ebx, ebx
je 0x1007f210
mov eax, dword [ebx]
test eax, eax
je 0x1007f23a
mov edi, dword [eax + 0xb8]
test edi, edi
je 0x1007f23a
cmp dword [edi + 4], 1
je 0x1007f23a
cmp dword [edi], 0
je 0x1007f243
cmp dword [edi + 8], 1
je 0x1007f23a
lea ecx, [eax + 0x78]
lea edx, [eax + 4]
push ecx
push 0x101b8e6c
mov dword [ebp - 0x3c], edx
push edx
push dword [eax]
call sym.nss3.dll_SEC_QuickDERDecodeItem_Util
add esp, 0x10
test eax, eax
je 0x1007f221
xor eax, eax
inc eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
jmp 0x1007f227
or byte [esi + 0x20], 1
jmp 0x1007f1a5
and word [esi + 0x20], 0xfffe
je 0x1007f1f5
cmp dword [esi + 0x1c], 0
je 0x1007f1b2
mov dword [esi + 0x1c], 0
push 0x1007f6d0
push 4
push eax
push dword [esi + 0x18]
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
add esp, 0x10
mov dword [esi + 0x28], 0
cmp dword [ebp - 0x54], 0
jne 0x1007f1dd
push dword [esi]
call fcn.100d3060
add esp, 4
push dword [esi]
call fcn.100d32c0
add esp, 4
mov esi, dword [ebp - 0x4c]
jmp 0x1007e726
test eax, eax
jne 0x1007f1cd
jmp 0x1007f1e7
xor ebx, ebx
mov dword [esi + 0x1c], ebx
jmp 0x1007f1c6
push 0
push 0xffffe001
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x1007e8e9
push 0
push 0xffffe001
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x1007f1c6
mov dword [edi], 0
mov ecx, dword [ebp - 0x3c]
call fcn.1007da30
test eax, eax
je 0x1007f243
mov dword [edi + 0x10], 1
mov dword [ebx + 0x18], 1
jmp 0x1007f1c6
cmp dword [ebx + 8], 0
je 0x1007f24f
cmp dword [ebx + 0xc], 0
jne 0x1007f1f7
mov eax, dword [ebx]
mov eax, dword [eax + 0x58]
xor edi, edi
test eax, eax
je 0x1007f26f
cmp dword [eax], 0
je 0x1007f26f
add eax, 4
xor edi, edi
add edi, 0x10
cmp dword [eax], 0
lea eax, [eax + 4]
jne 0x1007f264
push 0x800
call sym.nss3.dll_PORT_NewArena_Util
add esp, 4
test eax, eax
je 0x1007f336
push 0x14
mov dword [ebp - 0x3c], eax
push eax
call sym.nss3.dll_PORT_ArenaAlloc_Util
add esp, 8
test eax, eax
je 0x1007f329
mov ecx, eax
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov eax, dword [ebp - 0x3c]
mov dword [ecx + 0xc], eax
test edi, edi
je 0x1007f2cc
mov dword [ecx], edi
push edi
push dword [ebp - 0x3c]
mov edi, ecx
call sym.nss3.dll_PORT_ArenaAlloc_Util
mov ecx, edi
add esp, 8
mov dword [edi + 4], eax
test eax, eax
je 0x1007f329
mov dword [ebx + 0xc], ecx
push ecx
push 0x101f155c
push sym.nss3.dll_PL_CompareValues
push sym.nss3.dll_SECITEM_HashCompare
push fcn.100da790
push 0
call sym.nss3.dll_PL_NewHashTable
add esp, 0x18
mov dword [ebx + 8], eax
test eax, eax
je 0x1007f1c6
mov eax, dword [ebx]
mov edi, dword [eax + 0x58]
test edi, edi
je 0x1007f321
mov eax, dword [edi]
test eax, eax
je 0x1007f321
add edi, 4
push eax
push eax
push dword [ebx + 8]
call sym.nss3.dll_PL_HashTableAdd
add esp, 0xc
mov eax, dword [edi]
add edi, 4
test eax, eax
jne 0x1007f30b
mov esi, dword [ebp - 0x50]
jmp 0x1007f1f7
push 1
push dword [ebp - 0x3c]
call sym.nss3.dll_PORT_FreeArena_Util
add esp, 8
mov dword [ebx + 0xc], 0
jmp 0x1007f1c6
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov esi, eax
jmp 0x1007e698